/* ═══════════════════════════════════════════════════════
   Cross The Limits — Main Stylesheet
   Black & Yellow, Bold Sport/Supplement Aesthetic
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ───────────────────────────── */
:root {
    --primary: #f3c117;
    --primary-lg: #ffcc25;
    --secondary: #080808;
    --orange: #e44a16;
    --green: #00bd03;
    --green-dark: #007202;
    --white: #fff;
    --beige: #f1f0eb;
    --beige-dark: #e7e4da;
    --lightbg: #f7f7f7;
    --lightbg-md: #e9e9e9;
    --gray: #999;
    --gray-dark: #333;
    --gray-md: #666;
    --border: #dfdfdf;
    --border-dark: #ccc;

    --overlay: rgba(8,8,8,.25);
    --overlay2: rgba(8,8,8,.95);

    --bigshadow: 0 12px 24px 0 rgba(0,0,0,.35);
    --smallshadow: 0 4px 20px rgba(17,17,17,.08);
    --shadow: 0 4px 16px rgba(75,97,136,.15);
    --focus: 0 0 0 4px rgba(0,0,0,.05);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius: 12px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --transition: .1s cubic-bezier(.28,0,.18,1);
}

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--secondary);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--primary); color: var(--white); }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
    width: 100%;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    padding: 0 24px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: var(--radius);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn:hover { background: var(--secondary); color: var(--white); }

.btn-sm {
    height: 38px;
    padding: 0 16px;
    font-size: 14px;
    border-radius: var(--radius-md);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--gray-dark);
}
.btn-outline:hover { background: var(--secondary); color: var(--white); border-color: var(--secondary); }

.btn-outline-light {
    background: transparent;
    border: 1px solid rgba(255,255,255,.4);
    color: var(--white);
}
.btn-outline-light:hover { background: var(--white); color: var(--secondary); }

/* ── Top Bar ─────────────────────────────────────────── */
.top-bar {
    background: var(--secondary);
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
}
.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-text { opacity: .9; }
.top-bar-text i { color: var(--primary); margin-right: 6px; }
.top-bar-right { display: flex; gap: 20px; align-items: center; }
.top-bar-right a { color: rgba(255,255,255,.8); font-size: 13px; }
.top-bar-right a:hover { color: var(--primary); }
.top-bar-right a i { margin-right: 4px; }

/* ── Main Header ─────────────────────────────────────── */
.main-header {
    background: var(--white);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.site-logo { flex-shrink: 0; }
.logo-text {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--secondary);
}
.logo-accent { color: var(--primary); }
.site-logo img { max-height: 44px; width: auto; }
.custom-logo-link img { max-height: 44px; width: auto; }

.header-search {
    flex: 1;
    max-width: 540px;
}
.header-search form {
    display: flex;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}
.header-search form:focus-within { border-color: var(--primary); }
.header-search input[type="search"] {
    flex: 1;
    border: none;
    padding: 10px 16px;
    font-size: 15px;
    font-family: var(--font);
    outline: none;
    background: transparent;
}
.header-search button {
    background: var(--primary);
    border: none;
    padding: 0 16px;
    cursor: pointer;
    color: var(--secondary);
    font-size: 16px;
    transition: background var(--transition);
}
.header-search button:hover { background: var(--primary-lg); }

.header-actions { display: flex; gap: 16px; align-items: center; }
.header-action {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
    color: var(--secondary);
    transition: background var(--transition);
    position: relative;
}
.header-action:hover { background: var(--lightbg); }
.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: var(--secondary);
    font-size: 11px;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary);
    padding: 8px;
}

/* ── Main Navigation ─────────────────────────────────── */
.main-nav {
    background: var(--secondary);
}
.main-nav .container { position: relative; }
.nav-menu {
    display: flex;
    align-items: center;
}
.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 18px;
    color: var(--white);
    font-size: 15px;
    font-weight: 600;
    transition: color var(--transition);
}
.nav-item > a i { font-size: 10px; transition: transform .2s; }
.nav-item:hover > a { color: var(--primary); }
.nav-item:hover > a i { transform: rotate(180deg); }

/* ── Mega Menu ───────────────────────────────────────── */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 3px solid var(--primary);
    box-shadow: var(--bigshadow);
    padding: 24px 32px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
}
.nav-item.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.mega-menu-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}
.mega-link {
    display: block;
    padding: 10px 16px;
    color: var(--gray-dark);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all var(--transition);
}
.mega-link:hover {
    background: var(--lightbg);
    color: var(--secondary);
}

/* ── Mobile Menu ─────────────────────────────────────── */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay2);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}
.mobile-menu-overlay.active { opacity: 1; visibility: visible; }

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    background: var(--white);
    z-index: 999;
    transform: translateX(-100%);
    transition: transform .3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-menu.active { transform: translateX(0); }

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-title { font-size: 18px; font-weight: 700; }
.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-search {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}
.mobile-menu-search form {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.mobile-menu-search input {
    flex: 1;
    border: none;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
}
.mobile-menu-search button {
    background: var(--primary);
    border: none;
    padding: 0 12px;
    cursor: pointer;
}

.mobile-nav { flex: 1; padding: 8px 0; }
.mobile-nav-item { border-bottom: 1px solid var(--border); }
.mobile-nav-item > a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 600;
}
.mobile-nav-item.has-children { position: relative; }
.mobile-sub-toggle {
    position: absolute;
    top: 6px;
    right: 12px;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mobile-sub-menu {
    display: none;
    padding: 0 0 8px 20px;
}
.mobile-sub-menu.active { display: block; }
.mobile-sub-menu li a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    color: var(--gray-md);
}
.mobile-sub-menu li a:hover { color: var(--primary); }

.mobile-menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.mobile-menu-footer a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

/* ── Cart Drawer ─────────────────────────────────────── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay2);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
}
.cart-overlay.active { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    background: var(--white);
    z-index: 999;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex;
    flex-direction: column;
}
.cart-drawer.active { transform: translateX(0); }

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 { font-size: 18px; font-weight: 700; }
.cart-drawer-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
}

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.cart-drawer-empty {
    text-align: center;
    color: var(--gray);
    padding: 40px 0;
}
.cart-drawer-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cart-drawer-item-img { width: 64px; flex-shrink: 0; }
.cart-drawer-item-img img { border-radius: var(--radius-sm); }
.cart-drawer-item-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cart-drawer-item-qty { font-size: 13px; color: var(--gray-md); }

.cart-drawer-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}
.cart-drawer-btn { width: 100%; text-align: center; }

/* ── Hero Section ────────────────────────────────────── */
.hero-section {
    background: var(--secondary);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--primary);
    border-radius: 50%;
    opacity: .06;
}
.hero-content { max-width: 700px; position: relative; z-index: 1; }
.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.hero-subtitle {
    font-size: 20px;
    color: rgba(255,255,255,.75);
    line-height: 1.5;
    margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; margin-bottom: 40px; }
.hero-badges { display: flex; gap: 24px; flex-wrap: wrap; }
.hero-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,.7);
}
.hero-badge i { color: var(--primary); }

/* ── Section Titles ──────────────────────────────────── */
.section-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
}
.section-title.light { color: var(--white); }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}
.section-header .section-title { margin-bottom: 0; }
.section-link {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
}
.section-link:hover { color: var(--secondary); }

/* ── Goals Section ───────────────────────────────────── */
.goals-section { padding: 60px 0; }
.goals-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.goal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    background: var(--lightbg);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
}
.goal-card:hover { background: var(--primary); }
.goal-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    color: var(--primary);
    border-radius: 50%;
    font-size: 22px;
}
.goal-card:hover .goal-icon { background: var(--white); color: var(--secondary); }
.goal-label { font-size: 15px; font-weight: 600; }

/* ── Categories Section (dark) ───────────────────────── */
.categories-section { padding: 80px 0; }
.darkbg { background: var(--secondary); }
.lightbg { background: var(--lightbg); }

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.category-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3/2;
    display: block;
}
.category-card-img {
    width: 100%;
    height: 100%;
}
.category-card-img img { width: 100%; height: 100%; object-fit: cover; }
.category-card-placeholder { background: var(--gray-dark); width: 100%; height: 100%; }
.category-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,8,8,.9) 0%, rgba(8,8,8,.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    color: var(--white);
    transition: background .3s;
}
.category-card:hover .category-card-overlay { background: linear-gradient(to top, rgba(243,193,23,.9) 0%, rgba(8,8,8,.4) 60%, transparent 100%); }
.category-card-overlay h3 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.category-card-overlay p { font-size: 14px; opacity: .8; margin-bottom: 4px; }
.category-card-count { font-size: 13px; font-weight: 600; color: var(--primary); }
.category-card:hover .category-card-count { color: var(--white); }

/* ── Products Section ────────────────────────────────── */
.products-section { padding: 60px 0; }

/* ── Products Slider ─────────────────────────────────── */
.products-slider .slick-list { margin: 0 -10px; }
.products-slider .slick-slide { padding: 0 10px; }
.products-slider .slick-prev,
.products-slider .slick-next {
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50%;
    z-index: 10;
    box-shadow: var(--smallshadow);
}
.products-slider .slick-prev { left: -16px; }
.products-slider .slick-next { right: -16px; }
.products-slider .slick-prev:before,
.products-slider .slick-next:before { color: var(--secondary); font-size: 16px; }

/* ── Product Card ────────────────────────────────────── */
.ctl-product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition);
    height: 100%;
}
.ctl-product-card:hover { box-shadow: var(--shadow); }

.ctl-product-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ctl-product-img-wrap {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--lightbg);
}
.ctl-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s;
}
.ctl-product-card:hover .ctl-product-img { transform: scale(1.05); }

.ctl-sale-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--orange);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.ctl-product-brand {
    display: block;
    padding: 12px 16px 0;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray);
    letter-spacing: .03em;
}

.ctl-product-title {
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px 8px;
    line-height: 1.4;
    color: var(--secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ctl-product-price {
    padding: 0 16px 12px;
    font-size: 16px;
    font-weight: 700;
    color: var(--secondary);
}
.ctl-product-price del {
    color: var(--gray);
    font-weight: 400;
    font-size: 14px;
    margin-right: 6px;
}
.ctl-product-price ins {
    text-decoration: none;
    color: var(--orange);
}

.ctl-add-to-cart {
    margin: auto 16px 16px;
    width: calc(100% - 32px);
    text-align: center;
}

/* ── Deals Banner ────────────────────────────────────── */
.deals-banner { padding: 0; }
.deals-banner-inner {
    background: var(--primary);
    border-radius: var(--radius);
    padding: 48px;
    display: flex;
    align-items: center;
}
.deals-content { max-width: 500px; }
.deals-label {
    display: inline-block;
    background: var(--secondary);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}
.deals-content h2 { font-size: 32px; font-weight: 700; margin-bottom: 8px; color: var(--secondary); }
.deals-content p { font-size: 16px; margin-bottom: 20px; color: rgba(8,8,8,.7); }
.deals-content .btn { background: var(--secondary); color: var(--white); }
.deals-content .btn:hover { background: var(--white); color: var(--secondary); }

/* ── Brands Section ──────────────────────────────────── */
.brands-section { padding: 60px 0; }
.brands-slider { overflow: hidden; }
.brand-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: var(--lightbg);
    border-radius: var(--radius-md);
    margin: 0 8px;
    min-height: 60px;
}
.brand-logo-item span {
    font-size: 14px;
    font-weight: 700;
    color: var(--gray-md);
    text-transform: uppercase;
    letter-spacing: .02em;
}
.brand-logo-item:hover span { color: var(--secondary); }

/* ── Advantages Section ──────────────────────────────── */
.advantages-section { padding: 80px 0; }
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.advantage-card {
    text-align: center;
    color: var(--white);
    padding: 32px 20px;
}
.advantage-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    font-size: 24px;
    margin: 0 auto 20px;
}
.advantage-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.advantage-card p { font-size: 14px; color: rgba(255,255,255,.7); line-height: 1.6; }

/* ── SEO Section ─────────────────────────────────────── */
.seo-section { padding: 60px 0; background: var(--lightbg); }
.seo-content { max-width: 900px; }
.seo-content h2 { font-size: 24px; font-weight: 700; margin-bottom: 16px; }
.seo-content p { font-size: 15px; color: var(--gray-md); line-height: 1.8; margin-bottom: 16px; }

/* ── Newsletter Footer ───────────────────────────────── */
.footer-newsletter {
    background: var(--primary);
    padding: 48px 0;
}
.newsletter-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.newsletter-text h3 { font-size: 24px; font-weight: 700; color: var(--secondary); }
.newsletter-text p { font-size: 15px; color: rgba(8,8,8,.7); }
.newsletter-form {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.newsletter-form input {
    padding: 12px 16px;
    border: 2px solid var(--secondary);
    border-radius: var(--radius);
    font-size: 15px;
    font-family: var(--font);
    width: 280px;
    background: var(--white);
}
.newsletter-form .btn { background: var(--secondary); color: var(--white); }
.newsletter-form .btn:hover { background: var(--white); color: var(--secondary); }

/* ── Footer ──────────────────────────────────────────── */
.footer-main {
    background: var(--secondary);
    color: var(--white);
    padding: 60px 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,.7);
    transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--primary); }

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: rgba(255,255,255,.7);
}
.footer-contact i { color: var(--primary); width: 16px; }

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}
.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 14px;
    transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: var(--secondary); }

.footer-payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.payment-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,.1);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: rgba(255,255,255,.8);
}

.footer-bottom {
    background: #050505;
    padding: 20px 0;
}
.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.5); }

/* ── Breadcrumbs ─────────────────────────────────────── */
.ctl-breadcrumbs {
    padding: 16px 0;
    font-size: 13px;
    color: var(--gray);
    background: var(--lightbg);
}
.ctl-breadcrumbs a { color: var(--gray-md); }
.ctl-breadcrumbs a:hover { color: var(--primary); }
.ctl-breadcrumbs i { font-size: 9px; margin: 0 6px; color: var(--border-dark); }

/* ── Shop / Archive ──────────────────────────────────── */
.woo-content { padding: 40px 0; }

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.woocommerce ul.products li.product {
    margin: 0;
    padding: 0;
    width: 100%;
    float: none;
}

.woocommerce-result-count { font-size: 14px; color: var(--gray-md); }
.woocommerce-ordering select {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-family: var(--font);
}

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 40px;
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li {
    border: none;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-dark);
    background: var(--white);
    text-decoration: none;
}
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
}

/* ── PDP ─────────────────────────────────────────────── */
.ctl-pdp-brand { margin-bottom: 4px; }
.ctl-pdp-brand a {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
}
.ctl-pdp-brand a:hover { color: var(--secondary); }

.ctl-stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green);
    margin: 8px 0 16px;
}

.ctl-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.ctl-share span { font-size: 14px; font-weight: 600; }
.ctl-share a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--gray-md);
    font-size: 14px;
}
.ctl-share a:hover { background: var(--primary); border-color: var(--primary); color: var(--secondary); }

/* ── WooCommerce Single Product overrides ────────────── */
.woocommerce div.product .woocommerce-product-gallery { width: 50%; }
.woocommerce div.product .summary { width: 46%; }

.woocommerce div.product p.price {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}
.woocommerce div.product p.price del { font-size: 20px; color: var(--gray); }
.woocommerce div.product p.price ins { text-decoration: none; color: var(--orange); }

.woocommerce div.product .quantity .qty {
    width: 60px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 16px;
    font-family: var(--font);
}

.single_add_to_cart_button {
    background: var(--primary) !important;
    color: var(--secondary) !important;
    height: 48px !important;
    border-radius: var(--radius) !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 0 32px !important;
    border: none !important;
    transition: all var(--transition) !important;
}
.single_add_to_cart_button:hover {
    background: var(--secondary) !important;
    color: var(--white) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 40px 0 0;
    border-bottom: 2px solid var(--border);
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    border-radius: 0;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-md);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--secondary);
    border-bottom-color: var(--primary);
}

.woocommerce div.product .woocommerce-tabs .panel {
    padding: 24px 0;
}

/* ── Checkout ────────────────────────────────────────── */
.woocommerce-checkout .woocommerce { max-width: 100%; }

.woocommerce form .form-row label { font-size: 14px; font-weight: 600; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: var(--font);
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: var(--focus);
}

#place_order {
    background: var(--primary) !important;
    color: var(--secondary) !important;
    height: 52px !important;
    border-radius: var(--radius) !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    width: 100%;
    border: none !important;
    transition: all var(--transition) !important;
}
#place_order:hover {
    background: var(--secondary) !important;
    color: var(--white) !important;
}

/* ── My Account ──────────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid var(--border);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child { border-bottom: none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-dark);
    transition: all var(--transition);
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: var(--primary);
    color: var(--secondary);
}

/* ── Blog / Posts ────────────────────────────────────── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}
.post-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-body { padding: 20px; }
.post-card-meta { font-size: 13px; color: var(--gray); margin-bottom: 8px; display: flex; gap: 12px; }
.post-card-title { font-size: 18px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.post-card-title a { color: var(--secondary); }
.post-card-title a:hover { color: var(--primary); }
.post-card-excerpt { font-size: 14px; color: var(--gray-md); line-height: 1.6; margin-bottom: 12px; }
.post-card-link { font-size: 14px; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 6px; }

/* ── Single Post ─────────────────────────────────────── */
.single-post .container { max-width: 800px; }
.single-post { padding: 40px 0 60px; }
.article-header { margin-bottom: 32px; }
.article-meta { display: flex; gap: 16px; font-size: 14px; color: var(--gray); margin-bottom: 12px; }
.article-title { font-size: 36px; font-weight: 700; line-height: 1.2; }
.article-featured { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.article-featured img { width: 100%; }
.article-content { font-size: 16px; line-height: 1.8; color: var(--gray-dark); }
.article-content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 16px; color: var(--secondary); }
.article-content h3 { font-size: 20px; font-weight: 700; margin: 24px 0 12px; color: var(--secondary); }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { margin: 16px 0; padding-left: 24px; }
.article-content li { margin-bottom: 8px; list-style: disc; }
.article-content ol li { list-style: decimal; }
.article-content img { border-radius: var(--radius); margin: 24px 0; }

.article-footer { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border); }
.article-share { display: flex; gap: 12px; align-items: center; }
.article-share a {
    padding: 6px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.article-share a:hover { background: var(--primary); border-color: var(--primary); }

.post-navigation { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.post-navigation a { font-size: 14px; color: var(--primary); font-weight: 600; }

/* ── Content Pages ───────────────────────────────────── */
.content-page { padding: 40px 0 60px; }
.page-title { font-size: 36px; font-weight: 700; margin-bottom: 32px; }
.page-content { max-width: 800px; }
.page-content h2 { font-size: 24px; font-weight: 700; margin: 32px 0 12px; }
.page-content h3 { font-size: 20px; font-weight: 600; margin: 24px 0 12px; }
.page-content p { margin-bottom: 16px; line-height: 1.8; color: var(--gray-dark); }
.page-content ul, .page-content ol { margin: 12px 0; padding-left: 24px; }
.page-content li { margin-bottom: 8px; line-height: 1.6; list-style: disc; color: var(--gray-dark); }
.page-content ol li { list-style: decimal; }

/* ── 404 ─────────────────────────────────────────────── */
.error-404 { padding: 80px 0; text-align: center; }
.error-content h1 { font-size: 96px; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.error-content p { font-size: 18px; color: var(--gray-md); margin-bottom: 32px; }

/* ── Archive Header ──────────────────────────────────── */
.archive-header { margin-bottom: 32px; }
.archive-header h1 { font-size: 32px; font-weight: 700; }
.archive-desc { font-size: 15px; color: var(--gray-md); margin-top: 8px; }

/* ── Search ──────────────────────────────────────────── */
.search-title { font-size: 28px; font-weight: 700; margin-bottom: 32px; }
.search-results { padding: 40px 0; }
.no-results { font-size: 16px; color: var(--gray-md); }

/* ── WooCommerce notices ─────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: var(--radius-md);
    font-size: 14px;
}
.woocommerce-message { border-top-color: var(--green); }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 1340px) {
    :root { --radius: 8px; }
}

@media (max-width: 1024px) {
    .hero-title { font-size: 40px; }
    .goals-grid { grid-template-columns: repeat(3, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .top-bar-left { display: none; }
    .mobile-menu-toggle { display: block; }
    .header-search { display: none; }
    .main-nav { display: none; }

    .hero-section { padding: 48px 0; }
    .hero-title { font-size: 32px; }
    .hero-subtitle { font-size: 16px; }
    .hero-actions { flex-direction: column; }
    .hero-badges { flex-direction: column; gap: 8px; }

    .goals-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: 1fr; }
    .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }

    .newsletter-inner { flex-direction: column; text-align: center; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { width: 100%; }

    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom-inner { flex-direction: column; gap: 8px; text-align: center; }

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

    .deals-banner-inner { padding: 32px 24px; }
    .deals-content h2 { font-size: 24px; }

    .woocommerce div.product .woocommerce-product-gallery,
    .woocommerce div.product .summary { width: 100%; }

    .posts-grid { grid-template-columns: 1fr; }
    .article-title { font-size: 28px; }

    .cart-drawer { width: 100%; }

    .section-title { font-size: 24px; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 10px; }
    .ctl-product-brand { padding: 8px 10px 0; font-size: 11px; }
    .ctl-product-title { padding: 4px 10px 6px; font-size: 13px; }
    .ctl-product-price { padding: 0 10px 8px; font-size: 14px; }
    .ctl-add-to-cart { margin: auto 10px 10px; width: calc(100% - 20px); }
}
