* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Updated to match New Home dark theme */
    background-color: #0b0b0f; 
    color: #e6e6e6;
    line-height: 1.5;
}

* {
    font-family: "Onest", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body, html {
    width: 100%;
    overflow-x: hidden;
}

.breadcrumb {
    padding: 12px 16px;
    font-size: 13px;
    color: #9ca3af; /* Softer gray */
    background-color: #1c1c1c; /* Match Home Card BG */
    border-bottom: 1px solid #333;
}

.breadcrumb span {
    margin: 0 5px;
    color: #666;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background-color: transparent; /* Removed fixed bg to let body show */
}

.product-container {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.product-image {
    width: 300px;
    height: 400px;
    background-color: #1c1c1c; /* Updated Card BG */
    border: 1px solid #333;    /* Added border */
    border-radius: 12px;       /* Increased radius */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
}

.product-details {
    flex: 1;
}

.product-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #fff; /* Brighter white */
}

.product-subtitle {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.badges {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    align-items: center;
}

.badgeg {
    padding: 4px 10px;
    background-color: #1f2937; /* Darker slate tone */
    border: 1px solid #374151;
    border-radius: 6px;
    font-size: 12px;
    color: #d1d5db;
}

.check-restrictions {
    color: #3d82f2; /* Updated to Shoppy Blue */
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.info-section {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 13px;
}

.info-label {
    color: #9ca3af;
    width: 80px;
}

.info-value {
    color: #fff;
    font-weight: 500;
}

.info-link {
    color: #3d82f2; /* Shoppy Blue */
    text-decoration: none;
}

.variations-title {
    color: #e2e8f0;
    font-size: 16px;
    margin-bottom: 12px;
}

.edition-options {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.edition-option {
    background-color: #1c1c1c; /* Match Home Card */
    border: 1px solid #333;    /* Thinner, cleaner border */
    border-radius: 12px;       /* Match Home radius */
    overflow: hidden;
    cursor: pointer;
    color: #fff;
    min-width: 180px;
    max-width: 240px;
    flex: 1 0 auto;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.edition-option.selected {
    border-color: #3d82f2; /* Shoppy Blue */
    box-shadow: 0 0 0 1px rgba(61, 130, 242, 0.5), 0 0 15px rgba(61, 130, 242, 0.15); /* Glow effect */
}

.edition-name {
    background-color: #232323; /* Slightly lighter header */
    padding: 14px 16px 10px;
    font-weight: 600;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.edition-price {
    padding: 10px 16px 16px;
    font-size: 14px;
    color: #ccc;
}

/* Radio indicator using a span */
.radio-indicator {
    width: 16px;
    height: 16px;
    border: 2px solid #555;
    border-radius: 50%;
    position: relative;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.edition-option.selected .radio-indicator {
    border-color: #3d82f2; /* Shoppy Blue */
}

.radio-indicator::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #3d82f2; /* Shoppy Blue */
    opacity: 0;
    transform: scale(0);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.edition-option.selected .radio-indicator::after {
    opacity: 1;
    transform: scale(1);
}

/* Keyframes for pop-in effect */
@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    80% {
        transform: scale(1.4);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Highlighted border still applies */
.edition-option.selected::after {
    border-color: #3d82f2;
}

.notice {
    font-size: 13px;
    color: #91a7cc;
    margin-bottom: 20px;
    padding: 12px;
    background-color: #111827; /* Darker blue-grey bg */
    border-radius: 8px;
    border: 1px solid #1f2937;
    border-left: 3px solid #3d82f2; /* Shoppy Blue */
}

.offer-section {
    margin-top: 30px;
    background-color: #1c1c1c; /* Match Home Card */
    border: 1px solid #333;
    padding: 16px;
    border-radius: 12px;
}

.offer-title {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.offer-card {
    background-color: #161616; /* Nested card slightly darker */
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
}

.offer-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.offer-name {
    font-weight: bold;
    font-size: 16px;
    color: #fff;
}

.offer-tag {
    background: linear-gradient(135deg, #6d0bee, #4c1d95); /* Refined purple gradient */
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(109, 11, 238, 0.3);
}

.price-section {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}

.current-price {
    font-size: 22px;
    font-weight: 800; /* Bolder */
    color: #fff;
}

.original-price {
    text-decoration: line-through;
    color: #6b7280;
    margin: 0 10px;
    font-size: 14px;
}

.discount {
    color: #4ade80; /* Brighter Green */
    font-weight: bold;
    font-size: 14px;
    background: rgba(74, 222, 128, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.buy-options {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    align-items: center;
}

.buy-button {
    padding: 10px 24px;
    /* Updated to Shoppy Neon Gradient */
    background: linear-gradient(135deg, #3d82f2, #2a5db0);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(61, 130, 242, 0.3);
}

.buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(61, 130, 242, 0.5);
    filter: brightness(1.1);
}

.buy-with-plus {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.plus-price {
    font-weight: bold;
    color: #3d82f2;
}

.price-note {
    font-size: 12px;
    color: #6b7280;
    margin-top: 8px;
}

.variations-title {
    font-size: 16px;
    margin: 24px 0 12px;
    color: #e6e6e6;
}

.plus-benefits {
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 20px 0;
    padding: 12px 0;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #9ca3af;
}

.benefit-icon {
    width: 16px;
    height: 16px;
    background-color: #333;
    border-radius: 50%;
    display: inline-block; /* Fixed: was missing */
}

.other-offers {
    margin-top: 30px;
}

.sort-by {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 13px;
    color: #9ca3af;
}

.offer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #333;
    background: #1c1c1c; /* Match card style */
    border-radius: 8px;
    align-items: center;
    transition: background 0.2s;
}

.list-item:hover {
    background: #252525;
}

.item-price {
    font-weight: bold;
    font-size: 16px;
    color: #fff;
}

.item-save {
    color: #4ade80;
    font-size: 13px;
    margin-top: 4px;
}

.item-action {
    color: #3d82f2;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    background: rgba(61, 130, 242, 0.1); /* Subtle button feel */
}

.item-action:hover {
    background: rgba(61, 130, 242, 0.2);
}

.icon {
    margin-right: 6px;
    color: #3d82f2;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-container {
        flex-direction: column;
        gap: 15px;
    }

    .product-image {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
    }

    .edition-options {
        flex-wrap: wrap;
    }

    .plus-benefits {
        flex-wrap: wrap;
        gap: 15px;
    }

    .offer-header {
        flex-direction: column;
        gap: 8px;
    }

    .offer-tag {
        align-self: flex-start;
    }

    .buy-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .product-title {
        font-size: 20px;
    }

    .price-section {
        flex-wrap: wrap;
        gap: 8px;
    }

    .other-details > div {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews > div:first-child {
        grid-template-columns: repeat(2, 1fr);
    }

    .frequently-bought {
        padding: 15px;
    }

    .frequently-bought > div {
        flex-direction: column;
        gap: 10px;
    }

    .frequently-bought img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 12px;
        padding: 10px;
        white-space: nowrap;
        overflow-x: auto;
    }

    .product-title {
        font-size: 18px;
    }

    .product-subtitle {
        font-size: 13px;
    }

    .edition-option {
        width: 100%;
    }

    .other-details > div {
        grid-template-columns: 1fr;
    }

    .reviews > div:first-child {
        grid-template-columns: 1fr;
    }

    .plus-benefits {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .sort-by {
        flex-direction: column;
        gap: 8px;
    }

    .list-item {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .offer-card {
        padding: 12px;
    }

    .current-price {
        font-size: 20px;
    }
}

#main-image-container {
    width: 100%;
    height: 400px;
    position: relative;
    border-radius: 12px; /* Consistent radius */
    overflow: hidden;
}

#product-image {
    transition: opacity 0.3s ease;
}

#product-image.fade-out {
    opacity: 0;
}

#product-image.fade-in {
    opacity: 1;
}

#image-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px; /* Softer corners */
    cursor: pointer;
    border: 2px solid transparent;
    background: #1c1c1c;
}

#image-thumbnails img.active {
    border-color: #3d82f2; /* Shoppy Blue */
}

#image-thumbnails.scrolling {
    cursor: grabbing;
}

/* Base Styles */
.product-image {
    width: 350px;
    background-color: #1c1c1c; /* Match Home */
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border: 1px solid #333;
}

#main-image-container {
    display: flex;
    align-items: center;
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

#product-image {
    width: 100%;
    height: auto;
    object-fit: fill;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

#image-thumbnails {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#image-thumbnails::-webkit-scrollbar {
    display: none;
}

#image-thumbnails img {
    width: auto;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
}

#image-thumbnails img.active {
    border-color: #3d82f2;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .product-image {
        width: 100%;
        background-color: transparent; /* Cleaner on mobile */
        border: none; /* Remove border on mobile if preferred, or keep */
        border-radius: 8px;
        padding: 5px;
    }

    #main-image-container {
        height: auto;
        aspect-ratio: 16/9;
    }

    #image-thumbnails {
        padding: 12px 0;
    }

    #image-thumbnails img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 768px) {
    .product-image {
        padding: 8px;
    }

    #image-thumbnails img {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    #main-image-container {
        aspect-ratio: 4/5;
    }

    #image-thumbnails {
        gap: 6px;
    }

    #image-thumbnails img {
        width: 40px;
        height: 40px;
    }
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 1rem;
}

.product-badges .badgein {
    display: flex;
    align-items: center;
    background-color: #1f2937; /* Darker slate */
    border: 1px solid #374151; /* Subtle border */
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.product-badges .badgein img {
    width: 18px;
    height: 18px;
    margin-right: 5px;
}

.wishlist-btn.material-icons {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    transition: color 0.3s;
}
.wishlist-btn.material-icons:hover {
    color: #3d82f2;
}

.system-requirements {
    margin-bottom: 30px;
    background-color: #1c1c1c; /* Match Home Card */
    border: 1px solid #333;
    padding: 20px;
    border-radius: 12px;
}

.system-requirements h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #e6e6e6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

.requirement-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.requirement-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    font-weight: bold;
    color: #3d82f2; /* Updated to Shoppy Blue */
}

.requirement-value {
    color: #e6e6e6;
    font-size: 14px;
}

@media (max-width: 768px) {
    .requirements-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .requirement-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .requirement-label {
        min-width: unset;
        font-size: 14px;
    }

    .requirement-value {
        font-size: 10px;
    }

    .system-requirements {
        padding: 15px;
        margin-bottom: 10px;
        background-color: #1c1c1c;
        border-radius: 12px;
    }

    .system-requirements h2 {
        font-size: 14px;
    }
}

/* Mobile popup trigger button */
.mobile-edition-trigger {
    background-color: #1c1c1c; /* Match card BG */
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;       /* Increased radius */
    border: 1px solid #333;    /* Added border */
    cursor: pointer;
    font-size: 15px;
    width: 100%;
    margin-bottom: 16px;
    transition: background 0.2s;
}

.mobile-edition-trigger:hover {
    background-color: #252525;
}

/* Overlay popup */
.edition-popup-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85); /* Darker overlay */
    backdrop-filter: blur(5px);            /* Added blur */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.edition-popup {
    background-color: #1c1c1c; /* Match card BG */
    border-radius: 12px;
    width: 100%;
    max-width: 360px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.edition-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background-color: #161616; /* Slightly darker header */
    color: #fff;
    font-weight: 600;
    border-bottom: 1px solid #333;
}

.popup-close-btn {
    background: none;
    color: #9ca3af;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
}

.popup-close-btn:hover {
    color: #fff;
}

/* Reuse same edition-option UI inside popup */
.edition-popup-body {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        padding: 5px;
        gap: 10px;
    }
}

.mobile-edition-dropdown {
    background-color: #1c1c1c;
    color: #fff;
    padding: 14px 16px;
    border: 1px solid #333;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.mobile-edition-dropdown::after {
    content: "▼";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 12px;
}

/* Review */
.review-panel {
    background: #1c1c1c; /* Match Home Card */
    border-radius: 12px;
    padding: 24px;
    color: #f1f1f1;
    margin: auto;
    border: 1px solid #333;
    font-family: 'Onest', 'Inter', sans-serif;
}

.rating-summary {
    text-align: center;
    margin-bottom: 20px;
}

.rating-summary .average-rating {
    font-size: 32px;
    color: #3d82f2; /* Shoppy Blue */
    font-weight: bold;
}

.rating-summary .stars {
    color: #facc15;
    font-size: 20px;
}

.review {
    border-bottom: 1px solid #333;
    padding: 16px 0;
    display: flex;
    gap: 10px;
}

.review img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #333;
}

.review-content {
    flex: 1;
}

.review-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 4px;
}

.review-header strong {
    color: #fff;
}

.review-text {
    font-size: 13px;
    color: #d1d5db;
}

.review-footer {
    display: flex;
    gap: 12px;
    font-size: 13px;
    margin-top: 6px;
}

.review-footer button {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
}

.review-footer button:hover {
    color: #3d82f2;
}

.review-images {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.review-images img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #333;
}

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}

#close-img-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.hidden {
    display: none;
}

.shoppy-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 11, 15, 0.85); /* Darker backdrop */
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.popup-content {
    background-color: #1c1c1c; /* Match Home Card */
    color: #f1f5f9;
    padding: 0; /* Removing padding here, handling in children */
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    position: relative;
    font-family: "Onest", "Inter", sans-serif;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #333;
}

.popup-header {
    position: sticky;
    top: 0;
    background-color: #161616; /* Slightly darker header */
    padding: 16px 24px;
    border-bottom: 1px solid #333;
    z-index: 10;
    border-radius: 12px 12px 0 0;
}

.popup-header h2 {
    margin: 0;
    font-size: 20px;
    color: #fff;
}

.popup-scrollable {
    padding: 16px 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.close-popup {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    z-index: 20;
}

.close-popup:hover {
    color: #fff;
}

.popup-link-button {
    display: inline-block;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #3d82f2, #2a5db0); /* Shoppy Gradient */
    color: #fff !important;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.popup-link-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.site-header {
    background: #1c1c1c; /* Match Home Header */
    border-bottom: 1px solid #333;
    padding: 0 20px;
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 60px;
}

.site-header__logo img {
    height: 32px;
}

.site-header__nav {
    flex: 1;
    display: flex;
    gap: 24px;
    justify-content: center;
}

.site-header__nav a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: .5px;
    font-size: medium;
    transition: color 0.3s;
}

.site-header__nav a:hover {
    color: #3d82f2;
}

.site-header__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #d1d5db;
    cursor: pointer;
}

.icon-btn:hover {
    color: #fff;
}

.site-header__user {
    display: flex;
    gap: 8px;
    align-items: center;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #333;
}

.btn {
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

.btn--outline {
    background: transparent;
    border: 1px solid #3d82f2; /* Shoppy Blue */
    color: #3d82f2;
    transition: all 0.3s ease;
}

.btn--outline:hover {
    background: #3d82f2;
    color: #fff;
}

#headerUserName {
    font-size: medium;
    color: #fff;
}

/* MOBILE: logo+user on row-1, nav on row-2 */
@media (max-width: 600px) {
    .site-header__inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 4px 8px;
        height: auto;
    }

    /* Row 1: logo (left) & actions (right) */
    .site-header__logo {
        order: 1;
        flex: 1 1 auto;
    }

    .site-header__actions {
        order: 1;
        flex: 0 1 auto;
        justify-content: flex-end;
        gap: 6px;
    }

    /* Row 2: nav full width, centered */
    .site-header__nav {
        order: 2;
        flex: 1 1 100%;
        justify-content: center;
        gap: 12px;
        margin-top: 4px;
        border-top: 1px solid #333;
        padding-top: 4px;
    }

    /* shrink logo */
    .site-header__logo img {
        height: 24px;
    }

    /* shrink nav text */
    .site-header__nav a {
        font-size: 12px;
        padding: 0 6px;
    }

    /* shrink icons & avatar */
    .icon-btn {
        font-size: 16px;
    }

    .user-avatar {
        width: 20px;
        height: 20px;
    }

    /* shrink buttons */
    .btn,
    .btn--outline,
    .btn--ghost {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* Chat Popup — Desktop */
.chat-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 500px;
    height: 580px;
    background: #1c1c1c; /* Darker bg */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.chat-popup.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

/* Chat Iframe */
.chat-popup iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.chat-button:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Chat Button */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    /* Shoppy Neon Gradient */
    background: linear-gradient(135deg, #3d82f2, #2a5db0);
    color: white;
    padding: 10px 16px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(61, 130, 242, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .chat-popup {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }

    .chat-button {
        bottom: 16px;
        right: 16px;
        font-size: 14px;
        padding: 8px 12px;
    }
}

.additional-sections {
    padding: 20px 20px 20px;
    background-color: #181818; /* Match Body BG */
}

.product-description {
    margin-bottom: 10px;
    background-color: #1c1c1c; /* Match Home Card */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

.reviews {
    margin-bottom: 10px;
    background-color: #1c1c1c; /* Match Home Card */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

.desc-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.desc-box {
    position: relative;
    max-height: 180px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.desc-box.expanded {
    max-height: none;
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #1c1c1c); /* Updated to match card color */
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.desc-box.expanded .fade-overlay {
    opacity: 0;
}

.desc-toggle {
    margin-top: 8px;
    padding: 6px 12px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #3d82f2; /* Shoppy Blue */
    cursor: pointer;
}

.other-details {
    margin-bottom: 30px;
    background-color: #1c1c1c; /* Match Home Card */
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333;
}

@media (max-width: 768px) {
    .additional-sections {
        padding: 10px 10px 10px;
    }

    .product-description {
        background-color: #1c1c1c;
        padding: 15px;
        border-radius: 12px;
    }

    .desc-box {
        max-height: 140px;
    }

    .fade-overlay {
        height: 60px;
        background: linear-gradient(to bottom, transparent, #1c1c1c);
    }

    .reviews {
        margin-bottom: 10px;
        background-color: #1c1c1c;
        padding: 15px;
        border-radius: 12px;
    }

    .review-text {
        font-size: 12px;
    }

    .review-header {
        font-size: 13px;
    }

    .stars {
        font-size: 12px;
    }
}

.other-details h2 {
    font-size: 18px;
    margin-bottom: 16px;
    color: #e6e6e6;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.label {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.value {
    font-size: 14px;
    color: #fff;
}

.language-section {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .other-details {
        margin-bottom: 10px;
        background-color: #1c1c1c;
        padding: 15px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .details-grid {
        grid-template-columns: 1fr;
    }

    .other-details {
        padding: 16px;
    }

    .other-details h2 {
        font-size: 16px;
    }

    .label,
    .value {
        font-size: 13px;
    }
}

/* Skeleton base */
.skeleton {
    background-color: #1f2937; /* Darker slate for better contrast */
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

/* Animation shimmer */
.skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}
/* ================= ASK AI WIDGET STYLES ================= */

/* --- Floating Action Button Container --- */
.fab-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 15px;
    z-index: 99999;
    font-family: 'Onest', 'Inter', sans-serif;
}

/* --- Main Toggle Button --- */
.fab-main-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    /* Shoppy Gradient */
    background: linear-gradient(135deg, #3d82f2, #9b59b6);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(61, 130, 242, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fab-main-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(155, 89, 182, 0.5);
}

/* Icon Animations inside Main Button */
.fab-main-btn .material-icons {
    font-size: 28px;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.fab-close-icon {
    opacity: 0;
    transform: rotate(-180deg);
}

/* Active State for Main Button */
.fab-container.active .fab-main-btn #fabIcon {
    opacity: 0;
    transform: rotate(180deg);
}

.fab-container.active .fab-main-btn .fab-close-icon {
    opacity: 1;
    transform: rotate(0deg);
}

/* --- Option Groups (Label + Button) --- */
.fab-option-group {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none; /* Prevent clicking when hidden */
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

/* Active State for Options */
.fab-container.active .fab-option-group {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

/* --- The Sub-Buttons (AI & Support) --- */
.fab-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fab-action-btn:hover {
    transform: scale(1.1);
}

/* Specific Colors */
.ai-btn {
    background: linear-gradient(135deg, #9b59b6, #8e44ad); /* Purple for AI */
}

.chat-btn {
    background: #3d82f2; /* Shoppy Blue */
}

/* Labels ("Ask AI", "Support") */
.fab-label {
    background: #1c1c1c; /* Dark BG */
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    border: 1px solid #333;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .fab-container {
        bottom: 80px; /* Adjusted for bottom nav */
        right: 16px;
    }
    .fab-main-btn {
        width: 50px;
        height: 50px;
    }
    .fab-action-btn {
        width: 40px;
        height: 40px;
    }
}

/* ================= SHOPPY AI CHAT V2 (Professional) ================= */

/* --- Launcher Button --- */
.ai-launcher-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #1c1c1c; /* Match Home Card */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ai-launcher-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #3d82f2, #9b59b6, #3d82f2);
    z-index: -1;
    border-radius: 50px;
    animation: borderRotate 3s linear infinite;
    opacity: 0.7;
}

.ai-launcher-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(61, 130, 242, 0.3);
}

.ai-launcher-btn .material-icons {
    font-size: 20px;
    background: linear-gradient(135deg, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.launcher-text {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* --- Chat Window --- */
.ai-chat-window {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 380px;
    height: 600px; /* Taller for better reading */
    max-height: 80vh;
    background: rgba(28, 28, 35, 0.95); /* Deep dark glass */
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.95);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.ai-chat-window.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Background ambient glow inside chat */
.ai-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(61, 130, 242, 0.08), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

/* --- Header --- */
.ai-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.ai-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-logo-icon {
    width: 28px;
    height: 28px;
    animation: float 3s ease-in-out infinite;
}

.ai-title-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.main-title {
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.sub-title {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
}

.ai-close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #ccc;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- Messages Area --- */
.ai-messages-area {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

/* Scrollbar styling */
.ai-messages-area::-webkit-scrollbar {
    width: 6px;
}

.ai-messages-area::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.ai-date-divider {
    text-align: center;
    font-size: 11px;
    color: #555;
    margin: 10px 0;
    font-weight: 600;
}

/* Message Bubbles */
.message {
    max-width: 90%;
    display: flex;
    gap: 12px;
    animation: slideUp 0.3s ease-out;
}

.ai-avatar img {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

/* AI Specific Style */
.ai-message .message-content {
    background: #25252a;
    color: #e0e0e0;
    border-top-left-radius: 4px; /* Chat bubble tail effect */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* User Specific Style */
.user-message {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: linear-gradient(135deg, #3d82f2, #2a5db0);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 10px rgba(61, 130, 242, 0.3);
}

/* Rich Text inside messages */
.message-content p {
    margin: 0 0 8px 0;
}

.message-content p:last-child {
    margin: 0;
}

.message-content strong {
    color: #fff;
    font-weight: 700;
}

.message-content ul {
    padding-left: 20px;
    margin: 8px 0;
}

/* Action Buttons inside Chat */
.ai-action-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(61, 130, 242, 0.15);
    border: 1px solid rgba(61, 130, 242, 0.3);
    color: #3d82f2;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.ai-action-chip:hover {
    background: rgba(61, 130, 242, 0.25);
    transform: translateY(-1px);
}

.ai-action-chip .material-icons {
    font-size: 14px;
}

/* Suggestion Chips (Initial State) */
.ai-suggestion-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ai-suggestion-chips button {
    background: #2c2c33;
    border: 1px solid #3a3a40;
    color: #ccc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: 0.2s;
}

.ai-suggestion-chips button:hover {
    background: #3d82f2;
    color: #fff;
    border-color: #3d82f2;
}

/* --- Thinking Animation --- */
.ai-thinking-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #888;
    font-size: 13px;
    font-style: italic;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
}

.ai-thinking-logo {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ai-thinking-logo img {
    width: 16px;
    height: 16px;
    z-index: 2;
}

.ai-thinking-logo .ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid #3d82f2;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* --- Input Area --- */
.ai-input-area {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 10px;
    align-items: flex-end; /* Align to bottom if textarea grows */
}

.ai-input-area input {
    flex: 1;
    background: #121214;
    border: 1px solid #333;
    color: #fff;
    padding: 12px 16px;
    border-radius: 24px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s;
}

.ai-input-area input:focus {
    border-color: #3d82f2;
    box-shadow: 0 0 0 2px rgba(61, 130, 242, 0.2);
}

.ai-send-btn {
    background: #3d82f2;
    border: none;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ai-send-btn:hover {
    background: #2a5db0;
    transform: scale(1.05);
}

/* --- Animations --- */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Response - Bottom Sheet Style */
@media (max-width: 480px) {
    .ai-chat-window {
        width: 100%;
        /* Height settings */
        height: 60vh; /* Covers 60% of screen height */
        max-height: 80vh; /* Allow expansion if needed later */

        /* Positioning */
        bottom: 0;
        left: 0;
        right: 0;

        /* Styling to look like a floating sheet */
        border-radius: 24px 24px 0 0; /* Rounded top corners only */
        border-bottom: none; /* Connect to bottom edge */
        border-left: none;
        border-right: none;

        /* Remove the transform scale used on desktop for a slide-up effect instead */
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    }

    .ai-chat-window.open {
        transform: translateY(0); /* Slide up from bottom */
        opacity: 1;
    }

    /* Header adjustments for the sheet look */
    .ai-header {
        padding: 15px 20px;
        padding-top: 25px; /* Space for the handle */
        position: relative; /* For the handle positioning */
    }

    /* The "Drag Handle" visual at the top */
    .ai-header::before {
        content: '';
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 5px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 10px;
    }

    /* Adjust launcher button */
    .ai-launcher-btn {
        bottom: 20px;
        right: 16px;
    }

    /* Hide launcher when chat is open on mobile to prevent clutter */
    body:has(.ai-chat-window.open) .ai-launcher-btn {
        display: none;
    }
}

/* ================= ASK AI SPOTLIGHT STYLES ================= */

/* 1. The Dark Overlay (Backdrop) */
.ai-spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85); /* Dark blackout opacity */
    backdrop-filter: blur(5px); /* Blur the background */
    z-index: 9998; /* Sit just below the highlighted item */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.ai-spotlight-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto; /* Block clicks on the background */
}

/* 2. The Focused Element */
.ai-highlight-guide {
    position: relative !important;
    z-index: 9999 !important; /* Sit ABOVE the overlay */
    background: #1c1c1c; /* Match Home Card */
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(61, 130, 242, 0.6) !important; /* Strong Blue Glow */
    transition: all 0.3s ease;
    pointer-events: auto;
    border: 1px solid #3d82f2;
}

/* Optional: 'Here' Arrow Animation */
.ai-highlight-guide::after {
    content: "👇 Look Here";
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #3d82f2; /* Shoppy Blue */
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: bounceArrow 1s infinite alternate;
    pointer-events: none;
}

@keyframes bounceArrow {
    from {
        top: -45px;
    }
    to {
        top: -35px;
    }
}

/* --- CSS for AI HTML Content --- */

/* Fix List Spacing */
.message-content ul {
    margin: 5px 0 10px 0;
    padding-left: 20px;
}

.message-content li {
    margin-bottom: 4px;
}

/* 1. Price Tag Style (AI triggers this with <span class="price-tag">) */
.price-tag {
    background: rgba(61, 130, 242, 0.15);
    color: #3d82f2;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.95em;
    border: 1px solid rgba(61, 130, 242, 0.3);
}

/* 2. Highlight Box (AI triggers this with <span class="highlight-box">) */
.highlight-box {
    display: block; /* Makes it a box on its own line */
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
    padding: 8px 12px;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 0.9em;
    border-left: 3px solid #ff9800;
}

/* --- New Review System Styles --- */

/* Action Bar (Like, Reply) */
.review-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
    border-top: 1px solid #333;
    padding-top: 8px;
}

.action-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    transition: color 0.2s;
    padding: 4px 8px;
    border-radius: 4px;
}

.action-btn:hover {
    color: #3d82f2;
    background-color: #252525;
}

.action-btn.liked {
    color: #f53939; /* Red heart */
}

.action-btn .material-icons {
    font-size: 16px;
}

/* Seller Reply Box */
.seller-reply-box {
    background-color: #161616; /* Slightly darker */
    border-left: 3px solid #3d82f2;
    padding: 10px 15px;
    margin-top: 12px;
    border-radius: 0 4px 4px 0;
}

.seller-header {
    font-size: 12px;
    color: #3d82f2;
    font-weight: bold;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.seller-header span:last-child {
    color: #6b7280;
    font-weight: normal;
}

.seller-content {
    font-size: 13px;
    color: #e0e0e0;
    font-style: italic;
}

/* Discussion / Nested Comments */
.discussion-wrapper {
    margin-top: 8px;
    padding-left: 10px; /* Indent the whole thread */
}

/* The Toggle Button (e.g., "Show 2 replies") */
.toggle-replies-btn {
    background: none;
    border: none;
    color: #3d82f2;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.toggle-replies-btn:hover {
    color: #67a4ff;
}

.toggle-replies-btn .material-icons {
    font-size: 18px;
}

/* Container for the replies */
.replies-container {
    display: flex; /* Hidden by default via inline JS if toggled off, or controlled by class */
    flex-direction: column;
    position: relative;
}

/* The "Thread" Line - Vertical Line */
.replies-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 20px; /* Stop slightly before the last item */
    left: 6px;
    width: 2px;
    background-color: #333;
}

/* Individual Reply Item */
.reply-item {
    position: relative;
    padding: 8px 0 8px 30px; /* Space for the curve arrow */
    font-size: 13px;
}

/* The "Curved Arrow" Connector */
.reply-item::before {
    content: '';
    position: absolute;
    top: -10px; /* Connect from previous item */
    left: 6px; /* Match vertical line */
    width: 15px;
    height: 28px; /* Height to curve into the middle of this item */
    border-bottom-left-radius: 12px;
    border-left: 2px solid #333;
    border-bottom: 2px solid #333;
}

/* Avatar for replier (Small) */
.reply-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
    border: 1px solid #333;
}

.reply-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.reply-user {
    font-weight: 700;
    font-size: 12px;
    color: #fff;
}

.reply-date {
    font-size: 11px;
    color: #6b7280;
}

.reply-msg {
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
    margin-left: 34px; /* Align with text, under avatar */
}

/* --- Reply Form Styles --- */

.reply-form {
    display: none; /* Hidden by default, toggled via JS */
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
    animation: fadeIn 0.2s ease-in-out;
}

/* The input text area */
.reply-input {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #444; /* Underline style like YouTube */
    color: #fff;
    padding: 8px 0;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 24px;
    transition: border-color 0.3s ease;
    width: 100%;
}

.reply-input:focus {
    outline: none;
    border-bottom-color: #3d82f2; /* Highlight on focus */
    background-color: rgba(255, 255, 255, 0.02); /* Slight highlight */
}

/* The Post Reply button */
.reply-submit-btn {
    align-self: flex-end; /* Align to the right */
    background-color: #3d82f2; /* Shoppy Blue */
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 18px; /* Rounded pill shape */
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Hover state for button */
.reply-submit-btn:hover {
    background-color: #2a5db0;
}

/* Animation for when the box opens */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .reply-item {
        padding-left: 24px;
    }
    .reply-item::before {
        width: 12px;
    }
    .reply-msg {
        margin-left: 0; /* Save space on mobile */
        margin-top: 4px;
        display: block;
    }
}

.delete-reply-btn {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.delete-reply-btn:hover {
    color: #ff4d4d; /* Red on hover */
}

.delete-reply-btn .material-icons {
    font-size: 14px; /* Keep it small */
}

/* ================= SKELETON LOADER STYLES ================= */

/* 1. Hide the real content initially */
/* This prevents the "Flash of Unstyled Content" before the JS runs */
.container {
    display: none;
}

/* 2. Skeleton Container Layout */
#skeleton-loader {
    padding: 20px;
    max-width: 1200px;
    margin: 80px auto 0;
    /* Removed display: grid; and grid-template-columns; */
    display: block; /* Ensures sections stack on top of each other */
}

/* 3. The Skeleton "Bone" (Base Style) */
.skeleton-box {
    background-color: #1c1c1c; /* Match Home Card */
    border-radius: 8px;
    position: relative;
    overflow: hidden; /* Keeps the shimmer inside */
    margin-bottom: 15px;
    border: 1px solid #333;
}

/* 4. The Shimmer Animation Effect */
.skeleton-box::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%, /* Much subtler shine */
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* 5. Specific Shapes (Adjust heights to match your real content) */
.sk-image {
    width: 100%;
    height: 400px; /* Big box for main image */
    border-radius: 12px;
}

.sk-info-col {
    display: flex;
    flex-direction: column;
}

.sk-title {
    width: 70%;
    height: 40px;
}

.sk-price {
    width: 30%;
    height: 30px;
    margin-top: 10px;
}

.sk-text {
    width: 100%;
    height: 15px;
    margin-top: 8px;
}

.sk-btn {
    width: 100%;
    height: 50px;
    margin-top: 30px;
    border-radius: 8px;
}

/* Mobile: Stack columns vertically */
@media (max-width: 768px) {
    #skeleton-loader {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 60px;
    }
    .sk-image {
        height: 250px;
    }
}

/* ================= SITE HEADER (New Home Style) ================= */

/* --- 1. WRAPPER & LAYOUT --- */
.site-header {
    background: transparent; /* Wrapper handles background */
    padding: 0;
    position: relative;
    z-index: 9999;
}

.site-header__wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 9999;
    background: #1c1c1c; /* Default dark background */
    border-bottom: 1px solid #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 70px; /* Taller default height */
    padding: 0 20px;
    transition: height 0.3s ease;
}

/* Spacer to prevent content overlap since header is fixed */
.header-spacer {
    height: 70px;
    width: 100%;
}

/* --- 2. SCROLLED STATE (Liquid Glass Effect) --- */
/* JS toggles the .scrolled class */
.site-header__wrapper.scrolled {
    /* 1. Dark Glass Background */
    background-color: color-mix(in srgb, #000 60%, transparent);

    /* 2. Heavy Liquid Filter */
    backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);
    -webkit-backdrop-filter: blur(6px) url(#heavy-liquid) saturate(160%);

    /* 3. Premium Shadows */
    box-shadow: 
        inset 0 1px 0 0 rgba(255, 255, 255, 0.2),   /* Top Highlight */
        inset 0 -1px 0 0 rgba(0, 0, 0, 0.3),         /* Bottom Bevel */
        inset 0 0 20px rgba(61, 130, 242, 0.1),      /* Shoppy Blue Glow */
        0 4px 20px rgba(0, 0, 0, 0.6);               /* Drop Shadow */

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Shrink height on scroll */
.site-header__wrapper.scrolled .site-header__inner {
    height: 60px;
}

/* --- 3. APPLE/IOS FIX --- */
/* iOS Safari doesn't like SVG filters in backdrop-filter */
@supports (-webkit-touch-callout: none) {
    .site-header__wrapper.scrolled {
        background: rgba(15, 22, 35, 0.6);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        backdrop-filter: blur(20px) saturate(160%);
    }
}

/* --- 4. NAVIGATION LINKS --- */
.site-header__nav {
    flex: 1;
    display: flex;
    gap: 32px;
    justify-content: center;
}

.site-header__nav a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 15px;
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.site-header__nav a:hover {
    color: #3d82f2; /* Shoppy Blue */
}

/* Hover Underline Animation */
.site-header__nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #3d82f2;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.site-header__nav a:hover::after {
    width: 100%;
}

/* --- 5. LOGO & ACTIONS --- */
.site-header__logo img {
    height: 36px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.site-header__logo:hover img {
    transform: scale(1.05);
}

.site-header__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
}

.icon-btn:hover {
    color: #fff;
    transform: scale(1.1);
}

/* User Avatar */
.site-header__user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 20px;
    transition: background 0.2s;
}

.site-header__user:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #333;
    object-fit: cover;
}

#headerUserName {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

/* --- 6. MOBILE MENU & TOGGLE --- */
.mobile-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10003;
}

.mobile-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
    z-index: 10001;
}

/* Sidebar Content */
.mobile-menu-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: #0f0f13; /* Deep dark theme */
    box-shadow: 5px 0 25px rgba(0, 0, 0, 0.8);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    z-index: 10002;
    border-right: 1px solid #333;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 30px;
    opacity: 0.7;
}

.mobile-nav-links a {
    display: block;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 0;
    border-bottom: 1px solid #222;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s, padding 0.2s;
}

.mobile-nav-links a:hover {
    color: #3d82f2;
    padding-left: 10px;
}

/* --- 7. MOBILE MEDIA QUERY (Updated) --- */
@media (max-width: 768px) {
    /* Main Header Layout */
    .site-header__inner {
        display: flex !important;
        align-items: center;
        justify-content: space-between; /* Pushes Left/Right groups apart */
        padding: 0 15px;
        height: 60px !important;
        gap: 10px;
    }

    .header-spacer {
        height: 60px !important;
    }

    /* 1. Hamburger Menu (Far Left) */
    .mobile-toggle {
        display: flex;
        order: 1;
        margin-right: 8px; /* Space between burger and logo */
    }

    /* 2. Logo (Left, next to hamburger) */
    .site-header__logo {
        order: 2;
        flex: 0 1 auto; /* Do not grow, sit naturally */
        margin-right: auto; /* Pushes Actions to the far right */
        margin-left: 0;
        display: flex;
        align-items: center;
    }

    .site-header__logo img {
        height: 26px; /* Slightly smaller for mobile balance */
    }

    /* Hide Desktop Nav */
    .site-header__nav {
        display: none !important;
    }

    /* 3. User Actions (Far Right) */
    .site-header__actions {
        order: 3;
        flex: 0 1 auto;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Show "Sign In" button text if needed, or keep it button style */
    #headerSignIn {
        font-size: 12px;
        padding: 4px 10px;
    }

    /* 4. User Profile (Avatar + Name) */
    .site-header__user {
        display: flex; /* Ensure it's visible */
        align-items: center;
        gap: 6px;
    }

    .user-avatar {
        width: 24px;
        height: 24px;
        border: 1px solid #333;
    }

    /* FORCE SHOW USERNAME */
    #headerUserName {
        display: block !important;
        font-size: 12px;
        font-weight: 600;
        color: #e0e0e0;
        max-width: 80px; /* Prevent long names breaking layout */
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* --- MOBILE CLEANUP: Remove excess spaces & boxes --- */
@media (max-width: 768px) {
    /* 1. Remove Main Container Padding */
    .container, 
    .product-container, 
    .additional-sections {
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        gap: 0 !important;
    }

    /* 2. Flatten the "Cards" (Description, Reviews, Requirements, Offers) */
    /* This makes them full-width with no side margins */
    .product-description, 
    .reviews, 
    .system-requirements, 
    .other-details, 
    .frequently-bought{
        border-radius: 0 !important;       /* Remove rounded corners */
        margin: 0 0 8px 0 !important;      /* Tighter vertical gap */
        padding: 16px 15px !important;     /* Standard mobile padding */
        width: 100% !important;
        
        /* Remove card borders, keep top/bottom lines for separation */
        border: none !important;
        border-top: 1px solid #222 !important;
        border-bottom: 1px solid #222 !important;
        box-shadow: none !important;
        
        /* Ensure background matches but feels distinct */
        background-color: #161616 !important; 
    }

   /* 3. Clean up the Product Image Area (Mobile Fixed) */
    .product-image {
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        margin-bottom: 0 !important;
    }

    #main-image-container {
        border-radius: 0 !important; 
        border: none !important;
        width: 100% !important;
        
        /* 1. Limit height to 40% of the screen */
        height: 40vh !important; 
        min-height: 250px !important; /* Safety minimum so it's never too small */
        
        /* 2. Center the image nicely */
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: #0b0b0f; /* Match page BG to hide empty space */
        overflow: hidden;
    }

    #product-image {
        width: 100% !important;
        height: 100% !important;
        
        /* 3. Ensure image fits inside without stretching or cutting */
        object-fit: contain !important; 
        
        /* 4. Smooth fade transition */
        transition: opacity 0.3s ease;
    }

    /* 4. Thumbnail Strip (With Left Padding) */
    #image-thumbnails {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory;
        
        /* THIS IS THE LEFT PADDING YOU WANTED (16px) */
        padding: 10px 16px 10px 16px !important; 
        
        width: 100% !important;
        box-sizing: border-box !important;
        scrollbar-width: none; /* Hide scrollbar on Firefox */
    }

    /* 4. Fix Product Title & Info Area */
    .product-details {
        padding: 15px !important; /* Give text breathing room */
    }

    /* 5. Clean up Offer/Price Card inside the section */
    .offer-card {
        padding: 12px !important;
        background: rgba(61, 130, 242, 0.15) !important;
        border: none !important;
        border-radius: 12 !important;
        box-shadow: none !important;
        margin-bottom: 6px !important;
    }

    /* 6. Adjust Headings to save space */
    .product-title {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }
    
    h2, h3 {
        margin-top: 0 !important;
    }
}

/* ================= IMAGE MODAL FIXES ================= */

/* 1. Force Modals Above Everything (Header is 9999, so we go higher) */
#image-modalhgg, 
#image-modal, 
.image-modal {
    z-index: 100000 !important; 
    background-color: rgba(0, 0, 0, 0.95) !important; /* Deep dark overlay */
    backdrop-filter: blur(5px); /* Nice blur effect */
}

/* 2. Style the "Close" Button (Product Image Modal) */
#image-modalhgg button {
    position: fixed !important; /* Ensures it stays in corner even on zoom */
    top: 20px !important;
    right: 20px !important;
    z-index: 100001 !important; /* Above the modal background */
    
    /* Shoppy Theme Button */
    background: rgba(30, 30, 35, 0.8) !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 30px !important; /* Pill shape */
    padding: 8px 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
    transition: all 0.2s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#image-modalhgg button:hover {
    background: #3d82f2 !important; /* Shoppy Blue */
    border-color: #3d82f2 !important;
    transform: translateY(-2px);
}

/* 3. Style the "X" Button (Review Image Modal) */
#close-img-modal {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 100001 !important;
    
    /* Circular X Button */
    width: 40px;
    height: 40px;
    background: rgba(30, 30, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#close-img-modal:hover {
    background: #e74c3c; /* Red for close */
    color: white;
    transform: rotate(90deg);
}

/* 4. Ensure Image Fits (No Overflow) */
#modal-img, 
#full-image {
    max-width: 95vw !important;
    max-height: 85vh !important; /* Leave room for close button */
    object-fit: contain !important;
    border-radius: 8px !important;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    #image-modalhgg button,
    #close-img-modal {
        top: 15px !important;
        right: 15px !important;
        padding: 6px 16px !important; /* Smaller padding */
        font-size: 12px !important;
    }
}

/* --- MOBILE STICKY BOTTOM SHEET (Always Visible) --- */
@media (max-width: 768px) {
    
    /* 1. Flatten the Offer Section (Clean Full Width) */
    .offer-section {
        border-radius: 0 !important;
        margin: 0 0 8px 0 !important;
        padding: 16px 15px !important;
        width: 100% !important;
        
        /* Remove box look */
        border: none !important;
        border-top: 1px solid #222 !important;
        border-bottom: 1px solid #222 !important;
        box-shadow: none !important;
        background-color: #161616 !important; 
    }

    /* 2. Sticky Action Bar (Fixed to Bottom) */
    .buy-options {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 99999 !important; /* Above everything */
        
        /* Glassy App-Like Style */
        background: rgba(20, 20, 25, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-top: 1px solid #333 !important;
        border-radius: 16px 16px 0 0 !important; /* Rounded Top */
        box-shadow: 0 -5px 30px rgba(0,0,0,0.6) !important;
        
        /* Layout */
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 16px 20px 16px !important; /* Extra bottom space for phones */
        margin: 0 !important;
    }

    /* 3. Button Sizing */
    .buy-button {
        flex: 2 !important; /* Buy button is wider */
        width: auto !important;
        height: 48px !important; /* Easy to tap */
        font-size: 16px !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap !important;
        box-shadow: 0 4px 15px rgba(61, 130, 242, 0.4) !important;
    }

    .wishlist-btn {
        flex: 1 !important; /* Wishlist is smaller */
        width: auto !important;
        height: 48px !important;
        justify-content: center !important;
        background: #2a2a2a !important;
        border: 1px solid #444 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    
    /* Ensure icon is centered */
    .wishlist-btn .material-icons {
        margin: 0 !important;
    }
    
    /* Hide text on very small screens if needed, or keep it */
    .wishlist-btn span:not(.material-icons) {
        font-size: 13px !important;
        margin-left: 5px !important;
    }

    /* 4. Add Body Padding (Prevents content being hidden behind bar) */
    body {
        padding-bottom: 90px !important;
    }
}

      /* TOP-UP Container */
.topup-packages {
  background: #181818;
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
}

/* Grid */
.package-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Wishlist Button */
.wishlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1f1f1f;
  border: 1px solid #444;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wishlist-btn:hover {
  background: #2c2c2c;
  color: #fff;
  border-color: #666;
}

.wishlist-btn .material-icons {
  font-size: 18px;
  transition: transform 0.2s ease, color 0.3s ease;
}

.wishlist-btn:hover .material-icons {
  transform: scale(1.1);
  color: #4d8bf0;
}

/* Active (already wishlisted) */
.wishlist-btn.active {
  background: rgba(77, 139, 240, 0.1);
  border-color: #4d8bf0;
  color: #4d8bf0;
}

.wishlist-btn.active .material-icons {
  color: #4d8bf0;
  transform: scale(1.1);
}

/* Notify Me Button */
.notify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid #4d8bf0;
  color: #4d8bf0;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notify-btn:hover {
  background: rgba(77, 139, 240, 0.1);
  color: #67a4ff;
}

.notify-btn .material-icons {
  font-size: 18px;
  transition: transform 0.2s ease, color 0.3s ease;
}

.notify-btn:hover .material-icons {
  transform: scale(1.1);
  color: #4d8bf0;
}

/* Active (already notified) */
.notify-btn.active {
  background: rgba(0, 200, 0, 0.15);  /* light green background */
  border-color: #00c800;              /* green border */
  color: #00c800;                     /* green text */
}

.notify-btn.active .material-icons {
  color: #00c800;                     /* green icon */
  transform: scale(1.1);
}

.notify-btn .notify-text {
  transition: color 0.3s ease;
}

.notify-btn:hover .notify-text {
  color: #67a4ff;
}

/* ================= TOP-UP PACKAGES (2-Column Mobile Fixed) ================= */

/* Container */
.topup-packages {
  background-color: #1c1c1c; /* Match Home Card */
  border: 1px solid #333;
  border-radius: 12px;
  padding: 20px;
  margin-top: 30px;
}

/* Grid Layout */
.package-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: 10px;
}

/* Package Card */
.package-option {
  background-color: #161616; /* Darker nested card */
  border: 1px solid #333;
  border-radius: 12px;
  cursor: pointer;
  color: #fff;
  min-width: 180px;
  max-width: 240px;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

/* Hover Effect */
.package-option:hover {
  border-color: #555;
  transform: translateY(-2px);
}

/* Selected State */
.package-option.selected {
  border-color: #3d82f2; /* Shoppy Blue */
  background-color: #1a1a20; /* Subtle blue tint */
  box-shadow: 0 0 0 1px rgba(61, 130, 242, 0.5), 0 4px 15px rgba(61, 130, 242, 0.15);
}

/* Title Bar */
.package-title {
  background-color: #232323;
  padding: 14px 16px 10px;
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

/* Price Section */
.package-price {
  padding: 12px 16px 16px;
  font-size: 14px;
  color: #9ca3af;
  font-weight: 500;
}

.package-option.selected .package-price {
  color: #fff;
}

/* Radio Indicator */
.radio-indicator {
  width: 18px;
  height: 18px;
  border: 2px solid #555;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.package-option.selected .radio-indicator {
  border-color: #3d82f2;
}

.radio-indicator::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #3d82f2;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1), opacity 0.25s ease;
}

.package-option.selected .radio-indicator::after {
  opacity: 1;
  transform: scale(1);
}

/* --- RESPONSIVE: FIT 2 PACKAGES ON MOBILE --- */
@media (max-width: 768px) {
  .package-grid {margin-left: 10px;}
  .topup-packages {
    padding: 16px;
    background-color: #161616; /* Clean look on mobile */
    border: none;
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    border-radius: 0;
    width: 100%;
  }

  .package-grid {
    flex-wrap: nowrap;       /* Horizontal Scroll */
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 10px;               /* Tighter gap */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;   /* Hide scrollbar */
  }
  
  .package-grid::-webkit-scrollbar {
    display: none;
  }

  .package-option {
    /* Calculate width to fit exactly 2 items with a small gap */
    flex: 0 0 calc(50% - 5px); 
    min-width: 140px; /* Prevent them from getting too small */
    max-width: none;
    scroll-snap-align: start;
  }
  
  /* Adjust inner padding for smaller cards */
  .package-title {
    padding: 10px 12px;
    font-size: 13px;
  }
  .package-price {
    padding: 10px 12px;
    font-size: 13px;
  }
}
/* ================= FLASH SALE: CYBER-SLEEK (Final Fixed Version) ================= */

/* 1. Theme Variables */
.flash-theme {
  --flash-bg: #1c1c1c;
  --flash-inner-bg: #111;
  --flash-accent-start: #3d82f2; /* Shoppy Blue */
  --flash-accent-end: #9b59b6;   /* Purple */
  --flash-text-glow: rgba(61, 130, 242, 0.4);
}

/* 2. Main Card Styling (Mobile First Base) */
#flash-offer.flash-theme {
  /* High-Tech Grid Texture + Dark Gradient */
  background-image: 
    linear-gradient(rgba(61, 130, 242, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 130, 242, 0.03) 1px, transparent 1px),
    linear-gradient(145deg, #1c1c1c, #111);
  background-size: 20px 20px, 20px 20px, 100% 100%;
  
  border: 1px solid rgba(61, 130, 242, 0.3);
  box-shadow: 0 0 20px rgba(61, 130, 242, 0.15);
  padding: 16px !important;
  border-radius: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  
  /* FIXED: Removed !important so JS can hide it */
  display: flex; 
  flex-direction: column;
  gap: 15px;
}

/* 3. Header Area */
.flash-theme .offer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.flash-theme .offer-name {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  background: linear-gradient(90deg, #fff, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-theme .offer-name::before {
  content: "⚡";
  font-size: 18px;
  filter: drop-shadow(0 0 4px var(--flash-accent-start));
  animation: pulseIcon 1.5s infinite alternate;
}

.flash-theme .offer-tag {
  background: rgba(61, 130, 242, 0.1);
  border: 1px solid rgba(61, 130, 242, 0.3);
  color: #60a5fa;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* 4. Countdown Row */
.countdown-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Mobile Countdown Box */
.flash-theme .countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  background: var(--flash-inner-bg);
  padding: 12px 0;
  border-radius: 8px;
  border: 1px solid #333;
}

.flash-theme .countdown div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10px;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
  min-width: 50px;
  position: relative;
}

.flash-theme .countdown span {
  font-family: 'Onest', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 3px;
  text-shadow: 0 0 10px var(--flash-text-glow);
}

.flash-theme .countdown div:not(:last-child)::after {
  content: ":";
  position: absolute;
  right: -10px;
  top: 2px;
  font-size: 18px;
  color: #444;
}

/* 5. Stock & Progress (Fixed Groups) */
.flash-theme .stock-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #9ca3af;
  font-weight: 600;
  padding: 0 2px;
}

.flash-theme .stock-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.flash-theme .stock-group strong {
  color: #fff;
  font-weight: 700;
}

.flash-theme .progress-shell {
  width: 100%;
  height: 8px;
  background: #252525;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.flash-theme .progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--flash-accent-start), var(--flash-accent-end));
  border-radius: 10px;
  position: relative;
  box-shadow: 0 0 10px rgba(61, 130, 242, 0.5);
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.flash-theme .progress-bar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transform: translateX(-100%);
  animation: cyberShimmer 2s infinite linear;
}

/* 6. Price Section */
.flash-theme .price-section {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.flash-theme .current-price {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.flash-theme .original-price {
  font-size: 14px;
  color: #666;
  text-decoration: line-through;
}

.flash-theme .discount {
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* 7. Button Styles (Fixed Pulse & Layout) */
.flash-theme .buy-options {
  width: 100%;
}

.flash-theme #fs-buy.buy-button {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  width: 100%;
  height: auto !important;
  padding: 12px 16px !important;
  
  /* Gradient Background */
  background: linear-gradient(110deg, #3d82f2, #8b5cf6, #3d82f2);
  background-size: 200% 100%;
  
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  
  /* Animations: Flow + Pulse */
  animation: gradientFlow 3s linear infinite, electricPulse 2s ease-in-out infinite;
  
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
  z-index: 1;
}

/* Light Sweep Effect */
.flash-theme #fs-buy.buy-button::after {
  content: "";
  position: absolute;
  top: 0; left: -150%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  z-index: 2; /* Sits above background, below text (if text z-index is > 2) */
  animation: shineSweep 3s infinite;
  pointer-events: none;
}

.flash-theme #fs-buy.buy-button:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 0 30px rgba(61, 130, 242, 0.8);
  animation: gradientFlow 0.5s linear infinite; /* Speed up on hover */
}

/* Button Internal Text */
.btn-main {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.btn-sub {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

#fs-btn-price { font-weight: 800; color: #fff; font-size: 12px; }

.btn-badge {
  background: #fff;
  color: #3d82f2;
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  margin-left: 2px;
}

/* --- ANIMATION KEYFRAMES (Required) --- */

@keyframes gradientFlow { 
  0% { background-position: 0% 50%; } 
  100% { background-position: 200% 50%; } 
}

@keyframes electricPulse {
  0% { 
    box-shadow: 0 0 10px rgba(61, 130, 242, 0.4); 
    transform: scale(1); 
  }
  50% { 
    box-shadow: 0 0 30px rgba(61, 130, 242, 0.8), 0 0 10px rgba(255,255,255,0.4); 
    transform: scale(1.03); /* Increased scale for visibility */
  }
  100% { 
    box-shadow: 0 0 10px rgba(61, 130, 242, 0.4); 
    transform: scale(1); 
  }
}

@keyframes shineSweep { 
  0% { left: -150%; } 
  20% { left: 150%; } 
  100% { left: 150%; } 
}

@keyframes cyberShimmer { 
  100% { transform: translateX(100%); } 
}

@keyframes pulseIcon { 
  0% { opacity: 0.7; transform: scale(1); } 
  100% { opacity: 1; transform: scale(1.2); } 
}

/* Mobile Tweaks */
@media (max-width: 768px) {
  .flash-theme .countdown span { font-size: 18px; }
  .flash-theme .countdown div { min-width: 40px; }
}

/* ================= DESKTOP LAYOUT OPTIMIZATION (Min-Width: 900px) ================= */
@media (min-width: 900px) {

  #flash-offer.flash-theme {
    /* FIXED: Removed !important so JS can hide it */
    display: grid; 
    
    /* Columns: Left (Price area) | Right (Button area) */
    grid-template-columns: 1fr 1.5fr; 
    grid-template-rows: auto auto auto;
    grid-template-areas: 
      "header header"
      "dashboard dashboard"
      "price button";
    gap: 25px; 
    align-items: center;
  }

  /* 1. Header (Top Row) */
  .flash-theme .offer-header { 
    grid-area: header; 
    margin-bottom: 0 !important; 
  }

  /* 2. Dashboard (Middle Row) */
  .countdown-row {
    grid-area: dashboard;
    display: grid !important;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px 30px;
    margin-top: 0 !important;
  }

  /* Dashboard Internals */
  .flash-theme .countdown {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-right: 40px !important;
    border-radius: 0 !important;
  }
  
  .flash-theme .countdown span { font-size: 32px !important; }

  /* Right Side of Dashboard */
  .flash-theme .stock-line {
    font-size: 14px !important;
    margin-bottom: 8px;
  }
  .flash-theme .progress-shell {
    height: 12px !important;
  }

  /* 3. Footer (Price & Button) */
  
  .flash-theme .price-section {
    grid-area: price;
    margin-top: 0 !important;
    flex-direction: row;
    align-items: center;
  }
  .flash-theme .current-price { font-size: 36px !important; }

  .flash-theme .buy-options {
    grid-area: button;
    width: 100% !important;
    display: block !important;
  }

  /* Desktop Button Styling */
  .flash-theme #fs-buy.buy-button {
    margin-top: 0 !important;
    height: 60px !important;
    flex-direction: row !important; /* Side-by-side text on desktop */
    justify-content: center;
    gap: 15px !important;
  }

  .btn-main { font-size: 20px !important; }
  
  .btn-sub {
    font-size: 14px !important;
    padding-left: 15px;
    border-left: 1px solid rgba(255,255,255,0.3);
    height: 100%;
  }
}
