/* Golden Deal public styles - dependency-free local slider */
.golden-deal-section {
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 40px 15px;
    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: 20px 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 15px;
    line-height: 1.4;
}

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

.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: 15px auto 25px;
    font-size: 1em;
    color: #ddd;
    line-height: 1.9;
    max-width: 760px;
}

.golden-deal-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px;
    padding: 0 54px;
    direction: rtl;
    overflow: visible;
}

.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: 8px 2px 14px;
}

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

.golden-deal-slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 14px;
    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% - 56px) / 5);
    min-width: 0;
    text-align: center;
    padding: 10px 6px;
    scroll-snap-align: start;
}

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

.golden-deal-item img,
.golden-deal-image-placeholder {
    width: 112px !important;
    height: 112px !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: 28px 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: 54%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px;
    height: 56px;
    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: 52px;
    font-weight: 400;
    line-height: 1;
    color: currentColor;
}

.golden-deal-slider-prev::after {
    content: '›';
}

.golden-deal-slider-next::after {
    content: '‹';
}

.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: 4px;
}

.golden-deal-slider-next {
    inset-inline-end: 4px;
}

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

.golden-deal-btn {
    background: #e63946;
    color: #fff;
    padding: 11px 26px;
    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: 28px 10px;
        border-radius: 14px;
    }

    .golden-deal-title {
        font-size: 1.45em;
    }

    .golden-deal-timer {
        width: 100%;
        max-width: 100%;
        font-size: 0.92em;
        padding: 8px 10px;
        gap: 5px;
    }

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

    .golden-deal-slider {
        padding: 0;
        margin-inline: auto;
        overflow: hidden;
    }

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

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

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

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

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

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

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

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

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