
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    :root {
      --background: #faf9f7;
      --foreground: #1a1a1a;
      --card: #ffffff;
      --card-foreground: #1a1a1a;
      --primary: #1a1a1a;
      --primary-foreground: #ffffff;
      --secondary: #f5f5f4;
      --secondary-foreground: #1a1a1a;
      --muted: #e7e5e4;
      --muted-foreground: #737373;
      --accent: #d97756;
      --accent-foreground: #ffffff;
      --border: #e5e5e5;
      --radius: 8px;
      --sidebar-width: 260px;
    }

    body {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      background-color: var(--background);
      color: var(--foreground);
      line-height: 1.6;
      min-height: 100vh;
    }

    /* Header */
    .header {
      background-color: var(--card);
      border-bottom: 1px solid var(--border);
      padding: 1rem 2rem;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .logo {
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--foreground);
      text-decoration: none;
      letter-spacing: -0.02em;
    }

    .header-nav {
      display: flex;
      gap: 2rem;
      align-items: center;
    }

    .header-nav a {
      color: var(--foreground);
      text-decoration: none;
      font-size: 0.875rem;
      font-weight: 500;
      transition: color 0.2s;
    }

    .header-nav a:hover {
      color: var(--accent);
    }

    .header-actions {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    .cart-btn {
      position: relative;
      background: var(--primary);
      color: var(--primary-foreground);
      border: none;
      padding: 0.625rem 1.25rem;
      border-radius: var(--radius);
      cursor: pointer;
      font-weight: 500;
      font-size: 0.875rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: background-color 0.2s;
    }

    .cart-btn:hover {
      background: #333;
    }

    .cart-count {
      background: var(--accent);
      color: var(--accent-foreground);
      font-size: 0.75rem;
      padding: 0.125rem 0.5rem;
      border-radius: 9999px;
      font-weight: 600;
    }

    .menu-toggle {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
    }

    .menu-toggle svg {
      width: 24px;
      height: 24px;
      stroke: var(--foreground);
    }

    /* Main Layout */
    .main-wrapper {
      display: flex;
      padding-top: 73px;
      min-height: 100vh;
    }

    /* Sidebar */
    .sidebar {
      width: var(--sidebar-width);
      background: var(--card);
      border-right: 1px solid var(--border);
      padding: 2rem 1.5rem;
      position: fixed;
      top: 73px;
      left: 0;
      height: calc(100vh - 73px);
      overflow-y: auto;
      transition: transform 0.3s ease;
    }

    .sidebar-title {
      font-size: 0.75rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--muted-foreground);
      margin-bottom: 1rem;
    }

    .sidebar-nav {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
    }

    .sidebar-nav li a {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.75rem 1rem;
      border-radius: var(--radius);
      text-decoration: none;
      color: var(--foreground);
      font-size: 0.9rem;
      transition: background-color 0.2s;
    }

    .sidebar-nav li a:hover,
    .sidebar-nav li a.active {
      background-color: var(--secondary);
    }

    .sidebar-nav li a.active {
      font-weight: 500;
    }

    .sidebar-nav svg {
      width: 18px;
      height: 18px;
      stroke: currentColor;
      fill: none;
    }

    .sidebar-section {
      margin-bottom: 2rem;
    }

    .price-filter {
      padding: 1rem;
      background: var(--secondary);
      border-radius: var(--radius);
    }

    .price-filter label {
      display: block;
      font-size: 0.875rem;
      margin-bottom: 0.5rem;
      font-weight: 500;
    }

    .price-range {
      width: 100%;
      accent-color: var(--accent);
    }

    .price-values {
      display: flex;
      justify-content: space-between;
      font-size: 0.875rem;
      color: var(--muted-foreground);
      margin-top: 0.5rem;
    }

    /* Main Content */
    .main-content {
      flex: 1;
      margin-left: var(--sidebar-width);
      padding: 2rem;
    }

    .page-header {
      margin-bottom: 2rem;
    }

    .page-title {
      font-size: 2.5rem;
      font-weight: 700;
      letter-spacing: -0.02em;
      margin-bottom: 0.5rem;
    }

    .page-subtitle {
      color: var(--muted-foreground);
      font-size: 1rem;
    }

    /* Products Grid */
    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
    }

    .product-card {
      background: var(--card);
      border-radius: calc(var(--radius) + 4px);
      overflow: hidden;
      border: 1px solid var(--border);
      transition: transform 0.2s, box-shadow 0.2s;
    }

    .product-card:hover {
      transform: translateY(-4px);
      box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
    }

    .product-image {
      width: 100%;
      aspect-ratio: 1;
      object-fit: cover;
      background: var(--secondary);
    }

    .product-info {
      padding: 1.25rem;
    }

    .product-category {
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--muted-foreground);
      margin-bottom: 0.25rem;
    }

    .product-name {
      font-size: 1rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      color: var(--foreground);
    }

    .product-price {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .current-price {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--foreground);
    }

    .original-price {
      font-size: 0.875rem;
      color: var(--muted-foreground);
      text-decoration: line-through;
    }

    .quantity-selector {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      margin-bottom: 1rem;
    }

    .quantity-selector label {
      font-size: 0.875rem;
      color: var(--muted-foreground);
    }

    .quantity-controls {
      display: flex;
      align-items: center;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .qty-btn {
      background: var(--secondary);
      border: none;
      width: 32px;
      height: 32px;
      cursor: pointer;
      font-size: 1rem;
      color: var(--foreground);
      transition: background-color 0.2s;
    }

    .qty-btn:hover {
      background: var(--muted);
    }

    .qty-input {
      width: 48px;
      height: 32px;
      border: none;
      text-align: center;
      font-size: 0.875rem;
      font-family: inherit;
      background: var(--card);
    }

    .qty-input:focus {
      outline: none;
    }

    .add-to-cart {
      width: 100%;
      background: var(--primary);
      color: var(--primary-foreground);
      border: none;
      padding: 0.75rem 1.5rem;
      border-radius: var(--radius);
      cursor: pointer;
      font-weight: 500;
      font-size: 0.875rem;
      transition: background-color 0.2s;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    .add-to-cart:hover {
      background: #333;
    }

    .add-to-cart svg {
      width: 16px;
      height: 16px;
    }

    /* Cart Modal */
    .cart-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 200;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s, visibility 0.3s;
    }

    .cart-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .cart-modal {
      position: fixed;
      top: 0;
      right: 0;
      width: 100%;
      max-width: 420px;
      height: 100vh;
      background: var(--card);
      z-index: 201;
      transform: translateX(100%);
      transition: transform 0.3s ease;
      display: flex;
      flex-direction: column;
    }

    .cart-modal.active {
      transform: translateX(0);
    }

    .cart-header {
      padding: 1.5rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .cart-title {
      font-size: 1.25rem;
      font-weight: 600;
    }

    .close-cart {
      background: none;
      border: none;
      cursor: pointer;
      padding: 0.5rem;
      border-radius: var(--radius);
      transition: background-color 0.2s;
    }

    .close-cart:hover {
      background: var(--secondary);
    }

    .close-cart svg {
      width: 20px;
      height: 20px;
      stroke: var(--foreground);
    }

    .cart-items {
      flex: 1;
      overflow-y: auto;
      padding: 1.5rem;
    }

    .cart-empty {
      text-align: center;
      padding: 3rem 1rem;
      color: var(--muted-foreground);
    }

    .cart-empty svg {
      width: 64px;
      height: 64px;
      stroke: var(--muted);
      margin-bottom: 1rem;
    }

    .cart-item {
      display: flex;
      gap: 1rem;
      padding: 1rem 0;
      border-bottom: 1px solid var(--border);
    }

    .cart-item:last-child {
      border-bottom: none;
    }

    .cart-item-image {
      width: 80px;
      height: 80px;
      object-fit: cover;
      border-radius: var(--radius);
      background: var(--secondary);
    }

    .cart-item-details {
      flex: 1;
    }

    .cart-item-name {
      font-weight: 500;
      margin-bottom: 0.25rem;
    }

    .cart-item-price {
      color: var(--muted-foreground);
      font-size: 0.875rem;
      margin-bottom: 0.5rem;
    }

    .cart-item-actions {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .cart-item-qty {
      display: flex;
      align-items: center;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .cart-item-qty button {
      background: var(--secondary);
      border: none;
      width: 28px;
      height: 28px;
      cursor: pointer;
      font-size: 0.875rem;
    }

    .cart-item-qty span {
      width: 36px;
      text-align: center;
      font-size: 0.875rem;
    }

    .remove-item {
      background: none;
      border: none;
      cursor: pointer;
      color: var(--muted-foreground);
      padding: 0.25rem;
      transition: color 0.2s;
    }

    .remove-item:hover {
      color: #ef4444;
    }

    .cart-footer {
      padding: 1.5rem;
      border-top: 1px solid var(--border);
      background: var(--secondary);
    }

    .cart-subtotal {
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.5rem;
      font-size: 0.9rem;
    }

    .cart-total {
      display: flex;
      justify-content: space-between;
      font-size: 1.125rem;
      font-weight: 600;
      margin-bottom: 1rem;
    }

    .checkout-btn {
      width: 100%;
      background: var(--primary);
      color: var(--primary-foreground);
      border: none;
      padding: 1rem;
      border-radius: var(--radius);
      cursor: pointer;
      font-weight: 600;
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      transition: background-color 0.2s;
    }

    .checkout-btn:hover {
      background: #333;
    }

    /* Footer */
    .footer {
      background: var(--foreground);
      color: var(--background);
      padding: 4rem 2rem 2rem;
      margin-left: var(--sidebar-width);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 2rem;
      max-width: 1200px;
      margin: 0 auto 3rem;
    }

    .footer-section h4 {
      font-size: 0.875rem;
      font-weight: 600;
      margin-bottom: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section ul li {
      margin-bottom: 0.5rem;
    }

    .footer-section ul li a {
      color: rgba(255, 255, 255, 0.7);
      text-decoration: none;
      font-size: 0.875rem;
      transition: color 0.2s;
    }

    .footer-section ul li a:hover {
      color: var(--background);
    }

    .footer-bottom {
      text-align: center;
      padding-top: 2rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      color: rgba(255, 255, 255, 0.5);
      font-size: 0.875rem;
    }

    /* Toast Notification */
    .toast {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: var(--foreground);
      color: var(--background);
      padding: 1rem 1.5rem;
      border-radius: var(--radius);
      font-size: 0.875rem;
      font-weight: 500;
      transform: translateY(100px);
      opacity: 0;
      transition: transform 0.3s, opacity 0.3s;
      z-index: 300;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .toast.show {
      transform: translateY(0);
      opacity: 1;
    }

    .toast svg {
      width: 18px;
      height: 18px;
      stroke: #22c55e;
    }

    /* Responsive Styles */
    @media (max-width: 1024px) {
      .header-nav {
        display: none;
      }

      .menu-toggle {
        display: block;
      }

      .sidebar {
        transform: translateX(-100%);
        z-index: 150;
      }

      .sidebar.active {
        transform: translateX(0);
      }

      .main-content {
        margin-left: 0;
      }

      .footer {
        margin-left: 0;
      }
    }

    @media (max-width: 768px) {
      .header {
        padding: 1rem;
      }

      .main-content {
        padding: 1.5rem 1rem;
      }

      .page-title {
        font-size: 1.75rem;
      }

      .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
      }

      .product-info {
        padding: 1rem;
      }

      .product-name {
        font-size: 0.9rem;
      }

      .current-price {
        font-size: 1rem;
      }

      .cart-modal {
        max-width: 100%;
      }

      .footer {
        padding: 2rem 1rem;
      }

      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 480px) {
      .products-grid {
        grid-template-columns: 1fr;
      }

      .cart-btn span {
        display: none;
      }

      .toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
      }