/*
Theme Name: Hamarat Theme - YFC
Theme URI: https://example.com
Description: Sade, profesyonel ofis mobilyaları e-ticaret teması. WooCommerce uyumlu, SEO optimize edilmiş.
Version: 1.0.0
Author: MH
Author URI: https://example.com
Text Domain: hamarat-theme-yfc
Domain Path: /languages
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce, woocommerce, responsive, clean, seo-friendly
*/

/* ======================================================
   RESET & BASE
====================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary:   #1a2e4a;
    --color-accent:    #e63939;
    --color-accent-hover: #c0392b;
    --color-text:      #2c2c2c;
    --color-text-muted:#6b7280;
    --color-border:    #e5e7eb;
    --color-bg:        #f8f9fa;
    --color-white:     #ffffff;
    --color-badge-new: #27ae60;
    --color-badge-sale:#e63939;
    --font-main:       'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius:          4px;
    --shadow-sm:       0 1px 3px rgba(0,0,0,.08);
    --shadow-md:       0 4px 12px rgba(0,0,0,.12);
    --transition:      .2s ease;
    --container:       1280px;
    --header-height:   56px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }

/* ======================================================
   CONTAINER
====================================================== */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ======================================================
   HEADER
====================================================== */
.site-header {
    position: relative;
    z-index: 1000;
    background: var(--color-white);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* İç sayfalarda top bar gizle, header küçült */
.inner-page .header-top { display: none; }
.inner-page .header-main .container { height: 48px; }
.inner-page .site-logo { font-size: 20px; }
.inner-page .header-search input { padding: 7px 12px; font-size: 13px; }
.inner-page .header-action-btn { padding: 4px 8px; font-size: 10px; }

.header-top {
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 12px;
    padding: 4px 0;
}

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

.header-top a { color: rgba(255,255,255,.85); }
.header-top a:hover { color: var(--color-white); }

.header-top-links { display: flex; gap: 20px; align-items: center; }

.header-main .container {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -.5px;
    flex-shrink: 0;
}

.site-logo span { color: var(--color-accent); }

.header-search {
    flex: 1;
    max-width: 520px;
}

.header-search form {
    display: flex;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.header-search form:focus-within {
    border-color: var(--color-primary);
}

.header-search input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.header-search button {
    padding: 0 16px;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: background var(--transition);
}

.header-search button:hover { background: var(--color-accent); }

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

.header-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 10px;
    border-radius: var(--radius);
    font-size: 11px;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    border: none;
    background: none;
    text-decoration: none;
}

.header-action-btn:hover { color: var(--color-primary); background: var(--color-bg); }

.header-action-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; }

.cart-count {
    position: absolute;
    top: 2px; right: 4px;
    background: var(--color-accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 17px; height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ======================================================
   MAIN NAVIGATION
====================================================== */
.site-nav {
    background: var(--color-primary);
    position: relative;
}

.site-nav .container {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 8px 15px;
    color: rgba(255,255,255,.9);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .2px;
    transition: all var(--transition);
    white-space: nowrap;
}

/* İç sayfalarda nav daha sıkışık */
.inner-page .site-nav { line-height: 1; }
.inner-page .nav-menu > li > a { padding: 6px 14px; font-size: 12.5px; line-height: 1.2; }

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--color-white);
    background: rgba(255,255,255,.1);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--color-white);
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--color-accent);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 999;
}

.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu li a {
    display: block;
    padding: 10px 18px;
    font-size: 13.5px;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
    transition: all var(--transition);
}

.nav-menu .sub-menu li:last-child a { border-bottom: none; }

.nav-menu .sub-menu li a:hover {
    background: var(--color-bg);
    color: var(--color-accent);
    padding-left: 24px;
}

/* Mobile hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: var(--color-white);
}

.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: currentColor;
    margin: 5px 0;
    transition: all var(--transition);
}

/* ======================================================
   BREADCRUMB
====================================================== */
.breadcrumb-wrap {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 5px 0;
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 2px 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    line-height: 1;
}

.breadcrumb li { list-style: none; display: flex; align-items: center; }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent); }

.breadcrumb-sep { color: var(--color-border); margin: 0 2px; }
.breadcrumb .current { color: var(--color-text); font-weight: 500; }

/* ======================================================
   HERO SLIDER
====================================================== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: var(--color-bg);
}

.slider-track {
    display: flex;
    transition: transform .5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 480px;
}

.slide-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
    margin-bottom: 16px;
}

.slide-content p {
    color: rgba(255,255,255,.9);
    margin-bottom: 24px;
    font-size: 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.slider-btn-prev,
.slider-btn-next {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--color-primary);
    transition: all var(--transition);
    z-index: 10;
}

.slider-btn-prev { left: 16px; }
.slider-btn-next { right: 16px; }
.slider-btn-prev:hover, .slider-btn-next:hover { background: var(--color-white); box-shadow: var(--shadow-md); }

.slider-dots {
    position: absolute;
    bottom: 16px; left: 50%;
    transform: translateX(-50%);
    display: flex; gap: 8px;
}

.slider-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none; cursor: pointer;
    transition: background var(--transition);
}

.slider-dot.active { background: var(--color-white); }

/* ======================================================
   4-BANNER GRID (below slider)
====================================================== */
.four-banners {
    padding: 20px 0 8px;
    background: var(--color-white);
}

.four-banners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.banner-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 180px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.banner-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: inherit;
}

.banner-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .4s ease;
}

.banner-card:hover .banner-card-bg { transform: scale(1.05); }

.banner-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
}

.banner-card-body {
    position: relative;
    z-index: 1;
    padding: 16px;
    width: 100%;
}

.banner-card-body span {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.banner-card-body strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.3;
}

/* Slide gradient backgrounds — no external images needed */

.slide-bg {
    width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
    display: block;
}

.slide-bg-inner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* slide-content over gradient bg */
.slide .slide-content {
    position: absolute;
    top: 50%;
    left: 8%;
    transform: translateY(-50%);
    max-width: 480px;
}

/* ======================================================
   CATEGORY BANNER STRIP
====================================================== */
.category-strip {
    padding: 32px 0;
    background: var(--color-white);
}

.category-strip-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: var(--color-text);
}

.cat-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
    color: var(--color-primary);
    transform: translateY(-2px);
}

.cat-card-icon {
    width: 56px; height: 56px;
    background: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    transition: background var(--transition);
}

.cat-card:hover .cat-card-icon { background: var(--color-primary); }
.cat-card:hover .cat-card-icon svg { stroke: white; }

.cat-card-icon svg { width: 28px; height: 28px; stroke: var(--color-primary); fill: none; }

.cat-card span {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}

/* ======================================================
   SECTION HEADINGS
====================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-border);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    position: relative;
    padding-bottom: 0;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-accent);
    margin-top: 6px;
}

.section-link {
    font-size: 13px;
    color: var(--color-accent);
    font-weight: 500;
    transition: opacity var(--transition);
}

.section-link:hover { opacity: .75; color: var(--color-accent); }

/* ======================================================
   PRODUCT SECTIONS (Homepage)
====================================================== */
.products-section {
    padding: 40px 0;
}

.products-section:nth-child(even) {
    background: var(--color-bg);
}

.products-grid-home {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* ======================================================
   PRODUCT CARD
====================================================== */
.product-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: transparent;
}

.product-card-img {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--color-bg);
}

.product-card-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

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

.product-card-img .img-alt {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .3s ease;
}

.product-card:hover .img-alt { opacity: 1; }

.badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    z-index: 1;
}

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

.product-card-wishlist {
    position: absolute;
    top: 8px; right: 8px;
    width: 32px; height: 32px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition);
    z-index: 1;
}

.product-card:hover .product-card-wishlist { opacity: 1; }
.product-card-wishlist:hover { border-color: var(--color-accent); color: var(--color-accent); }
.product-card-wishlist svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

.product-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-brand {
    font-size: 11px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.product-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.4;
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.price-current {
    font-size: 17px;
    font-weight: 700;
    color: var(--color-accent);
}

.price-original {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.price-discount {
    font-size: 11px;
    background: var(--color-badge-sale);
    color: white;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

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

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

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

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

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

.btn-full { width: 100%; }

.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

/* Add to cart on card */
.product-card .btn-cart {
    padding: 8px;
    font-size: 12px;
}

/* ======================================================
   PROMO BANNER
====================================================== */
.promo-banner {
    position: relative;
    overflow: hidden;
    margin: 40px 0;
    border-radius: var(--radius);
    min-height: 190px;
    display: flex;
    align-items: center;
}

.promo-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-overlay {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    padding: 36px 52px;
    width: 100%;
}

.promo-text h3 {
    font-size: 26px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.promo-text p {
    color: rgba(255,255,255,.85);
    margin-bottom: 20px;
    font-size: 15px;
}

/* ======================================================
   FEATURES STRIP
====================================================== */
.features-strip {
    background: var(--color-primary);
    color: white;
    padding: 28px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.feature-item svg {
    width: 36px; height: 36px;
    stroke: rgba(255,255,255,.8);
    fill: none;
}

.feature-item strong {
    font-size: 14px;
    font-weight: 600;
}

.feature-item span {
    font-size: 12.5px;
    color: rgba(255,255,255,.7);
}

/* ======================================================
   FOOTER
====================================================== */
.site-footer {
    background: #111827;
    color: rgba(255,255,255,.8);
    margin-top: 60px;
}

.footer-main {
    padding: 52px 0 36px;
}

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

.footer-about .site-logo {
    color: white;
    margin-bottom: 16px;
    display: block;
}

.footer-about p {
    font-size: 13.5px;
    line-height: 1.7;
    color: rgba(255,255,255,.6);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    color: white;
}

.footer-social a:hover { background: var(--color-accent); }
.footer-social svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: white;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
    font-size: 13.5px;
    color: rgba(255,255,255,.6);
    transition: color var(--transition);
}

.footer-col ul li a:hover { color: white; }

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }

.footer-contact-list li {
    display: flex;
    gap: 10px;
    font-size: 13.5px;
    color: rgba(255,255,255,.6);
    align-items: flex-start;
}

.footer-contact-list svg {
    width: 16px; height: 16px;
    stroke: var(--color-accent);
    fill: none;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 18px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
    color: rgba(255,255,255,.4);
}

/* ======================================================
   SHOP / CATEGORY PAGE
====================================================== */
.shop-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding: 32px 0 60px;
}

/* Sidebar */
.shop-sidebar {
    flex-shrink: 0;
}

.sidebar-widget {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-widget-title {
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-primary);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.sidebar-widget-title::after {
    content: '▾';
    transition: transform var(--transition);
    font-size: 12px;
    color: var(--color-text-muted);
}

.sidebar-widget.collapsed .sidebar-widget-title::after { transform: rotate(-90deg); }
.sidebar-widget.collapsed .sidebar-widget-body { display: none; }

.sidebar-widget-body { padding: 14px 18px; }

.filter-list { display: flex; flex-direction: column; gap: 6px; }

.filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    cursor: pointer;
    padding: 4px 0;
}

.filter-item input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--color-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.filter-item label {
    cursor: pointer;
    flex: 1;
    display: flex;
    justify-content: space-between;
}

.filter-item .filter-count {
    color: var(--color-text-muted);
    font-size: 12px;
}

/* Price range */
.price-range-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.price-range-inputs input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 13px;
    outline: none;
}

.price-range-inputs input:focus { border-color: var(--color-primary); }
.price-range-inputs span { color: var(--color-text-muted); }

/* Shop main */
.shop-main {}

.shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    gap: 12px;
    flex-wrap: wrap;
}

.shop-count {
    font-size: 13.5px;
    color: var(--color-text-muted);
}

.shop-count strong { color: var(--color-text); }

.shop-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-sort select {
    padding: 7px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 13px;
    outline: none;
    background: white;
    cursor: pointer;
}

.shop-view-toggle { display: flex; gap: 4px; }

.view-btn {
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    background: white;
    color: var(--color-text-muted);
    transition: all var(--transition);
}

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

.view-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.products-grid.list-view {
    grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
    flex-direction: row;
}

.products-grid.list-view .product-card-img {
    width: 220px;
    flex-shrink: 0;
    padding-top: 0;
    height: 180px;
}

.products-grid.list-view .product-card-img img {
    position: static;
    width: 100%;
    height: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
}

.page-btn {
    min-width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    background: white;
    color: var(--color-text);
    transition: all var(--transition);
    padding: 0 10px;
}

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

.page-btn.disabled { opacity: .4; cursor: not-allowed; }

/* ======================================================
   PRODUCT DETAIL PAGE
====================================================== */
.product-detail {
    padding: 40px 0 60px;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Gallery */
.product-gallery {}

.gallery-main {
    position: relative;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-bg);
    margin-bottom: 12px;
    cursor: zoom-in;
}

.gallery-main img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: contain;
    padding: 20px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px; height: 80px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color var(--transition);
    background: var(--color-bg);
}

.gallery-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.gallery-thumb.active, .gallery-thumb:hover {
    border-color: var(--color-primary);
}

/* Product info */
.product-info {}

.product-info .product-brand {
    font-size: 13px;
    color: var(--color-accent);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-info h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }

.product-rating a {
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: underline;
}

.product-price-box {
    background: var(--color-bg);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    border: 1px solid var(--color-border);
}

.product-price-box .price-current {
    font-size: 30px;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.product-price-box .price-original {
    font-size: 16px;
}

.product-price-box .price-discount {
    font-size: 13px;
    padding: 3px 10px;
}

.kdv-note {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 6px;
}

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

.variant-label {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--color-text);
}

.variant-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.variant-opt {
    padding: 6px 14px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
    background: white;
}

.variant-opt:hover, .variant-opt.selected {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.quantity-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.qty-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-btn {
    width: 38px; height: 44px;
    border: none;
    background: var(--color-bg);
    cursor: pointer;
    font-size: 18px;
    color: var(--color-text);
    transition: background var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qty-input input {
    width: 54px; height: 44px;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    outline: none;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.product-actions .btn-accent { flex: 1; padding: 14px; font-size: 15px; }
.product-actions .btn-outline { padding: 14px 18px; }

.product-meta-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13.5px;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
}

.product-meta-list dt {
    display: inline;
    font-weight: 600;
    color: var(--color-text-muted);
}

.product-meta-list dd {
    display: inline;
    margin-left: 4px;
}

.product-meta-row { display: flex; gap: 8px; }

/* Product Tabs */
.product-tabs {
    margin-top: 48px;
}

.tab-list {
    display: flex;
    border-bottom: 2px solid var(--color-border);
    gap: 0;
    margin-bottom: 28px;
}

.tab-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

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

.product-description h3 { font-size: 17px; margin-bottom: 12px; color: var(--color-primary); }
.product-description p { margin-bottom: 14px; font-size: 14.5px; line-height: 1.7; color: var(--color-text-muted); }
.product-description ul { padding-left: 20px; list-style: disc; margin-bottom: 14px; }
.product-description ul li { font-size: 14.5px; line-height: 1.7; color: var(--color-text-muted); margin-bottom: 6px; }

/* Specs table */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.specs-table tr { border-bottom: 1px solid var(--color-border); }
.specs-table tr:last-child { border-bottom: none; }
.specs-table tr:nth-child(even) { background: var(--color-bg); }
.specs-table th, .specs-table td { padding: 12px 16px; text-align: left; }
.specs-table th { width: 35%; font-weight: 600; color: var(--color-text-muted); }

/* Related products */
.related-products {
    padding: 48px 0;
    background: var(--color-bg);
}

/* ======================================================
   CART / CHECKOUT (WC overrides)
====================================================== */
.woocommerce-page .container { padding: 40px 20px; }

table.shop_table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

table.shop_table th {
    padding: 12px 16px;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-border);
    text-align: left;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 12px;
    text-transform: uppercase;
}

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

/* ======================================================
   WHATSAPP BUTTON
====================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    transition: transform var(--transition), box-shadow var(--transition);
    z-index: 9999;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,.5);
    color: white;
}

.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ======================================================
   BACK TO TOP
====================================================== */
.back-to-top {
    position: fixed;
    bottom: 88px; right: 24px;
    width: 42px; height: 42px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    z-index: 9999;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 18px; height: 18px; stroke: white; fill: none; }

/* ======================================================
   404 / SEARCH RESULTS
====================================================== */
.not-found-page { text-align: center; padding: 80px 20px; }
.not-found-page h1 { font-size: 80px; color: var(--color-border); font-weight: 900; }
.not-found-page h2 { font-size: 24px; margin-bottom: 12px; }

/* ======================================================
   WOOCOMMERCE BASE OVERRIDES
====================================================== */
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info {
    border-top-color: var(--color-primary);
    background: var(--color-bg);
    padding: 14px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--color-primary);
    color: white;
    border-radius: var(--radius);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    transition: background var(--transition);
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
    background: var(--color-accent);
    color: white;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt {
    background: var(--color-accent);
}

.woocommerce a.button.alt:hover { background: var(--color-accent-hover); }

/* ======================================================
   RESPONSIVE
====================================================== */
@media (max-width: 1200px) {
    .products-grid-home { grid-template-columns: repeat(4, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 1024px) {
    .category-strip-grid { grid-template-columns: repeat(3, 1fr); }
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
    .product-detail-grid { grid-template-columns: 1fr; gap: 32px; }
}

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

@media (max-width: 768px) {
    :root { --header-height: 56px; }
    .four-banners-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .banner-card { height: 140px; }

    .header-top { display: none; }
    .header-search { display: none; }

    .site-logo { font-size: 20px; }

    .nav-toggle { display: block; }

    .site-nav .container { justify-content: space-between; padding: 0 20px; }

    .nav-menu {
        position: fixed;
        top: 0; left: -100%;
        width: 280px; height: 100vh;
        background: var(--color-primary);
        flex-direction: column;
        align-items: stretch;
        padding-top: 60px;
        transition: left .3s ease;
        overflow-y: auto;
        z-index: 1001;
    }

    .nav-menu.open { left: 0; }

    .nav-menu > li > a {
        padding: 14px 20px;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }

    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,.2);
        border-top: none;
    }

    .nav-menu .sub-menu li a { color: rgba(255,255,255,.7); padding-left: 36px; }

    .products-grid-home { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .category-strip-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .slide img { height: 240px; }
    .slide-bg { height: 240px; }
    .slide-content h2 { font-size: 20px; }
    .four-banners-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
    .banner-card { height: 130px; }
    .slide-content h2 { font-size: 22px; }
}

@media (max-width: 480px) {
    .products-grid-home { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .category-strip-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .product-actions { flex-direction: column; }
    .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
}
