/* ============================================
   CONTAINER WIDTH
   ============================================ */
[data-sidebar] {
    --theme-normal-container-max-width: 1590px;
}

/* ============================================
   PRODUCT BADGES (Blocksy)
   ============================================ */
.custom-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
    margin-top: -5px;
}

.custom-badges .badge {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--tk-radius-sm);
    color: #fff;
    text-transform: none;
    gap: 5px;
    background: rgba(0, 0, 0, 0.8);
}

.badge-new,
.badge-sale,
.badge-free {
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 480px) {
    .custom-badges .badge {
        font-size: 0.7rem;
        padding: 4px 6px;
        gap: 4px;
    }
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
[data-products] .product figure {
    background-color: var(--theme-palette-color-7);
    outline: 1px solid var(--theme-border-color);
    border-radius: 12px;
    transition: all .3s ease-in-out;
}

[data-products="type-1"] .ct-media-container img {
    transition: opacity .3s ease;
}

[data-products="type-1"] .ct-media-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .02);
}

@media (min-width: 768px) {
    [data-products] .product figure:hover {
        box-shadow: 0 0.4rem 0.6rem rgba(0, 0, 0, 0.2);
    }
}

/* ============================================
   SWATCHES
   ============================================ */
.ct-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: var(--swatches-gap, 5px);
}

@media (max-width: 1024px) {
    .ct-card-variation-swatches [data-swatches-type="image"],
    .variations_form.cart [data-swatches-type="image"] {
        --swatch-size: 35px;
    }
}

@media (max-width: 768px) {
    .ct-card-variation-swatches [data-swatches-type="image"],
    .variations_form.cart [data-swatches-type="image"] {
        --swatch-size: 28px;
    }
    
    .ct-swap {
        display: none;
    }
}

/* ============================================
   STOCK & SCARCITY
   ============================================ */
:root {
    --stock-green: #33b48c;
    --stock-red: #f73959;
}

.ct-product-stock-scarcity,
[class*=ct-shipping-progress] {
    font-size: 15px;
}

.ct-stock-quantity {
    color: #ff0000;
}

.ct-progress-bar {
    display: none;
}

/* Stock indicator avec point animé */
p.stock {
    position: relative !important;
    padding-left: 22px !important;
    display: inline-block;
}

p.stock::before,
p.stock::after {
    content: '' !important;
    position: absolute;
    left: 0;
    top: calc(50% - 5px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

p.stock::before {
    z-index: 2;
}

p.stock::after {
    z-index: 1;
}

/* In stock - Vert */
p.stock.in-stock,
.stock.in-stock a,
.stock.shipping-later a {
    color: var(--stock-green) !important;
}

p.stock.in-stock::before,
p.stock.shipping-later::before {
    background: var(--stock-green);
}

p.stock.in-stock::after,
p.stock.shipping-later::after {
    background: var(--stock-green);
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

/* Out of stock - Rouge */
p.stock.out-of-stock {
    color: var(--stock-red);
}

p.stock.out-of-stock::before {
    background: var(--stock-red);
}

p.stock.out-of-stock::after {
    background: var(--stock-red);
    animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: scale(2.4);
        opacity: 0;
    }
}

/* ============================================
   CATEGORY DESCRIPTION
   ============================================ */
.Product_category_description {
    padding-top: 100px;
}

@media (max-width: 1024px) {
    .Product_category_description {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .Product_category_description {
        padding-top: 50px;
    }
}

/* ===========================================
   PRODUCT HOVER (Wishlist)
   =========================================== */
.ct-woo-card-extra[data-type=type-1] {
    top: 10px !important;
    right: 10px !important;
}

.ct-woo-card-extra[data-type=type-1] .ct-button {
    width: 28px !important;
    min-height: 28px !important;
}

@media (min-width: 768px) {
    .product .ct-woo-card-extra {
        gap: 10px !important;
        right: 0 !important;
        opacity: 0;
        transition: opacity var(--tk-transition-fast), transform var(--tk-transition-fast);
    }
    
    .product:hover .ct-woo-card-extra {
        opacity: 1;
        transform: translateX(-15px);
    }
}