/* Golden Deal public styles - dependency-free local slider */
.golden-deal-section {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 28px 15px 24px;
    background: linear-gradient(135deg, #111, #333);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
    overflow: hidden;
    margin: 14px auto;
    box-sizing: border-box;
}

.golden-deal-section *,
.golden-deal-section *::before,
.golden-deal-section *::after,
.golden-deal-products-page *,
.golden-deal-products-page *::before,
.golden-deal-products-page *::after {
    box-sizing: border-box;
}

.golden-deal-title {
    font-size: 2em;
    font-weight: 900;
    color: #ffcc00;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.85);
    margin: 0 0 10px;
    line-height: 1.32;
}

.golden-deal-timer {
    font-size: 1.15em;
    background: #ffcc00;
    color: #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    margin: 0 0 10px;
    font-weight: 800;
    line-height: 1.55;
}

.golden-time-part {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.golden-deal-timer.golden-deal-ended {
    min-width: 220px;
    padding: 11px 20px;
    text-align: center;
}

.golden-deal-text {
    margin: 10px auto 14px;
    font-size: 1em;
    color: #ddd;
    line-height: 1.7;
    max-width: 760px;
}

.golden-deal-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 10px;
    padding: 0 48px;
    direction: rtl;
    overflow: visible;
    --golden-deal-arrow-top: 60px;
}

.golden-deal-slider-viewport {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 6px;
}

.golden-deal-slider-viewport::-webkit-scrollbar {
    display: none;
}

.golden-deal-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    align-items: stretch;
    justify-content: center;
    min-width: 100%;
}

.golden-deal-slider.is-scrollable .golden-deal-slider-track {
    justify-content: flex-start;
}

.golden-deal-item {
    position: relative;
    flex: 0 0 calc((100% - 48px) / 5);
    min-width: 0;
    text-align: center;
    padding: 6px 4px;
    scroll-snap-align: start;
}

.golden-deal-item a,
.golden-deal-product-card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    min-height: 100%;
}

.golden-deal-item img,
.golden-deal-image-placeholder {
    width: 100px !important;
    height: 100px !important;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 50% !important;
    border: 4px solid #ffcc00;
    padding: 6px;
    background: #1d1d1d;
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.5), 0 0 15px rgba(255, 204, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: block;
}

.golden-deal-image-placeholder::before {
    content: '';
    display: block;
    width: 44px;
    height: 44px;
    margin: 24px auto 0;
    border-radius: 50%;
    background: rgba(255, 204, 0, 0.45);
}

.golden-deal-item a:hover img,
.golden-deal-item a:focus-visible img {
    transform: scale(1.06);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.7), 0 0 25px rgba(255, 204, 0, 0.4);
}

.golden-deal-item-name,
.golden-deal-product-title {
    color: #fff;
    font-size: 0.92em;
    font-weight: 800;
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
    margin: 0;
}

.golden-deal-product-price {
    color: #ffcc00;
    font-weight: 800;
    font-size: 0.86em;
    line-height: 1.5;
}

.golden-deal-product-price del,
.golden-deal-price del {
    color: rgba(255, 255, 255, 0.62);
    font-weight: 600;
    margin-inline-end: 5px;
}

.golden-deal-product-price ins,
.golden-deal-price ins {
    text-decoration: none;
    color: #ffcc00;
}

.golden-deal-badge {
    position: absolute;
    top: 4px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    background: #e63946;
    color: #fff;
    font-size: 0.68em;
    font-weight: 800;
    line-height: 1;
    border-radius: 999px;
    padding: 5px 8px;
    z-index: 2;
    white-space: nowrap;
}

.golden-deal-stock-label {
    color: #ffb4b4;
    font-size: 0.78em;
    font-weight: 800;
}

.golden-deal-item.is-out-of-stock,
.golden-deal-product-card.is-out-of-stock {
    opacity: 0.72;
}

.golden-deal-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 52px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    color: #ffcc00;
    font-size: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    text-shadow: 0 0 8px rgba(255, 204, 0, 0.95), 0 2px 8px rgba(0, 0, 0, 0.55);
    filter: none;
    transition: opacity 0.22s ease, transform 0.22s ease, color 0.22s ease, text-shadow 0.22s ease;
}

.golden-deal-slider-nav::before {
    display: none;
}

.golden-deal-slider-nav::after {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 46px;
    font-weight: 400;
    line-height: 1;
    color: currentColor;
}

.golden-deal-slider-prev::after {
    content: '‹' !important;
}

.golden-deal-slider-next::after {
    content: '›' !important;
}

.golden-deal-slider-nav:hover,
.golden-deal-slider-nav:focus-visible {
    color: #ffd633;
    transform: translateY(-50%) scale(1.08);
    outline: none;
    text-shadow: 0 0 10px #ffcc00, 0 0 22px rgba(255, 204, 0, 0.75);
}

.golden-deal-slider-nav[disabled] {
    opacity: 0.28;
    cursor: default;
}

.golden-deal-slider-nav[disabled]:hover,
.golden-deal-slider-nav[disabled]:focus-visible {
    transform: translateY(-50%);
    text-shadow: 0 0 8px #ffcc00, 0 0 14px rgba(255, 204, 0, 0.55);
}

.golden-deal-slider-prev {
    inset-inline-start: auto;
    inset-inline-end: auto;
    left: auto;
    right: 4px;
}

.golden-deal-slider-next {
    inset-inline-start: auto;
    inset-inline-end: auto;
    left: 4px;
    right: auto;
}



/* Keep slider arrows on the horizontal sides and vertically aligned with the product image circles. */
.golden-deal-section .golden-deal-slider-nav {
    position: absolute !important;
    top: var(--golden-deal-arrow-top) !important;
    transform: translateY(-50%);
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
}

.golden-deal-section .golden-deal-slider-prev {
    right: 4px !important;
    left: auto !important;
}

.golden-deal-section .golden-deal-slider-next {
    left: 4px !important;
    right: auto !important;
}

.golden-deal-button-container {
    margin-top: 8px;
}

.golden-deal-btn {
    background: #e63946;
    color: #fff;
    padding: 10px 24px;
    font-size: 1em;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    display: inline-block;
    transition: background 0.2s ease, transform 0.2s ease;
}

.golden-deal-btn:hover,
.golden-deal-btn:focus-visible {
    background: #c92a3d;
    color: #fff;
    transform: translateY(-1px);
}

.golden-deal-products-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.golden-deal-page-title {
    text-align: center;
    margin: 0 0 30px;
    line-height: 1.5;
}

.golden-deal-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.golden-deal-product-card {
    position: relative;
    background: #f9f9f9;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: #333;
}

.golden-deal-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.golden-deal-product-card img,
.golden-deal-product-card .golden-deal-image-placeholder {
    width: 100%;
    max-width: 170px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 6px;
    border-radius: 12px;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.golden-deal-product-card .golden-deal-product-title {
    color: #333;
    font-size: 1em;
}

.golden-deal-product-card .golden-deal-product-price {
    color: #111;
}

.golden-deal-product-card .golden-deal-product-price ins,
.golden-deal-product-card .golden-deal-price ins {
    color: #e63946;
}

.golden-deal-product-card .golden-deal-product-price del,
.golden-deal-product-card .golden-deal-price del {
    color: #777;
}

.golden-deal-empty-message {
    text-align: center;
}

@media (max-width: 1023px) {
    .golden-deal-item {
        flex-basis: calc((100% - 42px) / 4);
    }
}

@media (max-width: 767px) {
    .golden-deal-item {
        flex-basis: calc((100% - 24px) / 3);
    }
}

@media (max-width: 600px) {
    .golden-deal-section {
        padding: 22px 8px 20px;
        border-radius: 14px;
    }

    .golden-deal-title {
        font-size: 1.35em;
        margin-bottom: 8px;
    }

    .golden-deal-timer {
        width: 100%;
        max-width: 100%;
        font-size: 0.92em;
        padding: 7px 8px;
        gap: 5px;
        margin-bottom: 8px;
        line-height: 1.5;
    }

    .golden-deal-timer.golden-deal-ended {
        min-width: 0;
    }

    .golden-deal-text {
        margin: 8px auto 10px;
        font-size: 0.92em;
        line-height: 1.65;
    }

    .golden-deal-slider {
        padding: 0 30px;
        margin-inline: auto;
        margin-bottom: 6px;
        overflow: visible;
        --golden-deal-arrow-top: 47px;
    }

    .golden-deal-slider-viewport {
        padding: 2px 0 4px;
        overflow-x: auto;
    }

    .golden-deal-slider-track {
        gap: 8px;
    }

    .golden-deal-item {
        flex: 0 0 calc((100% - 8px) / 2);
        padding: 4px 2px;
    }

    .golden-deal-item img,
    .golden-deal-image-placeholder {
        width: 82px !important;
        height: 82px !important;
        border-width: 3px;
        padding: 5px;
    }

    .golden-deal-image-placeholder::before {
        width: 36px;
        height: 36px;
        margin-top: 18px;
    }

    .golden-deal-item-name {
        font-size: 0.8em;
    }

    .golden-deal-product-price {
        font-size: 0.78em;
    }

    .golden-deal-slider-nav {
        display: flex !important;
        width: 28px;
        height: 42px;
        top: var(--golden-deal-arrow-top) !important;
    }

    .golden-deal-slider-nav::after {
        font-size: 34px;
    }

    .golden-deal-slider-prev {
        right: 0;
        left: auto;
    }

    .golden-deal-slider-next {
        left: 0;
        right: auto;
    }

    .golden-deal-button-container {
        margin-top: 6px;
    }

    .golden-deal-btn {
        padding: 9px 22px;
        font-size: 0.95em;
    }

    .golden-deal-products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
}

/* v1.1.6: Force corrected visual arrow directions. Positions and slider behavior unchanged. */
.golden-deal-section .golden-deal-slider-prev::after { content: '‹' !important; }
.golden-deal-section .golden-deal-slider-next::after { content: '›' !important; }


/* v1.1.7: Remove duplicate native arrow glyphs; keep only CSS pseudo-element arrows. */
.golden-deal-section .golden-deal-slider-nav {
    font-size: 0 !important;
}
.golden-deal-section .golden-deal-slider-nav::before {
    content: none !important;
    display: none !important;
}
.golden-deal-section .golden-deal-slider-nav::after {
    display: block !important;
}
