@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --red:       #cc0000;
    --red2:      #e60000;
    --red-light: #fff0f0;
    --red-glow:  rgba(204,0,0,0.12);
    --bg:        #ffffff;
    --bg2:       #f8f8f8;
    --bg3:       #f0f0f0;
    --border:    #e5e5e5;
    --border2:   #d0d0d0;
    --text:      #1a1a1a;
    --text2:     #555555;
    --text3:     #999999;
    --green:     #1a7a3c;
    --radius:    8px;
    --radius-sm: 5px;
    --shadow:    0 2px 12px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}
h1,h2,h3,h4 { font-weight: 700; line-height: 1.25; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h3 { font-size: 1.1rem; }
a  { color: inherit; text-decoration: none; }

/* ── TOP BAR ── */
.top-bar {
    background: var(--text);
    color: #fff;
    font-size: 0.78rem;
    padding: 0.45rem 0;
}
.top-bar-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 2rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.top-bar-left { display: flex; gap: 1.5rem; }
.top-bar-left a { color: rgba(255,255,255,0.85); transition: color 0.15s; }
.top-bar-left a:hover { color: #fff; }
.top-bar-right { color: rgba(255,255,255,0.6); font-size: 0.75rem; }

/* ── HEADER ── */
.site-header {
    background: #fff;
    border-bottom: 3px solid var(--red);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}
.header-inner {
    max-width: 1280px; margin: 0 auto; padding: 0 2rem;
    height: 70px; display: flex; align-items: center; gap: 1.5rem;
}

/* LOGO */
.logo { display: flex; align-items: center; gap: 0.85rem; flex-shrink: 0; text-decoration: none; }
.logo-mark {
    background: var(--red); color: #fff;
    font-size: 1.1rem; font-weight: 800;
    width: 44px; height: 44px; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    letter-spacing: -0.03em; flex-shrink: 0;
}
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1.2; }
.logo-name { font-size: 1.15rem; font-weight: 800; color: var(--text); letter-spacing: -0.02em; }
.logo-sub  { font-size: 0.65rem; color: var(--text3); font-weight: 400; text-transform: uppercase; letter-spacing: 0.04em; }

/* SEARCH */
.search-form { flex: 1; max-width: 440px; }
.search-wrap  { position: relative; display: flex; align-items: center; }
.search-icon  { position: absolute; left: 0.85rem; color: var(--text3); pointer-events: none; }
.search-input {
    width: 100%; background: var(--bg2);
    border: 1.5px solid var(--border);
    color: var(--text); padding: 0.55rem 2.2rem 0.55rem 2.5rem;
    border-radius: var(--radius); font-family: 'Inter', sans-serif; font-size: 0.88rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-input::placeholder { color: var(--text3); }
.search-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); background: #fff; }
.search-input::-webkit-search-cancel-button { display: none; }
.search-clear { position: absolute; right: 0.75rem; color: var(--text3); font-size: 1.2rem; cursor: pointer; line-height: 1; }
.search-clear:hover { color: var(--red); }

/* NAV */
.main-nav { display: flex; align-items: center; gap: 0.15rem; flex-shrink: 0; }
.main-nav a {
    padding: 0.45rem 0.85rem; border-radius: var(--radius-sm);
    font-size: 0.86rem; font-weight: 500; color: var(--text2);
    transition: all 0.15s; white-space: nowrap;
}
.main-nav a:hover { color: var(--red); background: var(--red-light); }
.main-nav a.active { color: var(--red); font-weight: 600; }
.main-nav .nav-logout { color: var(--text3); }
.main-nav .nav-logout:hover { color: var(--red); background: var(--red-light); }

/* CART */
.cart-btn {
    display: flex; align-items: center; gap: 0.4rem;
    padding: 0.5rem 1rem; border-radius: var(--radius);
    background: var(--red); color: #fff;
    font-size: 0.85rem; font-weight: 600;
    transition: all 0.15s; flex-shrink: 0;
    position: relative;
}
.cart-btn:hover { background: var(--red2); }
.cart-btn.active { background: var(--red2); }
.cart-label { font-weight: 600; }
.cart-count {
    position: absolute; top: -6px; right: -6px;
    background: var(--text); color: #fff;
    font-size: 0.6rem; font-weight: 700;
    min-width: 18px; height: 18px; border-radius: 99px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

/* ── LAYOUT ── */
.main-content { min-height: 60vh; }

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    padding: 4rem 2rem;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 40%; height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(204,0,0,0.15) 100%);
}
.hero::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
    background: var(--red);
}
.hero-inner { max-width: 1280px; margin: 0 auto; position: relative; }
.hero-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--red); color: #fff;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; padding: 0.3rem 0.85rem;
    border-radius: 3px; margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1rem; color: #fff; }
.hero h1 span { color: #ff4444; }
.hero-desc { color: rgba(255,255,255,0.75); font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-brands {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius); padding: 1.5rem;
}
.hero-brands h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 1rem; }
.brands-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.brand-item {
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm); padding: 0.6rem 0.75rem;
    font-size: 0.83rem; font-weight: 600; color: rgba(255,255,255,0.9);
    text-align: center;
}
.brand-item:hover { background: var(--red); border-color: var(--red); }

/* ── FILTER BAR ── */
.filter-bar {
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 0.85rem 2rem;
}
.filter-bar-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
}
.filter-label { font-size: 0.78rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 0.05em; margin-right: 0.25rem; }
.filter-btn {
    padding: 0.35rem 0.85rem; border-radius: 99px;
    font-size: 0.82rem; font-weight: 500;
    background: #fff; border: 1.5px solid var(--border); color: var(--text2);
    cursor: pointer; transition: all 0.15s; text-decoration: none; display: inline-block;
    font-family: 'Inter', sans-serif;
}
.filter-btn:hover { border-color: var(--red); color: var(--red); }
.filter-btn.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

/* ── SECTION HEADER ── */
.products-section { max-width: 1280px; margin: 0 auto; padding: 2rem 2rem 4rem; }
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.75rem; padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}
.section-header h2 { font-size: 1.4rem; }
.section-header h2::before { content: ''; display: inline-block; width: 4px; height: 1.2em; background: var(--red); border-radius: 2px; margin-right: 0.6rem; vertical-align: middle; }
.section-header span { font-size: 0.85rem; color: var(--text3); }

/* ── SEARCH RESULT HEADER ── */
.search-header { max-width: 1280px; margin: 0 auto; padding: 2rem 2rem 0; }
.search-header h2 { margin-bottom: 0.3rem; }
.search-header p  { color: var(--text2); font-size: 0.88rem; }
.search-header mark { background: #fff3cd; color: #856404; border-radius: 3px; padding: 0 0.25rem; }
.no-results { text-align: center; padding: 5rem 2rem; color: var(--text2); }
.no-results .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.3; display: block; }

/* ── PRODUCT GRID ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
    gap: 1.25rem;
}

/* ── PRODUCT CARD ── */
.product-card {
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}
.product-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12), 0 0 0 1px var(--red);
}
.product-image-wrap {
    position: relative; background: var(--bg2);
    height: 200px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; text-decoration: none; border-bottom: 1px solid var(--border);
}
.product-image-wrap img { width:100%; height:100%; object-fit:cover; transition:transform 0.4s; }
.product-card:hover .product-image-wrap img { transform: scale(1.04); }
.product-badge {
    position: absolute; top: 10px; left: 10px;
    padding: 0.22rem 0.6rem; font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.05em; text-transform: uppercase; border-radius: 3px;
}
.badge-BESTSELLER { background: #1a7a3c; color: #fff; }
.badge-NEW        { background: var(--red); color: #fff; }
.badge-HOT        { background: #e65c00; color: #fff; }
.badge-SALE       { background: #7b1fa2; color: #fff; }
.badge-NOVINKA    { background: var(--red); color: #fff; }
.badge-PREMIUM    { background: #b8860b; color: #fff; }
.product-info { padding: 1rem 1.1rem 0.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.product-cat  { font-size: 0.72rem; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.05em; }
.product-name { font-size: 0.95rem; font-weight: 600; color: var(--text); line-height: 1.35; }
.product-name a { color: inherit; }
.product-name a:hover { color: var(--red); }
.product-desc { font-size: 0.81rem; color: var(--text2); line-height: 1.55; }
.product-price {
    font-size: 1.2rem; font-weight: 700; color: var(--red);
    margin-top: auto; padding-top: 0.4rem;
}
.product-price small,
.detail-price small,
.cart-item-price small,
.cart-item-subtotal small,
.order-total small,
.td-price small {
    display: inline-block;
    margin-left: 0.25rem;
    line-height: 1.3;
    vertical-align: baseline;
}
.product-stock     { font-size: 0.75rem; color: var(--green); font-weight: 500; }
.product-stock.low { color: #cc6600; }
.product-stock.out { color: var(--text3); }
.product-actions { padding: 0 1.1rem 1.1rem; display: flex; gap: 0.5rem; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.6rem 1.3rem; border-radius: var(--radius-sm);
    font-size: 0.86rem; font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer; border: none; transition: all 0.15s;
    text-decoration: none; white-space: nowrap; line-height: 1;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 2px 8px var(--red-glow); }
.btn-primary:hover { background: var(--red2); color: #fff; transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--text); border: 1.5px solid var(--border2); }
.btn-outline:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }
.btn-ghost  { background: transparent; color: var(--text2); }
.btn-ghost:hover { color: var(--red); }
.btn-danger { background: #fff0f0; color: var(--red); border: 1.5px solid rgba(204,0,0,0.25); }
.btn-danger:hover { background: var(--red-light); }
.btn-sm  { padding: 0.38rem 0.8rem; font-size: 0.79rem; }
.btn-lg  { padding: 0.78rem 1.8rem; font-size: 0.92rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ── PRODUCT DETAIL ── */
.product-detail { max-width: 1080px; margin: 0 auto; padding: 2.5rem 2rem 5rem; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.gallery-wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.gallery-main {
    background: var(--bg2); border: 1.5px solid var(--border); border-radius: var(--radius);
    height: 400px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; position: relative; cursor: zoom-in;
}
.gallery-main-inner { width:100%; height:100%; display:flex; align-items:center; justify-content:center; transition:opacity 0.2s; }
.gallery-main-inner img { max-width:100%; max-height:100%; object-fit:contain; }
.gallery-arrow {
    position: absolute; top:50%; transform:translateY(-50%);
    background: rgba(255,255,255,0.9); border: 1.5px solid var(--border2);
    color: var(--text); width:38px; height:38px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    cursor:pointer; font-size:1.1rem; transition:all 0.15s; z-index:5;
    box-shadow: var(--shadow);
}
.gallery-arrow:hover { background: var(--red); color: #fff; border-color: var(--red); }
.gallery-arrow.prev { left:10px; }
.gallery-arrow.next { right:10px; }
.gallery-arrow.hidden { display:none; }
.gallery-counter { position:absolute; bottom:10px; right:12px; background:rgba(0,0,0,0.55); color:#fff; font-size:0.72rem; padding:0.2rem 0.55rem; border-radius:3px; }
.gallery-thumbs { display:flex; gap:0.5rem; flex-wrap:wrap; }
.gallery-thumb { width:68px; height:68px; border-radius:var(--radius-sm); border:2px solid var(--border); background:var(--bg2); display:flex; align-items:center; justify-content:center; cursor:pointer; overflow:hidden; transition:all 0.15s; flex-shrink:0; }
.gallery-thumb img { width:100%; height:100%; object-fit:cover; }
.gallery-thumb.active { border-color:var(--red); box-shadow:0 0 0 2px var(--red-glow); }
.product-lightbox {
    position: fixed; inset: 0; z-index: 10020;
    background: rgba(0,0,0,0.88);
    display: none; align-items: center; justify-content: center;
    padding: 2rem;
}
.product-lightbox.open { display: flex; }
.lightbox-open { overflow: hidden; }
.lightbox-image-wrap {
    width: min(1100px, 86vw); height: 86vh;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-image-wrap img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    background: #fff; border-radius: var(--radius-sm);
}
.lightbox-close,
.lightbox-arrow {
    position: absolute; border: 1.5px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.12); color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s; box-shadow: var(--shadow-md);
}
.lightbox-close:hover,
.lightbox-arrow:hover { background: var(--red); border-color: var(--red); }
.lightbox-close {
    top: 1.25rem; right: 1.25rem; width: 42px; height: 42px;
    border-radius: 50%; font-size: 1.8rem; line-height: 1;
}
.lightbox-arrow {
    top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%; font-size: 2rem;
}
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-arrow.hidden { display: none; }
.lightbox-counter {
    position: absolute; bottom: 1.25rem; left: 50%; transform: translateX(-50%);
    background: rgba(0,0,0,0.5); color: #fff; font-size: 0.82rem;
    padding: 0.35rem 0.7rem; border-radius: 4px;
}
.product-detail-info .product-badge { position:static; display:inline-block; margin-bottom:1rem; }
.detail-cat   { font-size:0.75rem; font-weight:600; color:var(--red); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:0.5rem; }
.detail-price { font-size:2rem; font-weight:800; color:var(--red); margin:1rem 0 1.25rem; }
.detail-desc  { color:var(--text2); line-height:1.8; margin-bottom:2rem; font-size:0.93rem; }
.detail-meta  { display:flex; gap:2rem; padding:1rem 0; border-top:1.5px solid var(--border); border-bottom:1.5px solid var(--border); margin-bottom:2rem; }
.detail-meta-label { font-size:0.7rem; font-weight:600; color:var(--text3); text-transform:uppercase; letter-spacing:0.06em; margin-bottom:0.2rem; }
.detail-meta-value { font-weight:600; color:var(--text); font-size:0.9rem; }
.qty-selector { display:flex; align-items:center; gap:0.75rem; margin-bottom:1.25rem; }
.qty-selector label { font-size:0.82rem; font-weight:500; color:var(--text2); }
.qty-btn { width:34px; height:34px; border-radius:var(--radius-sm); background:#fff; border:1.5px solid var(--border2); color:var(--text); font-size:1rem; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:all 0.15s; }
.qty-btn:hover { border-color:var(--red); color:var(--red); }
.qty-input { width:52px; text-align:center; background:#fff; border:1.5px solid var(--border); color:var(--text); font-size:0.92rem; font-weight:600; padding:0.38rem; border-radius:var(--radius-sm); font-family:'Inter',sans-serif; }
.qty-input:focus { outline:none; border-color:var(--red); }
.breadcrumb { display:flex; align-items:center; gap:0.5rem; font-size:0.82rem; color:var(--text3); margin-bottom:2rem; }
.breadcrumb a { color:var(--text2); }
.breadcrumb a:hover { color:var(--red); }

/* ── PAGE HEADER ── */
.page-header {
    background: var(--bg2); border-bottom: 1px solid var(--border);
    padding: 2rem 2rem 1.75rem;
}
.page-header-inner { max-width: 1280px; margin: 0 auto; }
.page-header h1 { margin-bottom: 0.3rem; }
.page-header p  { color: var(--text2); font-size: 0.88rem; }

/* ── CONTACT PAGE ── */
.contact-page { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.2rem; margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--red); }
.contact-item { display: flex; gap: 0.75rem; margin-bottom: 1rem; align-items: flex-start; }
.contact-item-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.contact-item-text strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text3); margin-bottom: 0.1rem; }
.contact-item-text a, .contact-item-text span { font-size: 0.92rem; color: var(--text); }
.contact-item-text a:hover { color: var(--red); }
.company-info { background: var(--red-light); border: 1.5px solid rgba(204,0,0,0.2); border-radius: var(--radius); padding: 1.25rem; margin-top: 1.5rem; }
.company-info h3 { font-size: 0.85rem; color: var(--red); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.company-info table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.company-info td { padding: 0.3rem 0; vertical-align: top; }
.company-info td:first-child { color: var(--text3); font-weight: 500; width: 80px; }
.company-info td:last-child { font-weight: 600; color: var(--text); }

/* ── CART ── */
.cart-page { max-width: 1100px; margin: 0 auto; padding: 2.5rem 2rem 5rem; }
.cart-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 1rem; }
.cart-item { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow); transition: border-color 0.15s; }
.cart-item:hover { border-color: var(--red); }
.cart-item-img { width: 72px; height: 72px; background: var(--bg2); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; border: 1px solid var(--border); }
.cart-item-img img { width:100%; height:100%; object-fit:cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; font-size: 0.92rem; }
.cart-item-name a { color: inherit; }
.cart-item-name a:hover { color: var(--red); }
.cart-item-price { color: var(--red); font-weight: 600; font-size: 0.86rem; margin-top: 0.15rem; }
.cart-item-actions { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; }
.qty-ctrl { display: flex; align-items: center; gap: 0.4rem; }
.qty-ctrl button { width: 27px; height: 27px; border-radius: var(--radius-sm); background: #fff; border: 1.5px solid var(--border); color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: all 0.15s; }
.qty-ctrl button:hover { border-color: var(--red); color: var(--red); }
.qty-ctrl span { min-width: 24px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.cart-item-subtotal { font-weight: 700; color: var(--text); text-align: right; min-width: 80px; font-size: 0.95rem; }
.cart-summary { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 90px; box-shadow: var(--shadow); }
.cart-summary h3 { margin-bottom: 1.25rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border); }
.summary-row { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.88rem; color: var(--text2); border-bottom: 1px solid var(--border); }
.summary-row.total { font-size: 1.05rem; font-weight: 700; color: var(--text); border-bottom: none; padding-top: 0.85rem; }
.summary-row.total span:last-child { color: var(--red); }
.cart-empty { text-align: center; padding: 4rem 2rem; color: var(--text2); }
.cart-empty .empty-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.25; display: block; }

/* ── AUTH ── */
.auth-page { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; background: var(--bg2); }
.auth-card { width: 100%; max-width: 430px; background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 2.5rem; box-shadow: var(--shadow-md); }
.auth-card h2 { margin-bottom: 0.4rem; }
.auth-sub { color: var(--text2); font-size: 0.86rem; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; background: #fff; border: 1.5px solid var(--border); color: var(--text); padding: 0.65rem 0.9rem; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 0.9rem; transition: border-color 0.15s, box-shadow 0.15s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-glow); }
.form-group textarea { resize: vertical; min-height: 80px; }
.customer-type-group .radio-options { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.35rem; }
.customer-type-group .radio-option { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; transition: border-color 0.15s, background 0.15s; font-size: 0.92rem; color: var(--text); }
.customer-type-group .radio-option:hover { border-color: var(--red); background: rgba(255,236,236,0.7); }
.customer-type-group .radio-option input[type="radio"] { margin: 0; accent-color: var(--red); }
.customer-type-group .radio-option span { white-space: nowrap; }
.customer-info-section { padding: 1rem 0.5rem 0.5rem; border: 1px solid rgba(0,0,0,0.05); border-radius: var(--radius); background: #fbfbfb; }
.auth-footer { margin-top: 1.25rem; text-align: center; font-size: 0.86rem; color: var(--text2); }
.auth-footer a { color: var(--red); font-weight: 500; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ── ALERTS ── */
.alert { padding: 0.78rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1.15rem; font-size: 0.86rem; display: flex; align-items: center; gap: 0.5rem; }
.alert-error   { background: #fff0f0; border: 1.5px solid rgba(204,0,0,0.25); color: #cc0000; }
.alert-success { background: #f0faf4; border: 1.5px solid rgba(26,122,60,0.25); color: #1a7a3c; }
.alert-info    { background: #f0f6ff; border: 1.5px solid rgba(0,80,200,0.2); color: #0050c8; }

/* ── ORDERS ── */
.orders-page { max-width: 860px; margin: 0 auto; padding: 2.5rem 2rem 5rem; }
.order-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow); transition: border-color 0.15s; }
.order-card:hover { border-color: var(--red); }
.order-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 0.9rem; }
.order-id   { font-weight: 700; }
.order-date { font-size: 0.78rem; color: var(--text3); margin-top: 0.2rem; }
.order-status { padding: 0.22rem 0.65rem; border-radius: 3px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.status-pending    { background: #fff3cd; color: #856404; }
.status-processing { background: #cfe2ff; color: #0a58ca; }
.status-shipped    { background: #d1ecf1; color: #0c5460; }
.status-delivered  { background: #d4edda; color: #155724; }
.status-cancelled  { background: #f8d7da; color: #721c24; }
.order-total { font-weight: 700; color: var(--red); font-size: 1.1rem; margin-top: 0.3rem; }

/* ── ACCOUNT ── */
.account-page { max-width: 780px; margin: 0 auto; padding: 2.5rem 2rem 5rem; }
.account-header { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2.5rem; }
.account-avatar { width: 64px; height: 64px; border-radius: var(--radius); background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.account-info h2 { margin-bottom: 0.2rem; }
.account-info p  { color: var(--text2); font-size: 0.86rem; }
.card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 1.15rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--border); }
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text2); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.25; display: block; }

/* ── TRUST BAR ── */
.trust-bar { background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 2rem; }
.trust-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
.trust-item { display: flex; align-items: center; gap: 0.85rem; }
.trust-icon { font-size: 1.6rem; flex-shrink: 0; }
.trust-item div { display: flex; flex-direction: column; }
.trust-item strong { font-size: 0.85rem; color: var(--text); font-weight: 600; }
.trust-item span   { font-size: 0.75rem; color: var(--text3); }

/* ── FOOTER ── */
.site-footer { background: var(--text); color: rgba(255,255,255,0.85); padding: 3.5rem 2rem 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand .logo-mark { background: var(--red); }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-sub  { color: rgba(255,255,255,0.4); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.83rem; margin-top: 0.85rem; line-height: 1.75; }
.footer-social { display: inline-block; background: rgba(255,255,255,0.1); color: #fff; padding: 0.35rem 0.85rem; border-radius: 3px; font-size: 0.8rem; font-weight: 500; transition: background 0.15s; }
.footer-social:hover { background: var(--red); }
.footer-links h4 { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer-links a, .footer-links p { display: block; color: rgba(255,255,255,0.7); font-size: 0.84rem; margin-bottom: 0.5rem; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { grid-column: 1/-1; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); font-size: 0.79rem; }
hr { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* ── TOAST ── */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 10000; display: flex; flex-direction: column; gap: 0.6rem; }
.toast { background: var(--text); color: #fff; border-radius: var(--radius-sm); padding: 0.8rem 1.1rem; font-size: 0.86rem; min-width: 260px; max-width: 340px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.55rem; animation: toastIn 0.25s ease; }
.toast.success { background: #1a7a3c; }
.toast.error   { background: var(--red); }
.toast.info    { background: #0050c8; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-brands { display: none; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .top-bar-right { display: none; }
    .product-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
    .gallery-main { height: 260px; }
    .product-lightbox { padding: 1rem; }
    .lightbox-image-wrap { width: 100%; height: 78vh; }
    .lightbox-arrow { width: 40px; height: 40px; font-size: 1.7rem; }
    .lightbox-prev { left: 0.75rem; }
    .lightbox-next { right: 0.75rem; }
    .cart-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .trust-inner { grid-template-columns: 1fr 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 600px) {
    .header-inner { padding: 0 1rem; gap: 0.75rem; }
    .main-nav { display: none; }
    .cart-label { display: none; }
    .top-bar-left { gap: 1rem; }
    .products-grid { grid-template-columns: 1fr 1fr; gap: 0.85rem; }
    .filter-bar { padding: 0.75rem 1rem; }
    .products-section { padding: 1.5rem 1rem 3rem; }
    .trust-inner { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 400px) {
    .products-grid { grid-template-columns: 1fr; }
}
