
:root {
    --bg: #f7f7fb;
    --panel: rgba(255,255,255,0.88);
    --card: #ffffff;
    --text: #19202b;
    --muted: #647089;
    --line: #e6eaf2;
    --accent: #4f46e5;
    --accent-2: #7c3aed;
    --shadow: 0 18px 44px rgba(31, 41, 55, 0.08);
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    background:
      radial-gradient(circle at top left, rgba(124,58,237,0.08), transparent 28%),
      radial-gradient(circle at top right, rgba(79,70,229,0.09), transparent 22%),
      linear-gradient(180deg, #fbfcff 0%, #f5f7fb 100%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
/* Header aligned with index_new */
.site-header--shop .main-nav {
    position: sticky;
    top: 0;
    z-index: 1100;
    backdrop-filter: blur(18px);
    background: rgba(255,255,255,0.82);
    border-bottom: 1px solid rgba(230,234,242,0.75);
}
.site-header--shop .nav-inner {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    min-height: 64px;
}
.site-header--shop .desktop-nav,
.site-header--shop .nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.site-header--shop .desktop-nav--shop {
    justify-self: center;
    justify-content: center;
}

.site-header--shop .brand--shop img {
    height: 48px;
    width: auto;
}
.site-header--shop .nav-actions--shop {
    justify-self: end;
    order: 2;
}
.site-header--shop .desktop-nav--shop {
    order: 1;
}
.site-header--shop .nav-links a,
.site-header--shop .nav-login,
.site-header--shop .user-button {
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--text);
    font-weight: 700;
    font-size: 0.96rem;
}
.site-header--shop .nav-links a.active,
.site-header--shop .nav-links a:hover,
.site-header--shop .nav-login:hover,
.site-header--shop .user-button:hover {
    background: rgba(79,70,229,0.08);
}
.site-header--shop .user-dropdown { position: relative; }
.site-header--shop .user-button {
    min-height: 44px;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.site-header--shop .dropdown-content {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 8px;
}
.site-header--shop .dropdown-content a { display: block; padding: 10px 12px; border-radius: 10px; }
.site-header--shop .dropdown-content a:hover { background: #f4f6fb; }
.site-header--shop .dropdown-content[hidden] { display: none !important; }
.site-header--shop .cart-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    min-height: 44px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
}
.site-header--shop .cart-icon { position: relative; font-size: 1.1rem; }
.site-header--shop .cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    font-size: 0.72rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 999px;
    padding: 0 4px;
}
.site-header--shop .cart-price { font-weight: 700; font-size: 0.9rem; }
.site-header--shop .mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    cursor: pointer;
}
.site-header--shop .mobile-drawer {
    display: none;
    width: min(var(--container), calc(100% - 32px));
    margin: 10px auto 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 10px;
}
.site-header--shop .mobile-drawer[hidden] { display: none !important; }
.site-header--shop .mobile-drawer a { display: block; padding: 12px 14px; border-radius: 12px; font-weight: 700; }
.site-header--shop .mobile-drawer a:hover,
.site-header--shop .mobile-drawer a.active { background: #f4f6fb; }
.shop-shell {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 72px;
}
.shop-hero {
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: 24px;
    align-items: end;
    padding: 8px 0 4px;
}
.eyebrow {
    margin: 0 0 8px;
    font-size: 0.84rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 800;
}
.shop-hero h1 { margin: 0; line-height: 1.05; font-size: clamp(2rem, 4vw, 3.3rem); }
.shop-intro {
    margin: 14px 0 0;
    max-width: 760px;
    color: var(--muted);
    line-height: 1.6;
}
.shop-hero__actions { display: none; gap: 10px; }
.hero-link {
    min-height: 48px;
    padding: 0 18px;
    border: none;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    background: var(--text);
    color: #fff;
}
.hero-link--ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.admin-strip {
    margin-top: 18px;
    padding: 14px 18px;
    border: 1px dashed rgba(79,70,229,0.35);
    background: rgba(79,70,229,0.06);
    border-radius: 18px;
}
.admin-strip a { font-weight: 700; color: var(--accent); }
.shop-toolbar {
    margin-top: 18px;
    padding: 12px 14px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(230,234,242,0.9);
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(31,41,55,0.05);
}
.toolbar-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}
.chip-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.chip {
    white-space: nowrap;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    font-weight: 700;
    font-size: 0.94rem;
    cursor: pointer;
}
.chip.active { background: var(--text); color: #fff; border-color: var(--text); }
.filter-icon-button {
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 14px;
    cursor: pointer;
    color: var(--text);
    box-shadow: 0 10px 24px rgba(31,41,55,0.05);
}
.advanced-filters {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.advanced-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}
.advanced-grid--single {
    grid-template-columns: minmax(220px, 320px);
}
.advanced-filters label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
}
.advanced-filters select {
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0 14px;
    font: inherit;
    color: var(--text);
}
.toggle-check {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.results-head {
    margin: 26px 0 18px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}
.results-head h2 { margin: 0; font-size: clamp(1.45rem, 2vw, 2rem); }
.results-head p { margin: 8px 0 0; color: var(--muted); }
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}
.product-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(22,33,61,0.06);
}
.product-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #f4f6fb;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.discount-badge, .featured-badge {
    position: absolute;
    top: 14px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 800;
}
.discount-badge { left: 14px; background: #ff5f59; color: #fff; }
.featured-badge { right: 14px; background: rgba(22,33,61,0.85); color: #fff; }
.product-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 10px;
    padding: 18px;
}
.product-meta {
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.product-title {
    margin: 0;
    height: 4.05em;
    line-height: 1.35;
    font-size: 1.05rem;
    overflow: hidden;
}
.product-title a {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.price-line {
    margin-top: auto;
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
    min-height: 36px;
}
.price-current { font-size: 1.25rem; font-weight: 800; }
.price-old { color: #9aa3b7; text-decoration: line-through; }
.card-actions { margin-top: 10px; }
.btn {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    cursor: pointer;
}
.btn-primary { background: var(--text); color: #fff; }
.btn-primary.is-added { background: #1ea75a; }
.btn-secondary { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-disabled { background: #eef1f7; color: #98a0b3; cursor: not-allowed; }
.admin-edit { margin-top: 10px; font-size: 0.92rem; color: var(--accent); font-weight: 700; }
.empty-state {
    margin-top: 18px;
    padding: 34px 28px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--line);
    text-align: center;
}
.shop-footer {
    width: min(var(--container), calc(100% - 32px));
    margin: 34px auto 28px;
    color: var(--muted);
    text-align: center;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.footer-doc { margin-bottom: 12px; }
@media (max-width: 1100px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .site-header--shop .desktop-nav, .site-header--shop .nav-login, .site-header--shop .user-dropdown { display: none; }
    .site-header--shop .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; }
    .site-header--shop .mobile-drawer { display: block; }
    .site-header--shop .nav-inner { min-height: 58px; grid-template-columns: 1fr auto auto; gap: 10px; }
    .site-header--shop .brand--shop { justify-self: start; }
    .site-header--shop .nav-actions--shop { gap: 10px; }
    .shop-actions--desktop { display: flex; justify-self: start; }
    .site-header--shop .brand--shop img { height: 38px; }
    .shop-hero { grid-template-columns: 1fr; gap: 14px; }
    .shop-hero__actions { display: flex; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .shop-shell, .shop-footer, .site-header--shop .nav-inner, .site-header--shop .mobile-drawer { width: calc(100% - 24px); }
    .shop-toolbar { padding: 12px; border-radius: 18px; }
    .advanced-grid, .advanced-grid--single { grid-template-columns: 1fr; }
    .results-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
    .site-header--shop .nav-inner { gap: 8px; }
    .site-header--shop .cart-wrapper { padding: 7px 9px; }
    .cart-total { display: none !important; }
    .chip { padding: 9px 13px; font-size: 0.91rem; }
    .product-grid { gap: 14px; }
    .product-card { border-radius: 18px; }
    .product-card__body { padding: 14px; }
    .product-title { height: 4.05em; font-size: 0.98rem; }
    .price-current { font-size: 1.1rem; }
    .btn { min-height: 46px; border-radius: 14px; font-size: 0.95rem; }
}
