/* ============================================
   PRODUCT SINGLE PAGE - Сучасний дизайн
   Акцентний колір: #cadbcd (м'ятний)
   ============================================ */

.product-single {
    padding: 30px 0 50px;
}

/* ============================================
   1. ГАЛЕРЕЯ ЗОБРАЖЕНЬ
   ============================================ */

/* Головний контейнер галереї */
.product__details__pic {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 20px rgba(202, 219, 205, 0.25);
    padding: 20px;
}

/* Мініатюри зліва */
.product__details__pic__left {
    float: left;
    width: 100px;
    margin-right: 20px;
}

.product__thumb {
    max-height: 500px;
    overflow-y: auto;
    padding-right: 10px;
}

.product__thumb::-webkit-scrollbar {
    width: 6px;
}

.product__thumb::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.product__thumb::-webkit-scrollbar-thumb {
    background: #cadbcd;
    border-radius: 10px;
    transition: background 0.3s ease;
}

.product__thumb::-webkit-scrollbar-thumb:hover {
    background: #b5cdb8;
}

.product__thumb a {
    display: block;
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.product__thumb a:hover {
    border-color: #cadbcd;
    transform: scale(1.05);
}

.product__thumb a.active {
    border-color: #cadbcd;
    box-shadow: 0 0 0 2px rgba(202, 219, 205, 0.3);
}

.product__thumb img {
    width: 100%;
    border-radius: 8px;
}

/* Головне зображення */
.product__details__slider__content {
    overflow: hidden;
}

.product__details__pic__slider {
    border-radius: 15px;
    overflow: hidden;
}

.product__big__img {
    width: 100%;
    border-radius: 15px;
    transition: transform 0.5s ease;
}

.product__big__img:hover {
    transform: scale(1.05);
}

/* Карусель для кольорів */
.stock-carousel {
    transition: opacity 0.4s ease;
}

/* .stock-carousel.d-none {
    display: none !important;
} */

/* ============================================
   2. БЕЙДЖ НА СТОРІНЦІ ТОВАРУ
   ============================================ */
.prod-badge {
    position: relative;
}

.prod-badge .badge-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 100;
}

.prod-badge .good_badge {
    display: inline-block;
    /* background: linear-gradient(135deg, #cadbcd 0%, #a8c4ab 100%); */
    color: #2d4a2f;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    /* box-shadow: 0 6px 15px rgba(202, 219, 205, 0.6);  */
    backdrop-filter: blur(10px);
}

/* ============================================
   3. ІНФОРМАЦІЯ ПРО ТОВАР
   ============================================ */
.product__details__text {
    margin-bottom: 25px;
}

.product__details__text h3 {
    font-size: 28px;
    font-weight: 700;
    color: #2d2d2d;
    line-height: 1.4;
    margin-bottom: 15px;
}

.product__details__price {
    font-size: 32px;
    font-weight: 800;
    color: #2d4a2f;
    margin-top: 15px;
    letter-spacing: 0.5px;
}

/* ============================================
   4. ВІДЖЕТ ВИБОРУ (КОЛІР/РОЗМІР)
   ============================================ */
.product__details__widget {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(202, 219, 205, 0.15);
    margin-bottom: 30px;
}

.product__details__widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product__details__widget ul li {
    gap:15px;
    align-items: center;
    display: flex;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.product__details__widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.product__details__widget ul li > span:first-child {
    font-weight: 600;
    color: #2d2d2d;
    font-size: 15px;
}

.product__details__widget ul li a {
    color: #5a7a5d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product__details__widget ul li a:hover {
    color: #cadbcd;
}

/* ============================================
   5. ВИБІР КОЛЬОРУ
   ============================================ */
.color__checkbox {
    display: flex;
    flex-wrap: wrap;
}

.color__checkbox label {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.color__checkbox input[type="radio"] {
    display: none;
}

.color__checkbox .checkmark.color-thumbnail {
    display: block;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid #e8e8e8;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.color__checkbox .checkmark.color-thumbnail:hover {
    border-color: #cadbcd;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(202, 219, 205, 0.4);
}

.color__checkbox .checkmark.color-thumbnail.active-thumbnail {
    border-color: #cadbcd;
    border-width: 4px;
    box-shadow: 0 0 0 3px rgba(202, 219, 205, 0.3);
    transform: scale(1.05);
}

.color__checkbox .checkmark.color-thumbnail.active-thumbnail::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #2d4a2f;
    font-size: 18px;
    font-weight: bold;
}

/* Пошук кольору */
#color-search {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s ease;
}

#color-search:focus {
    outline: none;
    border-color: #cadbcd;
    box-shadow: 0 0 0 3px rgba(202, 219, 205, 0.2);
}

#no_color {
    color: #d9534f;
    font-size: 13px;
    margin-top: 10px;
}

/* ============================================
   6. ВИБІР РОЗМІРУ
   ============================================ */
.size__btn {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.size__btn label {
    position: relative;
    cursor: pointer;
    min-width: 55px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    background: white;
    color: #555;
    font-size: 15px;
    font-weight: 600;
    padding: 0 15px;
    transition: all 0.3s ease;
    margin: 0;
}

.size__btn label:hover {
    border-color: #cadbcd;
    background: #f8fdf9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(202, 219, 205, 0.3);
}

.size__btn label.active {
    border-color: #cadbcd;
    background: #cadbcd;
    color: #2d4a2f;
    box-shadow: 0 4px 15px rgba(202, 219, 205, 0.4);
}

.size__btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   7. КІЛЬКІСТЬ ТА КНОПКА ЗАМОВЛЕННЯ
   ============================================ */
.product__details__button {
    margin-top: 30px;
}

.quantity {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.quantity > span:first-child {
    gap: 15px;
    font-size: 15px;
    font-weight: 600;
    color: #2d2d2d;
}

.quantity_input {
    display: inline-flex;
    align-items: center;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    background: white;
}

.quantity_input span {
    display: flex;
}

.quantity_input button {
    width: 45px;
    height: 45px;
    background: #f8f9fa;
    border: none;
    color: #2d4a2f;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quantity_input button:hover:not(:disabled) {
    background: #cadbcd;
    color: white;
}

.quantity_input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.quantity_input input {
    width: 70px;
    height: 45px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #2d2d2d;
    background: white;
}

.quantity_input input:focus {
    outline: none;
}

/* Кнопка замовлення */
.button_center {
    margin-top: 20px;
}

.cart-btn {
    width: 100%;
    max-width: 100%;
    padding: 16px 30px;
    background: linear-gradient(135deg, #cadbcd 0%, #b5cdb8 100%);
    color: #2d4a2f;
    border: none;
    border-radius: 15px;
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(202, 219, 205, 0.4);
    position: relative;
    overflow: hidden;
}

.cart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cart-btn:hover:not(:disabled)::before {
    width: 400px;
    height: 400px;
}

.cart-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(202, 219, 205, 0.6);
    background: linear-gradient(135deg, #b5cdb8 0%, #a8c4ab 100%);
}

.cart-btn:active:not(:disabled) {
    transform: translateY(0);
}

.cart-btn:disabled {
    background: #e8e8e8;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.cart-btn .icon_bag_alt {
    margin-right: 10px;
    font-size: 18px;
}

/* ============================================
   8. ТАБСИ (ОПИС ТА ХАРАКТЕРИСТИКИ)
   ============================================ */
.product__details__description {
    margin-top: 40px;
}

.product__details__tab .nav-tabs {
    border: none;
    margin-bottom: 30px;
    gap: 15px;
}

.product__details__tab .nav-link {
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    color: #555;
    font-weight: 600;
    padding: 12px 30px;
    transition: all 0.3s ease;
}

.product__details__tab .nav-link:hover {
    border-color: #cadbcd;
    background: #f8fdf9;
    color: #2d4a2f;
}

.product__details__tab .nav-link.active {
    background: #cadbcd;
    color: #2d4a2f;
    border-color: #cadbcd;
    box-shadow: 0 4px 15px rgba(202, 219, 205, 0.3);
}

.product__details__tab .tab-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(202, 219, 205, 0.15);
    line-height: 1.8;
    color: #555;
}

/* Таблиця характеристик */
.product__details__tab .table {
    margin-bottom: 0;
}

.product__details__tab .table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.product__details__tab .table tbody tr:last-child {
    border-bottom: none;
}

.product__details__tab .table td {
    padding: 15px 0;
    vertical-align: middle;
}

.product__details__tab .table td p {
    margin: 0;
}

.product__details__tab .table td:first-child {
    font-weight: 600;
    color: #2d2d2d;
    width: 40%;
}

.product__details__tab .table td:last-child {
    text-align: right;
    color: #555;
}

/* ============================================
   9. ДОДАТКОВІ ЕЛЕМЕНТИ
   ============================================ */
#available-quantity {
    font-weight: 600;
    color: #5a7a5d;
}

#u_ordered {
    color: #999;
    font-size: 13px;
    font-style: italic;
}

#title_attribute {
    color: #5a7a5d;
}

/* ============================================
   10. АДАПТИВНІСТЬ
   ============================================ */
@media (max-width: 992px) {
    .product__details__pic__left {
        float: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .product__thumb {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        max-height: none;
        padding-bottom: 10px;
    }

    .product__thumb a {
        flex: 0 0 80px;
        margin-bottom: 0;
    }

    .product__details__text h3 {
        font-size: 24px;
    }

    .product__details__price {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .product-single {
        padding: 20px 0 30px;
    }

    .product__details__pic {
        padding: 15px;
        border-radius: 15px;
    }

    .prod-badge .badge-overlay {
        top: 20px;
        left: 20px;
    }

    .product__details__text h3 {
        font-size: 22px;
    }

    .product__details__price {
        font-size: 26px;
    }

    .product__details__widget {
        padding: 20px;
        border-radius: 15px;
    }

    .cart-btn {
        font-size: 15px;
        padding: 14px 25px;
    }

    .product__details__tab .nav-link {
        padding: 10px 20px;
        font-size: 14px;
    }

    .product__details__tab .tab-content {
        padding: 20px;
        border-radius: 15px;
    }
}

@media (max-width: 576px) {
    .color__checkbox .checkmark.color-thumbnail {
        width: 40px;
        height: 40px;
    }

    .size__btn label {
        min-width: 50px;
        height: 40px;
        font-size: 14px;
    }

    .quantity_input button {
        width: 40px;
        height: 40px;
    }

    .quantity_input input {
        width: 60px;
        height: 40px;
    }
}

/* ============================================
   11. АНІМАЦІЇ
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product__details__text,
.product__details__widget,
.product__details__description {
    animation: fadeIn 0.6s ease forwards;
}

.product__details__widget {
    animation-delay: 0.2s;
}

.product__details__description {
    animation-delay: 0.4s;
}

/* ============================================
   12. OWL CAROUSEL КАСТОМІЗАЦІЯ
   ============================================ */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    width: 40px;
    height: 40px;
    background: #cadbcd !important;
    color: white !important;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.owl-carousel .owl-nav button.owl-prev {
    left: 10px;
}

.owl-carousel .owl-nav button.owl-next {
    right: 10px;
}

.owl-carousel .owl-nav button:hover {
    background: #b5cdb8 !important;
    transform: translateY(-50%) scale(1.1);
}

.owl-carousel .owl-dots {
    text-align: center;
    margin-top: 15px;
}

.owl-carousel .owl-dots .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.owl-carousel .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: #e8e8e8;
    display: block;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.owl-carousel .owl-dots .owl-dot.active span,
.owl-carousel .owl-dots .owl-dot:hover span {
    background: #cadbcd;
    transform: scale(1.3);
}

/* Style for the thumbnail indicators */
.product-thumbnail-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    border: 1px solid transparent;
}

.product-thumbnail-indicator:hover {
    opacity: 1;
}

/* Style for the active thumbnail */
.product-thumbnail-indicator.active {
    opacity: 1;
    border: 1px solid #007bff; /* Або колір вашого бренду */
}
