:root {
    /* Colors - Updated to White, Red, and Blue */
    --bg-white: #FFFFFF;
    --bg-light: #F0F4F8;
    --macaw-red: #E63946;
    --macaw-blue: #457B9D;
    --macaw-blue-dark: #1D3557;
    --glass-white: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(69, 123, 157, 0.2);
    --text-primary: #1D3557;
    --text-secondary: #457B9D;
    --accent-red: #E63946;
    
    /* Spacing */
    --header-height: 5rem;
    --border-radius: 1.5rem;
}

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

body {
    background-color: var(--bg-light);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
}

/* Background Illustrations */
.bg-illustration {
    position: fixed;
    z-index: -1;
    opacity: 0.15;
    pointer-events: none;
    filter: saturate(1.2);
    transition: transform 0.5s ease-out;
}

.bg-illustration.left {
    left: -5%;
    top: 20%;
    width: 30rem;
}

.bg-illustration.right {
    right: -5%;
    bottom: 10%;
    width: 35rem;
}

.bg-illustration.center {
    left: 50%;
    top: 60%;
    transform: translateX(-50%);
    width: 40rem;
    opacity: 0.15;
}

/* Header */
header {
    height: var(--header-height);
    background: var(--glass-white);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--macaw-red);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

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

.nav-links a:hover {
    color: var(--macaw-blue);
}

/* Hero Slider */
.hero-slider {
    width: 100%;
    height: 30rem; /* Half screen approx */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.slider-container {
    display: flex;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background: var(--bg-white);
}

.collage-grid {
    display: grid;
    width: 100%;
    height: 100%;
    gap: 0.5rem;
    padding: 0.5rem;
}

.collage-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.collage-grid img:hover {
    transform: scale(1.02);
    z-index: 2;
}

/* Collage 1: 1 Large Left, 2 Small Right */
.collage-1 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.collage-1 .img-1 { grid-row: span 2; }

/* Collage 2: 4 Square Grid */
.collage-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

/* Collage 3: 1 Large Top, 2 Small Bottom */
.collage-3 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 1fr;
}
.collage-3 .img-1 { grid-column: span 2; }

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-light), transparent);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 8rem;
}

.slide-overlay h2 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--macaw-blue-dark);
    text-shadow: 0 4px 10px rgba(255,255,255,0.8);
}

.slide-overlay p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 40rem;
}

/* Main Content Layout */
.main-layout {
    display: grid;
    grid-template-columns: 20rem 1fr;
    gap: 2rem;
    padding: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Sidebar Filters */
.filters-sidebar {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 7rem;
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--macaw-red);
}

.filter-list {
    list-style: none;
}

.filter-item {
    padding: 0.5rem 0;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s, padding-left 0.3s;
}

.filter-item:hover, .filter-item.active {
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.sub-categories {
    margin-left: 1rem;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    border-left: 1px solid var(--glass-border);
    padding-left: 1rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--glass-white);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border-color: var(--macaw-blue);
}

.product-image {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.8rem;
    color: var(--macaw-blue);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.1rem;
    color: var(--macaw-red);
    font-weight: 700;
}

/* Footer */
footer {
    background: var(--glass-white);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 4rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    color: var(--macaw-blue-dark);
}

.footer-section p, .footer-section li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    list-style: none;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 4rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Responsive Design */

@media (max-width: 1024px) {
    header {
        padding: 0 2rem;
    }

    .main-layout {
        padding: 2rem;
        gap: 2rem;
    }

    .slide-overlay h2 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 1rem;
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.9rem;
    }

    .hero-slider {
        height: 20rem;
    }

    .slide-overlay {
        padding: 0 2rem;
        text-align: center;
        align-items: center;
        background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
        backdrop-filter: blur(2px);
    }

    .slide-overlay h2 {
        font-size: 2rem;
    }

    .slide-overlay p {
        font-size: 1rem;
    }

    .main-layout {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .filters-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .collage-grid {
        gap: 0.2rem;
        padding: 0.2rem;
    }

    .bg-illustration {
        width: 15rem;
    }
}

/* Unified Mobile/Tablet Media Query (Portrait & Landscape up to 846px) */
@media (max-width: 846px), (max-height: 414px) {
    header {
        position: static; /* Let the header scroll away */
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0;
    }

    .header-top {
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .header-content {
        display: none; /* Hidden by default on mobile */
        flex-direction: column;
        width: 100%;
        padding-top: 1rem;
        gap: 1.5rem;
    }

    .header-content.show {
        display: flex;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero-slider {
        height: 18rem; /* Shorter for mobile */
    }

    /* Transform Filter to Horizontal Bar */
    .filters-sidebar {
        position: sticky;
        top: 0; /* Sticks to the very top once reached */
        z-index: 1000;
        margin-bottom: 0;
        padding: 0.8rem 1.5rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0.5rem;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--glass-border);
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
        scrollbar-width: none;
    }

    .filters-sidebar::-webkit-scrollbar {
        display: none;
    }

    /* ONLY show the category filter group */
    .filter-group:not(:first-child) {
        display: none;
    }

    .filter-group {
        margin-bottom: 0;
        display: flex;
        align-items: center;
        width: 100%;
    }

    .filter-group h3 {
        display: none;
    }

    .filter-list {
        display: flex;
        gap: 0.5rem;
        width: 100%;
    }

    .filter-item {
        padding: 0.5rem 1.2rem;
        background: var(--bg-white);
        color: var(--macaw-blue-dark);
        border-radius: 100px;
        font-size: 0.85rem;
        font-weight: 600;
        border: 1px solid var(--glass-border);
        transition: all 0.3s ease;
    }

    .filter-item.active {
        background: var(--macaw-red);
        color: white;
        border-color: var(--macaw-red);
        box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
    }

    .sub-categories {
        display: none;
    }

    .main-layout {
        display: block; /* Stack sidebar and grid */
        padding: 0; /* Header and slider take care of horizontal padding */
    }

    .product-grid-section {
        padding: 1.5rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-image {
        height: 10rem; /* Shorter image for mobile to maintain proportions */
    }

    .product-info {
        padding: 0.8rem;
    }

    .product-name {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-category {
        display: none;
    }


    .collage-grid {
        gap: 0.2rem;
        padding: 0.2rem;
    }

    .bg-illustration {
        width: 12rem;
        opacity: 0.1;
    }

    .modal-content {
        margin: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .order-flow-container {
        padding: 2rem 1.5rem;
    }

    .order-step h2 {
        font-size: 1.6rem;
    }

    .scent-grid, .bottle-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .summary-total {
        font-size: 1.4rem;
    }

    .modal-nav-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section ul {
        padding: 0;
    }
}

/* CTA Button */
.cta-button {
    background: var(--macaw-red);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

/* Modal Base */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(29, 53, 87, 0.6);
    backdrop-filter: blur(8px);
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-white);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: var(--border-radius);
    border: 1px solid var(--glass-border);
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    overflow: hidden;
}

.close-modal {
    position: absolute;
    right: 2rem;
    top: 1.5rem;
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.order-flow-container {
    padding: 4rem;
}

/* Steps Indicator */
.order-steps-indicator {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-light);
    border: 2px solid var(--glass-border);
    transition: all 0.4s;
}

.step-dot.active {
    background: var(--macaw-red);
    border-color: var(--macaw-red);
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
    transform: scale(1.3);
}

/* Step Content */
.order-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

.order-step.active {
    display: block;
}

.order-step h2 {
    font-size: 2.2rem;
    color: var(--macaw-blue-dark);
    margin-bottom: 0.5rem;
}

.order-step p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Scent Selection */
.scent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.scent-card {
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.scent-card:hover, .scent-card.selected {
    background: var(--bg-white);
    border-color: var(--macaw-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.scent-card.selected {
    border-color: var(--macaw-red);
    box-shadow: 0 0 0 2px var(--macaw-red);
}

/* Size & Concentration */
.size-options {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

.size-btn {
    flex: 1;
    padding: 1rem;
    border: 1px solid var(--glass-border);
    background: var(--bg-light);
    border-radius: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.size-btn.selected {
    background: var(--macaw-blue-dark);
    color: white;
    border-color: var(--macaw-blue-dark);
}

.counter-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.counter-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--bg-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.counter-btn:hover {
    background: var(--bg-light);
}

#concentrationInput {
    width: 6rem;
    height: 3rem;
    text-align: center;
    font-size: 1.5rem;
    border: 1px solid var(--glass-border);
    border-radius: 0.8rem;
    font-weight: 700;
}

/* Bottle Grid */
.bottle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 1.5rem;
}

.bottle-card {
    background: var(--bg-light);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.bottle-card img {
    width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.bottle-card.selected {
    border-color: var(--macaw-red);
    background: var(--bg-white);
    box-shadow: 0 0 0 2px var(--macaw-red);
}

/* Summary */
.summary-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 1.5rem;
    margin-bottom: 2rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 500;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--macaw-red);
    margin-top: 1rem;
}

.pay-button {
    width: 100%;
    background: #00A859; /* ePayco colors usually include green/white */
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

/* Modal Footer Nav */
.modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
}

.modal-nav-btn {
    padding: 1rem 2.5rem;
    border-radius: 100px;
    border: 1px solid var(--glass-border);
    background: var(--bg-light);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-nav-btn.primary {
    background: var(--macaw-blue-dark);
    color: white;
    border-color: var(--macaw-blue-dark);
}

.modal-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT CARD — Category Badge
═══════════════════════════════════════════════════════════════ */
.product-card {
    position: relative;
}

.product-card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    letter-spacing: 0.5px;
    pointer-events: none;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}

.badge-perfume {
    background: rgba(230, 57, 70, 0.85);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230,57,70,0.4);
}

.badge-item {
    background: rgba(69, 123, 157, 0.85);
    color: #fff;
    box-shadow: 0 4px 12px rgba(69,123,157,0.4);
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT DETAIL MODAL  (non-perfume quick-detail)
═══════════════════════════════════════════════════════════════ */
.pd-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(29, 53, 87, 0.55);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pd-modal-backdrop.pd-open {
    opacity: 1;
}

.pd-modal-content {
    background: var(--bg-white);
    border-radius: 1.5rem;
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);
    transform: translateY(30px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    animation: pdSlideIn 0.3s cubic-bezier(0.4,0,0.2,1) forwards;
}

@keyframes pdSlideIn {
    from { transform: translateY(30px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.pd-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--bg-light);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.pd-close:hover {
    background: var(--macaw-red);
    color: white;
    border-color: var(--macaw-red);
}

.pd-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 420px;
}

.pd-image-col {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem 0 0 1.5rem;
}

.pd-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.pd-image-col:hover .pd-main-image {
    transform: scale(1.04);
}

.pd-category-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--macaw-blue-dark);
}

.pd-info-col {
    padding: 2.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pd-name {
    font-size: 1.8rem;
    color: var(--macaw-blue-dark);
    line-height: 1.2;
}

.pd-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--macaw-red);
}

.pd-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.pd-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Size grid */
.pd-size-section { margin-top: 0.5rem; }

.pd-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pd-size-btn {
    padding: 0.45rem 1rem;
    border: 1.5px solid var(--glass-border);
    border-radius: 0.5rem;
    background: var(--bg-light);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-primary);
    transition: all 0.2s;
}
.pd-size-btn:hover {
    border-color: var(--macaw-blue);
    color: var(--macaw-blue);
}
.pd-size-btn.selected {
    background: var(--macaw-blue-dark);
    color: white;
    border-color: var(--macaw-blue-dark);
    box-shadow: 0 4px 12px rgba(29,53,87,0.3);
}

/* Shake animation for missing size */
@keyframes pdShake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-8px); }
    40%      { transform: translateX(8px); }
    60%      { transform: translateX(-6px); }
    80%      { transform: translateX(6px); }
}
.pd-size-section {
    border-radius: 0.5rem;
    padding: 0.5rem;
    transition: background 0.3s;
}

/* Quantity control */
.pd-qty-section { margin-top: 0.5rem; }

.pd-qty-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pd-qty-btn {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    border: 1.5px solid var(--glass-border);
    background: var(--bg-light);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: var(--text-primary);
}
.pd-qty-btn:hover {
    background: var(--macaw-blue-dark);
    color: white;
    border-color: var(--macaw-blue-dark);
}

#pd-qty-display {
    font-size: 1.3rem;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
    color: var(--text-primary);
}

/* Action buttons */
.pd-actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: auto;
}

.pd-btn-primary {
    background: var(--macaw-red);
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}
.pd-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(230,57,70,0.35);
}

.pd-btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1.5px solid var(--glass-border);
    padding: 0.7rem 1.5rem;
    border-radius: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}
.pd-btn-secondary:hover {
    border-color: var(--macaw-blue);
    color: var(--macaw-blue);
}

.pd-whatsapp-note {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}
.pd-whatsapp-note i { color: #25D366; }
.pd-whatsapp-note a {
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
}
.pd-whatsapp-note a:hover { text-decoration: underline; }

/* ═══ Order Confirmation Overlay ═══ */
.pd-confirm-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(29,53,87,0.6);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.pd-confirm-overlay.pd-open { opacity: 1; }

.pd-confirm-box {
    background: var(--bg-white);
    border-radius: 1.5rem;
    padding: 3rem 2.5rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
    animation: pdSlideIn 0.3s ease forwards;
}

.pd-confirm-icon {
    font-size: 3.5rem;
    color: #27ae60;
    margin-bottom: 1rem;
}
.pd-confirm-box h3 {
    font-size: 1.8rem;
    color: var(--macaw-blue-dark);
    margin-bottom: 0.8rem;
}
.pd-confirm-box p {
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.pd-confirm-sub {
    font-size: 0.85rem !important;
    margin-top: 1rem !important;
    padding: 0.8rem 1rem;
    background: var(--bg-light);
    border-radius: 0.8rem;
}

.pd-confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.pd-btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 0.9rem 1.5rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}
.pd-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37,211,102,0.35);
}

/* ═══ Responsive: stack modal columns on mobile ═══ */
@media (max-width: 640px) {
    .pd-layout {
        grid-template-columns: 1fr;
    }
    .pd-image-col {
        border-radius: 1.5rem 1.5rem 0 0;
        max-height: 280px;
    }
    .pd-info-col {
        padding: 1.5rem;
    }
    .pd-name { font-size: 1.4rem; }
    .pd-price { font-size: 1.6rem; }
}

