/* 
 * Main Stylesheet
 */

/* ========== CSS Reset & Base ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Middle East B2B palette */
    --primary-color: #1f1f1f;
    --secondary-color: #343434;
    --accent-color: #ff000f;
    --accent-gold: #ff000f;
    --accent-hover: #d8000d;
    --text-color: #222222;
    --text-light: #5e5e5e;
    --text-muted: #888888;
    --border-color: #e3e3e3;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f5;
    --white: #FFFFFF;
    --success-color: #0E9F6E;
    --danger-color: #F05252;
    --warning-color: #FFE600;
    
    /* Shopify Force Theme Design System */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    --font-main: Roboto, Arial, 'Segoe UI', sans-serif;
    --container-width: 1280px;
    --transition-speed: 0.2s;
    --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--secondary-color);
}

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

/* ========== Layout ========== */
.container {
    max-width: 96%;
    margin: 0 auto;
    padding: 0;
}

.main-content {
    min-height: calc(100vh - 300px);
}

/* ========== Header  Shopify Force  ========== */
.header {
    background: var(--primary-color);
    border-bottom: 1px solid rgba(255,255,255,.12);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.2s ease;
}

.header.scrolled {
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: #B45309;
    color: #FFFFFF;
    padding: 8px 0;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

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

.header-top-left,
.header-top-right,
.top-info-item {
    display: flex;
    align-items: center;
}

.header-top-right {
    gap: 12px;
    direction: ltr;
}

.top-info-item {
    gap: 6px;
    white-space: nowrap;
}

.header-top-left .top-info-item {
    direction: rtl;
}

.header-top-right .separator {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, .45);
}

.header-top a {
    color: #FFFFFF;
    font-weight: 500;
}

.header-top a:hover,
.header-top a:active,
.header-top a:visited {
    color: #FFFFFF;
}

.header-main-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 10px 0;
    direction: ltr;
}

/* Keep the brand physically left at every breakpoint while Arabic controls
   and text retain their RTL reading direction. */
.nav-main,
.header-search,
.search-form {
    direction: rtl;
}
.logo-image{
    width: 100px;
    transform: none;
}

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

.nav-main {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.nav-main a {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.15s ease;
}

.nav-main a:hover {
    color: var(--accent-color);
}

.nav-main a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.2s var(--transition-timing);
    transform: translateX(-50%);
}

.nav-main a:hover::after,
.nav-main a.active::after {
    width: 100%;
}

.header-search {
    display: flex;
    align-items: center;
}

.search-form {
    display: flex;
    border: 1px solid #333333;
    border-radius: 16px;
    overflow: hidden;
    background: #0B2239;
    transition: all 0.2s ease;
}

.search-form:focus-within {
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 95, 193, 0.1);
}

.search-form input {
    padding: 10px 14px;
    border: none;
    width: 220px;
    outline: none;
    font-size: 0.875rem;
}

.search-form input::placeholder {
    color: #888888;
}

.search-form button {
    padding: 10px 16px;
    color: #f76b0e;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.search-form button:hover {
    background: var(--accent-color);
    color: #000000;
}

/* ========== Company Introduction Block ========== */
.company-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.company-intro-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.company-intro-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.company-intro-image img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.company-intro-content h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.company-intro-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .company-intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .company-intro-image img,
    .company-intro-image video {
        height: 280px;
    }
}

/* Multi-brand catalogue */
.brands-section { padding-top:12px; }
.brands-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin:0 0 28px; padding:0 0 22px; border-bottom:1px solid #dfdfdf; }
.brands-heading h1 { margin:5px 0 8px; font-size:2.35rem; letter-spacing:-.035em; }
.brands-heading p { margin:0; color:#666; }
.brands-kicker { display:block; color:var(--accent-color); font-size:.72rem; font-weight:800; letter-spacing:.12em; }
.brand-grid { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:20px; }
.brand-card { display:flex; min-height:132px; overflow:hidden; flex-direction:column; color:#242424; background:#fff; border:1px solid #e1e1e1; text-decoration:none; transition:transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.brand-card:hover { color:#222; border-color:var(--accent-color); transform:translateY(-4px); box-shadow:0 14px 30px rgba(0,0,0,.11); }
.brand-image-wrap { display:flex; align-items:center; justify-content:center; height:132px; padding:24px 30px; background:linear-gradient(135deg,#f7f7f7 0%,#fff 68%); border-bottom:1px solid #ececec; }
.brand-image { display:block; max-width:100%; max-height:82px; object-fit:contain; }
.brand-wordmark { color:var(--accent-color); font-size:2rem; font-weight:800; letter-spacing:-.055em; }
.brand-hero { display:flex; align-items:center; gap:30px; padding:34px 38px; margin:0 0 25px; color:#fff; background:linear-gradient(115deg,#151515 0%,#2c2c2c 67%,var(--accent-color) 67%,var(--accent-color) 100%); }
.brand-hero h1 { margin:5px 0 8px; color:#fff; font-size:2.25rem; letter-spacing:-.035em; }
.brand-hero p { max-width:620px; margin:0; color:#e4e4e4; }
.brand-hero .brands-kicker { color:#fff; opacity:.72; }
.brand-hero-image-wrap { display:flex; flex:0 0 180px; align-items:center; justify-content:center; min-height:100px; padding:16px; background:#fff; }
.brand-hero-image { display:block; max-width:100%; max-height:82px; object-fit:contain; }
.brand-hero-copy { flex:1; }
.brand-categories-section { margin:0 0 36px; }
.brand-section-heading, .brand-products-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:16px; }
.brand-section-heading h2, .brand-products-heading h2 { margin:4px 0 0; font-size:1.45rem; }
.brand-all-link { color:var(--accent-color); font-size:.88rem; font-weight:700; text-decoration:none; white-space:nowrap; }
.brand-all-link i { margin-left:5px; }
.brand-category-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:12px; }
.brand-category-card { display:grid; grid-template-columns:58px 1fr auto; align-items:center; gap:13px; min-height:78px; padding:10px; color:#222; background:#fff; border:1px solid #e2e2e2; text-decoration:none; transition:border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.brand-category-card:hover, .brand-category-card.active { color:#222; border-color:var(--accent-color); transform:translateY(-2px); box-shadow:0 8px 20px rgba(0,0,0,.08); }
.brand-category-card.active { box-shadow:inset 3px 0 0 var(--accent-color); }
.brand-category-image { display:flex; align-items:center; justify-content:center; width:58px; height:58px; overflow:hidden; color:var(--accent-color); font-size:1.35rem; background:#f4f4f4; }
.brand-category-image img { display:block; width:100%; height:100%; object-fit:contain; }
.brand-category-copy strong { display:block; font-size:.9rem; line-height:1.25; }
.brand-category-arrow { color:#a5a5a5; font-size:.78rem; }
.brand-category-card:hover .brand-category-arrow { color:var(--accent-color); }
.brand-products-heading { padding-top:24px; border-top:1px solid #e0e0e0; }
.brand-products-heading > span { color:#666; font-size:.88rem; }
.product-brand-label { margin:0 0 6px; color:var(--accent-color); font-size:.78rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; }
.product-brand-label a { color:inherit; text-decoration:none; }
@media (min-width:769px) and (max-width:1200px) { .brand-grid { grid-template-columns:repeat(3, minmax(0, 1fr)); } }
@media (max-width:768px) { .brands-heading { align-items:flex-start; flex-direction:column; gap:12px; } .brands-heading h1 { font-size:1.9rem; } .brand-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); gap:12px; } .brand-card { min-height:96px; } .brand-image-wrap { height:96px; padding:16px; } .brand-wordmark { font-size:1.4rem; } .brand-hero { padding:24px; gap:18px; align-items:flex-start; flex-direction:column; background:linear-gradient(145deg,#151515 0%,#2c2c2c 68%,var(--accent-color) 68%); } .brand-hero h1 { font-size:1.8rem; } .brand-hero-image-wrap { flex-basis:auto; width:100%; } .brand-section-heading, .brand-products-heading { align-items:flex-start; flex-direction:column; gap:8px; } .brand-category-grid { grid-template-columns:1fr; } }

/* ========== Hero Section ========== */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slider {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(144,144,144,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    align-items: center;
}

.hero-content {
    color: var(--white);
    animation: heroFadeInUp 1s ease forwards;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-content .btn {
    font-size: 1rem;
    padding: 14px 36px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@keyframes heroFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Navigation Arrows */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.hero-section:hover .hero-arrow {
    opacity: 1;
    visibility: visible;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev {
    left: 24px;
}

.hero-arrow-next {
    right: 24px;
}


/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 3px 6px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
}



.btn-lg {
    padding: 14px 36px;
    font-size: 1.1rem;
}

.btn2 {
    display: inline-block;
    padding: 7px 24px;
    margin-top: 26px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn3 {
    display: inline-block;
    padding: 3px 6px;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.btn-primary {
    background: #f76b0e;
    color: var(--white);
    border-color: #f76b0e;
}

.btn-primary:hover {
    background: #f76b0e;
    border-color: #f76b0e;
    color: var(--white);
}

.btn-secondary {
    background: #f76b0e;
    color: var(--white);
    border-color: #f76b0e;
}

.btn-secondary:hover {
    background: #f76b0e;
    border-color: #f76b0e;
    color: var(--white);
}

.btn-outline {
    background: transparent;
    color: #f76b0e;
    border-color: #f76b0e;
}

.btn-outline:hover {
    background: #f76b0e;
    color: var(--white);
}

.btn-outline-category {
    background: transparent;
    color: #f76b0e;
    border-color: #f76b0e;
}

.btn-outline-category:hover {
    background: #f76b0e;
    color: var(--white);
}

/* ========== Section ========== */
.section {
    padding: 60px 0;
}

.section.bg-light {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-footer {
    text-align: center;
    margin-top: 40px;
}

/* Features / Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 35px 25px;
    text-align: center;
    transition: all var(--transition-speed) var(--transition-timing);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(247, 107, 14, 0.1), rgba(247, 107, 14, 0.05));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-speed);
}

.feature-card:hover .feature-icon {
    background: var(--accent-color);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: all var(--transition-speed);
}

.feature-card:hover .feature-icon i {
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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


/* ========== Product Grid ========== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.product-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.product-card-link:hover {
    color: inherit;
}

.product-card:hover,
.product-card-link:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-image {
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
}

.product-badge.discount {
    background: var(--danger-color);
}

.product-badge.bestseller {
    background: var(--secondary-color);
}

.product-badge.new {
    background: var(--success-color);
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    height: 3.2em;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-title a {
    color: var(--text-color);
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-category {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.product-category a {
    color: var(--text-light);
}

.product-price {
    margin-bottom: 15px;
}

.price-current {
    font-weight: 700;
    color: var(--secondary-color);
}

.price-old {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

.product-actions {
    margin-top: 15px;
    text-align: right;
}

/* ========== Category Page ========== */
.category-page-full {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 60px;
}

.category-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.category-sidebar h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 8px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    color: var(--text-color);
    transition: all 0.2s ease;
}

.category-list li.active > a,
.category-list li.active > div > a,
.category-list li a:hover {
    background: var(--accent-color);
    color: var(--white);
}

.category-list .count {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ========== Category Child List ========== */
.category-child-list {
    list-style: none;
    margin: 8px 0 0 0;
    padding-left: 16px;
    border-left: 2px solid var(--border-color);
    display: none;
}

.category-child-list.open {
    display: block;
}

.category-child-list li {
    margin-bottom: 5px;
}

.category-child-list li a {
    padding: 8px 10px;
    font-size: 0.85rem;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-child-list li.active > div > a,
.category-child-list li.active > a {
    background: var(--accent-color) !important;
    color: var(--white) !important;
    border-color: var(--accent-color) !important;
}

.category-child-list li a:hover {
    background: var(--bg-light);
    color: var(--accent-color);
    border-color: var(--accent-color);
}

/* ========== Category Child List (Third Level and Deep) ========== */
.category-child-list .category-child-list {
    margin-top: 5px;
    padding-left: 12px;
    border-left: 2px dashed var(--border-color);
}

.category-child-list .category-child-list li a {
    padding: 6px 8px;
    font-size: 0.8rem;
    background: var(--bg-light);
    border: none;
    border-bottom: 1px solid var(--border-color);
}

.category-child-list .category-child-list li.active a {
    background: rgba(247, 107, 14, 0.1) !important;
    color: var(--accent-color) !important;
    border-bottom-color: var(--accent-color) !important;
}

.category-expand-btn {
    background: none;
    border: none;
    padding: 0 8px;
    cursor: pointer;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.category-expand-btn.rotate {
    transform: rotate(90deg);
}



@media (max-width: 992px) {
    .category-page-full {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .category-sidebar {
        display: none;
    }
    
    .category-main-content {
        order: 1;
    }
}

@media (max-width: 576px) {
    .category-list {
        grid-template-columns: 1fr;
    }
}

/* ========== Category Circle Grid (Home) ========== */
.category-circle-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 150px;
}

.category-circle-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    transition: transform var(--transition-speed) var(--transition-timing);
    width: 150px;
}

.category-circle-card:hover {
    transform: translateY(-5px);
    color: var(--text-color);
}

.category-circle-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-speed) var(--transition-timing);
    background: var(--bg-light);
}

.category-circle-card:hover .category-circle-image {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(247, 107, 14, 0.2), var(--shadow-md);
}

.category-circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.category-circle-card:hover .category-circle-image img {
    transform: scale(1.1);
}

.category-circle-name {
    margin-top: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: var(--text-color);
    line-height: 1.3;
}

.category-circle-card:hover .category-circle-name {
    color: var(--accent-color);
}

@media (max-width: 576px) {
    .category-circle-grid {
        gap: 20px;
    }
    
    .category-circle-card {
        width: 100px;
    }
    
    .category-circle-image {
        width: 90px;
        height: 90px;
    }
    
    .category-circle-name {
        font-size: 0.85rem;
    }
}

/* ========== Category Grid ========== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.category-card {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.category-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.category-image {
    width: 150px;
    flex-shrink: 0;
    background: var(--bg-light);
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.category-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.category-info h3 a {
    color: var(--text-color);
}

.category-info h3 a:hover {
    color: var(--primary-color);
}

.category-info p {
    font-size: 0.875rem;
    flex: 1;
    margin-bottom: 10px;
}

/* ========== Services & Support Section ========== */
.section-services {
    background: var(--bg-light);
}

.services-carousel-wrapper {
    position: relative;
    margin: 0 auto;
}

.services-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 36px 28px 32px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-color);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(247, 107, 14, 0.08), rgba(247, 107, 14, 0.02));
    border-radius: 50%;
    padding: 16px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(247, 107, 14, 0.15), rgba(247, 107, 14, 0.05));
    transform: scale(1.05);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 2px;
}

.service-cta::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.service-cta:hover::after {
    width: 100%;
}

.service-cta:hover {
    color: var(--accent-color);
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Services carousel navigation buttons */
.services-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--border-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0;
    visibility: hidden;
}

.services-carousel-wrapper:hover .services-carousel-btn {
    opacity: 1;
    visibility: visible;
}

.services-carousel-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(247, 107, 14, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.services-carousel-btn svg {
    width: 12px;
    height: 16px;
}

.services-carousel-prev {
    left: -20px;
}

.services-carousel-next {
    right: -20px;
}

.services-carousel-btn:disabled {
    opacity: 0.3 !important;
    cursor: not-allowed;
    visibility: visible !important;
}

.services-carousel-btn:disabled:hover {
    background: var(--white);
    border-color: var(--border-color);
    color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-50%);
}

@media (max-width: 1024px) {
    .services-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .services-carousel {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 400px;
        margin: 0 auto;
    }

    .services-carousel-btn {
        display: none;
    }

    .service-card {
        padding: 28px 20px 24px;
    }
}

/* ========== Blog Grid ========== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.blog-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.blog-image {
    overflow: hidden;
    background: var(--bg-light);
}

.blog-image img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.blog-title a {
    color: var(--text-color);
}

.blog-title a:hover {
    color: var(--primary-color);
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
    margin-bottom: 8px;
    height: 3.2em;
    line-height: 1.6;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* ========== About Section ========== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.about-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.about-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info {
    margin-bottom: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

/* About Gallery Grid */
.about-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Delivery & Payment Gallery Grid */
.delivery-gallery-grid,
.payment-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}
.delivery-gallery-grid .gallery-item,
.payment-gallery-grid .gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 4/3;
}
.delivery-gallery-grid .gallery-item img,
.payment-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-gallery-grid .gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    aspect-ratio: 4/3;
}

.about-gallery-grid .gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.about-gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Gallery group title */
.gallery-group-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-color);
}

.gallery-group-title i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

/* About content grid */
.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content-grid .about-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-content-grid .about-image video,
.about-content-grid .about-image img {
    width: 100%;
    height: auto;
    display: block;
}

.about-full-description {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1rem;
    white-space: pre-normal;
}

.about-full-description h3,
.about-full-description h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.about-full-description p {
    margin-bottom: 12px;
    color: var(--text-light);
}

.about-full-description strong {
    color: var(--primary-color);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px 15px;
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all var(--transition-speed) var(--transition-timing);
    cursor: default;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.stat-item:hover .feature-icon {
    transform: scale(1.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #212121;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #212121;
}

@media (max-width: 768px) {
    .about-content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    background: var(--bg-light);
    padding: 20px 10px;
    font-size: 1rem;
}

.breadcrumb .container {
    align-items: center;
    gap: 10px;
}

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

.breadcrumb .separator {
    color: var(--text-light);
}

/* ========== Category Page ========== */
.category-header {
    background: var(--bg-light);
    margin-bottom: 40px;
}

.category-info {
    display: flex;
    gap: 30px;
    align-items: center;
}

.category-image {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-details h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.category-description-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
}

.category-full-description {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.category-full-description.truncated {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-full-description:not(.truncated) {
    display: block;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px 0;
    transition: opacity 0.2s;
    align-self: flex-end;
    min-height: 0px;
}

.read-more-btn:hover {
    opacity: 0.8;
}

.read-more-btn.rotated i {
    transform: rotate(180deg);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .read-more-btn {
        align-self: flex-end;
    }
}

.category-stats {
    font-size: 0.875rem;
    color: var(--text-light);
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-controls select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    outline: none;
}

/* ========== Product Detail Page ========== */
.product-detail {
    padding: 40px 0;
    max-width: 96%;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 60px;
}

.product-gallery {
    position: relative;
}

.product-main-image {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    max-height: 530px;
    max-width: 530px;
    min-height: 530px;
    min-width: 530px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.product-main-image img {
    object-fit: cover;
}

/* Gallery arrows for left/right sliding */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    opacity: 1;
    visibility: visible;
}

.gallery-arrow:hover {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-50%) scale(1.1);
}

.gallery-arrow-prev {
    left: 12px;
}

.gallery-arrow-next {
    right: 12px;
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.thumbnail-item:hover {
    border-color: var(--accent-color);
}

.thumbnail-item.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px var(--accent-color);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail {
    /*padding: 20px 60px 0;*/
}

.product-title-detail {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.product-sku {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-sku .label {
    font-weight: 600;
}

.product-price-detail {
    margin-bottom: 20px;
}

.product-price-detail .price-current {
    font-size: 2rem;
}

.discount-badge {
    display: inline-block;
    background: var(--danger-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.875rem;
    margin-left: 10px;
}

.product-availability {
    margin-bottom: 22px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.product-availability.in-stock {
    color: var(--success-color);
}

.product-availability.out-of-stock {
    color: var(--danger-color);
}

.product-description-detail {
    margin-bottom: 30px;
    line-height: 1.8;
}

.product-actions-detail {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 30px;
}

.product-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 5px 9px;
    color: var(--accent-color);
    background: #fff;
    border: 2px solid var(--accent-color);
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    cursor: pointer;
}

.product-action-btn:hover {
    color: #fff;
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.product-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

.meta-item {
    margin-bottom: 8px;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.rating i {
    color: var(--warning-color);
}

.product-full-description {
    background: var(--bg-light);
    padding: 40px 0;
}

.product-full-description h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.description-content {
    line-height: 1.8;
}

/* ========== Product Full Description ========== */
.about-full-description,
.delivery-full-description,
.payment-full-description,
.delivery-content,
.payment-content,
.richtext-content {
    line-height: 1.8;
}

/* ========== Indent Classes ========== */
.indent-1 { margin-left: 20px; }
.indent-2 { margin-left: 40px; }
.indent-3 { margin-left: 60px; }
.indent-4 { margin-left: 80px; }
.indent-5 { margin-left: 100px; }

/* ========== Indent Classes ========== */
.indent-sm { margin-left: 10px; }
.indent-md { margin-left: 20px; }
.indent-lg { margin-left: 40px; }
.indent-xl { margin-left: 60px; }

/* ========== Blog Page ========== */
.blog-header {
    padding: 40px 0;
    background: var(--bg-light);
    margin-bottom: 40px;
    text-align: center;
}

.blog-header h1 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.blog-header p {
    color: var(--text-light);
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.blog-item {
    display: flex;
    gap: 30px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all var(--transition-speed);
}

.blog-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.blog-item-image {
    width: 300px;
    height: 300px;
    flex-shrink: 0;
    overflow: hidden;
}

.blog-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed);
}

.blog-item:hover .blog-item-image img {
    transform: scale(1.05);
}

.blog-item-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.blog-item-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.blog-item-title a {
    color: var(--text-color);
}

.blog-item-title a:hover {
    color: var(--primary-color);
}

.blog-item-meta {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.blog-item-excerpt {
    flex: 1;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 15px;
}

/* ========== Article Detail Page ========== */
.article-detail {
    padding: 40px 0;
}

.article-content {
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.article-header {
    margin-bottom: 30px;
    text-align: center;
}

.article-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.article-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

.article-body p {
    margin-bottom: 20px;
}

.article-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-tags {
    display: flex;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-light);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    transition: all var(--transition-speed);
}

.share-btn:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: scale(1.1);
}

/* ========== Pagination ========== */
.pagination {
    padding: 40px 0;
    text-align: center;
}

.pagination-info {
    margin-bottom: 20px;
    color: var(--text-light);
}

.pagination-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination-page,
.pagination-prev,
.pagination-next {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-color);
    transition: all var(--transition-speed);
}

.pagination-page:hover,
.pagination-prev:hover,
.pagination-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.pagination-page.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* ========== Filters Section ========== */
.filters-section {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-start;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group2 {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group2 label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 5px;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--white);
    font-size: 0.9rem;
    transition: border-color var(--transition-speed);
    width: 100%;
    box-sizing: border-box;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--accent-color);
}


@media (max-width: 768px) {
    .filter-controls {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-group {
        flex: 0 0 calc(50% - 8px);
        min-width: calc(50% - 8px);
        margin-bottom: 0;
    }
    
    .filter-group label {
        margin-bottom: 5px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .filters-section {
        border-radius: 0 !important;
    }
    
    .filter-group {
        overflow: visible !important;
    }
    .filter-group2 {
        overflow: visible !important;
        margin-top: 6%;
    }
    
    .filter-group select {
        margin: 0 !important;
        border-radius: 0 !important;
        -webkit-appearance: menulist-button !important;
        appearance: menulist-button !important;
        background: #fff;
    }
    
    
    .filter-actions {
        flex: 0 0 100%;
        margin-top: 10px;
        text-align: center;
    }
}

/* ========== Footer ========== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-speed);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.7);
}

.footer-contact i {
    margin-top: 3px;
    color: #f76b0e;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;  
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.2s ease;
    overflow: hidden;
}

.social-link:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.25);
}

.social-link img {
    width: 50px;
    height: 50px;
    display: block;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}

/* ========== 404 Page ========== */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-content h1 {
    font-size: 6rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.error-content p {
    color: var(--text-light);
    margin-bottom: 30px;
}

/* ========== Contact Page ========== */
.contact-page {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form h2,
.contact-info-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.contact-info-section {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
}

/* ========== Navigation Category Links ========== */
/* ========== Desktop Category Links ========== */
.desktop-category {
    display: inline !important;
}

.mobile-category-menu {
    display: none !important;
    visibility: hidden;
    width: 0;
    height: 0;
    opacity: 0;
    position: absolute;
    left: -9999px;
    overflow: hidden;
    pointer-events: none;
}

/* ========== Mobile Menu Button ========== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    -webkit-appearance: none;
    appearance: none;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: #FFFFFF;
    border-radius: 2px;
    transition: all var(--transition-speed);
}

.mobile-menu-btn.active span {
    background: #000000;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ========== Responsive Design ========== */

/*  1024px */
@media (max-width: 1024px) {
    :root {
        --container-width: 960px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero-section {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .category-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .header-search .search-form input {
        width: 150px;
    }
}

/*  768px */
@media (max-width: 768px) {
    /* Mobile browsers use overlay scrolling. Mirror that behavior in local
       desktop previews so a permanent scrollbar does not steal 15px from a
       375px layout. Scrolling remains fully enabled. */
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    /* ========== Mobile Category Links ========== */
    .desktop-category {
        display: none !important;
        visibility: hidden;
        width: 0;
        height: 0;
        opacity: 0;
        position: absolute;
        left: -9999px;
        overflow: hidden;
        pointer-events: none;
    }
    
    .mobile-category-menu {
        display: block !important;
        visibility: visible;
        width: 100%;
        height: auto;
        opacity: 1;
        position: relative;
        left: auto;
        overflow: visible;
        pointer-events: auto;
    }
    
    .mobile-category-menu > a {
        display: block !important;
        width: 100%;
        padding: 15px 0;
        margin: 0;
        border-bottom: 1px solid var(--border-color);
        font-size: 1rem;
        color: #000000;
        box-sizing: border-box;
    }
    
    .mobile-menu-btn {
        display: flex !important;
    }
    
    html {
        font-size: 15px;
    }
    
    .section {
        padding: 30px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* ========== Header ========== */
    .header-top {
        padding: 6px 0;
        font-size: 0.75rem;
    }
    
    .header-main {
        padding: 15px 0;
    }

    .header-main .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .logo {
        order: 1;
        margin-right: auto;
    }
    
    .mobile-menu-btn {
        display: flex;
        order: 3;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .header-search {
        order: 3;
        width: 95%;
    }
    
    .header-search .search-form {
        width: 80%;
        height: 39px;
        border-radius: 18px;
        margin-left: 10%;
    }
    
    .search-form input {
        width: 100% !important;
        flex: 1;
    }
    
    .search-form button {
        flex-shrink: 0;
    }
    
    .nav-main {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 40px;
        box-sizing: border-box;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: right var(--transition-speed);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-main.active {
        right: 0;
        display: flex;
    }
    
.nav-main a {
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 1rem;
}

.mobile-categories-list {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-left: 2px solid #f0f0f0;
    margin-left: 10px;
}

.mobile-categories-list[style*="max-height"] {
    max-height: 150px !important;
    overflow-y: auto !important;
}

.mobile-category-menu.active .mobile-categories-list {
    max-height: none;
    overflow-y: auto;
    margin: 0;
    padding: 8px 0;
}

/* ========== Mobile Category Items ========== */
.mobile-category-item {
    list-style: none;
}

.mobile-category-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 0;
}

.mobile-category-item-row > a {
    flex: 1;
    padding: 12px 0 12px 10px;
    font-size: 0.9rem;
    border-bottom: none !important;
    color: var(--text-light) !important;
    border-radius: 4px;
    margin: 2px 0;
    display: block;
}

.mobile-category-item-row > a:hover {
    background: #f8f8f8;
    color: var(--accent-color) !important;
}

.mobile-sub-toggle {
    background: none;
    border: none;
    padding: 12px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    z-index: 1;
}

.mobile-sub-toggle.active {
    transform: rotate(180deg);
}

.mobile-sub-list,
.mobile-sub-list.open,
.mobile-sub-list[style*="max-height"] {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 150px !important;
    overflow-y: auto !important;
    transition: none !important;
}

.mobile-sub-list li a {
    display: block;
    padding: 10px 10px 10px 25px;
    font-size: 0.85rem;
    color: #666 !important;
    border-bottom: none !important;
    border-radius: 4px;
    margin: 2px 0;
}

.mobile-sub-list li a:hover {
    background: #f0f0f0;
    color: var(--accent-color) !important;
}

.category-menu-item {
    padding: 0;
    margin: 0;
}

.category-menu-item > a {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.15s ease;
}
    
    .nav-main a::after {
        display: none;
    }
    
    .nav-main a.active {
        color: var(--primary-color);
        font-weight: 600;
    }
    
    /* ========== Mobile Overlay ========== */
    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-speed);
        z-index: 999;
    }
    
    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    .header-search {
        order: 2;
        margin-right: 15px;
        margin-left: auto;
    }
    
    .mobile-menu-btn {
        order: 3;
        margin-left: 0;
        margin-right: 0;
    }
    
    .search-form input {
        width: 120px !important;
        padding: 6px 10px !important;
        font-size: 0.875rem;
    }
    
    .search-form button {
        padding: 6px 10px !important;
    }

    /* Keep the mobile header controls in a familiar physical layout even on
       RTL pages: brand on the left, menu trigger on the right. */
    .header-main-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
        direction: ltr;
    }

    .header-main-container .logo {
        order: 1;
        margin: 0 auto 0 0;
    }

    .header-main-container .mobile-menu-btn {
        order: 2;
        margin: 0;
    }

    .header-main-container .header-search {
        order: 2;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        max-width: none;
        margin: 0;
        direction: rtl;
    }

    .header-main-container .header-search .search-form {
        width: 100%;
        margin: 0;
    }

    .header-main-container .header-search .search-form input {
        min-width: 0;
    }
    
    /* ========== Hero Section ========== */
    .hero-section {
        height: 240px;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    /* ========== Product Detail Page ========== */
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-title-detail {
        font-size: 1.5rem;
    }
    
    .product-price-detail .price-current {
        font-size: 1.75rem;
    }
    
    .product-main-image {
        max-height: none;
        max-width: 100%;
        min-height: auto;
        min-width: auto;
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    
    .product-main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* ========== Blog List ========== */
    .blog-item {
        flex-direction: column;
    }
    
    .blog-item-image {
        width: 100%;
        height: 200px;
    }
    
    .category-grid,
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .product-card {
        width: 100%;
    }
    .product-image {
        width: 100%;
        aspect-ratio: 1 / 1;
    }
    .product-image img {
        width: 100%;
        height: 100%;
    }

    .blog-image {
        aspect-ratio: 1 / 1;
    }
    .blog-image img {
        width: 100%;
        height: 100%;
    }
    
    /* ========== Category Page ========== */
    .category-info {
        flex-direction: column;
    }
    
    /* ========== Article Detail ========== */
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    /* ========== Contact Page ========== */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* ========== Footer ========== */
    .footer {
        padding: 40px 0 0;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-bottom: 30px;
    }
    
    .footer-section h4 {
        margin-bottom: 15px;
    }
    
    /* ========== Form ========== */
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 14px;
        font-size: 16px; 
    }
    
    /* ========== Button ========== */
    .btn {
        padding: 9px 9px;
    }

    .btn2 {
        padding: 0;
        margin-top: 0;
    }
    
    /* ========== Pagination ========== */
    .pagination-page,
    .pagination-prev,
    .pagination-next {
        padding: 10px 14px;
        min-height: 44px;
        min-width: 44px;
    }
}

/* ========== 480px ========== */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 5px;
    }
.logo-image{
    width: 62px;
    margin-top: 5px;
    transform: translateX(0%);
}

.nav-main {
    display: flex;
    justify-content: center;
}

.nav-main a {
    color: #000000;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.15s ease;
}

.search-form {
    display: flex;
    border: 1px solid #333333;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #111111;
    transition: all 0.2s ease;
}

.search-form:focus-within {
    border-color: var(--accent-color);
    background: #000000;
    box-shadow: 0 0 0 3px rgba(247, 107, 14, 0.1);
}

.search-form input {
    padding: 10px 14px;
    border: none;
    width: 220px;
    outline: none;
    font-size: 0.875rem;
}

.search-form input::placeholder {
    color: #888888;
}

.search-form button {
    padding: 10px 16px;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: -1%;
}

.search-form button:hover {
    background: var(--accent-color);
    color: #000000;
}
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .error-content h1 {
        font-size: 4rem;
    }
    
    /* ========== Touch Target Min Size ========== */
    a, button, input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ========== Landscape Phone ========== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        height: 250px;
    }
    
    .nav-main {
        padding-top: 60px;
        overflow-y: auto;
    }
}

/* ========== High Resolution Screen ========== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ========== Product Tabs Section ========== */
.product-tabs-section {
    padding: 40px 0;
    background: var(--bg-light);
}

.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
}

.product-tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-timing);
    position: relative;
}

.product-tab-btn:hover {
    color: var(--text-color);
}

.product-tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.product-tab-btn i {
    font-size: 1.1rem;
}

.product-tabs-content {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 30px;
    min-height: 200px;
}

.product-tab-panel {
    display: none;
}

.product-tab-panel.active {
    display: block;
}

.description-content {
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1rem;
}

/* Parameters table inside tabs */
.parameters-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.parameters-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.parameters-table tbody tr {
    transition: background var(--transition-speed);
}

.parameters-table tbody tr.even {
    background: var(--bg-light);
}

.parameters-table tbody tr.odd {
    background: var(--white);
}

.parameters-table tbody tr:hover {
    background: #fff3e8;
}

.parameters-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.parameters-table tr:last-child td {
    border-bottom: none;
}

.param-label {
    width: 280px;
    min-width: 200px;
    font-weight: 600;
    color: var(--text-color);
    background: rgba(247, 107, 14, 0.05);
}

.param-value {
    color: var(--text-light);
}

@media (max-width: 768px) {
    .product-tabs-section {
        padding: 20px 0;
    }
    
    .product-tab-btn {
        padding: 12px 18px;
        font-size: 0.875rem;
    }
    
    .product-tab-btn i {
        font-size: 0.95rem;
    }
    
    .product-tabs-content {
        padding: 20px 15px;
    }
    
    .parameters-table td {
        padding: 12px 14px;
        font-size: 0.875rem;
    }
    
    .param-label {
        width: 160px;
        min-width: 120px;
    }
}

/* ========== Cart Page ========== */
.cart-page {
    padding: 40px 0;
}

.cart-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.cart-header-actions h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin: 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr 100px 100px 30px;
    gap: 15px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-title {
    font-size: 1rem;
    margin-bottom: 5px;
    line-height: 1.4;
}

.cart-item-title a {
    color: var(--text-color);
    text-decoration: none;
}

.cart-item-title a:hover {
    color: var(--accent-color);
}

.cart-item-sku {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: 600;
    color: var(--text-color);
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    max-width: 130px;
}

.qty-btn {
    width: 34px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--accent-color);
    color: var(--white);
}

.qty-input {
    width: 42px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}

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

.cart-item-total {
    text-align: right;
    font-size: 1.05rem;
}

.btn-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    color: #ccc;
    font-size: 1.2rem;
    transition: all 0.2s;
}

.btn-remove:hover {
    background: var(--danger-color);
    color: var(--white);
}

.cart-summary {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid var(--accent-color);
}

.cart-summary-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    font-size: 1.2rem;
}

.cart-total-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-color);
}

/* Checkout Form */
.checkout-section {
    background: var(--bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.checkout-form-container h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.checkout-info {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 25px;
}

/* Responsive */
@media (max-width: 992px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .checkout-section {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 70px 1fr 70px;
        grid-template-rows: auto auto auto;
        gap: 10px;
    }
    
    .cart-item-image {
        width: 70px;
        height: 70px;
        grid-row: 1 / 3;
    }
    
    .cart-item-details {
        grid-column: 2 / 4;
    }
    
    .cart-item-quantity {
        grid-column: 2;
        grid-row: 2;
    }
    
    .cart-item-total {
        grid-column: 3;
        grid-row: 2;
        text-align: right;
    }
    
    .cart-item-remove {
        position: absolute;
        right: 10px;
        top: 10px;
    }
    
    .cart-item {
        position: relative;
    }
    
    .cart-header-actions {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}

/* ========== Utilities ========== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 40px; }

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mb-4 { margin-bottom: 40px; }

.hidden { display: none; }
.visible { display: block; }


/* ========== Floating Telegram Chat Button ========== */
.telegram-chat-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #0088cc;
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 136, 204, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.telegram-chat-btn:hover {
    background: #0077b5;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.5);
}

.telegram-chat-btn img {
    border-radius: 50%;
    flex-shrink: 0;
}

.telegram-chat-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .telegram-chat-btn {
        bottom: 16px;
        right: 16px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .telegram-chat-btn img {
        width: 24px;
        height: 24px;
    }
}

.chat-menu{
    position:fixed;
    right:20px;
    bottom:24px;
    z-index:9999;
}

.chat-btn{
    width:56px;
    height:56px;
    border:none;
    border-radius:50%;
    background:#229ED9;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    box-shadow:0 4px 12px rgba(0,0,0,.2);
    transition:.2s;
    color:#fff;
    font-size:25px;
}

.chat-dropdown{
    display:none;
    position:absolute;
    bottom:66px;
    right:0;
    width:150px;
    background:#fff;
    border-radius:10px;
    box-shadow:0 6px 18px rgba(0,0,0,.15);
    overflow:hidden;
}

.chat-menu.open .chat-dropdown{ display:block; }

.chat-dropdown a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px 16px;
    color:#333;
    text-decoration:none;
}

.chat-dropdown a:hover{
    background:#f5f5f5;
}

.chat-dropdown .fa-telegram{color:#229ED9;font-size:21px;}
.chat-dropdown .fa-whatsapp{color:#20c763;font-size:21px;}

.chat-btn:hover{
    transform:scale(1.05);
}

.chat-btn img{
    display:block;
}

@media (max-width:768px){
    .chat-menu{right:16px;bottom:16px;}
}

/* Floating WhatsApp contact */
.whatsapp-chat-btn {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #2ee071 0%, #16a84f 100%);
    border: 2px solid rgba(255, 255, 255, .9);
    box-shadow: 0 8px 24px rgba(13, 117, 55, .28), 0 2px 6px rgba(0, 0, 0, .14);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.whatsapp-chat-btn:hover {
    color: #fff;
    transform: translateY(-3px) scale(1.04);
    filter: saturate(1.08);
    box-shadow: 0 12px 28px rgba(13, 117, 55, .34), 0 3px 8px rgba(0, 0, 0, .16);
}

.whatsapp-chat-btn i {
    font-size: 32px;
    line-height: 1;
}

@media (max-width: 768px) {
    .whatsapp-chat-btn { right: 16px; bottom: 16px; width: 56px; height: 56px; }
    .whatsapp-chat-btn i { font-size: 30px; }
}


.yikb-advantages{
    padding:80px 0;
    background:#f5f7fb;
}

.yikb-advantages .container{
    max-width:1320px;
    margin:auto;
    padding:0 20px;
}

.section-title{
    text-align:center;
    font-size:40px;
    font-weight:700;
    color:#000000;
    margin-bottom:60px;
}

.adv-wrapper{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.adv-tabs{
    width:320px;
    flex-shrink:0;
}

.adv-tab{
    display:flex;
    align-items:center;
    gap:15px;

    padding:22px 25px;

    margin-bottom:15px;

    border-radius:14px;

    background:#fff;

    cursor:pointer;

    font-size:18px;

    font-weight:600;

    transition:.35s;

    border:1px solid #e8edf5;

    color:#333;

    box-shadow:0 5px 18px rgba(0,0,0,.04);
}

.adv-tab i{

    width:36px;

    height:36px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:#eef4ff;

    color:#f76b0e;

    font-size:18px;

    transition:.35s;

}

.adv-tab:hover{

    transform:translateX(8px);

    box-shadow:0 18px 35px rgba(0,0,0,.08);

}

.adv-tab.active{

    background:#f76b0e;

    color:#fff;

}

.adv-tab.active i{

    background:rgba(255,255,255,.2);

    color:#fff;

}

.adv-content{

    flex:1;

    background:#fff;

    border-radius:18px;

    padding:45px;

    box-shadow:0 15px 45px rgba(0,0,0,.08);

    position:relative;

}

.tab-content{

    display:none;

    animation:fade .35s;

}

.tab-content.active{

    display:block;

}

.tab-content h3{

    font-size:34px;

    margin-bottom:35px;

    color:#000000;

    font-weight:700;

}

.grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:25px;

}

.item{

    display:flex;

    gap:20px;

    padding:25px;

    border-radius:15px;

    border:1px solid #edf1f6;

    transition:.35s;

    background:#fff;

}

.item:hover{

    transform:translateY(-6px);

    box-shadow:0 18px 40px rgba(0,0,0,.08);

}

.item i{

    width:56px;

    height:56px;

    min-width:56px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:#f76b0e;

    color:#fff;

    font-size:22px;

}

.item strong{

    display:block;

    font-size:20px;

    color:#222;

    margin-bottom:10px;

}

.item p{

    color:#666;

    line-height:1.7;

    margin:0;

}

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(18px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

@media(max-width:992px){

    .adv-wrapper{
        flex-direction:column;
    }

    .adv-tabs{
        width:100%;
        display:flex;
        overflow:auto;
        gap:15px;
        margin-bottom:30px;
    }

    .adv-tab{
        min-width:240px;
        margin:0;
    }
    .grid{
        grid-template-columns:1fr;
    }

    .adv-content{
        padding:30px;
        min-height:auto;
    }
}

@media(max-width:576px){
    .section-title{
        font-size:30px;
    }

    .tab-content h3{
        font-size:26px;
    }
    .adv-tab{
        font-size:16px;
    }
    .item strong{
        font-size:18px;
    }
}

.contact-btn{
    display:inline-block;
    margin-top:20px;
    padding:12px 26px;
    background:#f76b0e;
    color:#fff;
    border-radius:6px;
    text-decoration:none;
    font-weight:600;
    transition:.3s;
}

.contact-btn:hover{
    background:#f76b0e;
    color:#fff;
}
/* Arabic / RTL localization */
html[dir="rtl"] body {
    direction: rtl;
    text-align: right;
    font-family: var(--font-main);
}

/* Refined regional B2B theme overrides */
.btn-primary,
.btn-secondary,
.adv-tab.active,
.item i,
.contact-btn {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-outline-category:hover,
.contact-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-outline,
.btn-outline-category,
.footer-contact i,
.search-form button {
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.section.bg-light,
.category-section,
.services-section {
    background: var(--bg-gray);
}

.product-card,
.category-card,
.article-card,
.adv-content,
.contact-form-section,
.contact-info-section {
    background-color: #fff;
    border-color: var(--border-color);
}

.stat-number,
.stat-label,
.item strong {
    color: var(--primary-color);
}
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] input::placeholder,
html[dir="rtl"] textarea::placeholder {
    direction: rtl;
    text-align: right;
}

/* Email addresses and phone numbers must retain their natural character
   order inside an otherwise RTL form. */
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[inputmode="email"],
html[dir="rtl"] input[inputmode="tel"] {
    direction: ltr;
    text-align: right;
}
html[dir="rtl"] .fa,
html[dir="rtl"] .fa-solid,
html[dir="rtl"] .fa-regular,
html[dir="rtl"] .fa-brands { direction: ltr; }
html[dir="rtl"] .fa-chevron-right,
html[dir="rtl"] .fa-arrow-right { transform: scaleX(-1); }

/* Gallery arrows describe the physical image direction and must not be RTL-flipped. */
html[dir="rtl"] .gallery-arrow .fa-chevron-left,
html[dir="rtl"] .gallery-arrow .fa-chevron-right {
    transform: none;
}

/* ========== ABB visual system ========== */
body { background: #fff; direction: ltr; text-align: left; }
.header { background: #fff; border-bottom: 1px solid var(--border-color); }
.header-top { background: #222; }
.header-main-container { direction: ltr; padding: 13px 0; }
.nav-main, .header-search, .search-form { direction: ltr; }
.nav-main { gap: 26px; }
.nav-main a { color: #222; letter-spacing: .025em; }
.nav-main a:hover, .nav-main a.active { color: var(--accent-color); }
.logo { display: flex; align-items: center; }
.yikb-ru-logo { display: inline-flex; align-items: center; min-width: 132px; line-height: 0; }
.yikb-ru-logo .logo-image { display: block; width: 132px; height: 68px; margin: 0; object-fit: contain; object-position: left center; transform: none; }
.header-search .search-form { border: 1px solid #d7d7d7; border-radius: 999px; overflow: hidden; background: #f7f7f7; }
.header-search { gap: 14px; }
.header-cart { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 8px 12px; color: #222; border: 1px solid #ddd; white-space: nowrap; }
.header-cart:hover { color: var(--accent-color); border-color: var(--accent-color); }
.header-cart-count { display: inline-flex; align-items: center; justify-content: center; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 11px; color: #fff; background: var(--accent-color); font-size: .75rem; font-weight: 700; }
.nav-main .header-cart { min-height: auto; padding: 8px 0; border: 0; }
.nav-main .header-cart:hover { border: 0; }
.nav-main .header-cart-count { color: #fff; }
.search-form button { color: #fff; background: var(--accent-color); }
.search-form button:hover { color: #fff; background: var(--accent-hover); }
.hero-section { height: 520px; }
.hero-slide { background-image: linear-gradient(120deg, #171717 0%, #292929 55%, #b4000b 55%, #ff000f 100%) !important; }
.hero-slide:nth-child(2) { background-image: linear-gradient(135deg, #f3f3f3 0%, #dadada 58%, #ff000f 58%, #bc000b 100%) !important; }
.hero-slide:nth-child(2) .hero-content { color: #1f1f1f; }
.hero-slide:nth-child(3) { background-image: linear-gradient(110deg, #111 0%, #303030 68%, #ff000f 68%, #ff000f 100%) !important; }
.hero-overlay { background: linear-gradient(90deg, rgba(18,18,18,.88) 0%, rgba(18,18,18,.48) 55%, rgba(18,18,18,.08) 100%); }
.hero-slide:nth-child(2) .hero-overlay { background: linear-gradient(90deg, rgba(255,255,255,.92), rgba(255,255,255,.28) 62%, transparent); }
.hero-content { max-width: 680px; }
.hero-content h2 { font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.08; margin-bottom: 22px; }
.btn, .btn2, .btn3 { border-radius: 2px; }
.btn-primary, .btn-secondary { background: var(--accent-color); border-color: var(--accent-color); }
.btn-primary:hover, .btn-secondary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-outline, .btn-outline-category { color: var(--accent-color); border-color: var(--accent-color); }
.btn-outline:hover, .btn-outline-category:hover { background: var(--accent-color); color: #fff; }
.section:nth-of-type(even) { background: var(--bg-gray); }
.section-header h2 { font-weight: 700; color: #222; }
.section-header h2::after { content: ''; display: block; width: 52px; height: 3px; margin: 14px auto 0; background: var(--accent-color); }
.feature-card, .product-card, .blog-card { border-radius: 2px; }
.product-card:hover, .product-card-link:hover { transform: translateY(-3px); border-color: #cfcfcf; box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.price-current { color: var(--accent-color); }
.footer { background: #222; }
.footer-contact i { color: var(--accent-color); }
.add-to-cart-form { display: inline-flex; margin: 0; }
.cart-notice { margin: 0 0 22px; padding: 13px 17px; color: #185b35; background: #e8f7ee; border-left: 3px solid #249d55; }
.cart-error { margin: 0 0 22px; padding: 13px 17px; color: #8a1520; background: #fff0f1; border-left: 3px solid var(--accent-color); }
.cart-empty { padding: 80px 20px; text-align: center; background: var(--bg-gray); border: 1px solid var(--border-color); }
.cart-empty i { margin-bottom: 20px; color: var(--accent-color); font-size: 3rem; }
.cart-empty h2, .cart-empty p { margin-bottom: 15px; }
.cart-summary-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.cart-page > .container { max-width: 1440px; }
.cart-layout { grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 40px; }
.cart-products-panel { min-width: 0; }
.cart-header-actions h1 { font-size: 1.25rem; }
.cart-items-form .cart-item { grid-template-columns: 90px minmax(240px, 1fr) 100px 120px 32px; }
.cart-summary { border-top-color: var(--accent-color); }
.checkout-section { background: #fafafa; border-radius: 8px; padding: 30px; }
.checkout-form-container h2 { margin-bottom: 12px; font-size: 1.4rem; color: #222; }
.checkout-form { display: flex; flex-direction: column; gap: 20px; }
.checkout-form label { display: flex; flex-direction: column; gap: 8px; color: #222; font-size: .95rem; font-weight: 600; }
.checkout-form input, .checkout-form textarea { width: 100%; padding: 12px 14px; color: #222; background: #fff; border: 1px solid #ddd; border-radius: 3px; font: inherit; font-weight: 400; outline: none; }
.checkout-form input:focus, .checkout-form textarea:focus { border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(255,0,15,.08); }
.checkout-form textarea { resize: vertical; min-height: 140px; }
.checkout-submit { width: 100%; min-height: 48px; color: #fff; background: var(--accent-color); border: 1px solid var(--accent-color); border-radius: 3px; font-size: 1rem; font-weight: 700; cursor: pointer; }
.checkout-submit:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.abb-brand-panel { min-height: 390px; padding: 52px; display: flex; flex-direction: column; justify-content: flex-end; gap: 13px; color: #fff; background: linear-gradient(145deg, #171717 0%, #303030 68%, #ff000f 68%); }
.abb-panel-logo { align-self: flex-start; color: #fff; font-size: 4rem; line-height: 1; font-weight: 900; letter-spacing: -.12em; font-style: italic; }
.abb-brand-panel strong { max-width: 430px; font-size: 2rem; line-height: 1.2; }
.abb-brand-panel > span:last-child { color: rgba(255,255,255,.78); }

@media (max-width: 1200px) {
    .yikb-ru-logo { min-width: 112px; }
    .nav-main { gap: 16px; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-section { position: static; }
}

@media (max-width: 768px) {
    /* Keep the mobile search header visible while the page scrolls. */
    .header { position: sticky !important; top: 0; z-index: 1100; }
    .nav-main {
        justify-content: flex-start;
        width: min(86vw, 320px);
        max-width: none;
        padding: 76px 26px 24px;
        gap: 0;
        z-index: 1200;
    }
    .nav-main a {
        width: 100%;
        padding: 16px 0;
    }
    .header-main-container .mobile-menu-btn.active {
        position: fixed;
        top: 12px;
        right: 16px;
        z-index: 1201;
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    .hero-section { height: 430px; }
    .header-main-container { padding: 9px 14px; gap: 10px; }
    .yikb-ru-logo { min-width: 42px; }
    .yikb-ru-logo .logo-image { width: 42px; height: 42px; margin: 0; }
    .header-main-container .header-search {
        flex: 0 1 235px;
        max-width: 235px;
    }
    .header-main-container .header-search .search-form {
        height: 36px;
        overflow: hidden;
        border-radius: 999px;
    }
    .header-main-container .header-search .search-form input {
        width: 0 !important;
        flex: 1 1 auto;
        padding: 6px 9px !important;
        font-size: .8rem;
    }
    .header-main-container .header-search .search-form button {
        width: 40px;
        padding: 6px !important;
    }
    .header-main-container .mobile-menu-btn {
        width: 36px;
        height: 36px;
        padding: 6px;
        gap: 5px;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 0;
    }
    .mobile-menu-btn span,
    .mobile-menu-btn.active span {
        width: 23px;
        height: 2px;
        background: var(--accent-color);
    }
    .header-cart-label { display: none; }
    .header-cart { padding: 8px; }
    .cart-summary-actions { flex-direction: column; }
}
