:root {
    --primary-pink: #fce4ec;
    --accent-pink: #f8bbd0;
    --dark-pink: #f06292;
    --dark-pink-hover: #e91e63;
    --dark-pink-shadow: rgba(240, 98, 146, 0.25);
    --primary-purple: #f3e5f5;
    --accent-purple: #e1bee7;
    --text-color: #5d4037;
    --text-light: #b08a7a;
    --text-muted: #9e7b72;
    --white: #ffffff;
    --border-color: #eeeeee;
    --surface-light: #f5f5f5;
    --overlay-bg: rgba(0, 0, 0, 0.88);
    --shadow: 0 4px 15px rgba(0,0,0,0.05);
    --polaroid-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

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

html {
    overflow-x: hidden;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    background-color: var(--primary-pink);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: var(--white);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--dark-pink);
    margin: 0;
}

.logo img {
    height: 56px;
    width: auto;
}

.logo span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    text-align: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--dark-pink); }

/* Nav row with link + expand button */
.nav-item-row {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Expand chevron — hidden on desktop */
.nav-expand {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 2px 4px;
    font-size: 0.75rem;
    transition: transform 0.28s ease;
    line-height: 1;
}

/* Desktop dropdown */
.has-submenu {
    position: relative;
}

/* Invisible bridge so cursor can travel from nav item into the submenu */
.has-submenu::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -20px;
    right: -20px;
    height: 16px;
    z-index: 1000;
}

/* Submenu — drops below with fade+slide animation */
.submenu {
    display: block;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--white);
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.13);
    padding: 8px 0;
    z-index: 1001;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    transition-delay: 0.12s;
}

.has-submenu:hover > .submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
    transition-delay: 0s;
}

.submenu a {
    display: block;
    padding: 9px 18px;
    font-size: 0.88rem;
    color: var(--text-color);
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.submenu a:hover { color: var(--dark-pink); background: var(--primary-pink); }

/* Desktop: show small chevron arrow on nav-expand */
@media (min-width: 769px) {
    .nav-expand {
        display: inline-flex;
        font-size: 0.65rem;
        padding: 0 2px;
        opacity: 0.6;
    }

    .has-submenu:hover .nav-expand { opacity: 1; color: var(--dark-pink); }

    .has-submenu:hover .nav-expand i {
        transform: rotate(180deg);
    }
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-pink);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--dark-pink);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    font-family: sans-serif;
}

/* Hero Section */
.hero {
    height: calc(100vh - 88px);
    background: linear-gradient(rgba(255,255,255,0.4), rgba(255,255,255,0.4)),
                url('https://images.unsplash.com/photo-1520330531205-397726588497?auto=format&fit=crop&q=80&w=1500');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    width: 100%;
    height: 100%;
    padding: 60px 40px;
}

.hero-content {
    background: rgba(255, 255, 255, 0.85);
    padding: 40px;
    border-radius: 50% 50% 0 0;
    max-width: 500px;
    backdrop-filter: blur(5px);
    text-align: center;
    flex: 1;
}

.hero-photo {
    flex-shrink: 0;
}

.hero-photo img {
    width: 380px;
    height: auto;
    display: block;
    border-radius: 16px;
    border: 6px solid var(--white);
    box-shadow: 0 15px 40px var(--dark-pink-shadow);
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--dark-pink);
}

.btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--dark-pink);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 20px;
    transition: transform 0.3s, background-color 0.3s;
    font-weight: bold;
}

.btn-primary:hover {
    transform: scale(1.05);
    background-color: var(--dark-pink-hover);
}

/* Scalloped Divider */
.scallop-divider {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 50px;
    background: radial-gradient(circle at 25px -15px, transparent 40px, var(--primary-pink) 41px);
    background-size: 50px 100px;
}

.scallop-divider.top {
    top: 0;
    bottom: auto;
}

.scallop-divider.flip {
    transform: rotate(180deg);
    background: radial-gradient(circle at 25px -15px, transparent 40px, var(--primary-purple) 41px);
}

.scallop-divider.to-white {
    background: radial-gradient(circle at 25px -15px, transparent 40px, var(--white) 41px);
    background-size: 50px 100px;
}

/* Products Section */
.products-section {
    padding: 80px 0;
    position: relative;
}

/* Category Block */
.category-block {
    margin-bottom: 64px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.category-info h2 {
    font-size: 1.6rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.category-price {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 4px;
    font-weight: 600;
}

.category-block .category-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark-pink);
}

.btn-order {
    display: inline-block;
    padding: 10px 28px;
    border: 2px solid var(--text-color);
    border-radius: 50px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: background 0.25s, color 0.25s;
    white-space: nowrap;
}

.btn-order:hover {
    background: var(--text-color);
    color: var(--white);
}

/* Ticker */
.ticker-wrap {
    overflow: hidden;
    width: 100%;
    cursor: grab;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.ticker-wrap:active {
    cursor: grabbing;
}

.ticker-track {
    display: flex;
    gap: 14px;
    will-change: transform;
    width: max-content;
    padding: 8px 0;
}

.ticker-card {
    width: calc(21vw - 14px);
    min-width: 200px;
    max-width: 260px;
    aspect-ratio: 3 / 4;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ticker-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.ticker-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Lightbox */
#lb-overlay {
    display: flex;
    position: fixed;
    inset: 0;
    background: var(--overlay-bg);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#lb-overlay.open {
    opacity: 1;
    visibility: visible;
}

#lb-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
}

#lb-spinner {
    display: none;
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: lb-spin 0.7s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes lb-spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

#lb-img {
    max-width: 80vw;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 12px;
    transition: opacity 0.2s ease;
    display: block;
}

#lb-meta {
    margin-top: 14px;
    text-align: center;
}

#lb-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 4px 14px;
    border-radius: 50px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

#lb-tag:hover,
#lb-tag:visited,
#lb-tag:focus { text-decoration: none; }

#lb-tag:empty { display: none; }

#lb-desc {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    margin-top: 8px;
}

#lb-desc:empty { display: none; }

#lb-close {
    position: fixed;
    top: 18px;
    right: 22px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.2s;
    line-height: 1;
    z-index: 9001;
}

#lb-close:hover { opacity: 1; }

#lb-prev, #lb-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.12);
    border: none;
    color: var(--white);
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9002;
    transition: background 0.2s;
    line-height: 1;
}

#lb-prev { left: 20px; }
#lb-next { right: 20px; }

#lb-prev:hover, #lb-next:hover {
    background: rgba(255,255,255,0.28);
}

@media (max-width: 768px) {
    #lb-prev, #lb-next {
        width: 36px;
        height: 36px;
        font-size: 1.6rem;
    }

    #lb-prev { left: 8px; }
    #lb-next { right: 8px; }

    #lb-img {
        max-width: 88vw;
        max-height: 74vh;
    }
}

/* Footer */
footer {
    background: var(--white);
    padding: 50px 0 56px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--dark-pink);
    margin-left: 20px;
    transition: color 0.3s;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.88rem;
    transition: color 0.2s;
}

.footer-nav a:hover { color: var(--dark-pink); }

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Category tag pills */
.cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.cat-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    border-radius: 50px;
    background: var(--accent-pink);
    color: var(--text-color);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    -webkit-text-decoration: none;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.cat-tag:hover,
.cat-tag:visited,
.cat-tag:focus {
    text-decoration: none;
}

.cat-tag:hover {
    background: var(--dark-pink);
    color: white;
    transform: translateY(-2px);
}

/* Toast */
.toast {
    position: fixed;
    bottom: -100px;
    right: 20px;
    background: var(--dark-pink);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: bottom 0.5s ease-in-out;
    z-index: 2000;
}

.toast.show {
    bottom: 20px;
}

/* Animations */
.animate-pop {
    animation: pop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

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

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(32px); }
    to   { opacity: 1; transform: translateX(0); }
}

.hero-content > p  { animation: fadeSlideUp 0.65s 0.15s ease both; }
.hero-content > a  { animation: fadeSlideUp 0.65s 0.30s ease both; }
.hero-photo        { animation: fadeSlideIn 0.70s 0.10s ease both; }

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
    width: 36px;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--dark-pink);
    border-radius: 2px;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.32s ease,
                width 0.32s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Category page gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    padding: 40px 0 80px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3 / 4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-page-hero {
    padding: 48px 0 32px;
}

.category-page-hero .category-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
}

.category-page-hero .category-info h2 {
    font-size: 2rem;
}

.category-page-hero .category-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark-pink);
    margin-top: 6px;
}

/* Plain heading links — no decoration, inherit color */
.category-heading-link {
    color: inherit;
    text-decoration: none;
}

.btn-back {
    display: inline-block;
    color: var(--dark-pink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 16px;
    transition: opacity 0.2s;
}

.btn-back:hover { opacity: 0.7; }

/* Subcategory description on overview page */
.sub-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: -6px 0 14px;
    line-height: 1.55;
}

/* Description on individual category page */
.cat-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-top: 8px;
    max-width: 520px;
    line-height: 1.6;
}

.cat-desc:empty { display: none; }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
    }

    .nav-links {
        position: fixed;
        inset: 0;
        height: 100dvh;
        background: white;
        flex-direction: column;
        padding: 100px 32px 40px;
        overflow-y: auto;
        z-index: 998;
        gap: 0;
        align-items: stretch;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.35s;
    }

    .nav-links.open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0s;
    }

    /* Top-level items */
    .nav-links > li {
        border-bottom: 1px solid var(--surface-light);
    }

    .nav-links > li > a,
    .nav-links > li > .nav-item-row {
        padding: 16px 0;
        font-size: 1.4rem;
        font-family: 'Playfair Display', serif;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .nav-links > li > .nav-item-row > a {
        font-size: 1.4rem;
        font-family: 'Playfair Display', serif;
    }

    /* Show expand button on mobile */
    .nav-expand {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
    }

    .has-submenu.open > .nav-item-row .nav-expand i {
        transform: rotate(180deg);
    }

    /* Submenu in-flow on mobile — animated slide */
    .submenu {
        display: flex;
        flex-direction: column;
        position: static;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        min-width: 0;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: max-height 0.32s ease, opacity 0.22s ease, visibility 0s 0.25s;
    }

    .has-submenu.open > .submenu {
        max-height: 400px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition: max-height 0.32s ease, opacity 0.22s ease, visibility 0s 0s;
    }

    /* Neutralise desktop hover transform on touch devices */
    .has-submenu:hover > .submenu {
        transform: none;
    }

    .submenu a {
        padding: 10px 0 10px 16px;
        font-size: 0.88rem;
        background: none;
    }

    .category-header {
        gap: 8px;
    }

    .category-page-hero {
        padding: 24px 0 16px;
    }

    .sub-section {
        margin-bottom: 32px;
    }

    .sub-desc {
        margin-bottom: 10px;
    }

    .category-info h2 {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .category-price {
        font-size: 0.78rem;
    }

    .btn-order {
        padding: 7px 14px;
        font-size: 0.72rem;
        letter-spacing: 0.3px;
        white-space: nowrap;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero {
        height: calc(100dvh - 88px);
    }

    .hero-inner {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 20px 24px 80px;
        gap: 20px;
    }

    .hero-photo {
        order: -1;
        width: 94%;
        flex: 1;
        min-height: 0;
    }

    .hero-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
        border-radius: 16px;
        border: 6px solid var(--white);
        box-shadow: 0 15px 40px var(--dark-pink-shadow);
    }

    .hero-content {
        flex: none;
        max-width: 100%;
        padding-bottom: 20px;
    }

    .hero h2 {
        font-size: 2rem;
    }

}
