/* ============================================= */
/* OCEAN LOBBY — FULL LUXURY CATALOGUE STYLE     */
/* Includes: Logo, Favicon, Animations, Elegance */
/* ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500;600&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(to bottom, #f8fcff, #e8f4ff);
    color: #1a1a1a;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* === HEADER === */
header {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, #001f3f, #0077be);
    color: white;
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
    position: relative;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-link {
    display: block;
    flex-shrink: 0;
}

.header-logo {
    height: 70px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.logo-link:hover .header-logo {
    transform: scale(1.05);
}

.header-text {
    flex: 1;
    min-width: 200px;
}

header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 0;
    letter-spacing: 1px;
    color: white;
}

header p {
    font-size: 1rem;
    opacity: 0.92;
    margin: 0.3rem 0 0;
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .header-logo {
        height: 55px;
    }
    header h1 {
        font-size: 1.8rem;
    }
}

/* === SEARCH === */
.search-container {
    max-width: 1200px;
    margin: 1.2rem auto;
    padding: 0 1rem;
    text-align: center;
}

#searchInput {
    width: 100%;
    max-width: 100%;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2.5px solid #0077be;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,119,190,0.1);
}

#searchInput:focus {
    border-color: #00b4d8;
    box-shadow: 0 0 0 5px rgba(0, 180, 216, 0.25);
    transform: scale(1.01);
}

#searchResultsCount {
    margin-top: 0.6rem;
    font-weight: 600;
    color: #0077be;
    font-size: 0.95rem;
}

/* === CATEGORIES === */
.categories {
    background: white;
    padding: 0.9rem 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 1rem;
}
.categories ul {
    display: flex;
    gap: 0.9rem;
    padding: 0 1rem;
    list-style: none;
}

.categories a {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    background: #e3f2fd;
    color: #1976d2;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 110px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,119,190,0.12);
}

.categories a:hover,
.categories a.active {
    background: #0077be;
    color: white;
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 16px rgba(0,119,190,0.3);
}

/* === GALLERY GRID === */
main { padding: 0 1rem 2.5rem; }

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.3rem;
    margin-top: 1rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === PRODUCT CARD === */
.photo-item {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(0.05s * var(--i, 0));
}

@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.photo-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* Image */
.photo-item a {
    display: block;
    width: 100%;
    padding-top: 75%;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.photo-item img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    background: white;
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Caption */
.photo-item figcaption {
    padding: 0.8rem 1rem 1rem;
}

.details {
    font-size: 0.88rem;
    line-height: 1.6;
}

.details p {
    margin: 0.35rem 0;
}

.details strong {
    color: #0077be;
    font-weight: 600;
}

/* === STATUS BADGES === */
.status {
    padding: 6px 12px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 0.78rem;
    display: inline-block;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.status.in-stock {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    color: #2e7d32;
    border: 1px solid #c3e6cb;
}

.status.out-of-stock,
.status.sold-out {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    border: 1px solid #ef9a9a;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === NEW BADGE === */
.tag {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    box-shadow: 0 4px 12px rgba(255,107,107,0.4);
    transform: rotate(-5deg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: rotate(-5deg) scale(1); }
    50% { transform: rotate(-5deg) scale(1.05); }
}

/* === ADD TO QUOTE BUTTON === */
.add-quote {
    margin-top: 10px;
    background: linear-gradient(135deg, #0077be, #00b4d8);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.add-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,119,190,0.4);
}

.add-quote.added {
    background: #2e7d32 !important;
}

/* === QUANTITY CONTROLS === */
.quote-controls {
    margin-top: 10px;
}

.qty-input {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.9rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #0077be;
    color: white;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
}

.qty-btn:hover {
    background: #005a87;
}

.qty-num {
    width: 50px;
    text-align: center;
    padding: 6px;
    border: 1.5px solid #0077be;
    border-radius: 8px;
    font-weight: 600;
}

.remove-item {
    background: #c62828;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
}

.remove-item:hover {
    background: #9a1f1f;
}

/* === FLOATING QUOTE BAR === */
#quote-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    z-index: 1000;
    border: 2px solid #0077be;
}

#quote-bar.hidden {
    display: none;
}

/* === RESPONSIVE === */
@media (min-width: 480px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.4rem;
    }
}

/* === DESKTOP: 6-COLUMN CLEAN GRID === */
@media (min-width: 1024px) {
    .gallery {
        grid-template-columns: repeat(6, 1fr);
        gap: 1rem;
        padding: 0 0.5rem;
    }
}

/* === PRINT === */
@media print {
    .categories, .search-container, footer, .photo-item a {
        display: none !important;
    }
    .photo-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

html {
    scroll-behavior: smooth;
}
