  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: "Inter", system-ui, Arial, sans-serif;
    background: #F4F4F6;
    color: #1A1A1A;
    font-size: 14px;
  }
  button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
  a { color: #0066FF; text-decoration: none; }
  a:hover { color: #0048B8; text-decoration: underline; }
  ul { list-style: none; }
  .txt-left { text-align: left; }
  .signin-card .btn-primary { margin-top: 8px; }
  .container-bg { z-index: 0; position: relative; }

  /* ========== TOP NAV ========== */
  .nav-top {
    background: #1A1A1A;
    color: white;
    display: flex;
    align-items: stretch;
    padding: 4px 8px;
    gap: 4px;
  }
  .nav-cell {
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 2px;
    display: flex;
    align-items: flex-end;
    gap: 4px;
    color: white;
  }
  .nav-cell:hover { border-color: white; }
  .nav-cell .line1 { font-size: 12px; color: #ccc; line-height: 1.1; }
  .nav-cell .line2 { font-weight: 700; font-size: 14px; line-height: 1.1; display: flex; align-items: center; gap: 2px; }

  /* Logo */
  .logo {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
  }
  .logo-mark {
    width: 24px;
    height: 24px;
    background: #0066FF;
    transform: rotate(45deg);
    position: relative;
    flex-shrink: 0;
  }
  .logo-mark::after {
    content: '';
    position: absolute;
    inset: 5px;
    background: #1A1A1A;
    transform: rotate(45deg);
  }
  .logo-text {
    color: white;
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.5px;
    font-family: "Inter", system-ui, sans-serif;
  }
  .logo-text span { color: #4D8FFF; }

  /* Deliver-to with icon */
  .deliver-cell { align-items: flex-end; }
  .deliver-cell svg { margin-bottom: 4px; }

  /* Search bar */
  .nav-search {
    flex: 1;
    display: flex;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    align-self: center;
    min-width: 200px;
  }
  .nav-search:hover, .nav-search:focus-within {
    box-shadow: 0 0 0 3px #0066FF;
  }
  .nav-search-cat {
    background: #F3F3F3;
    color: black;
    font-size: 12px;
    padding: 0 10px;
    border-right: 1px solid #ccc;
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .nav-search-cat:hover { background: #E6E6E6; }
  .nav-search input {
    flex: 1;
    padding: 0 12px;
    font-size: 15px;
    border: none;
    outline: none;
    color: #1A1A1A;
  }
  .nav-search-btn {
    background: #0066FF;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .nav-search-btn:hover { background: #0048B8; }

  /* Cart */
  .nav-cart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 6px 9px;
    border: 1px solid transparent;
    border-radius: 2px;
    color: white;
    position: relative;
  }
  .nav-cart:hover { border-color: white; }
  .cart-icon-wrap { position: relative; }
  .cart-count {
    position: absolute;
    top: -4px;
    left: 18px;
    color: #4D8FFF;
    font-weight: 700;
    font-size: 15px;
  }
  .cart-label { font-weight: 700; padding-bottom: 4px; }

  /* ========== SUB NAV ========== */
  .nav-sub {
    background: #2D2D33;
    color: white;
    display: flex;
    align-items: center;
    padding: 4px 8px;
    gap: 0;
    font-size: 14px;
    overflow-x: auto;
  }
  .nav-sub button {
    color: white;
    padding: 6px 8px;
    border: 1px solid transparent;
    white-space: nowrap;
  }
  .nav-sub button:hover { border-color: white; }
  .nav-sub-all { font-weight: 700; display: flex; align-items: center; gap: 4px; }
  .nav-sub-deal { color: #4D8FFF !important; font-weight: 700; margin-left: auto; }

  /* ========== HERO + CARDS ========== */
  .hero-wrap { position: relative; }
  .hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 320px;
    background: linear-gradient(to bottom, #2D2D33 0%, #6B7B95 50%, transparent 100%);
    z-index: 0;
  }
  .container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 16px;
    position: relative;
    z-index: 1;
  }
  .card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .card {
    background: white;
    padding: 20px;
  }
  .card h2 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.2;
    color: #1A1A1A;
  }
  .card-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }
  .card-tile {
    text-align: left;
    color: #1A1A1A;
  }
  .card-tile-img {
    background: #F3F3F3;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    font-size: 52px;
  }
  .card-tile-img:hover { opacity: 0.9; }
  .card-tile-label {
    font-size: 12px;
    line-height: 1.2;
    color: #1A1A1A;
  }
  .card-big-img {
    background: #F3F3F3;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 140px;
  }
  .card-link {
    font-size: 14px;
    color: #0066FF;
    cursor: pointer;
  }
  .card-link:hover { color: #0048B8; text-decoration: underline; }

  .signin-card {
    background: white;
    padding: 20px;
    margin-top: 16px;
    text-align: center;
  }
  .signin-card h2 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
  }

  /* ========== BUTTONS ========== */
  .btn-primary {
    background: #0066FF;
    color: white;
    padding: 8px 32px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
  }
  .btn-primary:hover { background: #0048B8; }

  .btn-yellow {
    background: #FFD814;
    border: 1px solid #FCD200;
    color: #1A1A1A;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
  }
  .btn-yellow:hover { background: #F7CA00; }

  /* ========== FEATURED PRODUCTS ========== */
  .featured-card {
    background: white;
    padding: 20px;
    margin-bottom: 32px;
  }
  .featured-card h2 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 16px;
  }
  .product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
  }
  .product {
    display: flex;
    flex-direction: column;
  }
  .product-img {
    background: #F7F7F7;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 84px;
    border-radius: 2px;
  }
  .product-title {
    font-size: 14px;
    color: #1A1A1A;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
  }
  .product-title:hover { color: #0048B8; }
  .product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
  }
  .stars { display: flex; gap: 1px; }
  .star { color: #FFA41C; font-size: 14px; }
  .star.empty { color: #E0E0E0; }
  .review-count {
    font-size: 12px;
    color: #0066FF;
  }
  .price { margin-bottom: 8px; }
  .price-sym, .price-cents {
    font-size: 12px;
    vertical-align: top;
    position: relative;
    top: 2px;
  }
  .price-dollars {
    font-size: 19px;
    font-weight: 500;
  }
  .product .btn-yellow {
    padding: 6px 8px;
    font-size: 12px;
    margin-top: auto;
  }

  /* ========== BACK TO TOP ========== */
  .back-top {
    background: #404048;
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 13px;
    text-align: center;
  }
  .back-top:hover { background: #4F4F58; }

  /* ========== FOOTER ========== */
  footer { background: #2D2D33; color: white; }
  .footer-cols {
    max-width: 1500px;
    margin: 0 auto;
    padding: 40px 16px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    font-size: 14px;
  }
  .footer-cols h3 {
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 16px;
  }
  .footer-cols li {
    color: #DDD;
    margin-bottom: 4px;
    cursor: pointer;
    font-size: 13px;
  }
  .footer-cols li:hover { text-decoration: underline; }
  .footer-mid {
    border-top: 1px solid #555;
  }
  .footer-mid-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
  }
  .footer-logo .logo-mark {
    width: 22px;
    height: 22px;
    background: #4D8FFF;
  }
  .footer-logo .logo-mark::after {
    background: #2D2D33;
  }
  .footer-logo span { color: #4D8FFF; }
  .footer-pickers {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .footer-pickers button {
    border: 1px solid #777;
    padding: 4px 12px;
    border-radius: 2px;
    color: white;
    font-size: 12px;
  }
  .footer-pickers button:hover { border-color: white; }
  .footer-bottom {
    background: #14141A;
    text-align: center;
    font-size: 12px;
    color: #999;
    padding: 24px 16px;
  }
  .footer-bottom p:last-child { margin-top: 8px; }

  /* ========== CART DRAWER ========== */
  .cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 50;
    display: none;
    justify-content: flex-end;
  }
  .cart-overlay.open { display: flex; }
  .cart-panel {
    background: white;
    width: 100%;
    max-width: 450px;
    height: 100%;
    overflow-y: auto;
  }
  .cart-header {
    padding: 16px;
    border-bottom: 1px solid #DDD;
    position: sticky;
    top: 0;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .cart-header h2 { font-size: 20px; font-weight: 700; }
  .cart-empty {
    padding: 32px;
    text-align: center;
  }
  .cart-empty-icon { font-size: 64px; margin-bottom: 16px; }
  .cart-empty h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
  .cart-empty p { font-size: 14px; color: #555; }
  .cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #DDD;
  }
  .cart-item-img { font-size: 48px; flex-shrink: 0; }
  .cart-item-info { flex: 1; min-width: 0; }
  .cart-item-title {
    font-size: 14px;
    color: #1A1A1A;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cart-stock { font-size: 12px; color: #007600; margin-bottom: 8px; }
  .qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .qty-pill {
    display: flex;
    align-items: center;
    border: 1px solid #D5D9D9;
    border-radius: 100px;
    overflow: hidden;
  }
  .qty-pill button {
    padding: 4px 10px;
    font-size: 16px;
  }
  .qty-pill button:hover { background: #F0F6FF; }
  .qty-pill span { padding: 0 12px; font-size: 14px; }
  .delete-btn {
    font-size: 12px;
    color: #0066FF;
  }
  .delete-btn:hover { color: #0048B8; text-decoration: underline; }
  .cart-item-price {
    font-weight: 700;
    color: #1A1A1A;
    text-align: right;
  }
  .cart-items { padding: 16px; }
  .cart-footer {
    padding: 16px;
    border-top: 1px solid #DDD;
    position: sticky;
    bottom: 0;
    background: white;
  }
  .cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin-bottom: 12px;
  }
  .cart-subtotal strong { font-weight: 700; }
  .cart-footer .btn-primary {
    width: 100%;
    padding: 10px;
  }
  .close-btn {
    padding: 4px;
    border-radius: 4px;
  }
  .close-btn:hover { background: #F0F0F0; }

  /* ========== BACK BAR ========== */
  .back-bar {
    background: #D6E8F7;
    padding: 16px 20px 20px;
  }
  .back-bar a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #E8621A;
    color: white;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 18px;
    border-radius: 5px;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    transition: background 0.15s, box-shadow 0.15s;
  }
  .back-bar a:hover {
    background: #D0531A;
    box-shadow: 0 4px 14px rgba(0,0,0,0.22);
    text-decoration: none;
  }

  /* ========== RESPONSIVE ========== */
  @media (max-width: 1100px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 700px) {
    .card-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr; }
    .nav-cell .line1, .nav-cell .line2 { display: none; }
  }
