* {
    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%;
}

.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;
    overflow-x: clip; /* Safely hides horizontal overflow */
}

.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;
    }
}

      /* 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%;
  }
}
/* ==========================================================================
   Grid Layout — desktop wraps normally
   ========================================================================== */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 20px;
  margin-left: 10px;
}

/* Outer wrapper needs to be a positioning context for the scroll-hint overlay */
.topup-packages {
  position: relative;
}

/* ==========================================================================
   Package Card — refined Liquid Glass
   ========================================================================== */
.package-option {
  position: relative;
  cursor: pointer;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 10px 15px;
  gap: 10px;
  overflow: hidden;
  border-radius: 20px;
  isolation: isolate;

  /* Softer, more translucent glass base — less muddy than a heavy dark wash */
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0.05) 32%, rgba(255,255,255,0) 55%),
    linear-gradient(155deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 40%, rgba(20,22,28,0.42) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);

  /* Gradient hairline border instead of a flat rgba border — reads as glass edge, not a stroke */
  border: 1px solid transparent;
  background-clip: padding-box, padding-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.10),
    0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 -10px 20px -16px rgba(0, 0, 0, 0.5) inset,
    0 8px 20px rgba(0, 0, 0, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.2);

  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease,
              background 0.3s ease;
}

.package-option:hover {
  transform: translateY(-4px) scale(1.012);
  box-shadow:
    0 0 0 1px rgba(140, 180, 235, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -10px 20px -16px rgba(0, 0, 0, 0.5) inset,
    0 14px 26px rgba(0, 0, 0, 0.38),
    0 0 20px rgba(70, 117, 189, 0.2);
}

.package-option.selected {
  background:
    radial-gradient(120% 100% at 15% 0%, rgba(140,180,235,0.22) 0%, rgba(70,117,189,0.08) 32%, rgba(255,255,255,0) 55%),
    linear-gradient(155deg, rgba(70,117,189,0.22) 0%, rgba(70,117,189,0.05) 45%, rgba(14,16,21,0.5) 100%);
  box-shadow:
    0 0 0 1px rgba(70, 117, 189, 0.55),
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -10px 20px -16px rgba(0, 0, 0, 0.5) inset,
    0 12px 26px rgba(70, 117, 189, 0.25);
}

/* Selected checkmark badge */
.package-option .check-badge {
  display: none;
}
.package-option.selected .check-badge {
  display: flex;
  position: absolute;
  top: 9px;
  right: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #4675bd;
  color: #fff;
  font-size: 9px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(70, 117, 189, 0.55), 0 2px 4px rgba(0,0,0,0.35);
  z-index: 4;
}

/* App-icon — embossed 3D look, unchanged in spirit but slightly softer */
.package-icon-wrap {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(155deg, #2a2e3a, #14151b);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 -4px 8px rgba(0, 0, 0, 0.5) inset,
    0 6px 14px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.package-option:hover .package-icon-wrap {
  transform: scale(1.06) translateY(-1px);
}

.package-option.selected .package-icon-wrap {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 -4px 8px rgba(0, 0, 0, 0.5) inset,
    0 0 14px rgba(70, 117, 189, 0.5);
}

.package-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* Title */
.package-name {
  position: relative;
  z-index: 2;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1px;
  color: #f4f4f6;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3em;
  min-height: 2.6em;
}

/* Price pill — glassy chip */
.package-price {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
}

.package-price .current {
  background: rgba(70, 117, 189, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(70, 117, 189, 0.4);
  color: #a3c6f7;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.package-option.selected .package-price .current {
  background: #4675bd;
  border-color: #4675bd;
  color: #fff;
  box-shadow: 0 0 8px rgba(70, 117, 189, 0.45);
}

.package-price .original {
  text-decoration: line-through;
  color: #6b6b73;
  font-size: 10px;
  font-weight: 400;
}

/* Discount badge */
.package-discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(231, 76, 60, 0.4);
}

/* ==========================================================================
   MOBILE: 2x2 grid with a peek of the next card + soft scroll hint
   (No more solid circle badge — replaced with a quiet edge fade + drifting
   chevron, low-opacity so it doesn't compete with the glass cards)
   ========================================================================== */
@media (max-width: 768px) {
  .topup-packages {
    padding: 16px 0 16px 16px;
  }

  .package-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-columns: 46%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 40px 12px 0;
    margin-left: 0;

    -webkit-mask-image: linear-gradient(to right, black 88%, transparent 100%);
    mask-image: linear-gradient(to right, black 88%, transparent 100%);
  }

  .package-grid::-webkit-scrollbar {
    display: none;
  }

  .package-option {
    scroll-snap-align: start;
    padding: 14px 8px 12px;
    gap: 8px;
    border-radius: 16px;
  }

  .package-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }

  .package-name {
    font-size: 11px;
    min-height: 2.5em;
  }

  .package-price .current {
    font-size: 10px;
    padding: 2px 8px;
  }

  /* Quiet scroll cue: just a faint chevron drifting in place, no solid disc behind it */
  .topup-packages::after {
    content: "\f105"; /* fa-chevron-right */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    animation: scrollHintDrift 1.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 5;
  }
}

@keyframes scrollHintDrift {
  0%, 100% { opacity: 0.35; transform: translateY(-50%) translateX(0); }
  50%      { opacity: 0.75; transform: translateY(-50%) translateX(5px); }
}

/* ==========================================================================
   ============================  UI REDESIGN 2026  ==========================
   Everything below is new. It re-skins the existing markup to match the
   reference screenshots (two-column layout with a sticky "Purchase
   Summary" / "Offers" sidebar, flat package cards, step badges, etc).
   Placed at the end of the file so it wins the cascade without having to
   touch/delete any of the rules above.
   ========================================================================== */

:root{
  --pdp-accent:#3d82f2;
  --pdp-accent-dark:#2a5db0;
  --pdp-card-bg:#1c1c1c;
  --pdp-card-bg-2:#17171b;
  --pdp-border:#2b2b33;
  --pdp-text-dim:#9ca3af;
}

/* ---------------------------------------------------------------------- */
/* 1. Two-column layout: package/offer selection + sticky sidebar          */
/* ---------------------------------------------------------------------- */
.pdp-grid{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:20px;
  align-items:start;
  padding:0 20px 20px;
}
.pdp-main{ min-width:0; }
.pdp-sidebar{ position:sticky; top:100px; }

@media (max-width:1024px){
  .pdp-grid{ grid-template-columns:1fr; padding:0 15px 15px; }
  .pdp-sidebar{ position:static; }
}
@media (max-width:768px){
  .pdp-grid{ padding:0 10px 10px; gap:14px; }
}

/* ---------------------------------------------------------------------- */
/* 2. Step badges ("1" / "2")                                              */
/* ---------------------------------------------------------------------- */
.step-badge{
  flex-shrink:0;
  width:26px; height:26px;
  border-radius:50%;
  background:linear-gradient(135deg, var(--pdp-accent), var(--pdp-accent-dark));
  color:#fff;
  font-size:13px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 8px rgba(61,130,242,0.45);
}
.offer-title{
  display:flex;
  align-items:center;
  gap:10px;
  text-transform:none;
  letter-spacing:0;
  font-size:16px;
  font-weight:700;
  color:#fff;
}
.step-badge.sidebar-step{ width:24px; height:24px; font-size:12px; }

/* ---------------------------------------------------------------------- */
/* 3. Package section heading + search + tabs                              */
/* ---------------------------------------------------------------------- */
.pkg-section-heading{
  display:flex;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
  flex-wrap:wrap;
}
.pkg-heading-text{ flex:1; min-width:160px; }
.pkg-heading-text h3{
  font-size:17px;
  font-weight:700;
  color:#fff;
  margin-bottom:2px;
}
.pkg-heading-text p{
  font-size:12.5px;
  color:var(--pdp-text-dim);
}
.package-search{
  display:flex;
  align-items:center;
  gap:6px;
  background:var(--pdp-card-bg);
  border:1px solid var(--pdp-border);
  border-radius:10px;
  padding:8px 12px;
  min-width:220px;
}
.package-search .material-icons{ font-size:18px; color:var(--pdp-text-dim); }
.package-search input{
  background:transparent;
  border:none;
  outline:none;
  color:#fff;
  font-size:13px;
  width:100%;
}
.package-search input::placeholder{ color:#6b7280; }

.package-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
  overflow-x:auto;
  scrollbar-width:none;
}
.package-tabs::-webkit-scrollbar{ display:none; }
.package-tab{
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  padding:8px 14px;
  border-radius:20px;
  border:1px solid var(--pdp-border);
  background:var(--pdp-card-bg);
  color:var(--pdp-text-dim);
  font-size:13px;
  font-weight:600;
  cursor:pointer;
  transition:all .2s ease;
}
.package-tab .material-icons{ font-size:15px; }
.package-tab:hover{ color:#fff; border-color:#3d3d46; }
.package-tab.active{
  background:linear-gradient(135deg, var(--pdp-accent), var(--pdp-accent-dark));
  border-color:transparent;
  color:#fff;
  box-shadow:0 3px 10px rgba(61,130,242,0.35);
}

.package-note{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:16px;
  font-size:12.5px;
  color:var(--pdp-text-dim);
}
.package-note .material-icons{ font-size:16px; color:var(--pdp-accent); }

/* ---------------------------------------------------------------------- */
/* 4. Package cards — flat card redesign to match the reference screenshot */
/* ---------------------------------------------------------------------- */
#topup-preview .package-grid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:16px;
  margin-left:0;
}

#topup-preview .package-option{
  border-radius:14px;
  background:var(--pdp-card-bg);
  border:1px solid var(--pdp-border);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  box-shadow:none;
  padding:20px 14px 18px;
  gap:12px;
  overflow:visible;
}
#topup-preview .package-option:hover{
  transform:translateY(-3px);
  border-color:#3d3d46;
  box-shadow:0 10px 22px rgba(0,0,0,0.35);
}
#topup-preview .package-option.selected{
  background:rgba(61,130,242,0.08);
  border-color:var(--pdp-accent);
  box-shadow:0 0 0 1px var(--pdp-accent), 0 0 18px rgba(61,130,242,0.35), 0 6px 16px rgba(61,130,242,0.25);
}
#topup-preview .package-icon-wrap{
  width:54px; height:54px;
  border-radius:12px;
  background:var(--pdp-card-bg-2);
  border:1px solid var(--pdp-border);
  box-shadow:none;
}
#topup-preview .package-name{
  font-size:13px;
  font-weight:600;
  color:#e6e6e6;
  text-shadow:none;
}
#topup-preview .package-price{ margin-top:2px; }
#topup-preview .package-price .current{
  background:none;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border:none;
  box-shadow:none;
  color:#fff;
  font-size:15px;
  font-weight:700;
  padding:0;
}
#topup-preview .package-option.selected .package-price .current{
  background:none;
  color:var(--pdp-accent);
  box-shadow:none;
}
#topup-preview .package-price .original{ font-size:11px; }

/* Selected checkmark, top-right */
#topup-preview .package-option .check-badge{
  background:var(--pdp-accent);
  width:22px; height:22px;
  top:10px; right:10px;
  font-size:12px;
  box-shadow:0 0 10px rgba(61,130,242,0.6), 0 2px 4px rgba(0,0,0,0.35);
}

/* Popular / Best Value badges */
.pkg-badge{
  position:absolute;
  top:-11px;
  left:50%;
  transform:translateX(-50%);
  white-space:nowrap;
  font-size:10px;
  font-weight:700;
  letter-spacing:0.3px;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:20px;
  z-index:5;
  box-shadow:0 4px 10px rgba(0,0,0,0.35);
}
.pkg-badge.popular{
  background:linear-gradient(135deg, #f59e0b, #d97706);
  color:#1a1206;
}
.pkg-badge.best-value{
  background:linear-gradient(135deg, #4ade80, #16a34a);
  color:#052e14;
}

@media (max-width:1200px){
  #topup-preview .package-grid{ grid-template-columns:repeat(4, 1fr); }
}
@media (max-width:1024px){
  #topup-preview .package-grid{ grid-template-columns:repeat(4, 1fr); }
}
@media (max-width:768px){
  #topup-preview .package-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
    -webkit-mask-image:none;
    mask-image:none;
    grid-auto-flow:row;
    overflow-x:visible;
    padding:0;
    gap:12px;
  }
  #topup-preview .package-option{ padding:16px 10px 14px; }
  #topup-preview .package-icon-wrap{ width:46px; height:46px; }
}

/* ---------------------------------------------------------------------- */
/* 5. Sidebar — Purchase Summary / Offers card                             */
/* ---------------------------------------------------------------------- */
.pdp-sidebar .offer-section{ margin-top:0; }

.selected-package-preview{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--pdp-card-bg-2);
  border:1px solid var(--pdp-border);
  border-radius:10px;
  padding:10px 12px;
  margin-bottom:14px;
}
.selected-package-preview img{
  width:38px; height:38px;
  border-radius:8px;
  object-fit:cover;
  background:#1c1c1c;
}
.sel-pkg-label{ font-size:11px; color:var(--pdp-text-dim); }
.sel-pkg-name{ font-size:13.5px; font-weight:600; color:#fff; }

/* Platform / Region / Delivery quick-facts, shown above the price for top-up products */
.purchase-meta{
  display:flex;
  flex-direction:column;
  gap:8px;
  background:var(--pdp-card-bg-2);
  border:1px solid var(--pdp-border);
  border-radius:10px;
  padding:12px 14px;
  margin-bottom:14px;
}
.purchase-meta-row{ display:flex; justify-content:space-between; align-items:center; font-size:12.5px; }
.pm-label{ color:var(--pdp-text-dim); }
.pm-value{ color:#fff; font-weight:600; }

/* Buy Now / Add to Wishlist — stacked, full width, matching reference */
.default-offer .buy-options,
.out-of-stock-offer .buy-options{
  flex-direction:column;
  align-items:stretch;
  gap:10px;
}
.default-offer .buy-button,
.out-of-stock-offer .buy-button{
  width:100%;
  justify-content:center;
  text-align:center;
  padding:13px 20px;
  font-size:15px;
  border-radius:10px;
}
.default-offer .wishlist-btn,
.out-of-stock-offer .wishlist-btn{
  width:100%;
  justify-content:center;
  padding:12px 20px;
  font-size:14px;
  border-radius:10px;
  background:transparent;
}

.pdp-feature-list{
  display:flex;
  flex-direction:column;
  gap:12px;
  margin-top:6px;
  padding-top:16px;
  border-top:1px solid #2a2a2a;
}
.pdp-feature{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:12.5px;
}
.pdp-feature .material-icons{
  font-size:18px;
  color:var(--pdp-accent);
  background:rgba(61,130,242,0.12);
  width:32px; height:32px;
  border-radius:8px;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.pdp-feature strong{ display:block; color:#fff; font-size:12.5px; }
.pdp-feature small{ display:block; color:var(--pdp-text-dim); font-size:11px; }

/* ---------------------------------------------------------------------- */
/* 6. Other Editions — segmented cards to match reference screenshot       */
/* ---------------------------------------------------------------------- */
.edition-options{ gap:12px; }
.edition-option{
  min-width:150px;
  border-radius:10px;
}
.edition-name{
  padding:12px 14px 8px;
  font-size:14px;
}
.edition-price{
  padding:8px 14px 14px;
  font-size:13.5px;
  font-weight:600;
  color:#fff;
}

/* ---------------------------------------------------------------------- */
/* 7. Product image block polish                                           */
/* ---------------------------------------------------------------------- */
.product-container{ align-items:flex-start; }
.product-image{ border-radius:14px; }
#main-image-container{ border-radius:12px; background:#101014; }
#image-thumbnails img{ border-radius:8px; }

/* ---------------------------------------------------------------------- */
/* 8. Info columns — Description / System Requirements / Other Details     */
/* ---------------------------------------------------------------------- */
.info-columns{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:20px;
  margin-bottom:10px;
}
.info-col{ min-width:0; }
.info-col-desc{ flex:2 1 380px; display:flex; flex-direction:column; gap:20px; }
.info-col-other{ flex:1 1 260px; }
.info-col-other .other-details{ margin-bottom:0; height:100%; }

@media (max-width:900px){
  .info-columns{ flex-direction:column; }
  .info-col-desc, .info-col-other{ flex:1 1 100%; }
}

/* ---------------------------------------------------------------------- */
/* 9. Other Details — vertical label/value list instead of a cramped grid  */
/* ---------------------------------------------------------------------- */
.info-col-other .details-grid{
  display:flex;
  flex-direction:column;
  gap:0;
}
.info-col-other .details-grid > div{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:11px 0;
  border-bottom:1px solid var(--pdp-border);
}
.info-col-other .details-grid > div:last-child{ border-bottom:none; }
.info-col-other .details-grid > div:empty{ display:none; }
.info-col-other .label{ margin-bottom:0; }
.info-col-other .value{ text-align:right; }

/* ---------------------------------------------------------------------- */
/* 10. Reviews — header w/ "View all" link + card grid                     */
/* ---------------------------------------------------------------------- */
.reviews-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
  gap:12px;
}
.reviews-view-all{
  font-size:13px;
  font-weight:600;
  color:var(--pdp-accent);
  text-decoration:none;
  white-space:nowrap;
}
.reviews-view-all:hover{ text-decoration:underline; }

.review-list{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:16px;
  align-items:start;
}
.review-list .review{
  border-bottom:none;
  background:var(--pdp-card-bg);
  border:1px solid var(--pdp-border);
  border-radius:12px;
  padding:16px;
  margin:0;
  height:100%;
}

@media (max-width:1024px){
  .review-list{ grid-template-columns:repeat(2, 1fr); }
}
@media (max-width:700px){
  .review-list{ grid-template-columns:1fr; }
}

/* ---------------------------------------------------------------------- */
/* 11. Similar Products — header row + circular scroll arrows              */
/* ---------------------------------------------------------------------- */
.product-slider-wrap{ position:relative; padding:28px 20px 10px; }
.product-slider-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:16px;
}
.product-slider-header .section-title{ margin:0; }
.product-slider-header .show-all-btn{
  background:transparent;
  border:1px solid var(--pdp-border);
  color:var(--pdp-text-dim);
  padding:7px 16px;
  border-radius:8px;
  font-size:12.5px;
  font-weight:600;
  cursor:pointer;
  transition:all .2s ease;
}
.product-slider-header .show-all-btn:hover{ color:#fff; border-color:var(--pdp-accent); }

.product-row-wrap{ position:relative; }
.product-row-wrap .scroll-arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:38px; height:38px;
  border-radius:50%;
  background:rgba(20,20,24,0.92);
  border:1px solid var(--pdp-border);
  color:#fff;
  font-size:20px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
  transition:all .2s ease;
}
.product-row-wrap .scroll-arrow:hover{ background:var(--pdp-accent); border-color:var(--pdp-accent); }
.product-row-wrap .scroll-arrow.left{ left:2px; }
.product-row-wrap .scroll-arrow.right{ right:2px; }

@media (max-width:768px){
  .product-slider-wrap{ padding:20px 12px 10px; }
  .product-row-wrap .scroll-arrow{ display:none; }
}

/* ---------------------------------------------------------------------- */
/* 12. Mobile refinements                                                  */
/* ---------------------------------------------------------------------- */
@media (max-width:768px){
  .pkg-section-heading{ flex-direction:column; }
  .package-search{ width:100%; }
  .step-badge{ width:22px; height:22px; font-size:11px; }
}
/* =========================================================
   1. STICKY SIDEBAR FIX
   ========================================================= */
.pdp-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 20px;
    align-items: start; /* Crucial for sticky behavior */
}

.pdp-sidebar {
    position: sticky;
    top: 100px; /* Distance from the top of the screen */
    height: max-content; /* Crucial: stops the sidebar from stretching */
    z-index: 10;
}

/* Adjust layout for mobile/tablets */
@media (max-width: 1024px) {
    .pdp-grid {
        grid-template-columns: 1fr;
    }
    .pdp-sidebar {
        position: static;
        height: auto;
    }
}

/* =========================================================
   2. REVERT REVIEWS TO VERTICAL LIST
   ========================================================= */
.review-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
}

.review-list .review {
    display: flex !important;
    gap: 15px !important;
    border-bottom: 1px solid #333 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 20px 0 !important;
    margin: 0 !important;
    height: auto !important;
}

/* Ensure the avatar stays on the left */
.review img.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #333;
    flex-shrink: 0;
}

.review-content {
    flex: 1;
}

/* Fix mobile view for reviews */
@media (max-width: 768px) {
    .review-list .review {
        flex-direction: row !important;
    }
}

/* =========================================================
   1. STICKY SIDEBAR FIX
   ========================================================= */
.pdp-grid {
    align-items: start !important; /* Critical for sticky to work */
}

.pdp-sidebar {
    position: sticky !important;
    top: 90px !important; /* Distance from the header */
    height: max-content !important; /* Prevents sidebar stretching */
    align-self: start !important;
    z-index: 100;
}

/* =========================================================
   2. STRETCH DESCRIPTION & DETAILS (FULL WIDTH)
   ========================================================= */
.info-columns {
    display: flex !important;
    flex-direction: column !important; /* Stacks description & details */
    gap: 20px !important;
    width: 100% !important;
}

.info-col-desc, 
.info-col-other {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
}

/* Make Other details horizontal to save vertical space if desired */
.info-col-other .other-details {
    margin-bottom: 20px !important;
}

/* =========================================================
   3. REVERT REVIEWS TO ORIGINAL VERTICAL LIST
   ========================================================= */
.review-list {
    display: block !important; /* Removes grid layout */
}

.review-list .review {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    border-bottom: 1px solid #333 !important;
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    padding-top: 0 !important;
    background: transparent !important; /* Removes card background */
    border-radius: 0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    height: auto !important;
    box-shadow: none !important;
}

.review-list .review:last-child {
    border-bottom: none !important;
}

.review img.avatar {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    border: 1px solid #333 !important;
    flex-shrink: 0 !important;
}

.review-content {
    flex: 1 !important;
    display: block !important;
}

.review-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 4px !important;
    font-size: 14px !important;
}

.review-text {
    font-size: 13px !important;
    color: #d1d5db !important;
    margin-top: 5px !important;
}

/* Fix mobile review view */
@media (max-width: 768px) {
    .review-list .review {
        flex-direction: row !important;
        padding-bottom: 15px !important;
    }
}
/* =========================================================
   TOP-UP PACKAGE UI POLISH (MATCHING REFERENCE UI)
   ========================================================= */

/* 1. Package Card Base */
#topup-preview .package-option {
    background: #14151b; /* Deep bluish-dark */
    border: 1px solid #2a2b36;
    border-radius: 16px;
    padding: 24px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: none;
}

#topup-preview .package-option:hover {
    border-color: #4a4b5c;
    transform: translateY(-2px);
}

/* 2. Selected State */
#topup-preview .package-option.selected {
    background: rgba(61, 130, 242, 0.05); /* Very subtle blue tint */
    border: 1px solid #3d82f2;
    box-shadow: 0 0 15px rgba(61, 130, 242, 0.1);
}

/* 3. The "Floating" Icon Effect */
#topup-preview .package-icon-wrap {
    background: transparent !important; /* Removes the nested dark box */
    border: none !important;
    box-shadow: none !important;
    width: auto !important;
    height: 60px !important; 
    margin-bottom: 8px;
}

#topup-preview .package-icon-wrap img {
    height: 100%;
    width: auto;
    object-fit: contain;
    /* Adds the soft blue glow directly behind the transparent PNG */
    filter: drop-shadow(0 4px 15px rgba(61, 130, 242, 0.4)); 
}

/* 4. Top-Left Badges (Popular / Best Value) - Premium Glow Effect */
.pkg-badge {
    position: absolute;
    top: -9px;             /* Sits halfway over the top border */
    left: 14px;            /* Aligned nicely to the left edge */
    transform: none;       /* Overrides the old center alignment */
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;    /* Squarish corners matching the image */
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 5;
}

/* Popular Tag */
.pkg-badge.popular {
    background: linear-gradient(90deg, #f59e0b, #fbbf24); /* Rich orange to bright gold */
    color: #1a1206; /* Dark high-contrast text */
    border: 1px solid rgba(255, 255, 255, 0.3); /* Subtle top edge highlight */
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.6); /* The ambient glowing effect */
}

/* Best Value Tag (Updated to match the gold/orange style in the image) */
.pkg-badge.best-value {
    background: linear-gradient(90deg, #f59e0b, #fbbf24); 
    color: #1a1206;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.6);
}

/* 5. Top-Right Checkmark (Selected) */
#topup-preview .package-option .check-badge {
    display: none; /* Hidden by default */
}

#topup-preview .package-option.selected .check-badge {
    display: flex;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 20px;
    height: 20px;
    background: #3d82f2;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* 6. Typography */
#topup-preview .package-name {
    font-size: 14px;
    font-weight: 700;
    color: #e6e6e6;
    text-align: center;
    margin-bottom: 0;
    line-height: 1.2;
}

#topup-preview .package-price {
    margin-top: 8px;
}

#topup-preview .package-price .current {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: transparent;
}

/* 7. Clean Tabs & Search */
.package-tabs { gap: 10px; }

.package-tab {
    background: #14151b;
    border: 1px solid #2a2b36;
    border-radius: 20px; /* Pill shape */
    padding: 8px 16px;
    color: #9ca3af;
}

.package-tab.active {
    background: rgba(61, 130, 242, 0.08);
    border-color: #3d82f2;
    color: #fff;
    box-shadow: none;
}

.package-search {
    background: #14151b;
    border: 1px solid #2a2b36;
    border-radius: 20px; /* Pill shape */
}
/* Sizing for the animated SVG image */
.instant-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.btn-svg {
  width: 20px; /* Slightly smaller so it fits inside the button perfectly */
  height: 20px;
  margin-right: 6px;
  vertical-align: middle;
}

/* Ensures the buy button aligns the icon and text nicely */
.buy-button {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cropped-svg-wrapper {
  width: 28px;  /* This is the final visible size you want for the icon */
  height: 28px; 
  overflow: hidden; /* This acts as the "crop" by hiding anything outside the box */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.Secure-svg {
  width: 100%;
  height: 100%;
  /* Zoom in on the SVG. Adjust this number (e.g., 1.4, 1.8, 2.0) until the empty space is gone */
  transform: scale(3); 
  object-fit: contain;
}

/* =========================================================
   MOBILE FLOATING BOTTOM ACTION BAR (Fix for Stacking Context)
   ========================================================= */
@media (max-width: 768px) {
    /* CRITICAL FIX: Disable JS sidebar transforms on mobile that break position: fixed */
    .pdp-sidebar {
        transform: none !important;
        will-change: auto !important;
    }

    /* Prevent the offer card from clipping the fixed bar */
    .offer-card, .campaign-offer, .flash-offer {
        overflow: visible !important;
    }

    /* 1. Flatten the Offer Section */
    .offer-section {
        border-radius: 0 !important;
        margin: 0 0 8px 0 !important;
        padding: 16px 15px !important;
        width: 100% !important;
        border: none !important;
        border-top: 1px solid #222 !important;
        border-bottom: 1px solid #222 !important;
        box-shadow: none !important;
        background-color: #161616 !important; 
    }

    /* 2. The Sticky Bottom Container */
    .buy-options {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        z-index: 999999 !important; /* Stay above everything else */
        
        /* Modern Glassmorphism styling */
        background: rgba(22, 22, 26, 0.95) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.7) !important;
        
        /* Layout */
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 16px 24px 16px !important; /* Extra bottom padding for iPhone swipe bar */
        margin: 0 !important;
        border-radius: 16px 16px 0 0 !important;
    }

    /* 3. The Buy Button (Stretches to fill space) */
    .buy-options .buy-button {
        flex: 1 !important; /* Takes up all remaining width */
        height: 52px !important;
        font-size: 16px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(61, 130, 242, 0.4) !important;
        min-width: 0 !important;
    }

    /* 4. The Wishlist & Notify Buttons (Perfect square icon buttons) */
    .buy-options .wishlist-btn,
    .buy-options .notify-btn {
        flex: 0 0 auto !important; /* Fixed width */
        width: 52px !important;
        height: 52px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #2a2a32 !important;
        border: 1px solid #3f3f46 !important;
        border-radius: 12px !important;
        transition: all 0.2s ease !important;
    }

    /* Hide the text inside the wishlist/notify buttons on mobile, show ONLY the icon */
    .buy-options .wishlist-btn span:not(.material-icons),
    .buy-options .notify-btn span:not(.material-icons) {
        display: none !important;
    }

    /* Center and size the icon perfectly */
    .buy-options .wishlist-btn .material-icons,
    .buy-options .notify-btn .material-icons {
        margin: 0 !important;
        font-size: 22px !important;
    }

    /* Active state for Wishlist/Notify buttons on mobile */
    .buy-options .wishlist-btn.active,
    .buy-options .notify-btn.active {
        background: rgba(61, 130, 242, 0.15) !important;
        border-color: #3d82f2 !important;
    }

    /* 5. Add Body Padding (Prevents page content from getting hidden behind the floating bar) */
    body {
        padding-bottom: 100px !important;
    }
}

/* =========================================================
   FLASH SALE SIDEBAR FIX (Overrides wide desktop grid)
   ========================================================= */
@media (min-width: 900px) {
  /* Force vertical stack inside the 360px sidebar */
  #flash-offer.flash-theme {
    display: flex;
    flex-direction: column !important;
    gap: 15px !important;
  }

  /* Stack the countdown and stock info vertically */
  .flash-theme .countdown-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 15px !important;
  }

  /* Center the countdown numbers */
  .flash-theme .countdown {
    border-right: none !important;
    padding-right: 0 !important;
    justify-content: center !important;
  }

  /* Adjust countdown text size to prevent overflow */
  .flash-theme .countdown span {
    font-size: 26px !important;
  }

  /* Ensure price and discount wrap cleanly */
  .flash-theme .price-section {
    flex-wrap: wrap !important;
  }

  .flash-theme .current-price {
    font-size: 28px !important;
  }

  /* Stack text inside the BUY NOW button */
  .flash-theme #fs-buy.buy-button {
    flex-direction: column !important;
    height: auto !important;
    padding: 14px 16px !important;
  }

  /* Remove the vertical divider line inside the button */
  .flash-theme #fs-buy.buy-button .btn-sub {
    border-left: none !important;
    padding-left: 0 !important;
  }
}