/* BASIC RESETS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
  }
  
  /* HEADER */

  .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background-color: #0d0033;
    color: white;
  }

  .logoo{
    font-size: 2rem;
    color: white;
    font-weight: bold;
    margin-right: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
  }
  
  .logo img {
    height: 40px;
  }
  
  .search-bar input {
    padding: 0.5rem 1rem;
    width: 300px;
    border: none;
    border-radius: 4px;
  }
  
  .user-links {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .user-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .user-links a:hover {
    color: #007bff;
  }
  
  /* MAIN MENU */
  .main-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background-color: #ffffff;
    padding: 10px 0;
  }
  
  .main-menu a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-size: 0.9rem;
  }

  /* HERO BANNER */
  .hero-banner {
    position: relative;
    width: 100%;
    height: 300px;
    /* Replace with your actual banner image if you have it */
    background: url("./homepagepic.jpg") center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  
  .hero-content {
    margin-left: 50px;
    color: #fff;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
  }
  
  .hero-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }
  
  .btn-shop {
    background-color: #ff5f00;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
  }
  
  /* PRODUCT SLIDER */
  .product-slider {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    position: relative;
    background-color: #fff;
    padding: 20px;
    border-radius: 6px;
    overflow: hidden;
  }
  
  .product-slider h2 {
    margin-bottom: 20px;
    color: #0d0033;
    text-align: center;
  }
  
  /* The container that holds all slides side by side */
  .slider-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
  }
  
  /* Each slide occupies 100% of the container width */
  .slide {
    min-width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 20px;
    padding: 10px 0;
  }
  
  /* PRODUCT CARD */
  .product-card {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  
  .product-card img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
  }
  
  .product-card h3, .product-card h4 {
    margin: 10px 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
  }
  
  .product-card .price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #4834d4;
    margin: 10px 0;
  }
  
  .product-card .add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: #4834d4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: auto;
  }
  
  .product-card .add-to-cart:hover {
    background-color: #686de0;
  }
  
  .product-card .add-to-cart:active {
    transform: scale(0.98);
  }
  
  /* BADGES */
  .badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 1;
  }
  
  .badge.new {
    background-color: #ff4757;
    color: white;
  }
  
  .badge.service-pack {
    background-color: #4834d4;
    color: white;
    top: 40px;
  }
  
  /* PREV / NEXT BUTTONS */
  .prev-btn,
  .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #0d0033;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s, background-color 0.2s;
    z-index: 10;
  }
  
  .prev-btn:hover,
  .next-btn:hover {
    opacity: 1;
    background-color: #1a1a4f;
  }
  
  .prev-btn {
    left: 10px;
  }
  
  .next-btn {
    right: 10px;
  }
  
  /* Disable button styles */
  .prev-btn:disabled,
  .next-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #666;
  }
  
  /* NEED HELP */
  .need-help {
    position: relative;
    height: 200px;
    background: url("images/need-help-bg.jpg") center center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .help-text {
    color: #fff;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
  }
  
  .help-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
  }
  
  /* GENERIC PRODUCT SECTIONS (Featured, Crazy Deals) */
  .products {
    padding: 30px 20px;
    background-color: #fff;
    margin-bottom: 20px;
  }
  
  .products h2 {
    margin-bottom: 20px;
    color: #0d0033;
  }
  
  .product-carousel {
    display: flex;
    overflow-x: auto;
    gap: 20px;
  }
  
  .product-carousel .product {
    background: #f9f9f9;
    padding: 20px;
    min-width: 150px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
  }
  
  .product-carousel .product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  
  .product-carousel .product h3 {
    font-size: 1rem;
  }
  
  /* CUT-OFFS */
  .cut-offs {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 20px 0;
    background-color: #fff;
    margin-bottom: 20px;
  }
  
  .cut-off {
    text-align: center;
  }
  
  .cut-off img {
    max-width: 80px;
    margin-bottom: 10px;
  }
  
  /* FOOTER */
  footer {
    background-color: #0d0033;
    color: #fff;
    padding: 20px;
  }
  
  .footer-links {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
  }
  
  .footer-links > div {
    max-width: 200px;
  }
  
  .footer-links h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
  }
  
  .footer-links ul {
    list-style: none;
  }
  
  .footer-links li {
    margin-bottom: 5px;
  }
  
  .footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.6;
  }
  
  .footer-langs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 20px;
  }
  
  .langs img {
    width: 25px;
    margin-left: 10px;
  }
  
  /* SUPPORT BUTTON */
  .support-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0d0033;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 999;
  }
  .hero-banner {
    position: relative;
    width: 100%;
    height: 300px; /* or however tall you want the banner */
    
    /* Replace "homepagepic.jpg" with your actual file name/path */
    background: url("./homepagepic.jpg") center center / cover no-repeat;
  }
  
  /* Optional styling for text placement, etc. */
  .hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff; /* White text on top of image */
    text-align: center; /* Center the text */
    text-shadow: 0 2px 5px rgba(0,0,0,0.7);
  }
  
  .btn-shop {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #ff5f00;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
  }
/***********************************
   BRAND & HELP SECTION LAYOUT
************************************/
.brand-help-section {
    display: flex;
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto; /* Center horizontally, add spacing from top/bottom */
  }
  
  .shop-by-brand,
  .need-help-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    flex: 1; /* Each takes up half the space, with gap in between */
  }
  
  /***********************************
     SHOP BY BRAND
  ************************************/
  .shop-by-brand h2 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
  }
  
  .brand-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns; add more if needed */
    gap: 15px;
  }
  
  .brand-cell {
    background-color: #f5f5f5;
    text-align: center;
    padding: 20px;
    border-radius: 4px;
  }
  
  .brand-cell img {
    max-width: 80px;
    height: auto;
  }
  
  /***********************************
     NEED HELP CARD
  ************************************/
  .need-help-card h2 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: #333;
  }
  
  /* Container with background image */
  .help-image {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 8px;
  }
  .need-help-card{
    background: url("./needhelp.jpg") center center / cover no-repeat;

  }
  /* The small bubble at bottom-right */
  .help-bubble {
    position: absolute;
    bottom: -120px;
    right: 10px;
    background-color: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
  }
  
  .help-bubble img {
    width: 30px;
    height: 30px;
    border-radius: 50%; /* make the icon circular if it's a square image */
  }
  
  .help-bubble span {
    font-size: 0.9rem;
    color: #333;
  }
  /* Featured Products Section Container */
  /********** Container & Header **********/
.featured-products {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
  }
  
  .featured-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .title-group h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #0d0033;
  }
  .title-group p {
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
  }
  
  .pagination {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .pagination span {
    color: #999;
    font-size: 0.9rem;
  }
  .pagination a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
  }
  
  /********** Carousel **********/
  .featured-products-carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* The scrollable track of items */
  .carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;       /* horizontal scrolling */
    scroll-behavior: smooth;/* smooth scroll on arrow clicks */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 10px 0;
    scroll-snap-type: x mandatory;
  }
  
  .carousel-track::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
  }
  
  /* Big hero card (first item) */
  .big-feature-card {
    flex: 0 0 auto;       /* do not shrink */
    width: 350px;         /* bigger width for the hero card */
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
  }
  .big-feature-card:hover {
    transform: translateY(-5px);
  }
  .big-feature-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }
  
  /* Smaller product cards */
  .product-card {
    flex: 0 0 auto;   /* do not shrink */
    width: 180px;     /* card width */
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: start;
  }
  .product-card:hover {
    transform: translateY(-5px);
  }
  .product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 10px;
  }
  .product-card h4 {
    font-size: 0.9rem;
    color: #333;
    margin: 0;
    line-height: 1.4;
  }
  
  /********** Arrows **********/
  .arrow {
    background: #0d0033;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.8;
    flex-shrink: 0;
  }
  .arrow:hover {
    opacity: 1;
    background: #1a1a4f;
  }
  .arrow.left {
    margin-right: 10px;
  }
  .arrow.right {
    margin-left: 10px;
  }
  .arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: #666;
  }
  /* Container & Header */
.crazy-deals {
    max-width: 1200px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
  }
  
  .crazy-deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .title-group h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #0d0033;
  }
  .title-group p {
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
  }
  
  .pagination {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .pagination span {
    color: #999;
    font-size: 0.9rem;
  }
  .pagination a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
  }
  
  /* Carousel */
  .crazy-deals-carousel {
    position: relative; /* for arrow positioning */
    display: flex;
    align-items: center;
    gap: 10px;
  }
  
  /* Arrow Buttons */
  .arrow {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
    opacity: 0.7;
    transition: opacity 0.2s;
  }
  .arrow:hover {
    opacity: 1;
  }
  .left {
    margin-right: 10px;
  }
  .right {
    margin-left: 10px;
  }
  
  /* Scrollable track */
  .carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;       /* horizontal scroll */
    scroll-behavior: smooth;/* smooth scrolling on arrow clicks */
    flex: 1;                /* occupy leftover space */
    padding-bottom: 10px;   /* optional bottom padding */
  }
  
  /* Product cards */
  .product-card {
    flex: 0 0 auto;  /* do not shrink below this width */
    width: 180px;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
    padding: 10px;
  }
  .product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 8px;
  }
  .product-card h4 {
    font-size: 0.9rem;
    color: #333;
  }
  .cut-offs {
    max-width: 1200px;
    margin: 40px auto; /* center horizontally, add spacing from top/bottom */
    padding: 20px;
    text-align: center;
  }
  
  .cut-offs-header {
    margin-bottom: 20px;
  }
  
  /* .cut-offs-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #0d0033;
  } */
  
  .cut-offs-header span {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
  }
  
  .cut-offs-container {
    display: flex;
    gap: 20px;
    justify-content: center; /* center the cards horizontally */
  }
  
  .cut-off-card {
    flex: 0 0 auto;
    width: 200px; /* adjust card width if you like */
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .cut-off-card img {
    max-width: 80px;
    height: auto;
    margin-bottom: 10px;
  }
  
  .cut-off-card p {
    margin: 0;
    font-size: 1rem;
    color: #333;
  }/* MAIN MENU BAR */
.main-menu {
    background-color: #1c1c4a; /* your dark nav color */
    padding: 10px 20px;
  }
  
 
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
  }
  
  /* MAIN MENU BAR */
  .main-menu {
  
    padding: 10px 20px;
  }
  .main-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;  /* horizontal nav */
    gap: 20px;
    align-items: center;
  }
  .nav-item {
    position: relative; /* for absolutely positioned .mega-menu */
  }
  .nav-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 10px;
    display: inline-block;
  }
  
  /* MEGA MENU */
  .mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 1000px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 20px;
    border-radius: 8px;
    display: none;
  }
  
  .mega-column {
    flex: 1;
    padding: 0 15px;
    border-right: 1px solid #eee;
  }
  
  .mega-column:last-child {
    border-right: none;
  }
  
  .category-header {
    background: #f5f5f5;
    padding: 8px 12px;
    color: #333;
    font-weight: 500;
    margin-bottom: 15px;
    border-radius: 4px;
  }
  
  /* iPhone grid layout */
  .mega-column:first-child .category-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 30px;
  }
  
  .mega-column:first-child .category-list li {
    margin: 0;
  }
  
  .mega-column:first-child .category-list a {
    text-align: center;
    padding: 8px 5px;
    font-size: 12px;
    line-height: 1.2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 4px;
    color: #333;
  }
  
  .mega-column:first-child .category-list a:hover {
    background: #e0e0e0;
  }
  
  /* Apple Watch grid */
  .watch-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .watch-grid a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    padding: 6px 10px;
    background: #f5f5f5;
    border-radius: 4px;
    transition: all 0.2s ease;
  }
  
  .watch-grid a:hover {
    background: #e0e0e0;
    color: #333;
  }
  
  /* iPad grid */
  .ipad-grid,
  .ipad-air-grid,
  .ipad-mini-grid,
  .ipad-pro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 20px;
  }
  
  .ipad-grid a,
  .ipad-air-grid a,
  .ipad-mini-grid a,
  .ipad-pro-grid a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    padding: 6px 10px;
    transition: all 0.2s ease;
  }
  
  .ipad-grid a:hover,
  .ipad-air-grid a:hover,
  .ipad-mini-grid a:hover,
  .ipad-pro-grid a:hover {
    background: #f5f5f5;
    color: #333;
    border-radius: 4px;
  }

  /* Samsung specific styles */
  .samsung-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }

  .samsung-list li {
    margin: 0;
  }

  .samsung-list a {
    text-decoration: none;
    color: #666;
    font-size: 12px;
    padding: 8px 5px;
    background: #f5f5f5;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    height: 100%;
    transition: all 0.2s ease;
  }

  .samsung-list a:hover {
    background: #e0e0e0;
    color: #333;
  }

  .samsung-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 20px;
  }

  .samsung-grid a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    padding: 8px 10px;
    transition: all 0.2s ease;
  }

  .samsung-grid a:hover {
    background: #f5f5f5;
    color: #333;
    border-radius: 4px;
  }
  
  .nav-item:hover .mega-menu {
    display: flex;
  }

  /* Store specific styles */
  .nav-item:has(> .nav-link:contains("Store")) .mega-menu {
    width: 1200px;
    transform: translateX(-50%);
    display: none;
  }

  .store-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    margin-bottom: 20px;
  }

  .store-grid a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    padding: 8px 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .store-grid a:hover {
    background: #f5f5f5;
    color: #333;
    border-radius: 4px;
  }

  /* New styles for the Store mega menu */
  .nav-item:has(> .nav-link:contains("Store")) .mega-menu {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    padding: 20px;
  }

  .nav-item:has(> .nav-link:contains("Store")) .mega-column {
    padding: 0;
    border-right: 1px solid #eee;
  }

  .nav-item:has(> .nav-link:contains("Store")) .mega-column:last-child {
    border-right: none;
  }

  .nav-item:has(> .nav-link:contains("Store")) .category-header {
    background: #f5f5f5;
    color: #333;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-weight: 500;
    border-radius: 4px;
  }

  /* Add a "New" badge to new items */
  .store-grid a[data-new]::after {
    content: "New";
    background: #28a745;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
  }

  /* Accessories specific styles */
  .nav-item:has(> .nav-link:contains("Accessories")) .mega-menu {
    width: 1400px;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
    padding: 20px;
  }

  .nav-item:has(> .nav-link:contains("Accessories")) .mega-column {
    padding: 0;
    border-right: 1px solid #eee;
  }

  .nav-item:has(> .nav-link:contains("Accessories")) .mega-column:last-child {
    border-right: none;
  }

  .accessories-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .accessories-grid a {
    text-decoration: none;
    color: #666;
    font-size: 13px;
    padding: 8px 10px;
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .accessories-grid a:hover {
    background: #f5f5f5;
    color: #333;
    border-radius: 4px;
  }

  /* .category-header {
    background: #f5f5f5;
    color: #333;
    padding: 8px 12px;
    margin-bottom: 10px;
    font-weight: 500;
    border-radius: 4px;
  } */

/* Navigation Bar Styles */
.page-navigation {
    background-color: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-navigation ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.page-navigation li {
    margin: 0;
    padding: 0;
}

.page-navigation a {
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-navigation a:hover {
    background-color: #e9ecef;
}

.page-navigation a.active {
    background-color: #007bff;
    color: white;
}

.page-navigation a.active:hover {
    background-color: #0056b3;
}

/* Main Navigation */
.main-navigation {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 0.5rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.nav-item {
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.nav-item i {
    font-size: 1.2rem;
}

.nav-item:hover {
    background-color: #e9ecef;
}

.nav-item.active {
    background-color: #007bff;
    color: white;
}

/* Icons */
.icon-apple, .icon-samsung, .icon-xiaomi, .icon-honor,
.icon-motorola, .icon-others, .icon-accessories, .icon-protection,
.icon-computing, .icon-laptops, .icon-store, .icon-devices {
    width: 20px;
    height: 20px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slide {
        gap: 10px;
    }

    .product-card {
        width: 150px;
    }

    .prev-btn,
    .next-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .big-feature-card {
        width: 280px;
    }

    .product-card {
        width: 150px;
    }

    .arrow {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        width: 130px;
    }

    .product-card h3 {
        font-size: 0.85rem;
    }

    .big-feature-card {
        width: 240px;
    }

    .product-card {
        width: 130px;
        padding: 10px;
    }

    .product-card h4 {
        font-size: 0.8rem;
    }

    .arrow {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
}

#cart-template {
    display: inline-block;
}

/* Cart Styles */
.cart-container {
    position: relative;
    display: inline-block;
    z-index: 1001; /* Ensure the container is above other elements */
}

.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white; /* Make sure the icon is visible */
}

.cart-icon svg {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    display: none;
}

.cart-count:not(:empty) {
    display: flex !important;
}

.cart-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    z-index: 1002;
    display: none;
    max-height: 80vh;
    overflow-y: auto;
    margin-top: 10px;
    /* Ensure the dropdown is visible */
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cart-items {
    min-height: 100px; /* Minimum height to show empty state */
    max-height: 60vh;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: white;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    gap: 1rem;
    background: white;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #333;
}

.cart-item-price {
    color: #666;
    font-size: 0.9rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ff4757;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.cart-item-remove:hover {
    color: #ff1f1f;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 2px solid #eee;
    margin-top: auto;
    background: white;
}

.cart-total span {
    font-weight: bold;
    color: #333;
}

#cart-total {
    font-size: 1.1rem;
    color: #4834d4;
}

.empty-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    text-align: center;
    color: #666;
    font-style: italic;
    background: white;
}

/* Add overlay when cart is open */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.show {
    display: block;
    opacity: 1;
}

/* Ensure the cart dropdown is visible on mobile */
@media (max-width: 768px) {
    .cart-dropdown {
        width: 300px;
        right: 0;
    }
}

/* Mobile Menu Styles */
.mobile-menu-trigger {
  display: none;
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1000;
}

.mobile-menu-trigger button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.mobile-menu-trigger button span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

.mobile-menu-container {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background-color: #0d0033;
  z-index: 1001;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-menu-container.active {
  left: 0;
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0d0033;
  position: sticky;
  top: 0;
  z-index: 2;
}

.mobile-menu-back,
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  padding: 8px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.mobile-menu-title {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

/* New Mobile Navigation Styles */
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  transition: background-color 0.3s ease;
}

.mobile-nav-link:active {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-nav-link:after {
  content: '›';
  position: absolute;
  right: 20px;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.mobile-submenu {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-submenu.active {
  opacity: 1;
  transform: translateX(0);
}

.submenu-section {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.submenu-section h3 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submenu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.submenu-section ul li {
  margin: 8px 0;
}

.submenu-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 8px 0;
  transition: 0.3s;
}

.submenu-section ul li a:hover {
  color: #fff;
  padding-left: 5px;
}

/* Animation for menu items */
.mobile-nav-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: 0.3s;
}

.mobile-menu-container.active .mobile-nav-item {
  opacity: 1;
  transform: translateX(0);
  transition-delay: calc(0.1s * var(--item-index, 0));
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .mobile-menu-trigger {
    display: block;
  }

  .top-bar .logo,
  .top-bar .search-bar {
    display: none;
  }

  .top-bar {
    justify-content: flex-end;
    padding: 10px;
  }

  .main-menu {
    display: none;
  }
}

/* Add to Cart Button Styles */
.add-to-cart,
.add-to-cart-btn {
    background-color: var(--primary-color, #6B46C1);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.add-to-cart:hover,
.add-to-cart-btn:hover {
    background-color: var(--primary-dark, #553C9A);
    transform: translateY(-1px);
}

.add-to-cart:active,
.add-to-cart-btn:active {
    transform: translateY(1px);
}

/* Added to Cart Animation */
.add-to-cart.added,
.add-to-cart-btn.added {
    animation: addedToCart 1s ease;
}

@keyframes addedToCart {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        background-color: #48BB78;
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .add-to-cart,
    .add-to-cart-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Checkout Button */
.checkout-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: #4834d4;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.checkout-btn:hover {
    background-color: #3c2aa8;
    transform: translateY(-1px);
}

/* Cart Animation */
@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.bounce {
    animation: bounce 0.3s ease;
}

/* Scrollbar Styles for Cart Items */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #555;
}
