/* ==========================================================================
   Modern Reset & Variables
   ========================================================================== */
:root {
    /* Brand Colors - Updated to Red */
    --brand-main: #d4202c;
    --brand-main-hover: #741e24;
    --brand-gradient: linear-gradient(to bottom, #d4202c 0%, #741e24 100%);
    --brand-gradient-hover: linear-gradient(to bottom, #b31b25 0%, #5a151b 100%);
    
    /* Other brand colors from original */
    --brand-blue: #2E9AF1;
    --brand-light-green: #04b431;

    /* Text Colors */
    --text-main: #333333;
    --text-muted: #797979;
    --text-light: #ffffff;
    
    /* Backgrounds */
    --bg-main: #ffffff;
    --bg-muted: #f5f5f5;
    --bg-dark: #222222;
    --bg-header: #ffffff;
    --bg-nav: #f8f8f8;
    
    /* Typography */
    --font-main: 'Commissioner', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    
    /* Layout */
    --container-width: 1400px;
    --gap: 20px;
    --radius: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

button, input {
    font-family: var(--font-main);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gap);
}

.img-responsive {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   Top Navigation
   ========================================================================== */
.top-nav {
    background-color: var(--bg-nav);
    border-bottom: 1px solid #eaeaea;
    font-size: 13px;
    padding: 8px 0;
}

.top-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-nav__left a {
    margin-right: 20px;
    color: var(--text-muted);
    font-weight: 500;
}

.top-nav__left a:hover {
    color: var(--brand-main);
}

.top-nav__right ul {
    display: flex;
    gap: 20px;
}

.top-nav__right a {
    color: var(--text-muted);
    font-weight: 500;
}

.top-nav__right a:hover {
    color: var(--brand-main);
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    padding: 25px 0;
    background: var(--bg-header);
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 10;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header__logo {
    flex: 0 0 237px;
}

.header__logo img {
    width: 100%;
    max-width: 237px;
    height: auto;
}

.header__search {
    flex: 1 1 300px;
    max-width: 400px;
}

.search-wrapper {
    display: flex;
    border: 1px solid #cccccc;
    border-radius: var(--radius);
    overflow: hidden;
    background: #f0f0f0;
    transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-wrapper:focus-within {
    border-color: #aaaaaa;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.search-wrapper input {
    flex: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    background: transparent;
    color: var(--text-main);
}

.search-wrapper .btn-search {
    background: #e4e4e4;
    color: var(--text-main);
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.search-wrapper .btn-search:hover {
    background: #d4d4d4;
    color: var(--brand-main);
}

/* Advanced Woo Search: keep header search visual style */
.aws-search-wrapper {
    padding: 0;
}

.aws-search-wrapper .aws-container {
    width: 100%;
}

.aws-search-wrapper .aws-search-form {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: none;
    background: transparent;
}

.aws-search-wrapper .aws-search-field {
    flex: 1;
    border: none !important;
    padding: 10px 15px !important;
    outline: none !important;
    background: transparent !important;
    color: var(--text-main) !important;
    min-height: 42px;
}

.aws-search-wrapper .aws-form-btn,
.aws-search-wrapper .aws-search-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #e4e4e4 !important;
    color: var(--text-main) !important;
    border: none !important;
    border-left: 1px solid #d2d2d2 !important;
    width: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.aws-search-wrapper .aws-form-btn:hover,
.aws-search-wrapper .aws-search-btn:hover {
    background: #d4d4d4 !important;
    color: var(--brand-main) !important;
}

.aws-search-wrapper .aws-search-btn_icon,
.aws-search-wrapper .aws-search-btn_icon svg {
    width: 18px !important;
    height: 18px !important;
}



.header__contacts {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.header__contacts a {
    color: inherit;
    text-decoration: none;
}

.header__contacts a:hover {
    color: inherit;
    text-decoration: none;
}

.header__contacts i {
    color: var(--brand-main);
    width: 20px;
}

.header__time {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-callback {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-main);
    border-bottom: 1px dashed var(--brand-main);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.btn-callback:hover {
    color: var(--brand-main-hover);
}

.callback-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.callback-modal.is-open {
    display: flex;
}

.callback-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.callback-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: 20px;
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.callback-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.callback-modal__title {
    margin: 0 30px 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.callback-modal__subtitle {
    margin: 0 0 16px;
    color: var(--text-muted);
}

.callback-modal__content {
    padding: 16px;
    border-radius: 8px;
    background: #f7f7f7;
    border: 1px dashed #dcdcdc;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
}
.content{
    padding:  50px 0;
}
.page .category-content a{
    border-bottom: 1px solid var(--brand-main);
    color: var(--brand-main);
}

.content h1{
    line-height: 1.4;
    margin-bottom: 20px;
}
.btn-cart {
    background: var(--brand-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-cart:hover {
    background: var(--brand-gradient-hover);
    transform: translateY(-2px);
}

.btn-cart .rond {
    background: white;
    color: var(--brand-main);
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 14px;
}

/* ==========================================================================
   Main Menu
   ========================================================================== */
.menu-wrapper {
    background: var(--brand-gradient);
    position: relative;
    z-index: 9;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
}

.navbar-nav > li {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-nav > li > a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: white;
    padding: 15px 15px;
    font-weight: 600;
    line-height: 1.2;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background var(--transition-fast);
}

.navbar-nav a:hover {
    background: rgba(0, 0, 0, 0.1);
    color: white;
}

.navbar-nav .bg-green {
    background-color: var(--brand-light-green);
}
.navbar-nav .bg-blue {
    background-color: var(--brand-blue);
}

.navbar-header {
    display: none;
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.main-content {
    padding: 20px 0;
}

.home-info-banner {
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid #dcdcdc;
    border-radius: var(--radius);
    background: #fff;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
}

.home-info-banner a {
    color: var(--brand-main);
    font-weight: 700;
    text-decoration: underline;
}

/* Main Slider */
.main-slider {
    margin-bottom: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    position: relative;
}

.main-slider .slick-list {
    border-radius: var(--radius);
    overflow: hidden;
}

.main-slider .slick-prev {
    left: -20px;
}

.main-slider .slick-next {
    right: -20px;
}

.slider-content {
    position: relative;
}

#slideshow0,
#slideshow0 .slick-list,
#slideshow0 .slick-track,
#slideshow0 .slick-slide,
#slideshow0 .slick-slide > div,
#slideshow0 .item {
    height: 300px !important;
}

#slideshow0 .slider-content {
    height: 100%;
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

#slideshow0 .slider-content > a {
    display: block;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
}

#slideshow0 .item img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    margin: 0 !important;
    padding: 0 !important;
}



/* Mini Banners */
.mini-banners {
    display: flex;
    gap: var(--gap);
    margin-bottom: 40px;
}

.col-banner {
    flex: 3;
    min-width: 0;
}

.col-banner-small {
    flex: 1;
    min-width: 0;
}

#mini_slider_left,
#mini_slider_left .slick-list,
#mini_slider_left .slick-track,
#mini_slider_left .slick-slide,
#mini_slider_left .slick-slide > div,
#mini_slider_left .item,
#mini_slider_right,
#mini_slider_right .slick-list,
#mini_slider_right .slick-track,
#mini_slider_right .slick-slide,
#mini_slider_right .slick-slide > div,
#mini_slider_right .item {
    height: 240px !important;
    overflow: hidden;
}

#mini_slider_left,
#mini_slider_right {
    width: 100%;
    max-width: 100%;
}

#mini_slider_left .item img,
#mini_slider_right .item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
	   max-height: 210px;
}

@media (max-width: 1600px) {
    #slideshow0,
    #slideshow0 .slick-list,
    #slideshow0 .slick-track,
    #slideshow0 .slick-slide,
    #slideshow0 .slick-slide > div,
    #slideshow0 .item {
        height: auto !important;
    }

    #mini_slider_left,
    #mini_slider_left .slick-list,
    #mini_slider_left .slick-track,
    #mini_slider_left .slick-slide,
    #mini_slider_left .slick-slide > div,
    #mini_slider_left .item,
    #mini_slider_right,
    #mini_slider_right .slick-list,
    #mini_slider_right .slick-track,
    #mini_slider_right .slick-slide,
    #mini_slider_right .slick-slide > div,
    #mini_slider_right .item {
        height: auto !important;
    }

    #slideshow0 .slider-content,
    #slideshow0 .slider-content > a {
        height: auto;
    }

    #slideshow0 .item img,
    #mini_slider_left .item img,
    #mini_slider_right .item img {
        height: auto;
        object-fit: contain;
        margin: 0 auto;
    }

    #slideshow0 .item img {
        max-height: 280px;
    }

    #mini_slider_left .item img,
    #mini_slider_right .item img {
        max-height: 210px;
    }
}

@media (max-width: 768px) {
    #slideshow0 .item img {
        max-height: 240px;
    }

    #mini_slider_left .item img,
    #mini_slider_right .item img {
        max-height: 170px;
    }
}

@media (max-width: 480px) {
    #slideshow0 .item img {
        max-height: 200px;
    }

    #mini_slider_left .item img,
    #mini_slider_right .item img {
        max-height: 140px;
    }
}

.mini-banners img {
    border-radius: var(--radius);
    width: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.mini-banners a:hover img {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Image Categories */
.imgcategory {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--gap);
    margin-bottom: 20px;
}

.cathome {
    text-align: center;
    background: white;
    padding: 0 0 20px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.cathome:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.cathome img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: var(--radius) var(--radius) 0 0;
    transition: transform var(--transition-normal);
}

.cathome:hover img {
    transform: scale(1.05);
}

.cathome h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}

.cathome a {
    color: var(--text-main);
}

.cathome a:hover {
    color: var(--brand-main);
}

/* ==========================================================================
   Sections & Product Sliders
   ========================================================================== */
.section-slider {
    margin-bottom: 20px;
    position: relative;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--bg-muted);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 80px;
    height: 2px;
    background: var(--brand-main);
}

/* Product Layout */
.product-layout {
    padding: 10px;
    height: 100%;
    max-width: 320px;
    margin: 0;
    width: 100%;
}

.products-slider .slick-track {
    display: flex !important;
}

.products-slider .slick-slide {
    height: auto;
    display: flex;
}

.products-slider .slick-slide > div {
    height: 100%;
    width: 100%;
}

.product-thumb {
    background: white;
    border-radius: var(--radius);
    border: 1px solid #eaeaea;
    padding: 20px;
    transition: box-shadow var(--transition-normal), transform var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-thumb:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: transparent;
}

.product-thumb .image {
    margin-bottom: 20px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-thumb .image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.product-thumb .image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: transform var(--transition-normal);
}
 .cats-pdf .product-thumb .image img {
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition-normal);
}
.woocommerce div.product form.cart .variations label {
    width: 100%;
}

.product-thumb:hover .image img {
    transform: scale(1.05);
}

.product-thumb .caption {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-thumb .namep {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.4;
    min-height: 42px;
}

.product-thumb .namep a {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-thumb .sku {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.product-thumb .nal {
    margin-bottom: 15px;
    font-size: 13px;
    font-weight: 600;
}

.product-thumb .in-stock {
    color: #2d8034; /* Green color for "In stock" status */
}

.product-thumb .price {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: auto;
    margin-bottom: 15px;
}

/* Keep catalog price dark (override Woo default sale colors) */
.woocommerce ul.products li.product .price,
.woocommerce-page ul.products li.product .price,
.product-thumb .price,
.product-thumb .price *,
.product-thumb .price .woocommerce-Price-amount {
    color: var(--text-main) !important;
}

.btn-cart-add {
    width: 100%;
    background: var(--brand-gradient);
    color: white;
    border: none;
    padding: 12px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.btn-cart-add i {
    margin-right: 8px;
}

.btn-cart-add:hover {
    background: var(--brand-gradient-hover);
}

/* Custom Slick Arrows */
.slick-prev, .slick-next {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #eaeaea;
    border-radius: 50%;
    z-index: 2;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.slick-prev:hover, .slick-next:hover {
    background: var(--brand-main);
    border-color: var(--brand-main);
}

.slick-prev:before, .slick-next:before {
    color: var(--text-main);
    font-family: 'FontAwesome';
    font-size: 20px;
    opacity: 1;
    transition: color var(--transition-fast);
}

.slick-prev:hover:before, .slick-next:hover:before {
    color: white;
}

.slick-prev:before { content: "\f104"; }
.slick-next:before { content: "\f105"; }

.section-slider .slick-prev { left: -20px; }
.section-slider .slick-next { right: -20px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--bg-dark);
    color: #cccccc;
    padding: 60px 0 30px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 40px;
}

.footer-heading {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cccccc;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--brand-main);
}

.footer-text {
    font-size: 14px;
    line-height: 1.8;
}

.mt-3 {
    margin-top: 20px;
}

.text-danger {
    color: var(--brand-main) !important;
}

.footer-pay {
    margin-top: 30px;
}

/* ==========================================================================
   Category Page Styles
   ========================================================================== */

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 15px 0;
    margin-bottom: 20px;
    list-style: none;
    background: transparent;
    font-size: 14px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li + li::before {
    content: "/";
    padding: 0 10px;
    color: #ccc;
}

.breadcrumb a {
    color: var(--text-muted);
}

.breadcrumb a:hover {
    color: var(--brand-main);
}

.breadcrumb span {
    color: var(--text-main);
}

/* Category Layout */
.category-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Sidebar */
.sidebar {
    flex: 0 0 250px;
}

.list-group {
    background: white;
    border: 1px solid #eaeaea;
    border-radius: var(--radius);
    overflow: hidden;
}

.list-group-item {
    display: block;
    padding: 12px 15px;
    color: var(--text-main);
    border-bottom: 1px solid #eaeaea;
    font-weight: 600;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background-color: var(--bg-muted);
    color: var(--brand-main);
}

.list-group-item--featured {
    background: #f0f0f0;
    color: #ab252f;
    font-weight: 700;
}



.list-group-item.active {
    background: #fff3f2;
    color: #d93025;
    border-color: #ffd0cc;
}

.lev2 {
    background: #fdfdfd;
    border-bottom: 1px solid #eaeaea;
}

.list-group--product .lev2 {
    display: none;
}

.list-group--product .lev2.is-open {
    display: block;
}

.list-group-item2 {
    display: block;
    padding: 5px 15px 5px 30px;
    color: var(--text-muted);
    font-size: 14px;
    transition: color var(--transition-fast);
    position: relative;
}

.list-group-item2::before {
    content: "-";
    position: absolute;
    left: 15px;
    color: #ccc;
}

.list-group-item2:hover {
    color: var(--brand-main);
}

.list-group-item2.active {
    color: #d93025;
    font-weight: 700;
}

/* Category Content */
.category-content {
    flex: 1;
    min-width: 0;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--brand-main);
}

.category-description {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.category-description img {
    width: 100%;
    border-radius: var(--radius);
    object-fit: cover;
    max-height: 300px;
}

.description-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Subcategories Grid */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.subcategory-item {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    overflow: hidden;
}

.subcategory-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.subcategory-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

.subcategory-link img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.subcategory-name {
    padding: 15px;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.subcategory-link:hover .subcategory-name {
    color: var(--brand-main);
}

/* Toolbar (Sorting) */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 15px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 3px;
    flex-wrap: wrap;
    gap: 15px;
}

.toolbar label {
    font-weight: 500;
    margin-right: 10px;
    color: var(--text-muted);
}

.toolbar select {
    padding: 8px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    outline: none;
    font-family: var(--font-main);
    color: var(--text-main);
}

.sort-by, .show-limit {
    display: flex;
    align-items: center;
}

.view-mode {
    display: flex;
    gap: 5px;
}

.btn-view {
    background: white;
    border: 1px solid #dcdcdc;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-view.active, .btn-view:hover {
    background: var(--brand-main);
    color: white;
    border-color: var(--brand-main);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 40px;
    align-items: stretch;
}

.products-grid .product-layout {
    padding: 0; /* Remove padding from layout in grid mode */
    width: 100%;
    max-width: none;
    min-width: 0;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eaeaea;
    padding-top: 20px;
}

.pagination,
.woocommerce-pagination .page-numbers,
.pagination-wrapper .page-numbers {
    display: flex;
    gap: 5px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination li a,
.pagination li span,
.woocommerce-pagination .page-numbers li a,
.woocommerce-pagination .page-numbers li span,
.pagination-wrapper .page-numbers li a,
.pagination-wrapper .page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    color: var(--text-main);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.pagination li a:hover,
.woocommerce-pagination .page-numbers li a:hover,
.pagination-wrapper .page-numbers li a:hover {
    border-color: var(--brand-main);
    color: var(--brand-main);
}

.pagination li.active span,
.woocommerce-pagination .page-numbers li .current,
.pagination-wrapper .page-numbers li .current {
    background: var(--brand-gradient);
    color: white;
    border-color: transparent;
}

.pagination-results {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================================================
   Product Page Styles
   ========================================================================== */

/* Layout */
.product-layout-main {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    background: white;
    padding: 0px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

/* Gallery */
.product-gallery {
    flex: 0 0 500px;
}

.main-image {
    border: 1px solid #eaeaea;
    border-radius: var(--radius);
    padding: 10px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.main-image img {
    max-height: 100%;
    object-fit: contain;
}

.product-main-image-link {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
}

.product-main-image-link img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnails .thumb {
    border: 1px solid #eaeaea;
    border-radius: 4px;
    padding: 5px;
    cursor: pointer;
    transition: border-color var(--transition-fast);
    width: 74px;
    height: 74px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thumbnails .thumb img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.thumbnails .thumb.active, .thumbnails .thumb:hover {
    border-color: var(--brand-main);
}

.woocommerce #content div.product div.thumbnails a,
.woocommerce div.product div.thumbnails a,
.woocommerce-page #content div.product div.thumbnails a,
.woocommerce-page div.product div.thumbnails a {
    margin-right: 0 !important;
}

/* Info */
.product-info {
    flex: 1;
}

.product-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-meta {
    margin-bottom: 20px;
    font-size: 15px;
}

.product-meta li {
    margin-bottom: 5px;
}

.sku-label,
.sku-value {
    color: #d93025;
    font-size: 16px;
    font-weight: 700;
}

.product-stock {
    margin-bottom: 20px;
}

.in-stock-badge {
    color: #2d8034;
    font-weight: 600;
    font-size: 15px;
}

.product-price-block {
    background: var(--bg-muted);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 10px;
}

.price-main {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 5px;
}

.price-main .price,
.price-main .price *,
.price-main .woocommerce-Price-amount,
.price-main .woocommerce-Price-amount bdi,
.price-main ins,
.price-main del {
    color: inherit !important;
    font-size: inherit !important;
}

.price-main .price {
    margin: 0;
    line-height: 1.2;
}

.price-b2b {
    font-size: 13px;
    color: var(--text-muted);
}

/* Actions */
.product-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-actions form.cart {
    width: 100%;
}

.product-actions form.cart,
.product-actions .variations_button {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-actions .quantity .qty {
    width: 60px;
    height: 46px;
    text-align: center;
    border: 1px solid #dcdcdc;
    border-radius: var(--radius);
    font-size: 16px;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.product-actions .quantity .qty::-webkit-outer-spin-button,
.product-actions .quantity .qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.product-actions .quantity {
    display: inline-flex;
    align-items: center;
}

.product-actions .qty-btn {
    width: 38px;
    height: 46px;
    border: 1px solid #dcdcdc;
    background: #fff;
    color: var(--text-main);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.product-actions .qty-btn--minus {
    border-radius: var(--radius) 0 0 var(--radius);
}

.product-actions .qty-btn--plus {
    border-radius: 0 var(--radius) var(--radius) 0;
}

.product-actions .qty-btn:hover {
    color: var(--brand-main);
}

.product-actions .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.product-actions .single_add_to_cart_button::before {
    content: "\f07a";
    font-family: FontAwesome;
    font-size: 16px;
    line-height: 1;
    margin-right: 8px;
}

.product-actions .single_add_to_cart_button:hover {
    background: var(--brand-gradient-hover);
}

.product-actions .cart .quantity {
    margin: 0;
    float: none;
}

.product-actions .variations {
    width: 100%;
    margin-bottom: 12px;
}

.product-actions .variations td,
.product-actions .variations th {
    padding: 4px 8px 4px 0;
}

.product-actions .variation-select-native {
    position: absolute !important;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}

.product-actions .variation-radios {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.product-actions .variation-radio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--text-main);
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    user-select: none;
    transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.product-actions .variation-radio__input {
    margin: 0;
    accent-color: var(--brand-main);
}

.product-actions .variation-radio__text {
    font-size: 13px;
    line-height: 1;
}

.product-actions .variation-radio:hover {
    color: var(--brand-main);
}

.product-actions .variation-radio.is-active {
    border-color: transparent;
    background: transparent;
    color: var(--brand-main);
}

.product-actions .variation-radio.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.product-actions .variations .label {
    display: none;
}

.product-actions .reset_variations {
    display: none !important;
}

.product-actions .variations_button {
    width: 100%;
}

.product-actions .variations_button .quantity {
    display: flex;
    align-items: center;
    margin: 0;
}

.product-actions .variations_button .quantity .qty {
    width: 60px;
    height: 46px;
    text-align: center;
    border: 1px solid #dcdcdc;

    font-size: 16px;
    outline: none;
    padding: 0;
}

.product-actions .variations_button .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    max-width: 250px;
    margin: 0;
}
/* Force Woo buttons color on single product (simple + variable) */
.woocommerce div.product .product-actions form.cart .single_add_to_cart_button,
.woocommerce-page div.product .product-actions form.cart .single_add_to_cart_button,
.woocommerce div.product .product-actions form.cart .single_add_to_cart_button.button.alt,
.woocommerce-page div.product .product-actions form.cart .single_add_to_cart_button.button.alt {
    background: var(--brand-gradient) !important;
    color: #fff !important;
    border: none !important;
}

.woocommerce div.product .product-actions form.cart .single_add_to_cart_button:hover,
.woocommerce-page div.product .product-actions form.cart .single_add_to_cart_button:hover,
.woocommerce div.product .product-actions form.cart .single_add_to_cart_button.button.alt:hover,
.woocommerce-page div.product .product-actions form.cart .single_add_to_cart_button.button.alt:hover {
    background: var(--brand-gradient-hover) !important;
    color: #fff !important;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.quantity-control label {
    font-weight: 600;
}

.quantity-control input {
    width: 60px;
    height: 46px;
    text-align: center;
    border: 1px solid #dcdcdc;
    border-radius: var(--radius);
    font-size: 16px;
    outline: none;
}

.btn-lg {
    padding: 12px 30px;
    font-size: 16px;
    flex: 1;
    max-width: 250px;
    justify-content: center;
}

/* Tabs */
.product-tabs {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.nav-tabs {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    margin: 0;
    padding: 0;
    list-style: none;
    background: var(--bg-nav);
}

.nav-tabs li {
    margin-bottom: -1px;
}

.nav-tabs a {
    display: block;
    padding: 15px 25px;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid transparent;
    border-bottom: none;
}

.nav-tabs li.active a, .nav-tabs a:hover {
    background: white;
    color: var(--brand-main);
    border-color: #eaeaea #eaeaea transparent;
}

.nav-tabs li.active a {
    border-top: 3px solid var(--brand-main);
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
    line-height: 1.8;
}

.tab-pane.active {
    display: block;
}

.tab-pane ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.tab-pane p {
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 992px) {
    .product-layout-main {
        flex-direction: column;
    }
    
    .product-gallery {
        flex: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-lg {
        max-width: none;
    }
    
    .nav-tabs {
        flex-direction: column;
    }
    
    .nav-tabs a {
        border: none;
        border-bottom: 1px solid #eaeaea;
    }
    
    .nav-tabs li.active a {
        border-top: none;
        border-left: 3px solid var(--brand-main);
    }
}

@media (max-width: 992px) {
    .category-layout {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        flex: none;
    }
    
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-description {
        flex-direction: column;
    }
    
    .category-description img {
        flex: none;
        width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .sort-by, .show-limit {
        justify-content: space-between;
    }
}

@media (max-width: 1200px) {
    .imgcategory {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }
    
    .header__logo, .header__search {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .header__actions {
        justify-content: center;
    }

    .navbar-nav {
        flex-wrap: wrap;
    }
    
    .navbar-nav li {
        flex: 1 1 25%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-nav .container {
        flex-direction: column;
        gap: 10px;
    }

    .mini-banners {
        flex-direction: column;
    }

    .imgcategory {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px;
        background: transparent;
        color: inherit;
    }

    .btn-navbar {
        background: transparent;
        border: 1px solid white;
        color: white;
        padding: 5px 10px;
        border-radius: 4px;
        cursor: pointer;
    }

    .navbar-collapse {
        display: none;
    }

    .navbar-collapse.active {
        display: block;
    }

    .navbar-nav {
        flex-direction: column;
    }

    .navbar-nav li {
        flex: 1 1 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
}

@media (max-width: 480px) {
    .imgcategory {
        grid-template-columns: 1fr;
    }
}
