/* ========================================
   Half Price Tools TX — Modern Store
   Based on live site design (Barlow + Bebas Neue, Blood red accent)
   ======================================== */

:root {
    --bg: #0b0d10;
    --bg-surface: #14161a;
    --bg-surface-hi: #1c1f26;
    --bg-elevated: #1a1d21;
    --border: #2d3139;
    --border-light: #3d4149;
    --text: #f3f4f6;
    --text-muted: #6b7280;
    --text-dim: #3f3f46;
    --accent: #e63946;
    --accent-hover: #d62828;
    --accent-glow: rgba(230, 57, 70, 0.15);
    --danger: #e63946;
    --success: #10b981;
    --warning: #f59e0b;
    --purple: #863bff;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Barlow', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Bebas Neue', 'Impact', sans-serif;
    --max-width: 1280px;
    --nav-height: 72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

::selection {
    background: var(--accent);
    color: #fff;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ========================================
   NAV
   ======================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    z-index: 100;
    background: rgba(11, 13, 16, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.nav__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
}
.nav__logo-svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.nav__logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
.nav__logo-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-left: 4px;
}
.nav__links {
    display: flex;
    gap: 32px;
}
.nav__link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition);
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 16px; }
.nav__cart {
    position: relative;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition);
}
.nav__cart:hover { background: var(--bg-surface); }
.nav__cart-count {
    position: absolute;
    top: 2px; right: 2px;
    width: 18px; height: 18px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition);
}
.nav__cart-count.visible {
    opacity: 1;
    transform: scale(1);
}
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav__hamburger span {
    width: 22px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ========================================
   CUSTOM CURSOR
   ======================================== */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 32px; height: 32px;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.08s ease-out, opacity 0.2s ease;
    will-change: transform;
}
.cursor__drill {
    width: 100%; height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none'%3E%3Cpath d='M40 8L24 24M40 8L32 16M40 8L36 2M40 8L44 14' stroke='%23e63946' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 40L32 24M16 40L24 32M16 40L8 44M16 40L2 36' stroke='%23863bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='24' cy='24' r='6' fill='%23e63946' opacity='0.3'/%3E%3C/svg%3E") center/contain no-repeat;
    transform: rotate(-45deg);
    transition: transform 0.1s ease;
    filter: drop-shadow(0 2px 4px rgba(230,57,70,0.5));
}
.cursor.spark .cursor__drill {
    animation: cursorSpin 0.3s ease-in-out;
}
@keyframes cursorSpin {
    0% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-135deg) scale(1.2); }
    100% { transform: rotate(-45deg) scale(1); }
}
.cursor__trail {
    position: absolute;
    top: 50%; left: 50%;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #e63946 0%, #863bff 50%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
}
.cursor__trail.active {
    animation: sparkTrail 0.6s ease-out forwards;
}
@keyframes sparkTrail {
    0% { width: 8px; height: 8px; opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { width: 24px; height: 24px; opacity: 0; transform: translate(-50%, -50%) scale(2); }
}

/* ========================================
   HERO
   ======================================== */
.hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    padding: calc(var(--nav-height) + 20px) 24px 40px;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(230, 57, 70, 0.08), transparent),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(134, 59, 255, 0.05), transparent),
        linear-gradient(180deg, var(--bg) 0%, #0f1114 100%);
}
.hero__bg-image {
    position: absolute;
    inset: 0;
    background: url("https://halfpricetoolstx.com/uploads/images/2052/0-123456789abc.jpg") center/cover no-repeat;
    opacity: 0.03;
    filter: grayscale(1) contrast(1.2);
    pointer-events: none;
}
.hero__content {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}
.hero__badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.hero__accent { color: var(--accent); }
.hero__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.6;
}
.hero__cta {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
}
.hero__stats {
    display: flex;
    gap: 48px;
}
.hero__stat {
    display: flex;
    flex-direction: column;
}
.hero__stat-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}
.hero__stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}
.btn--primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}
.btn--primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(230, 57, 70, 0.3);
}
.btn--ghost {
    border: 1px solid var(--border-light);
    color: var(--text);
    background: transparent;
}
.btn--ghost:hover {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.1);
}
.btn--full { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: 13px; }
.btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }

/* ========================================
   SECTION UTILS
   ======================================== */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}
.section-sub {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-top: 8px;
}

/* ========================================
   STORE
   ======================================== */
.store {
    padding: 100px 24px;
    max-width: var(--max-width);
    margin: 0 auto;
}
.store__header { margin-bottom: 40px; }

.store__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.store__search {
    position: relative;
    flex: 1;
    max-width: 400px;
}
.store__search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}
.store__search input {
    width: 100%;
    padding: 10px 14px 10px 44px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 14px;
    font-family: var(--font);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.store__search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.store__search input::placeholder { color: var(--text-dim); }
.store__search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition);
}
.store__search-clear.visible { opacity: 1; pointer-events: all; }
.store__search-clear:hover { background: var(--accent); color: #fff; }
.store__sort {
    padding: 10px 40px 10px 14px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color var(--transition);
}
.store__sort:focus { outline: none; border-color: var(--accent); }
.store__sort:hover { border-color: var(--accent); }

.store__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 80px 24px;
    color: var(--text-muted);
}
.loader {
    width: 40px; height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.store__empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ========================================
   STORE LAYOUT + SIDENAV
   ======================================== */
.store__layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 32px;
    align-items: start;
}
.store__sidenav {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    height: fit-content;
    max-height: calc(100vh - var(--nav-height) - 48px);
    overflow-y: auto;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: none; /* shown on desktop */
}
@media (min-width: 1024px) {
    .store__sidenav { display: block; }
}
.sidenav__list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidenav__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}
.sidenav__item:hover {
    background: var(--bg);
    color: var(--text);
}
.sidenav__item.active {
    background: var(--accent);
    color: #fff;
}
.sidenav__item.active .sidenav__count { color: rgba(255,255,255,0.7); }
.sidenav__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
}
.sidenav__toggle {
    display: none;
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 50;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(230,57,70,0.4);
    align-items: center;
    justify-content: center;
}
@media (max-width: 1023px) {
    .sidenav__toggle { display: flex; }
    .store__sidenav.open { display: block; }
    .store__layout { grid-template-columns: 1fr; }
}
.store__categories {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.category-section {
    border-bottom: 1px solid var(--accent);
    padding-bottom: 32px;
    margin-bottom: 32px;
}
.category-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ========================================
   SKELETON LOADERS
   ======================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--border) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.skeleton-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.skeleton-card__image {
    aspect-ratio: 4/3;
    background: var(--bg);
}
.skeleton-card__body { padding: 20px; }
.skeleton-card__cat { height: 14px; width: 60px; margin-bottom: 12px; }
.skeleton-card__name { height: 22px; width: 80%; margin-bottom: 16px; }
.skeleton-card__price { height: 24px; width: 50%; }
.skeleton-category {
    animation: fadeInUp 0.4s ease;
}
.skeleton-category__header { margin-bottom: 24px; }
.skeleton-category__title { height: 28px; width: 40%; margin-bottom: 16px; }
.skeleton-category__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

/* ========================================
   WISHLIST
   ======================================== */
.product-card__wishlist {
    position: absolute;
    top: 12px; right: 12px;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all var(--transition);
    z-index: 2;
}
.product-card__wishlist:hover {
    background: var(--accent);
    transform: scale(1.1);
}
.product-card__wishlist.active {
    background: var(--accent);
}
.product-card__wishlist svg { width: 18px; height: 18px; }

/* ========================================
   CATEGORY SECTIONS
   ======================================== */
.store__categories {
    display: flex;
    flex-direction: column;
    gap: 48px;
}
.category-section {
    animation: fadeInUp 0.4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.category__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.category__title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text);
}
.category__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.category__count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.category__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.category__toggle {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
}

.category__title {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--text);
}

.category__meta {
    display: flex;
    align-items: center;
    gap: 12px;
}
.category__count {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.category__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.category__toggle {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
}
.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}
.product-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.product-card__image {
    aspect-ratio: 4/3;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
    position: relative;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .product-card__image img {
    transform: scale(1.05);
}
.product-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-dim);
}
.product-card__badge {
    position: absolute;
    top: 12px; left: 12px;
    padding: 4px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.product-card__grade {
    position: absolute;
    top: 12px; right: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(8px);
    border: 1px solid;
}
.product-card__grade--a {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
}
.product-card__grade--b {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}
.product-card__grade--c {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}
.product-card__grade--d {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}
.product-card__body { padding: 20px; }
.product-card__cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.product-card__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text);
}
.product-card__pricing {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 16px;
}
.product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}
.product-card__msrp {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: line-through;
}
.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.product-card__stock {
    font-size: 12px;
    font-weight: 500;
}
.product-card__stock--ok { color: var(--success); }
.product-card__stock--low { color: var(--warning); }
.product-card__add {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    border: 1px solid var(--accent);
    transition: all var(--transition);
}
.product-card__add:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* ========================================
   ABOUT
   ======================================== */
.about {
    padding: 100px 24px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.about__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}
.about__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 48px;
}
.about__step {
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color var(--transition);
}
.about__step:hover { border-color: var(--accent); }
.about__step-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.6;
}
.about__step h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.about__step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
    padding: 100px 24px;
}
.contact__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
}
.contact__info {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.contact__item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-muted);
}
.contact__item svg { color: var(--accent); flex-shrink: 0; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
    padding: 32px 24px;
    border-top: 1px solid var(--border);
}
.footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-dim);
    flex-wrap: wrap;
    gap: 8px;
}
.footer__brand {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text-muted);
}
.footer__address {
    color: var(--text-dim);
    font-size: 13px;
}

/* ========================================
   CART SIDEBAR
   ======================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart {
    position: fixed;
    top: 0; right: 0;
    width: 420px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    z-index: 201;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.cart.open { transform: translateX(0); }
.cart__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}
.cart__header h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
}
.cart__close {
    font-size: 24px;
    padding: 4px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.cart__close:hover { color: var(--accent); }
.cart__items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}
.cart__empty {
    text-align: center;
    color: var(--text-dim);
    padding: 48px 0;
    font-size: 0.95rem;
}
.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item__icon {
    width: 56px; height: 56px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    overflow: hidden;
}
.cart-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 4px;
}
.cart-item__info { flex: 1; }
.cart-item__name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}
.cart-item__price {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}
.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.cart-item__qty button {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition);
}
.cart-item__qty button:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.cart-item__qty span {
    font-size: 14px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}
.cart-item__remove {
    font-size: 12px;
    color: var(--text-dim);
    transition: color var(--transition);
    align-self: flex-start;
    margin-top: 4px;
}
.cart-item__remove:hover { color: var(--danger); }
.cart__footer {
    padding: 20px 24px;
    border-top: 1px solid var(--border);
}
.cart__total {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.cart__note {
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 12px;
}

/* ========================================
   PRODUCT MODAL
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 700px;
    max-width: 92vw;
    max-height: 85vh;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    z-index: 301;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal.open {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}
.modal__close {
    position: absolute;
    top: 16px; right: 16px;
    font-size: 28px;
    z-index: 10;
    color: var(--text-muted);
    transition: color var(--transition);
}
.modal__close:hover { color: var(--accent); }
.modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.modal__image {
    aspect-ratio: 1;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}
.modal__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 24px;
}
.modal__info { padding: 32px; }
.modal__cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.modal__name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 8px 0 16px;
}
.modal__pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
}
.modal__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}
.modal__msrp {
    font-size: 1rem;
    color: var(--text-dim);
    text-decoration: line-through;
}
.modal__desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}
.modal__stock {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
}
.modal__features {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.modal__features h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.modal__features ul {
    list-style: none;
    padding: 0;
}
.modal__features li {
    font-size: 13px;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.5;
}
.modal__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 12px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .nav__links {
        position: fixed;
        top: var(--nav-height); left: 0; right: 0;
        background: var(--bg-surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }
    .nav__links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav__hamburger { display: flex; }
    .hero__stats { gap: 24px; }
    .hero__cta { flex-direction: column; }
    .hero__cta .btn { width: 100%; }
    .store__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .modal__body { grid-template-columns: 1fr; }
    .modal__image { aspect-ratio: 16/9; }
    .footer__inner { flex-direction: column; gap: 8px; text-align: center; }
    .contact__info { flex-direction: column; align-items: center; gap: 24px; }
}

@media (max-width: 480px) {
    .store__grid { grid-template-columns: 1fr; }
    .hero__stats { flex-direction: column; gap: 16px; }
    .about__steps { grid-template-columns: 1fr; }
    .category-section { padding-bottom: 24px; margin-bottom: 24px; }
    .category__grid { grid-template-columns: 1fr; gap: 16px; }
    .product-card__name { font-size: 1rem; }
    .product-card__price { font-size: 1.1rem; }
    .store__toolbar { gap: 12px; }
    .store__search { max-width: none; }
    .store__sort { padding: 10px 36px 10px 12px; font-size: 12px; }
}

/* ========================================
   CHAT WIDGET
   ======================================== */
.chat-widget {
    position: fixed;
    bottom: 24px; right: 24px;
    z-index: 500;
    font-family: var(--font);
}
.chat__trigger {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 24px rgba(230,57,70,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.chat__trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 32px rgba(230,57,70,0.5);
}
.chat__trigger-icon { transition: transform 0.3s ease; }
.chat__trigger[aria-expanded="true"] .chat__trigger-icon { transform: rotate(45deg); }
.chat__badge {
    position: absolute;
    top: 4px; right: 4px;
    width: 20px; height: 20px;
    background: #fff;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition);
}
.chat__badge.visible { opacity: 1; transform: scale(1); }

.chat__panel {
    position: absolute;
    bottom: 72px; right: 0;
    width: 380px;
    max-width: calc(100vw - 48px);
    height: 520px;
    max-height: 70vh;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat__panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.chat__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}
.chat__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(230,57,70,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat__title { font-size: 14px; font-weight: 600; color: var(--text); }
.chat__status { font-size: 12px; color: var(--success); }
.chat__close {
    margin-left: auto;
    font-size: 24px;
    color: var(--text-muted);
    transition: color var(--transition);
}
.chat__close:hover { color: var(--accent); }

.chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat__message {
    display: flex;
    gap: 10px;
    max-width: 85%;
    animation: fadeInUp 0.3s ease;
}
.chat__message--user { align-self: flex-end; flex-direction: row-reverse; }
.chat__message--assistant { align-self: flex-start; }
.chat__message-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.chat__message--user .chat__message-avatar { background: var(--accent); color: #fff; }
.chat__message-content {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.5;
}
.chat__message--assistant .chat__message-content {
    background: var(--bg);
    color: var(--text);
    border-bottom-left-radius: 4px;
}
.chat__message--user .chat__message-content {
    background: var(--accent);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chat__message-time {
    font-size: 10px;
    color: var(--text-dim);
    margin-top: 4px;
    text-align: right;
}
.chat__message--user .chat__message-time { text-align: left; }

.chat__message--product {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.chat__product-image {
    width: 56px; height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--bg-surface);
}
.chat__product-info { flex: 1; min-width: 0; }
.chat__product-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat__product-price { font-size: 12px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.chat__product-actions { display: flex; gap: 4px; margin-top: 8px; }
.chat__product-btn {
    flex: 1;
    padding: 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.chat__product-btn--primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.chat__product-btn--primary:hover { background: var(--accent-hover); }
.chat__product-btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.chat__product-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.chat__suggestions {
    padding: 0 16px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.chat__suggestion {
    padding: 8px 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
}
.chat__suggestion:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.chat__input-form {
    display: flex;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--border);
}
.chat__input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 13px;
    font-family: var(--font);
    transition: border-color var(--transition);
}
.chat__input:focus { outline: none; border-color: var(--accent); }
.chat__input::placeholder { color: var(--text-dim); }
.chat__send {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), transform var(--transition);
}
.chat__send:hover { background: var(--accent-hover); transform: scale(1.05); }
.chat__send:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 480px) {
    .chat__panel {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        max-height: calc(100vh - 100px);
        bottom: 72px; right: 12px; left: 12px;
    }
    .chat__trigger { bottom: 16px; right: 16px; }
    .chat__message { max-width: 90%; }
}