 * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: Arial, sans-serif;
    }

    :root {
      --primary-color: #1b2b34; 
      --secondary-color: #0f3740; 
      --accent-color: #ff6b35;
      --muted-accent: #ffd7c9;
      --light-bg: #f6f8f9;
      --border-color: #e1e6e8;
      --card-bg: #ffffff;
      --text-color: #0f1720;
    }

    body {
      background-color: var(--light-bg);
    }

    header {
      background-color: white;
      color: var(--text-color);
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: 0 2px 6px rgba(16,24,32,0.06);
      border-bottom: 1px solid var(--border-color);
    }

    .header-top {
      display: flex;
      align-items: center;
      padding: 12px 24px;
      gap: 18px;
      max-width: 1500px;
      margin: 0 auto;
    }

    .logo {
      font-size: 1.35rem;
      font-weight: 800;
      cursor: pointer;
      padding: 6px 10px;
      color: var(--primary-color);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .logo .brand-mark {
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg,var(--accent-color),#ff8f66);
      color: white;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 8px;
      font-weight: 900;
      box-shadow: 0 4px 12px rgba(17,24,39,0.08);
    }

    .search-bar {
      flex: 1;
      display: flex;
      max-width: 720px;
      margin: 0 12px;
      background: linear-gradient(180deg,#fff,#fbfdfe);
      border-radius: 8px;
      border: 1px solid var(--border-color);
      overflow: hidden;
    }

    .search-bar input {
      flex: 1;
      padding: 10px;
      border: none;
      outline: none;
      font-size: 0.95rem;
    }

    .search-bar button {
      background-color: transparent;
      border: none;
      padding: 0 14px;
      cursor: pointer;
      color: var(--accent-color);
      font-size: 1.05rem;
    }

    .search-bar button:hover { opacity: 0.9 }

    .header-right {
      display: flex;
      gap: 14px;
      align-items: center;
    }

    .header-link {
      padding: 6px 10px;
      cursor: pointer;
      text-align: left;
      color: var(--text-color);
      background: transparent;
      border-radius: 6px;
      font-size: 0.95rem;
    }

    .header-link small { display:block; font-size:0.72rem; color:#6b7280 }

    .header-link strong { display:block; font-size:0.95rem }

    .cart-icon {
      position: relative;
      font-size: 1.5rem;
      cursor: pointer;
      color: var(--primary-color);
    }

    .cart-count {
      position: absolute;
      top: -7px;
      right: -10px;
      background-color: var(--accent-color);
      color: white;
      border-radius: 50%;
      min-width: 18px;
      height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.72rem;
      font-weight: 700;
      padding: 0 5px;
    }

    .nav-bar {
      padding: 8px 24px;
      display: flex;
      gap: 18px;
      font-size: 0.9rem;
      max-width: 1500px;
      margin: 0 auto;
      overflow-x: auto;
      color: #374151;
    }

    .nav-bar a { color: #334155; text-decoration: none; padding: 6px 8px; border-radius:6px }
    .nav-bar a:hover { background: #f3f8f9 }

    .hero-banner {
      background: linear-gradient(120deg, rgba(255,107,53,0.12), rgba(255,139,88,0.06)), url('https://images.unsplash.com/photo-1523275335684-37898b6baf30?w=1600') center/cover;
      height: 360px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-color);
      text-align: center;
      position: relative;
      border-radius: 8px;
      overflow: hidden;
      margin: 18px 0;
    }

    .hero-content h1 {
      font-size: 2.5rem;
      margin-bottom: 1rem;
    }

    .hero-content button {
      background-color: var(--accent-color);
      border: none;
      padding: 12px 30px;
      font-size: 1rem;
      cursor: pointer;
      border-radius: 4px;
      font-weight: bold;
    }

    .container {
      max-width: 1500px;
      margin: 0 auto;
      padding: 0 20px;
    }

    .products-section {
      background-color: transparent;
      padding: 18px 0 26px;
      margin-bottom: 20px;
    }

    .section-title {
      font-size: 1.5rem;
      margin-bottom: 20px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border-color);
    }

    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
      gap: 20px;
      padding: 20px 0;
    }

    .product-card {
      background: var(--card-bg);
      border: 1px solid var(--border-color);
      padding: 14px;
      cursor: pointer;
      transition: box-shadow 0.18s, transform 0.12s;
      display: flex;
      flex-direction: column;
      border-radius: 8px;
      min-height: 330px;
    }

    .product-card:hover {
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }

    .product-image {
      width: 100%;
      height: 180px;
      object-fit: contain;
      margin-bottom: 10px;
      background-color: #fafafa;
      border-radius: 6px;
      padding: 8px;
    }

    .product-title {
      font-size: 0.95rem;
      color: #0f1720;
      margin-bottom: 6px;
      line-height: 1.25;
      overflow: hidden;
      text-overflow: ellipsis;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      line-clamp: 2;
      -webkit-box-orient: vertical;
      font-weight: 600;
    }

    .product-rating {
      display: flex;
      align-items: center;
      gap: 5px;
      margin-bottom: 8px;
      font-size: 0.85rem;
      color: #007185;
    }

    .stars {
      color: var(--accent-color);
    }

    .product-price {
      font-size: 1.15rem;
      font-weight: 700;
      color: #c53030;
      margin-bottom: 8px;
    }

    .product-brand {
      font-size: 0.85rem;
      color: #565959;
      margin-bottom: 10px;
    }

    .features-section {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 20px;
      margin: 20px 0;
    }

    .feature-card {
      background: white;
      padding: 30px;
      text-align: center;
      border: 1px solid var(--border-color);
    }

    .feature-card i {
      font-size: 2.5rem;
      color: var(--accent-color);
      margin-bottom: 15px;
    }

    .feature-card h3 {
      margin-bottom: 10px;
      font-size: 1.1rem;
    }

    .feature-card p {
      color: #565959;
      font-size: 0.9rem;
    }

    footer {
      background-color: var(--primary-color);
      color: white;
      padding: 40px 20px 20px;
      margin-top: 40px;
    }

    .footer-content {
      max-width: 1500px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      margin-bottom: 30px;
    }

    .footer-section h4 {
      margin-bottom: 15px;
      font-size: 1rem;
    }

    .footer-section ul {
      list-style: none;
    }

    .footer-section a {
      color: #DDD;
      text-decoration: none;
      display: block;
      padding: 5px 0;
      font-size: 0.9rem;
    }

    .footer-section a:hover {
      text-decoration: underline;
    }

    .footer-bottom {
      text-align: center;
      padding-top: 20px;
      border-top: 1px solid #3a4553;
      font-size: 0.85rem;
      color: #DDD;
    }

    .page-container {
      display: none;
    }

    .page-container.active {
      display: block;
    }

    .product-detail {
      background: white;
      padding: 30px;
      margin: 20px 0;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
    }

    .product-detail-image {
      width: 100%;
      max-height: 500px;
      object-fit: contain;
      background-color: #fafafa;
      padding: 20px;
    }

    .product-detail-info h1 {
      font-size: 1.8rem;
      margin-bottom: 15px;
    }

    .product-detail-info .price {
      font-size: 2rem;
      color: #B12704;
      margin: 20px 0;
    }

    .product-detail-info .description {
      line-height: 1.6;
      color: #0F1111;
      margin: 20px 0;
    }

    .add-to-cart-btn {
      background-color: #FFD814;
      border: 1px solid #FCD200;
      border-radius: 8px;
      padding: 12px 24px;
      font-size: 1rem;
      cursor: pointer;
      width: 100%;
      margin-bottom: 10px;
    }

    .add-to-cart-btn:hover {
      background-color: #F7CA00;
    }

    .buy-now-btn {
      background-color: #FFA41C;
      border: 1px solid #FF8F00;
      border-radius: 8px;
      padding: 12px 24px;
      font-size: 1rem;
      cursor: pointer;
      width: 100%;
    }

    .buy-now-btn:hover {
      background-color: #FA8900;
    }

    .cart-page {
      background: white;
      padding: 30px;
      margin: 20px 0;
    }

    .cart-item {
      display: grid;
      grid-template-columns: 150px 1fr auto;
      gap: 20px;
      padding: 20px 0;
      border-bottom: 1px solid var(--border-color);
    }

    .cart-item-image {
      width: 150px;
      height: 150px;
      object-fit: contain;
      background-color: #fafafa;
    }

    .cart-item-details h3 {
      font-size: 1.1rem;
      margin-bottom: 10px;
      color: #0066c0;
    }

    .cart-item-price {
      font-size: 1.3rem;
      font-weight: bold;
      color: #B12704;
    }

    .remove-btn {
      background: none;
      border: none;
      color: #0066c0;
      cursor: pointer;
      font-size: 0.9rem;
      text-decoration: underline;
    }

    .cart-summary {
      background: #F3F3F3;
      padding: 20px;
      margin-top: 20px;
      text-align: right;
    }

    .cart-summary h3 {
      font-size: 1.5rem;
      margin-bottom: 20px;
    }

    .empty-cart {
      text-align: center;
      padding: 60px 20px;
      color: #565959;
    }

    .back-to-home {
      color: #0066c0;
      text-decoration: none;
      font-size: 0.9rem;
      display: inline-block;
      margin-bottom: 20px;
    }

    .back-to-home:hover {
      color: #C45500;
    }

    .loading {
      text-align: center;
      padding: 40px;
      font-size: 1.2rem;
      color: #565959;
    }
    @media (max-width: 768px) {
      .header-top {
        flex-wrap: wrap;
      }

      .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
      }

      .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
      }

      .product-detail {
        grid-template-columns: 1fr;
      }

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

      .cart-item-image {
        width: 100px;
        height: 100px;
      }

      .nav-bar {
        overflow-x: auto;
      }
    }