/* ============================================================================
   PRODUCT DETAILS MODAL — FOOD APP BOTTOM SHEET
   Color palette: --gold: #d4a574  --gold-dark: #c4956f  --gold-deep: #b8845e
   ============================================================================ */

.product-modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0);
    /* must beat .language-dropdown (z-index: 999999999) in utilities.css */
    z-index: 1000000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px;  /* equal gap on all four sides */
    visibility: hidden;
    transition: background 0.32s ease, visibility 0.32s ease;
}

    .product-modal-overlay.show {
        background: rgba(0, 0, 0, 0.28);
        backdrop-filter: blur(5px) saturate(1.4);
        -webkit-backdrop-filter: blur(12px) saturate(1.4);
        visibility: visible;
    }

/* ── Modal shell — slides up from bottom ── */
.product-modal {
    /* Frosted gold glass shell — semi-transparent so the blurred overlay
       shows through the thin gaps between sections */
    background: rgba(212, 165, 116, 0.55);
    /*  backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);*/
    /* border: 1px solid rgba(255, 255, 255, 0.18);*/
    border: 2px solid rgb(255 255 255);
    border-radius: 28px; /* all corners — floats off the bottom edge */
    width: 100%;
    max-width: 520px;
    height: auto; /* shrinks to content — centers when small, fills when tall */
    max-height: calc(100vh - 26px);   /* fallback */
    max-height: calc(100svh - 26px);  /* stable — never loses margins when mobile browser chrome shows/hides */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 -16px 56px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(212, 165, 116, 0.25);
    opacity: 0;
    transform: translateY(110vh); /* pushes fully off-screen regardless of modal height */
    transition: opacity 0.28s ease, transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
    will-change: transform, opacity;
    position: relative;
}

.product-modal-overlay.show .product-modal {
    opacity: 1;
    transform: translateY(0);
}

/* ── Top bar: floats over the top of the product image ── */
.product-modal-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 8px 16px;
    gap: 4px;
    border-radius: 26px 26px 0 0;
    /* gradient fades from dark at top → transparent — blends into the image */
    background: linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, transparent 100%);
}

.product-modal-topbar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ── Close button (✕) — in topbar right ── */
.product-modal-close {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.20);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

    .product-modal-close:hover  { background: rgba(255,255,255,0.35); }
    .product-modal-close:active { transform: scale(0.90); }

/* ── Image area ── */
.product-modal-image {
    width: 100%;
    height: 330px;
    flex-shrink: 0;
    position: relative;
    background: #ffffff;
    overflow: hidden;
    border-radius: 26px 26px 0 0; /* rounded top corners for the whole image+topbar block */
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Background image — now the only visible image, shown clearly.
       transform-origin + transition let ImageZoom scale it smoothly. */
    .product-modal-image-bg {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        transform-origin: center center;
        transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
        z-index: 0;
    }

    /* Bottom fade — softens the edge where image meets the content card */
    .product-modal-image::after {
        content: '';
        position: absolute;
        left: 0; right: 0; bottom: 0;
        height: 60px;
        background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.25));
        z-index: 3;
        pointer-events: none;
    }

    .product-modal-image::before { display: none; }

/* ── Badge (popular) — top-right ── */
.product-modal-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: white;
    padding: 5px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
    display: none;
    z-index: 15;
}

    .product-modal-badge.show { display: block; }

/* ── Scrollable white content card ── */
.product-modal-content {
    flex: 0 1 auto;  /* shrinks to content; scrolls only when modal hits max-height */
    overflow-y: auto;
    min-height: 0;
    overscroll-behavior: contain; /* stops scroll from bleeding out to the page/overlay */
    -webkit-overflow-scrolling: touch; /* smooth momentum scroll on iOS */
    padding: 28px 22px 18px;
    background: white;
    border-radius: 0 0 28px 28px;
    margin: -14px 0 6px;   /* pulls up over image; 6px gap echoes gold footer */
    position: relative;
    z-index: 5;
    box-shadow:
        0 -1px 0 rgba(212, 165, 116, 0.35),   /* gold hairline at card top */
        0 -8px 32px rgba(0, 0, 0, 0.18),       /* upward shadow into image */
        0 16px 48px rgba(0, 0, 0, 0.14);       /* downward shadow over footer */
}

/* ── Header: title + quantity ── */
.product-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.product-modal-title-group {
    flex: 1;
    min-width: 0;
}

.product-modal-title {
    font-size: 22px;
    font-weight: 900;
    color: #1a1208;
    margin: 0 0 7px 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* "In stock" chip */
.product-modal-stock {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #16a34a;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 3px 10px;
}

/* ── Quantity selector — gold circles ── */
.product-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.quantity-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #d4a574 0%, #c4956f 100%);
    color: white;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
    box-shadow: 0 3px 12px rgba(212, 165, 116, 0.40);
}

    .quantity-btn:hover  { filter: brightness(1.08); }
    .quantity-btn:active { transform: scale(0.88); }

.quantity-value {
    font-size: 17px;
    font-weight: 800;
    color: #1a1208;
    min-width: 22px;
    text-align: center;
}

/* ── Rating row ── */
.product-modal-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.product-rating-stars { display: flex; gap: 2px; }
.product-star         { color: #f59e0b; font-size: 15px; }

.product-rating-text {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 600;
}

/* ── Section titles ── */
.product-section-title {
    font-size: 15px;
    font-weight: 800;
    color: #1a1208;
    margin: 0 0 10px 0;
    letter-spacing: -0.2px;
}

/* ── Description ── */
.product-modal-description {
    margin-bottom: 20px;
}

.product-modal-description p {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
    margin: 0;
}

/* ── Info grid ── */
.product-modal-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.product-info-item {
    background: #fff8f2;
    border: 1px solid rgba(212, 165, 116, 0.18);
    padding: 12px 10px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.product-info-icon  { font-size: 20px; }
.product-info-text  { flex: 1; min-width: 0; }
.product-info-label { font-size: 10px; color: #c4956f; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.product-info-value { font-size: 13px; font-weight: 800; color: #1a1208; margin-top: 2px; }

/* ── Tags ── */
.product-modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.product-tag        { background: #fff3e8; color: #b8845e; border: 1px solid rgba(212,165,116,0.22); padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }

/* ── Gold footer — outside scroll area ── */
.product-modal-footer {
    flex-shrink: 0;
    background: #b59c82;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px 30px;
    z-index: 6;
    box-shadow: 0 -6px 28px rgba(196, 149, 111, 0.30);
}

/* Price block — left */
.product-modal-price-block {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-shrink: 0;
}

.product-modal-price-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.product-modal-price {
    font-size: 22px;
    font-weight: 900;
    color: white;
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

/* Add to cart — white pill on gold footer */
.product-add-btn {
    flex: 1;
    background: white;
    color: #b8845e;
    border: none;
    padding: 15px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    letter-spacing: -0.1px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

    .product-add-btn:hover  { background: #fff5ec; box-shadow: 0 6px 22px rgba(0,0,0,0.18); }
    .product-add-btn:active { transform: scale(0.97); }

/* ── Responsive ── */
@media (max-width: 480px) {
    /* max-height uses 100svh fallback — margins stay locked regardless of browser chrome */
    .product-modal-image   { height: 295px; }
    .product-modal-content { padding: 24px 18px 14px; }
    .product-modal-title   { font-size: 20px; }
    .product-modal-price   { font-size: 19px; }
    .product-modal-footer  { padding: 14px 18px 26px; gap: 12px; }
    .product-modal-info    { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
    .product-modal-image   { height: 260px; }
    .product-modal-title   { font-size: 18px; }
    .product-modal-content { padding: 20px 16px 12px; }
    .product-modal-footer  { padding: 12px 16px 24px; }
}

/* ── Zoom controls — in topbar, left side ── */
.product-modal-zoom-controls {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.zoom-ctrl-btn {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.88);
    color: #c4956f;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
    transition: background 0.15s ease, transform 0.12s ease, opacity 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    line-height: 1;
}

    .zoom-ctrl-btn:hover  { background: white; }
    .zoom-ctrl-btn:active { transform: scale(0.86); }
    .zoom-ctrl-btn:disabled,
    .zoom-ctrl-btn.zoom-limit { opacity: 0.35; pointer-events: none; }

/* Expand button SVG icon */
.zoom-ctrl-expand { font-size: 9px; }

/* ── Slider nav group — topbar center ── */
.product-modal-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.modal-nav-btn {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #c4956f;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
    transition: background 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}
.modal-nav-btn:hover  { background: white; }
.modal-nav-btn:active { transform: scale(0.90); }
/* visibility:hidden keeps space so the counter doesn't shift */
.modal-nav-btn.hidden { visibility: hidden; pointer-events: none; }

/* ── Slide position indicator "3 / 12" — inline in nav group ── */
.modal-slide-indicator {
    font-size: 10px;
    font-weight: 700;
    color: white;
    min-width: 30px;
    text-align: center;
    letter-spacing: 0.3px;
    white-space: nowrap;
    pointer-events: none;
}

/* ── Share button — in topbar, right side ── */
.product-modal-share {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

    .product-modal-share:hover  { background: rgba(255,255,255,0.2); }
    .product-modal-share:active { transform: scale(0.86); }

    /* Clipboard fallback feedback */
    .product-modal-share.share-copied {
        background: #c4956f;
        color: white;
    }

/* ── Fullscreen image preview lightbox ── */
#imagePreviewOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.90);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#imagePreviewOverlay.show {
    opacity: 1;
    visibility: visible;
}

#imagePreviewImg {
    max-width: 94vw;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
    transform: scale(0.88);
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: block;
}

#imagePreviewOverlay.show #imagePreviewImg {
    transform: scale(1);
}

.image-preview-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.30);
    transition: background 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 10;
}

    .image-preview-close:hover  { background: rgba(255, 255, 255, 0.24); }
    .image-preview-close:active { transform: scale(0.90); }

/* ============================================================================
   REVIEW MODAL
   ============================================================================ */

.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .review-modal-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.review-modal {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 245, 245, 0.95) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 165, 116, 0.15);
    border-radius: 28px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 1px rgba(212, 165, 116, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.review-modal-overlay.show .review-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.review-modal-header {
    padding: 28px 24px 20px 24px;
    border-bottom: 1px solid rgba(212, 165, 116, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(212, 165, 116, 0.05) 100%);
}

.review-modal-title {
    font-size: 24px;
    font-weight: 900;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #d4a574 0%, #c4956f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.review-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(212, 165, 116, 0.1);
    color: #d4a574;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.1);
}

    .review-modal-close:hover {
        background: rgba(212, 165, 116, 0.2);
        color: #c4956f;
        transform: rotate(90deg) scale(1.1);
        box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
    }

    .review-modal-close:active {
        transform: rotate(90deg) scale(0.95);
    }

.review-modal-body {
    padding: 24px;
}

.review-input,
.rating-input {
    margin-bottom: 20px;
}

.review-label,
.rating-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 8px;
}

.review-field,
.review-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid rgba(212, 165, 116, 0.2);
    border-radius: 14px;
    font-size: 15px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-sizing: border-box;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(212, 165, 116, 0.05) 100%);
}

    .review-field:focus,
    .review-textarea:focus {
        outline: none;
        border-color: #d4a574;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(212, 165, 116, 0.1) 100%);
        box-shadow:
            0 0 0 4px rgba(212, 165, 116, 0.15),
            0 4px 12px rgba(212, 165, 116, 0.1);
        transform: translateY(-2px);
    }

.review-textarea {
    resize: vertical;
    min-height: 110px;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.08) 0%, rgba(212, 165, 116, 0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(255, 215, 0, 0.15);
    justify-content: center;
}

.rating-star {
    font-size: 42px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

    .rating-star:hover {
        transform: scale(1.3) rotate(15deg);
        filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.3));
    }

    .rating-star.active,
    .rating-star.hover {
        color: #ffc107;
        filter: drop-shadow(0 6px 12px rgba(255, 215, 0, 0.5));
        animation: starRating 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

@keyframes starRating {
    0% {
        transform: scale(0.5) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.4) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.rating-text {
    font-size: 14px;
    color: #555;
    font-weight: 600;
    text-align: center;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(196, 149, 111, 0.08) 100%);
    border-radius: 12px;
}

.review-modal-footer {
    padding: 20px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.review-cancel-btn,
.review-submit-btn {
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
}

.review-cancel-btn {
    background: linear-gradient(135deg, rgba(212, 165, 116, 0.1) 0%, rgba(196, 149, 111, 0.08) 100%);
    color: #d4a574;
    border: 1px solid rgba(212, 165, 116, 0.2);
    box-shadow: 0 2px 8px rgba(212, 165, 116, 0.1);
}

    .review-cancel-btn:hover {
        background: linear-gradient(135deg, rgba(212, 165, 116, 0.15) 0%, rgba(196, 149, 111, 0.12) 100%);
        color: #c4956f;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
    }

    .review-cancel-btn:active {
        transform: translateY(0);
    }

.review-submit-btn {
    background: linear-gradient(135deg, #d4a574 0%, #c4956f 100%);
    color: white;
    box-shadow:
        0 4px 16px rgba(212, 165, 116, 0.35),
        0 0 1px rgba(212, 165, 116, 0.5);
}

.review-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    pointer-events: none;
}

.review-submit-btn:hover::before {
    left: 100%;
}

    .review-submit-btn:hover {
        transform: translateY(-3px) scale(1.02);
        box-shadow:
            0 8px 24px rgba(212, 165, 116, 0.45),
            0 0 2px rgba(212, 165, 116, 0.6),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .review-submit-btn:active {
        transform: translateY(-1px) scale(0.98);
        box-shadow: 0 2px 8px rgba(212, 165, 116, 0.30);
    }

    .review-submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: 0 2px 8px rgba(212, 165, 116, 0.15);
    }
/* ============================================================================
   ALERT MODAL - FIXED VERSION
   ============================================================================ */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

    .alert-overlay.show {
        opacity: 1;
        visibility: visible;
    }

.alert-modal {
    background: white;
    border-radius: 28px;
    padding: 32px 28px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    position: relative;
}

.alert-overlay.show .alert-modal {
    transform: scale(1);
    opacity: 1;
}

/* FIXED: Icon wrapper centering and ripple */
.alert-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 24px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: scaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

    .alert-icon-wrapper.success {
        background: linear-gradient(135deg, #4caf50, #45a049);
    }

    .alert-icon-wrapper.error {
        background: linear-gradient(135deg, #ff4757, #ff3838);
    }

    .alert-icon-wrapper.warning {
        background: linear-gradient(135deg, #ffc107, #ff9800);
    }

    .alert-icon-wrapper.info {
        background: linear-gradient(135deg, #2196f3, #1976d2);
    }

    .alert-icon-wrapper svg {
        width: 40px;
        height: 40px;
        stroke: white;
        stroke-width: 3;
        position: relative;
        z-index: 2;
    }

    /* FIXED: Ripple animation - centered and contained */
    .alert-icon-wrapper::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: inherit;
        animation: ripple 1.5s ease-out infinite;
        opacity: 0.3;
        z-index: 1;
    }

.alert-title {
    font-size: 24px;
    font-weight: 800;
    color: #212529;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    animation: slideUp 0.5s ease 0.3s both;
}

.alert-message {
    font-size: 16px;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 28px;
    animation: slideUp 0.5s ease 0.4s both;
}

/* ============================================================================
   ALERT DYNAMIC CONTENT
   ============================================================================ */

.alert-dynamic-content {
    display: none;
    margin-bottom: 24px;
    animation: slideUp 0.5s ease 0.45s both;
}

.alert-section {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
}

.alert-section:last-child {
    margin-bottom: 0;
}

/* WiFi Section */
.alert-section.wifi-section {
    background: linear-gradient(135deg, #e8f4fd 0%, #e0f2fe 100%);
    border: 1px solid #b3dfe6;
}

.alert-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #0c5460;
    font-size: 14px;
}

.alert-section-header svg {
    width: 16px;
    height: 16px;
    color: #0c5460;
}

.alert-wifi-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-wifi-password {
    background: white;
    padding: 12px 16px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #212529;
    letter-spacing: 0.5px;
    border: 1px solid #b3dfe6;
    margin: 0;
    word-break: break-all;
}

/* Tip Section */
.alert-section.tip-section {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 1px solid #ffcc80;
}

.alert-tip-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-tip-text {
    font-size: 15px;
    color: #e65100;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.alert-buttons {
    display: flex;
    gap: 12px;
    animation: slideUp 0.5s ease 0.5s both;
}

.alert-button {
    flex: 1;
    padding: 14px 24px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

    .alert-button.primary {
        background: linear-gradient(135deg, #d4a574 0%, #c4956f 100%);
        color: white;
        box-shadow: 0 6px 20px rgba(212, 165, 116, 0.30);
    }

        .alert-button.primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(212, 165, 116, 0.40);
        }

        .alert-button.primary:active {
            transform: translateY(0);
        }

    .alert-button.secondary {
        background: #f8f9fa;
        color: #495057;
    }

        .alert-button.secondary:hover {
            background: #e9ecef;
        }

        .alert-button.secondary:active {
            transform: scale(0.98);
        }

/* FIXED: Ripple animation keyframes */
@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Scale in animation */
@keyframes scaleIn {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Slide up animation */
@keyframes slideUp {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive */
@media (max-width: 480px) {
    .alert-modal {
        padding: 28px 24px;
        border-radius: 24px;
    }

    .alert-icon-wrapper {
        width: 70px;
        height: 70px;
    }

        .alert-icon-wrapper svg {
            width: 36px;
            height: 36px;
        }

    .alert-title {
        font-size: 22px;
    }

    .alert-message {
        font-size: 15px;
    }

    .alert-buttons {
        flex-direction: column;
    }

    .alert-button {
        width: 100%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .alert-modal,
    .alert-icon-wrapper,
    .alert-title,
    .alert-message,
    .alert-buttons {
        animation: none !important;
        transition: opacity 0.2s ease !important;
    }

        .alert-icon-wrapper::before {
            animation: none !important;
            display: none;
        }
}








/* ============================================================================
   SIZE VARIANTS SECTION (Separate from Add-ons)
   ============================================================================ */

.product-modal-sizes {
    margin-bottom: 20px;
}

.product-sizes-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Size Option (Radio Button Style) */
.size-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 1.5px solid #e9ecef;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

    .size-option:hover {
        border-color: #d4a574;
        background: #fff5e6;
        transform: translateX(4px);
    }

    .size-option.selected {
        border-color: #d4a574;
        background: linear-gradient(135deg, #fff5e6, #fef9f3);
        box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
    }

.size-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.size-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.size-option.selected .size-radio {
    border-color: #d4a574;
    background: #d4a574;
}

    .size-option.selected .size-radio::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background: white;
        border-radius: 50%;
    }

.size-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.size-name {
    font-size: 15px;
    font-weight: 800;
    color: #212529;
}

.size-description {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

.size-price {
    font-size: 16px;
    font-weight: 800;
    color: #d4a574;
}

.size-option.selected .size-price {
    color: #212529;
}

/* ============================================================================
   ADD-ON VARIANTS SECTION (Separate from Sizes)
   ============================================================================ */

.product-modal-variants {
    margin-bottom: 24px;
}

.product-variants-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Add-on Option (Checkbox Style) */
.addon-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: white;
    cursor: pointer;
}

    .addon-option:hover {
        border-color: #d4a574;
        background: #fff5e6;
    }

    .addon-option.checked {
        border-color: #d4a574;
        background: #fff5e6;
    }

.addon-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.addon-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #d4a574;
}

.addon-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.addon-name {
    font-size: 14px;
    font-weight: 700;
    color: #212529;
}

.addon-description {
    font-size: 12px;
    color: #6c757d;
    font-weight: 600;
}

.addon-price {
    font-size: 14px;
    font-weight: 800;
    color: #d4a574;
}

/* Responsive */
@media (max-width: 480px) {
    .size-option,
    .addon-option {
        padding: 12px 14px;
    }

    .size-name {
        font-size: 14px;
    }

    .size-price,
    .addon-price {
        font-size: 15px;
    }
}

