:root {
    --bg: #0d0d0d;
    --bg-alt: #141414;
    --card: #1a1a1a;
    --card-hover: #222;
    --text: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent: #74b233;
    --accent-dark: #27ae60;
    --price: #e74c3c;
    --secret: #f1c40f;
    --border: #2a2a2a;
    --radius: 16px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --transition: 0.25s ease;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }
  
  body {
    font-family: 'Montserrat', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
  }
  
  .container {
    width: min(1600px, 92%);
    margin: 0 auto;
  }
  
  /* Header */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13,13,13,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
  }
  
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
    position: relative;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
  }
  
  .logo-icon {
    font-size: 28px;
  }
  
  .logo-text {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
  }
  
  .logo-text span {
    color: var(--accent);
  }
  
  .logo-slogan {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
  }
  
  .nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 20px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .nav a:hover,
  .nav a.active {
    color: var(--text);
    background: rgba(46,204,113,0.15);
  }
  
  .nav-secret {
    color: var(--secret) !important;
    border: 1px solid rgba(241,196,15,0.4);
  }
  
  .nav-secret:hover {
    background: rgba(241,196,15,0.15) !important;
  }
  
  .header-contacts {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .phone {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  
  .burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  
  .burger span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
  }
  
  /* Hero */
  .hero {
    position: relative;
    min-height: 48vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 0 56px;
    overflow: hidden;
  }
  
  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(13,13,13,0.55) 0%, rgba(13,13,13,0.88) 100%),
      url('/images/hero.jpg') center/cover no-repeat;
    z-index: 0;
  }
  
  .hero-content {
    position: relative;
    z-index: 1;
  }
  
  .hero h1 {
    font-size: clamp(2.4rem, 6vw, 7.2rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }
  
  .hero h1 span {
    color: var(--accent);
  }
  
  .hero-slogan {
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 14px;
  }
  
  .hero-desc {
    display: block;
    max-width: 540px;
    margin: 0 auto 24px;
    color: var(--text-muted);
    font-size: 1.02rem;
  }
  
  .hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 22px;
  }

  .hero-actions .btn {
    padding: 12px 26px;
    font-size: 0.92rem;
    gap: 6px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
  }

  .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
  }

  .btn-block {
    width: 100%;
  }
  
  .btn-primary {
    background: var(--accent);
    color: #0d0d0d;
  }
  
  .btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(46,204,113,0.35);
  }
  
  .btn-outline {
    border-color: var(--secret);
    color: var(--secret);
    background: transparent;
  }
  
  .btn-outline:hover {
    background: rgba(241,196,15,0.15);
    transform: translateY(-2px);
  }
  
  .hero-delivery {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
  }

  .hero-delivery .ico {
    color: var(--accent);
  }
  
  .hero-delivery a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
  }
  
  /* Category nav */
  .cat-nav {
    position: sticky;
    top: 72px;
    z-index: 900;
    background: rgba(13,13,13,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  
  .cat-nav::-webkit-scrollbar {
    display: none;
  }
  
  .cat-nav-inner {
    display: flex;
    gap: 26px;
    padding: 12px 0;
    min-width: max-content;
  }
  
  .cat-link {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  
  .cat-link:hover,
  .cat-link.active {
    color: var(--text);
    background: rgba(46,204,113,0.15);
    border-color: rgba(46,204,113,0.3);
  }
  
  .cat-link.secret {
    color: var(--secret);
    border-color: rgba(241,196,15,0.35);
  }
  
  .cat-link.secret:hover,
  .cat-link.secret.active {
    background: rgba(241,196,15,0.15);
  }
  
  /* Sections */
  main {
    background: var(--bg);
    color: var(--text);
  }

  .section {
    padding: 36px 0 28px;
  }
  
  .section-alt {
    background: var(--bg-alt);
  }
  
  .section-header {
    text-align: left;
    margin-bottom: 22px;
  }
  
  .section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
  }

  .section-header h2::before {
    content: '';
    width: 5px;
    height: 22px;
    background: var(--accent);
    border-radius: 2px;
    flex-shrink: 0;
  }
  
  .section-header p {
    display: none;
  }

  .page-wrap .section-header {
    text-align: center;
  }

  .page-wrap .section-header h2 {
    color: var(--text);
    font-family: 'Playfair Display', serif;
    text-transform: none;
    letter-spacing: 0;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    justify-content: center;
  }

  .page-wrap .section-header h2::before {
    display: none;
  }

  .page-wrap .section-header p {
    display: block;
    color: var(--text-muted);
  }
  
  /* Cards */
  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }
  
  .cards-grid-sets {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .cards-grid-4 {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .card {
    background: var(--card);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    color: var(--text);
  }
  
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(46,204,113,0.35);
    background: var(--card-hover);
  }
  
  .card-img {
    height: 188px;
    background: #1f1f1f;
    position: relative;
    overflow: hidden;
  }

  .card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.4s ease;
  }

  .card:hover .card-img img {
    transform: scale(1.06);
  }
  
  .card-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
    text-align: left;
  }
  
  .card-body h3 {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text);
  }

  .weight-line {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
  }
  
  .ingredients {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    flex: 1;
  }

  .card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
  }
  
  .card-footer {
    display: none;
  }
  
  .price {
    background: #e53935;
    color: #fff;
    font-weight: 800;
    font-size: 0.92rem;
    padding: 7px 16px 6px 21px;
    border-radius: 2px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
    width: max-content;
    flex-shrink: 0;
  }


  .btn-add:hover {
    background: #27ae60;
    transform: none;
  }

  .btn-add:disabled {
    opacity: 0.4;
    cursor: not-allowed;
  }
  
  .set-badge,
  .secret-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #74b233;
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 3px 5px;
    border-radius: 3px;
    z-index: 2;
    text-transform: none;
  }

  .secret-tag {
    left: auto;
    right: 12px;
    background: rgba(20,20,20,0.78);
    color: #fff;
  }
  
  .card-set {
    position: relative;
  }
  
  .card-set .card-img {
    height: 188px;
  }
  
  /* Secret section */
  .secret-section {
    background:
      radial-gradient(ellipse at 50% 0%, rgba(241,196,15,0.12) 0%, transparent 55%),
      var(--bg);
    border-top: 1px solid rgba(241,196,15,0.25);
    border-bottom: 1px solid rgba(241,196,15,0.25);
  }
  
  .secret-header {
    position: relative;
  }
  
  .secret-badge {
    display: inline-block;
    background: var(--secret);
    color: #0d0d0d;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
  }
  
  .secret-section .section-header h2 {
    color: var(--secret);
  }

  .secret-section .section-header h2::before {
    background: var(--secret);
  }
  
  .card-secret {
    border-color: rgba(241,196,15,0.35);
    position: relative;
  }
  
  .card-secret:hover {
    border-color: var(--secret);
    box-shadow: 0 8px 32px rgba(241,196,15,0.2);
  }
  
  .card-secret .price {
    background: #e53935;
    color: #fff;
  }
  
  /* Footer */
  .footer {
    background: #0a0a0a;
    border-top: 1px solid var(--border);
    padding: 48px 0;
  }
  
  .footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: space-between;
    align-items: flex-start;
  }
  
  .footer-brand .logo-text {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }
  
  .footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
  }
  
  .footer-contacts p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 4px;
  }
  
  .footer-contacts a {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
  }
  
  .footer-note {
    max-width: 280px;
    color: var(--text-muted);
    font-size: 0.85rem;
  }
  
  /* Responsive */
  @media (max-width: 900px) {
    .container {
      width: min(1600px, 94%);
    }

    .header {
      padding-left: env(safe-area-inset-left);
      padding-right: env(safe-area-inset-right);
    }
    .card-img img{
        width: 160px !important;
    }

    .nav {
      display: none;
      position: absolute;
      top: 72px;
      left: 0;
      right: 0;
      background: rgba(13,13,13,0.98);
      flex-direction: column;
      padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
      border-bottom: 1px solid var(--border);
      gap: 4px;
      max-height: calc(100vh - 72px);
      overflow: auto;
    }

    .nav.open {
      display: flex;
    }

    .nav a {
      padding: 12px 16px;
      font-size: 0.95rem;
    }

    .burger {
      display: flex;
    }

    .phone {
      font-size: 0.85rem;
    }

    .icon-label {
      display: none;
    }

    .icon-short {
      display: inline;
    }

    .header-contacts {
      gap: 6px;
    }

    .icon-btn {
      padding: 8px;
    }

    .cards-grid,
    .cards-grid-sets,
    .cards-grid-4 {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
      gap: 14px;
    }

    .hero-actions {
      gap: 10px;
    }

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

    .order-success {
      top: 76px;
      width: calc(100% - 24px);
    }
  }

  @media (max-width: 560px) {
    .header-inner {
      height: 60px;
      gap: 8px;
    }

    .logo-slogan {
      display: none;
    }

    .logo-img {
      width: 40px;
      height: 40px;
      border-radius: 14px;
    }

    .logo-text {
      font-size: 0.95rem;
    }

    .nav {
      top: 60px;
      max-height: calc(100vh - 60px);
    }

    .cat-nav {
      top: 60px;
    }

    .cat-nav-inner {
      gap: 8px;
      padding: 8px 5px;
    }

    .cat-link {
      padding: 7px 12px;
      font-size: 0.75rem;
    }

    .hero {
      min-height: 0;
      padding: 88px 0 28px;
    }

    .hero h1 {
      letter-spacing: 1px;
    }

    .hero-desc {
      font-size: 0.92rem;
      margin-bottom: 16px;
    }

    .hero-actions {
      flex-direction: column;
      align-items: stretch;
    }

    .hero-actions .btn {
      width: 100%;
    }

    .hero-delivery {
      flex-wrap: wrap;
      justify-content: center;
    }

    .section {
      padding: 24px 0 18px;
    }

    .cards-grid,
    .cards-grid-sets,
    .cards-grid-4 {
      gap: 10px;
    }

    .card {
      border-radius: 14px;
      flex-direction: row;
    }

    .card:hover {
      transform: none;
    }

    .card-img {
      height: 120px;
    }

    .card-body {
      padding: 10px;
      gap: 3px;
    }

    .card-body h3 {
      font-size: 0.78rem;
    }

    .ingredients {
      font-size: 0.68rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .price {
      font-size: 0.78rem;
      padding: 6px 14px 5px 18px;
      width: max-content;
      max-width: 100%;
    }

    .btn-add {
      padding: 7px 10px;
      font-size: 0.72rem;
    }

    .card-bottom {
      flex-direction: row;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      margin-top: 8px;
    }

    .variant-list {
      flex-wrap: wrap;
    }

    .footer {
      padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
    }

    .footer-inner {
      flex-direction: column;
      text-align: center;
      align-items: center;
      gap: 18px;
    }

    .footer-note {
      max-width: none;
    }

    .phone {
      display: none;
    }

    .cart-drawer {
      width: 100%;
    }

    .cart-foot {
      max-height: 52%;
      padding-bottom: calc(16px + env(safe-area-inset-bottom));
    }

    .cart-item {
      grid-template-columns: 64px 1fr;
    }

    .auth-modal-card {
      width: 100%;
      padding: 16px;
      border-radius: 16px;
    }

    .modal {
      padding: 12px;
      align-items: flex-end;
    }

    .auth-page, .page-wrap {
      padding: 88px 0 40px;
    }

    .order-card {
      padding: 14px;
    }

    .order-top {
      flex-direction: column;
    }

    .order-line {
      grid-template-columns: 48px 1fr auto;
      gap: 8px;
    }

    .order-line img {
      width: 48px;
      height: 48px;
    }

    .order-bottom {
      flex-direction: column;
      align-items: stretch;
    }

    .toast {
      bottom: calc(16px + env(safe-area-inset-bottom));
      width: calc(100% - 24px);
      text-align: center;
    }
  }

  @media (max-width: 380px) {
    .cards-grid,
    .cards-grid-sets,
    .cards-grid-4 {
      grid-template-columns: 1fr;
    }

    .card-img {
      height: 180px;
    }

    .icon-btn-accent {
      min-width: 36px;
      justify-content: center;
    }
  }

  .logo-img {
    width: 48px;
    height: 48px;
    border-radius: 35px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(46,204,113,0.35);
  }

  .ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    flex-shrink: 0;
  }

  .ico svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .nav-secret {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .phone .ico svg {
    width: 15px;
    height: 15px;
  }

  .icon-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 20px;
    white-space: nowrap;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }

  .icon-btn:hover {
    color: var(--text);
    background: rgba(255,255,255,0.06);
  }

  .icon-btn-accent {
    color: #0d0d0d;
    background: var(--accent);
  }

  .icon-btn-accent:hover {
    background: var(--accent-dark);
    color: #0d0d0d;
  }

  .icon-label {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: bottom;
  }

  .icon-short {
    display: none;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1;
  }

  .cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  .cart-btn .ico svg {
    width: 20px;
    height: 20px;
  }

  .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--price);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-actions {
    display: none;
  }

  .stock {
    display: none;
  }

  .btn-add {
    background: #74b233;
    color: #000000;
    border: none;
    border-radius: 2px;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
}

  .btn-add:hover {
    background: #27ae60;
    transform: none;
  }

  .btn-add:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
  }

  .variant-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
  }

  .variant-opt {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    cursor: pointer;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px 10px;
  }

  .variant-opt input {
    accent-color: var(--accent);
  }

  .sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    z-index: 2;
  }

  .card-sold {
    opacity: 0.72;
  }

  .cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(430px, 100%);
    height: 100%;
    background: #141414;
    color: var(--text);
    border-left: 1px solid var(--border);
    box-shadow: -16px 0 40px rgba(0,0,0,0.45);
    z-index: 2000;
    transform: translateX(110%);
    transition: transform 0.28s ease;
    display: flex;
    flex-direction: column;
  }

  .cart-drawer.open {
    transform: translateX(0);
  }

  .cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }

  .cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .cart-head {
    padding: 16px 18px;
    background: #1a1a1a;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .cart-head h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text);
  }

  .cart-head-count {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.92;
    margin-top: 2px;
  }

  .cart-foot {
    padding: 16px 18px 20px;
    background: #161616;
    border-top: 1px solid var(--border);
    display: none;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    max-height: 58%;
    overflow: auto;
  }

  .cart-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #222;
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cart-body {
    flex: 1;
    overflow: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .cart-drawer .empty-note {
    color: var(--text-muted);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
  }

  .cart-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    margin-bottom: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    color: var(--text);
  }

  .cart-item img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
  }

  .cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 0.88rem;
    min-width: 0;
  }

  .cart-item-info b {
    color: var(--text);
  }

  .cart-item-info span {
    color: var(--text-muted);
    font-size: 0.75rem;
  }

  .cart-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
  }

  .line-sum {
    font-size: 0.92rem;
    white-space: nowrap;
    color: var(--price);
    margin-left: auto;
  }

  .qty {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #111;
    border-radius: 999px;
    padding: 2px;
  }

  .qty em {
    min-width: 18px;
    text-align: center;
    font-style: normal;
    font-weight: 800;
  }

  .qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 0;
    background: var(--accent);
    color: #0d0d0d;
    cursor: pointer;
    font-weight: 800;
  }

  .cart-del {
    background: #111;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
  }

  .cart-total {
    font-size: 1.15rem;
  }

  .cart-drawer .cart-total,
  .cart-drawer .cart-sum-row b,
  .cart-drawer .cart-total b {
    color: var(--text);
  }

  .cart-sum-row {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .delivery-hint {
    background: rgba(116,178,51,0.12);
    border: 1px solid rgba(116,178,51,0.3);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
  }

  .cart-order-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
  }

  .cart-order-form label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
  }

  .cart-order-form input,
  .cart-order-form textarea {
    background: #111;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.92rem;
  }

  .ship-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .ship-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.85rem;
    color: var(--text);
    cursor: pointer;
  }

  .ship-opt input {
    accent-color: var(--accent);
  }

  .modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2100;
    padding: 20px;
  }

  .modal.open { display: flex; }

  .auth-modal-card {
    width: min(420px, 100%);
    background: #161616;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px 22px 24px;
    position: relative;
  }

  .auth-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }

  .auth-modal-head h3 {
    margin: 0;
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
  }

  .auth-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #1f1f1f;
    color: var(--text);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
  }

  .auth-close:hover {
    background: rgba(255,255,255,0.08);
  }

  .auth-error {
    background: rgba(231,76,60,0.15);
    border: 1px solid rgba(231,76,60,0.4);
    color: #ff8a80;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .auth-form.is-hidden {
    display: none !important;
  }

  .auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 16px;
  }

  .auth-tab {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: 12px;
    padding: 10px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
  }

  .auth-tab.active {
    background: rgba(46,204,113,0.15);
    border-color: rgba(46,204,113,0.4);
    color: var(--text);
  }

  .order-success {
    position: fixed;
    left: 50%;
    top: 88px;
    transform: translateX(-50%);
    z-index: 4000;
    display: none;
    padding: 0 16px;
    pointer-events: none;
  }

  .order-success.show {
    display: block;
    animation: cloudIn 0.35s ease;
  }

  .order-success-cloud {
    position: relative;
    max-width: 420px;
    background: #74b233;
    color: #fff;
    text-align: center;
    padding: 16px 22px 18px;
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1.35;
    border-radius: 28px 28px 28px 28px;
    box-shadow: 0 10px 28px rgba(116,178,51,0.35);
    pointer-events: auto;
  }

  .order-success-cloud::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 22px;
    height: 22px;
    background: #74b233;
    border-radius: 0 0 4px 0;
    transform: translateX(-50%) rotate(45deg);
  }

  @keyframes cloudIn {
    from { transform: translateX(-50%) translateY(-12px); opacity: 0; }
    to { transform: translateX(-50%) translateY(0); opacity: 1; }
  }

  .toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px);
    background: var(--accent);
    color: #0d0d0d;
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 12px;
    opacity: 0;
    pointer-events: none;
    z-index: 3000;
    transition: 0.25s ease;
  }

  .toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .toast.error {
    background: var(--price);
    color: #fff;
  }

  .auth-page, .page-wrap {
    padding: 120px 0 64px;
    min-height: 80vh;
  }

  .auth-card {
    width: min(440px, 92%);
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
  }

  .auth-card h1, .auth-card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 8px;
  }

  .auth-lead, .auth-switch, .auth-hint, .empty-note, .order-meta, .muted {
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
  }

  .auth-form label, .checkout-form label, .modal-card label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
  }

  .auth-form input, .checkout-form input, .checkout-form textarea,
  .modal-card input, .modal-card textarea, .modal-card select,
  .admin-toolbar select {
    background: #111;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
  }

  .auth-form a, .empty-note a {
    color: var(--accent);
  }

  .auth-hint {
    font-size: 0.75rem;
    line-height: 1.5;
  }

  .checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
  }

  .checkout-form {
    width: auto;
    margin: 0;
  }

  .footer-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .stat-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .stat-pill .ico {
    color: var(--accent);
  }

  .stat-pill b {
    color: var(--accent);
  }

  .orders-list {
    display: grid;
    gap: 16px;
  }

  .order-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
  }

  .order-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    align-items: flex-start;
  }

  .order-top b {
    font-size: 1.05rem;
    line-height: 1.35;
  }

  .order-card ul {
    margin: 10px 0;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
  }

  .order-lines {
    display: grid;
    gap: 10px;
    margin: 12px 0;
  }

  .order-line {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 10px;
    align-items: center;
  }

  .order-line img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 10px;
  }

  .order-line span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
  }

  .order-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .status {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
  }

  .status-new { background: rgba(241,196,15,0.2); color: var(--secret); }
  .status-processing { background: rgba(46,204,113,0.18); color: var(--accent); }
  .status-done { background: rgba(255,255,255,0.08); color: var(--text-muted); }
  .status-cancelled { background: rgba(231,76,60,0.18); color: var(--price); }

  @media (max-width: 900px) {
    .checkout-grid {
      grid-template-columns: 1fr;
    }
    .icon-label {
      display: none;
    }
  }

  @media (max-width: 560px) {
    .phone {
      display: none;
    }
    .cart-item {
      grid-template-columns: 64px 1fr;
    }
  }