.c-countdown{display:inline-flex;align-items:center;gap:.5rem;font-variant-numeric:tabular-nums;font-feature-settings:"tnum" 1;direction:ltr}
.c-countdown__item{display:flex;flex-direction:column;align-items:center;min-width:3.2ch}
.c-countdown__value{font-weight:700;font-size:1rem;line-height:1;color:#1f2937;background:#f3f4f6;padding:.25rem .4rem;border-radius:.375rem;min-width:2.6ch;text-align:center}
.c-countdown__label{font-size:.72rem;color:#6b7280;margin-top:.15rem;direction:rtl;text-align:center}
.c-countdown__sep{font-weight:700;color:#9ca3af}
.c-countdown--small .c-countdown__value{font-size:.9rem;padding:.15rem .3rem}
.c-countdown--small .c-countdown__label{font-size:.66rem}
.c-countdown--compact .c-countdown__value{font-size:.7rem;padding:.1rem .2rem;min-width:1.8ch}
.c-countdown--compact .c-countdown__label{font-size:.6rem;margin-top:.05rem}
.c-countdown--compact .c-countdown__sep{font-size:.65rem;margin:0 .1rem}
.c-countdown--compact{gap:.2rem}
.c-countdown--pill .c-countdown__value{background:#0ea5e9;color:#fff}
.c-countdown--danger .c-countdown__value{background:#ef4444;color:#fff}
.c-countdown--muted .c-countdown__value{background:#e5e7eb;color:#374151}
.c-countdown.is-expired{display:block}
.c-countdown.is-expired>*{display:none}
.c-countdown.is-expired::before{content:attr(data-expired-text);color:#ef4444;font-weight:700}

/* Product Grid Layout Fixes */
.products_container .row {
    display: flex;
    flex-wrap: wrap;
}

.products_container .col-lg-3,
.products_container .col-lg-4,
.products_container .col-md-6,
.products_container .col-sm-6,
.products_container .col-12 {
    display: flex;
    flex-direction: column;
}

.products_container .product-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.products_container .product-thumb {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.products_container .product-thumb .image {
    flex-shrink: 0;
}

.products_container .product-thumb .desc-category {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.products_container .product-thumb .name-category {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.products_container .product-thumb .name-category a {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    min-height: 3em;
    line-height: 1.4;
}

.products_container .product-thumb .timer {
    flex-shrink: 0;
    margin-top: auto;
}

.products_container .product-thumb .color-row {
    flex-shrink: 0;
    margin-top: auto;
}

/* Ensure consistent spacing */
.products_container .product-layout {
    margin-bottom: 1rem;
}

.products_container .product-thumb {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
}

.products_container .product-thumb:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Fix for product names that are too long */
.products_container .product-thumb .name-category a {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-decoration: none;
    color: #333;
}

.products_container .product-thumb .name-category a:hover {
    color: #007bff;
}

/* Ensure manufacturer logo doesn't affect height */
.products_container .product-thumb .img-brand {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

/* Price section at bottom */
.products_container .product-thumb .price-product,
.products_container .product-thumb .total-cost {
    flex-shrink: 0;
    margin-top: auto;
    text-align: center;
    font-weight: bold;
    color: #28a745;
}

/* Direct x-product-display usage fixes */
.row .col-lg-3,
.row .col-lg-4,
.row .col-md-6,
.row .col-sm-6,
.row .col-12 {
    display: flex;
    flex-direction: column;
}

.row .product-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.row .product-thumb {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.row .product-thumb .image {
    flex-shrink: 0;
}

.row .product-thumb .desc-category {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.row .product-thumb .name-category {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.row .product-thumb .name-category a {
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    min-height: 3em;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    text-decoration: none;
    color: #333;
}

.row .product-thumb .name-category a:hover {
    color: #007bff;
}

.row .product-thumb .timer {
    flex-shrink: 0;
    margin-top: auto;
}

.row .product-thumb .color-row {
    flex-shrink: 0;
    margin-top: auto;
}

/* Consistent styling for all product cards */
.row .product-layout {
    margin-bottom: 1rem;
}

.row .product-thumb {
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #fff;
    height: 100%;
}

.row .product-thumb:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Ensure manufacturer logo doesn't affect height */
.row .product-thumb .img-brand {
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

/* Price section at bottom */
.row .product-thumb .price-product,
.row .product-thumb .total-cost {
    flex-shrink: 0;
    margin-top: auto;
    text-align: center;
    font-weight: bold;
    color: #28a745;
}

/* Slider specific fixes */
.owl-carousel .item .col-12 {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.owl-carousel .item .product-layout {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.owl-carousel .item .product-thumb {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Fix for owl carousel items */
.owl-carousel .owl-item {
    height: auto;
}

.owl-carousel .owl-item .item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Ensure all product cards in sliders have equal height */
.owl-carousel .product-layout {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
}

.owl-carousel .product-thumb {
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    min-height: 350px; /* Reduced minimum height */
}

/* Fix for countdown timer height in product page */
.product-page .timer {
    min-height: auto !important;
    height: auto !important;
}

.product-page .c-countdown {
    min-height: auto !important;
    height: auto !important;
}

/* Ensure countdown doesn't take too much space */
.c-countdown {
    min-height: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.c-countdown__item {
    min-height: auto !important;
    height: auto !important;
}

.c-countdown__value {
    min-height: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

.c-countdown__label {
    min-height: auto !important;
    height: auto !important;
    line-height: 1 !important;
}

/* Ensure consistent heights across different screen sizes */
@media (max-width: 767px) {
    .product-thumb .name-category a {
        min-height: 2.5em;
        font-size: 0.9em;
    }
    
    .product-thumb {
        padding: 0.75rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .product-thumb .name-category a {
        min-height: 2.8em;
    }
}

@media (min-width: 992px) {
    .product-thumb .name-category a {
        min-height: 3em;
    }
}

/* Fix for special sale badges */
.product-thumb .special-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    z-index: 10;
}

/* Ensure price alignment */
.product-thumb .price-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

/* Product page specific fixes */
.c-product .timer {
    min-height: auto !important;
    height: auto !important;
    margin: 10px 0 !important;
}

.c-product .c-countdown {
    min-height: auto !important;
    height: auto !important;
    padding: 8px 12px !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    border: 1px solid #e9ecef !important;
}

.c-product .c-countdown__item {
    min-height: auto !important;
    height: auto !important;
}

.c-product .c-countdown__value {
    min-height: auto !important;
    height: auto !important;
    font-size: 0.9rem !important;
    padding: 4px 8px !important;
}

.c-product .c-countdown__label {
    min-height: auto !important;
    height: auto !important;
    font-size: 0.7rem !important;
    margin-top: 2px !important;
}

/* Ensure product images are visible */
.c-product .product-images {
    z-index: 10 !important;
    position: relative !important;
}

.c-product .thumbnails {
    z-index: 10 !important;
    position: relative !important;
}

/* Fix for wnd-pro section */
.wnd-pro {
    position: relative !important;
    z-index: 5 !important;
}

.wnd-pro .timer {
    min-height: auto !important;
    height: auto !important;
    margin: 5px 0 !important;
}

/* Compact countdown for product page */
.c-product .c-countdown {
    font-size: 0.85rem !important;
    gap: 0.3rem !important;
}

.c-product .c-countdown__item {
    min-width: 2.5ch !important;
}

.c-product .c-countdown__value {
    font-size: 0.8rem !important;
    padding: 3px 6px !important;
    min-width: 2ch !important;
}

.c-product .c-countdown__label {
    font-size: 0.65rem !important;
    margin-top: 1px !important;
}

.c-product .c-countdown__sep {
    font-size: 0.8rem !important;
    margin: 0 0.2rem !important;
}

/* Ensure timer doesn't interfere with product layout */
.c-product .row-pro-name {
    position: relative !important;
    z-index: 10 !important;
}

.c-product .col-lg-5 {
    position: relative !important;
    z-index: 10 !important;
}

/* Fix for product images visibility */
.c-product .thumbnails {
    position: relative !important;
    z-index: 15 !important;
}

.c-product .slide-image2 {
    position: relative !important;
    z-index: 15 !important;
}

