.product-section {
    width: 100%;
    background-color: #fffae6;
    padding: 40px 0;
    font-family: Arial, sans-serif;
    color: #584a40;
    box-sizing: border-box;
}

.product-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    box-sizing: border-box;
    align-items: flex-start;
}

.product-gallery {
    flex: 1 1 55%;
    min-width: 450px;
    box-sizing: border-box;
}

.main-image-wrapper {
    width: 100%;
    max-width: 775px;
    max-height: 775px;
    aspect-ratio: 1 / 1.5;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 20px;
}

.product-info {
    flex: 1 1 40%;
    min-width: 350px;
    max-width: 600px;
    box-sizing: border-box;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnails-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    width: 100%;
    padding: 2px;
}

.thumbnails::-webkit-scrollbar {
    display: none;
}

.thumb {
    min-width: calc(20% - 8px);
    height: 220px;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box;
    flex-shrink: 0;
    background: transparent;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    pointer-events: none;
    display: block;
}

.thumb:hover {
    border-color: #584a40;
}

.thumb.active {
    border-color: #584a40;
}

.slider-arrow {
    background: transparent;
    border: none;
    box-shadow: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    z-index: 10;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.2s, transform 0.2s;
    opacity: 0.4;
    padding: 0;
}

.slider-arrow:hover {
    background: transparent;
    opacity: 1;
    transform: translateY(-50%) scale(1.2);
}

.prev-arrow {
    left: -30px;
}

.next-arrow {
    right: -30px;
}

.slider-arrow svg {
    width: 12px;
    height: 20px;
}

.slider-arrow svg path {
    stroke: #7a7a7a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.product-title {
    font-size: 28px;
    font-weight: bold;
    margin: 0 0 10px;
}

.rating {
    display: flex;
    align-items: center;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 18px;
}

.rating span {
    color: #584a40;
}

.stars {
    color: #4CAF50;
    margin-right: 8px;
}

.features-list {
    list-style: none !important;
    padding: 0;
    margin: 15px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.4;
    color: #584a40;
}

.features-list li span {
    font-size: 24px;
    min-width: 30px;
    text-align: center;
}

.timer-box {
    background: #e6ded3;
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 14px;
}

.timer-box span {
    color: #d98282;
}

.variant-selector {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.variant-label {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: 2px solid #ddd;
    padding: 25px 20px;
    border-radius: 16px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    margin-bottom: 20px;
}

.variant-label:hover {
    border-color: #584a40;
}

.variant-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.variant-settings {
    display: none;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.variant-input {
    display: none;
}

.variant-info {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}
.text-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    margin-left: 12px !important;
}

.variant-name {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #584a40 !important;
}

.save-text {
    display: block !important;
    font-size: 13px !important;
    margin-top: 2px !important;
    font-weight: normal !important;
    line-height: 1.2 !important;
}

.variant-input:checked + .variant-label {
    border: 3px solid #584a40;
    background-color: #fff;
    z-index: 2;
}

.variant-input:checked + .variant-label .variant-settings {
    display: block;
}

.variant-input:checked + .variant-label .radio-circle::after {
    content: "";
    width: 10px;
    height: 10px;
    background: #584a40;
    border-radius: 50%;
    display: block;
}

.variant-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 800;
}

.radio-circle {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.settings-title {
    font-size: 12px;
    color: #777;
    margin-bottom: 8px;
    font-weight: bold;
}

.selectors-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.selectors-row:last-child {
    margin-top: 10px;
}

.static-row {
    width: 100%;
    padding: 10px 5px;
    font-size: 14px;
    color: #584a40;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    margin-bottom: 5px;
}

.static-label {
    font-weight: bold;
    color: #888;
}

.static-value {
    font-weight: bold;
    color: #584a40;
}

.custom-select {
    flex: 1;
    min-width: 100px;
    padding: 0 10px;
    font-size: 14px;
    height: 36px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
}

.custom-select:focus {
    border-color: #584a40;
}

.save-badge {
    font-size: 12px;
    color: #777;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
}

.badge {
    position: absolute;
    top: -10px;
    right: 15px;
    background: #d98282;
    color: white;
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: bold;
}

.price-box {
    text-align: right;
    font-size: 22px;
    font-weight: bold;
}

.current-price {
    font-weight: bold;
    font-size: 22px;
    display: block;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 16px;
}

.add-to-cart-btn {
    width: 100%;
    background-color: #d98282;
    color: white;
    border: none;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #c76e6e;
}

.variant-label {
    padding: 12px 15px !important;
}

.variant-settings {
    margin-top: 8px !important;
    padding-top: 8px !important;
}

.custom-select {
    height: 34px !important;
    font-size: 13px !important;
    padding: 0 8px !important;
}

.static-row {
    margin-bottom: 5px !important;
    padding: 2px 0 !important;
}

@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
        padding: 0 12px;
        gap: 20px;
    }

    .product-gallery,
    .product-info {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .main-image-wrapper {
        max-width: 100%;
        aspect-ratio: 1 / 1.25;
    }

    .product-title {
        font-size: 20px;
        line-height: 1.3;
    }

    .rating {
        font-size: 14px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .features-list li {
        font-size: 14px;
        gap: 8px;
    }

    .timer-box {
        font-size: 13px;
        padding: 8px;
    }

    .variant-label {
        padding: 14px 12px;
        margin-bottom: 14px;
    }

    .variant-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .variant-info {
        font-size: 16px;
        gap: 8px;
    }

    .variant-name {
        font-size: 16px !important;
    }

    .price-box {
        width: 100%;
        text-align: left;
        font-size: 18px;
    }

    .current-price {
        font-size: 18px;
    }

    .old-price {
        font-size: 13px;
    }

    .selectors-row {
        flex-direction: column;
        gap: 8px;
    }

    .custom-select {
        width: 100%;
        height: 42px;
        font-size: 14px;
    }

    .static-row {
        flex-wrap: wrap;
        font-size: 13px;
        gap: 6px;
    }

    .thumbnails {
        gap: 8px;
    }

    .thumb {
        min-width: 42%;
        height: 120px;
    }

    .prev-arrow,
    .next-arrow {
        display: none;
    }

    .add-to-cart-btn {
        font-size: 16px;
        padding: 14px;
        border-radius: 24px;
    }
}

@media (max-width: 420px) {
    .product-title {
        font-size: 18px;
    }

    .variant-name {
        font-size: 15px !important;
    }

    .thumb {
        min-width: 60%;
        height: 110px;
    }

    .price-box {
        font-size: 17px;
    }

    .current-price {
        font-size: 17px;
    }
}
