/* Base Styles */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: #fff;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  ul {
    list-style: none;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
  
  button {
    border: none;
    cursor: pointer;
    font-family: inherit;
  }
  
  /* Header Styles */
  .header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
  }
  
  .top-bar {
    background: var(--dark-color);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
  }
  
  .top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .top-left {
    display: flex;
    gap: 20px;
  }
  
  .top-left span {
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .main-header {
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 40px;
  }
  
  .logo {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
  }
  
  .logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
  }
  
  .logo-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 2px;
  }
  
  .search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
  }
  
  .search-bar input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
  }
  
  .search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
  }
  
  .search-bar button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
  }
  
  .search-bar button:hover {
    background: var(--primary-hover);
  }
  
  .header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
  }
  
  .user-menu,
  .wishlist,
  .cart {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .user-menu:hover,
  .wishlist:hover,
  .cart:hover {
    color: var(--primary-color);
  }
  
  .wishlist,
  .cart {
    position: relative;
  }
  
  .count {
    background: var(--danger-color);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
  }
  
  .cart-total {
    font-weight: 600;
    color: var(--primary-color);
  }
  
  .navigation {
    background: var(--light-color);
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
  }
  
  .navigation .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .categories-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .categories-menu:hover {
    background: var(--primary-hover);
  }
  
  .nav-links {
    display: flex;
    gap: 30px;
  }
  
  .nav-links a {
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }
  
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--primary-color);
  }
  
  .nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
  }
  
  /* Hero Slider */
  .hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
  }
  
  .slider-container {
    position: relative;
    height: 100%;
  }
  
  .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: linear-gradient(135deg, var(--primary-color), #3b82f6);
  }
  
  .slide.active {
    opacity: 1;
  }
  
  .slide-content {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 60px;
  }
  
  .slide-text {
    flex: 1;
    color: white;
  }
  
  .slide-text h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }
  
  .slide-text h3 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
  }
  
  .slide-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
  }
  
  .cta-button {
    background: var(--secondary-color);
    color: white;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .cta-button:hover {
    background: #d97706;
    transform: translateY(-2px);
  }
  
  .slide-image {
    flex: 1;
  }
  
  .slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
  }
  
  .prev-btn,
  .next-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
  }
  
  .prev-btn:hover,
  .next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
  }
  
  .slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
  }
  
  .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .dot.active {
    background: white;
  }
  
  /* Section Headers */
  .section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 80px 0 0;
  }
  
  .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
  }
  
  .section-header h2::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
  }
  
  .section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
  }
  
  /* Categories */
  .categories {
    padding-bottom: 80px;
  }
  
  .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
  }
  
  .category-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
  }
  
  .category-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
  }
  
  .category-card:hover .category-icon {
    background: var(--primary-color);
    color: white;
  }
  
  .category-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  
  .category-card span {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  /* Products */
  .featured-products {
    background: var(--light-color);
    padding-bottom: 80px;
  }
  
  .product-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
  }
  
  .filter-btn {
    padding: 10px 25px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
  }
  
  .filter-btn.active,
  .filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
  }
  
  .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
  }
  
  .product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
  }
  
  .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }
  
  .product-card:hover .product-image img {
    transform: scale(1.05);
  }
  
  .product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--danger-color);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
  }
  
  .product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  
  .product-card:hover .product-actions {
    opacity: 1;
  }
  
  .action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
  }
  
  .action-btn:hover {
    background: var(--primary-color);
    color: white;
  }
  
  .product-info {
    padding: 20px;
  }
  
  .product-category {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 5px;
  }
  
  .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
  }
  
  .product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
  }
  
  .stars {
    color: var(--secondary-color);
  }
  
  .rating-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  .current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
  }
  
  .old-price {
    color: var(--text-secondary);
    text-decoration: line-through;
  }
  
  .add-to-cart {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  .add-to-cart:hover {
    background: var(--primary-hover);
  }
  
  /* Special Offers */
  .special-offers {
    padding: 80px 0;
  }
  
  .offers-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
  }
  
  .offer-card {
    background: var(--light-color);
    border-radius: 12px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
  }
  
  .offer-card:hover {
    transform: translateY(-5px);
  }
  
  .offer-card.large {
    display: flex;
    align-items: center;
    gap: 40px;
  }
  
  .offer-badge {
    background: var(--danger-color);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
  }
  
  .offer-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .offer-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
  }
  
  .offer-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  .offer-btn:hover {
    background: var(--primary-hover);
  }
  
  /* Newsletter */
  .newsletter {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
  }
  
  .newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
  }
  
  .newsletter-text h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }
  
  .newsletter-form {
    display: flex;
    gap: 15px;
    min-width: 400px;
  }
  
  .newsletter-form input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
  }
  
  .newsletter-form button {
    background: var(--secondary-color);
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
  }
  
  .newsletter-form button:hover {
    background: #d97706;
  }
  
  /* Footer */
  .footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 20px;
  }
  
  .footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  
  .footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .footer-section ul li {
    margin-bottom: 10px;
  }
  
  .footer-section ul li a {
    color: #d1d5db;
    transition: color 0.3s ease;
  }
  
  .footer-section ul li a:hover {
    color: white;
  }
  
  .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }
  
  .footer-logo .logo-text h3 {
    color: white;
    margin-bottom: 5px;
  }
  
  .footer-logo .logo-text p {
    color: #d1d5db;
    font-size: 0.9rem;
  }
  
  .social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }
  
  .social-links a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
  }
  
  .social-links a:hover {
    background: var(--primary-color);
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .contact-item i {
    color: var(--primary-color);
    width: 20px;
  }
  
  .footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .payment-methods {
    display: flex;
    gap: 15px;
    font-size: 1.5rem;
  }
  
  .payment-methods i {
    color: #d1d5db;
  }
  
  /* Cart Sidebar */
  .cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
  }
  
  .cart-sidebar.active {
    right: 0;
  }
  
  .cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .close-cart {
    background: none;
    font-size: 1.2rem;
    color: var(--text-secondary);
  }
  
  .cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
  }
  
  .empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
  }
  
  .empty-cart i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--border-color);
  }
  
  .cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
  }
  
  .cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
  }
  
  .cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .cart-item-info {
    flex: 1;
  }
  
  .cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
  }
  
  .cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
  }
  
  .quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  .quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
  }
  
  .remove-item {
    background: none;
    color: var(--danger-color);
    margin-left: auto;
  }
  
  .cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
  }
  
  .cart-total {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
  }
  
  .checkout-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
  }
  
  .cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .cart-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Product Modal */
  .product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .product-modal.active {
    opacity: 1;
    visibility: visible;
  }
  
  .modal-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
  }
  
  .close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    z-index: 1;
  }
  
  /* Responsive Design */
  @media (max-width: 1024px) {
    .offers-grid {
      grid-template-columns: 1fr;
    }
  
    .offer-card.large {
      flex-direction: column;
      text-align: center;
    }
  
    .footer-content {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 768px) {
    .main-header {
      flex-direction: column;
      gap: 20px;
    }
  
    .search-bar {
      order: 3;
      max-width: none;
    }
  
    .header-actions {
      order: 2;
    }
  
    .navigation .container {
      flex-direction: column;
      gap: 20px;
    }
  
    .nav-links {
      flex-wrap: wrap;
      justify-content: center;
    }
  
    .slide-content {
      flex-direction: column;
      text-align: center;
      gap: 30px;
    }
  
    .slide-text h2 {
      font-size: 2rem;
    }
  
    .slide-text h3 {
      font-size: 2.5rem;
    }
  
    .newsletter-content {
      flex-direction: column;
      text-align: center;
    }
  
    .newsletter-form {
      min-width: auto;
      width: 100%;
    }
  
    .footer-content {
      grid-template-columns: 1fr;
    }
  
    .footer-bottom {
      flex-direction: column;
      gap: 20px;
    }
  
    .cart-sidebar {
      width: 100%;
      right: -100%;
    }
  }
  
  @media (max-width: 480px) {
    .top-bar .container {
      flex-direction: column;
      gap: 10px;
    }
  
    .categories-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .products-grid {
      grid-template-columns: 1fr;
    }
  
    .newsletter-form {
      flex-direction: column;
    }
  }
  