.navbar {
      font-family: "Poppins", sans-serif;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 30px;

      width: 100%;
      border-radius: 12px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      top: 0;
      z-index: 10;
    }

    .logo {
      display: flex;
      align-items: center;
    }

    .logo img {
      width: 100px;
      height: 60px;

      margin-right: 10px;
    }

    .brand-text {
      font-size: 18px;
      font-weight: bold;
    }

    nav ul {
      display: flex;
      list-style: none;
      align-items: center;
      justify-content: center;
      margin: 0;
      padding: 0;
      gap: 25px;
    }

    nav ul li {
      border: 1px solid #ff7f11;
      border-radius: 50%;
      text-decoration: none;
      font-weight: 500;
      border-radius: 20px;
      width: 70px;
      text-align: center;
      padding: 5px;
      font-size: 13px;
    }

    .icon-link {
      color: #ffffff;
      font-size: 20px;
      margin-left: 15px;
    }

    .nav-icons {
      font-size: 60px;
      display: flex;
      align-items: center;
    }

    .icon-links {
      background: #000;
      width: 100px;
      padding: 7px;
      border-radius: 20px;
    }
    /* Cloudflare icon styles */

    /* Space between icons */
    .nav-icons a {
      margin-left: 15px;
      text-decoration: none;
    }

    .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 15px 20px; /* reduced padding to save space */

      width: 100%;
      top: 0;
      left: 0;
      z-index: 10;
      box-sizing: border-box; /* makes sure padding doesn't add to width */
    }

    .logo {
      display: flex;
      align-items: center;
      flex-shrink: 0; /* prevent logo from shrinking weirdly */

      border-radius: 20px;
    }

    .logo img {
      height: 50px;
    }

    .brand-text {
      font-size: 18px;
      font-weight: bold;
      color: #fff;
      white-space: nowrap; /* keep text in one line */
    }

    nav {
      flex: 1; /* let nav take remaining space */
      overflow: hidden; /* prevent text from causing overflow */
    }

    nav ul {
      display: flex;
      list-style: none;
      gap: 20px;
      margin: 0;
      padding: 0;
      flex-wrap: wrap; /* wrap if needed */
    }

    nav ul li a {
      color: #4a4a4a;
      text-decoration: none;
      font-weight: 500;
    }

    .nav-icons {
      display: flex;
      align-items: center;
      flex-shrink: 0;
    }

    .nav-icons a img {
      height: 60px;
      margin-left: 15px;
    }

    /* Mobile view fix */
    @media (max-width: 900px) {
      nav ul {
        display: none; /* hide menu links */
      }
      .brand-text {
        display: none; /* hide text to save space */
      }
    }

    .product2-card {
      position: relative;
      background: #fff8f0;
      color: #4a4a4a;
      border-radius: 15px;

      height: 485px;
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
      transition: transform 0.3s ease;
      font-family: "Poppins", sans-serif;
    }

    .product2-card:hover {
      transform: translateY(-5px);
    }

    .product2-card img {
      width: 100%;
      display: block;
      border-bottom: 1px solid #f0f0f0;
    }

    .product2-badge {
      position: absolute;
      top: 10px;
      left: 10px;
      background: #0062ff;
      color: white;
      padding: 5px 10px;
      border-radius: 20px;
      font-size: 0.8rem;
    }

    .product2-rating {
      position: absolute;
      top: 10px;
      right: 10px;
      background: white;
      padding: 4px 8px;
      border-radius: 15px;
      font-size: 0.8rem;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .product2-rating i {
      color: gold;
    }

    .product2-sold-out,
    .product2-add-cart {
      position: absolute;
      bottom: 200x;
      left: 50%;
      transform: translateX(-50%);
      border: none;
      padding: 8px 16px;
      border-radius: 20px;
      font-size: 0.85rem;
      cursor: pointer;
      font-family: "Poppins", sans-serif;
    }

    .product2-sold-out {
      background: #f5f5f5;
      color: #333;
    }

    .product2-add-cart {
      background: #f77b00;
      color: #fff;
    }

    .product2-info {
      padding: 15px;
    }

    .product2-brand {
      font-size: 0.8rem;
      color: #ff7f11;
      margin-bottom: 7px;
    }

    .product2-title {
      margin: 5px 0;
      font-size: 1rem;
    }

    .product2-price {
      color: #7b3f00;
      font-weight: bold;
      font-size: 1.1rem;
    }

    .product2-old-price {
      text-decoration: line-through;
      color: #e67e22;
      font-size: 0.9rem;
      margin-left: 8px;
    }

    @media (max-width: 600px) {
      .product-section {
        padding: 18px 0;
      }
      .product-carousel {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }
      .product2-card {
        padding: 12px 6px;
        border-radius: 10px;
        max-height: 380px;
      }
      .product2-card img {
        width: 170px;
        height: 130px;
      }
      .product2-title {
        font-size: 0.95rem;
      }
      .product2-price {
        font-size: 1rem;
      }
      .product2-add-cart {
        padding: 8px 12px;
        font-size: 0.95rem;
        width: 50%;
      }
    }

    .tabs {
      font-family: "Poppins", sans-serif;
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 2rem;
      margin-bottom: 2rem;
    }

    .collection-grid {
      padding-top: 0;
      background: none;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .product-images {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .shop-collection {
      padding-top: 0px;
      background: #f9f9f9;
    }
    .thumbnail {
      width: 80px;
      height: 80px;
      object-fit: cover;
      border-radius: 8px;
      cursor: pointer;
      border: 2px solid transparent;
    }
    .thumbnail:hover {
      border-color: #333;
    }

    .main-image-section {
      flex: 1;
      text-align: center;
    }
    .main-image {
      width: 100%;
      max-width: 400px;
      border-radius: 12px;
    }

    .product-details {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .breadcrumb {
      font-size: 14px;
      color: #999;
    }

    .title {
      font-size: 26px;
      font-weight: bold;
    }

    .price-section {
      font-size: 18px;
      display: flex;
      gap: 12px;
      align-items: center;
    }
    .old-price {
      text-decoration: line-through;
      color: #888;
    }
    .new-price {
      font-size: 24px;
      color: #000;
      font-weight: 600;
    }
    .discount {
      background: #ff4d4d;
      color: #fff;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 12px;
    }

    .rating {
      color: #ff9800;
      font-size: 16px;
    }

    .description p {
      color: #555;
      font-size: 15px;
      line-height: 1.6;
    }

    .options .option-group {
      margin-top: 15px;
    }
    .option-group label {
      font-weight: 600;
      margin-bottom: 6px;
      display: block;
    }
    .colors,
    .sizes {
      display: flex;
      gap: 10px;
      margin-top: 5px;
    }

    .color,
    .size {
      border: 1px solid #ccc;
      padding: 6px 12px;
      border-radius: 6px;
      cursor: pointer;
      background: #f2f2f2;
    }
    .color:hover,
    .size:hover {
      background: #ddd;
    }
    .size.active {
      background: #333;
      color: #fff;
      font-weight: bold;
    }

    .actions {
      margin-top: 20px;
      display: flex;
      gap: 12px;
    }
    .add-to-cart,
    .checkout {
      padding: 12px 20px;
      border: none;
      border-radius: 6px;
      font-size: 16px;
      cursor: pointer;
    }
    .add-to-cart {
      background: #e0e0e0;
    }
    .checkout {
      background: #000;
      color: #fff;
    }

    .grid-title {
      font-family: "Poppins", sans-serif;
      text-align: left;
      font-size: 2rem;
      margin-top: 0;
      font-weight: 400;

      color: #7b3f00;
      text-decoration: underline;
      text-decoration-color: #ff7f11;
    }

    /* Add to your <style> section or style.css */
    .side-bar {
      background: #fff8f0;
      border-radius: 14px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
      padding: 24px 18px;
      min-width: 220px;
      max-width: 260px;
      margin-right: 32px;
      float: left;
      font-family: "Poppins", sans-serif;
    }

    .sidebar-title {
      font-size: 1.2rem;
      color: #cb6b2f;
      margin-bottom: 16px;
      font-weight: 600;
    }

    .sidebar-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .sidebar-list li {
      margin-bottom: 12px;
    }

    .sidebar-list a {
      color: #70431d;
      text-decoration: none;
      font-size: 1rem;
      transition: color 0.2s;
    }

    .sidebar-list a:hover {
      color: #ff7f11;
      text-decoration: underline;
    }

    @media (max-width: 900px) {
      .side-bar {
        float: none;
        margin-right: 0;
        max-width: 100%;
        margin-bottom: 18px;
      }
    }

    /* ...existing code... */

    /* Ensure sidebar and collection grid are above the footer and do not overlap */
    .shop-collection {
      position: relative;
      z-index: 1;
      margin-bottom: 48px; /* Add space above footer */
    }

    .footer {
      position: relative;
      z-index: 2;
      margin-top: 0;
      clear: both;
    }

    /* Responsive: add more space on mobile if needed */
    @media (max-width: 900px) {
      .shop-collection {
        margin-bottom: 64px;
      }
    }
    /* ...existing code... */

    /* Make sidebar fixed on desktop */
    @media (min-width: 901px) {
      .side-bar {
        position: fixed;
        top: 100px; /* adjust as needed for your navbar height */
        left: 40px; /* adjust for your layout */
        max-height: 80vh;
        overflow-y: auto;
        z-index: 20;
      }
      .popcorn-machine-section {
        margin-left: 300px; /* adjust to match sidebar width + left offset */
      }
    }

    /* ...existing code... */

    /* Make sure sidebar does not block footer or shop-collection */
    @media (min-width: 901px) {
      .side-bar {
        position: fixed;
        top: 100px;
        left: 40px;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 20;
      }
      .popcorn-machine-section,
      .shop-collection {
        margin-left: 300px; /* match sidebar width + left offset */
      }
      .footer {
        margin-left: 0; /* footer stays full width */
        clear: both;
        position: relative;
        z-index: 10;
      }
    }

    /* On mobile, sidebar is not fixed and does not affect layout */
    @media (max-width: 900px) {
      .side-bar,
      .popcorn-machine-section,
      .shop-collection {
        margin-left: 0;
        position: static;
        max-width: 100%;
      }
      .footer {
        margin-left: 0;
        position: relative;
        z-index: 10;
      }
    }

    /* Final product page layout + image design (matches target screenshot) */
    html,
    body {
      margin: 0;
      padding: 0;
    }

    body {
      padding-top: 90px;
    }

    .product2-card {
      height: auto;
      min-height: 560px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      border-radius: 20px;
      background: #fff8f0;
    }

    .product2-card img {
      width: 100%;
      height: 250px;
      object-fit: cover;
      object-position: center;
      background: #ffffff;
      border-bottom: 1px solid #e6e6e6;
    }

    .product2-info {
      flex: 1;
      padding: 16px 18px 18px;
    }

    @media (min-width: 901px) {
      .shop-collection {
        display: grid;
        grid-template-columns: 280px minmax(0, 1fr);
        column-gap: 28px;
        align-items: start;
        padding: 20px 24px;
        margin-left: 0 !important;
      }

      .popcorn-machine-section {
        display: contents;
      }

      .side-bar {
        grid-column: 1;
        grid-row: 1 / span 20;
        position: sticky;
        top: 90px;
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
        align-self: start;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
      }

      .grid-title {
        grid-column: 2;
        margin: 0 0 12px;
      }

      .collection-grid {
        grid-column: 2;
        width: 100%;
        min-width: 0;
        margin: 0 0 24px;
        gap: 22px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }

    @media (max-width: 1300px) and (min-width: 901px) {
      .collection-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 900px) {
      body {
        padding-top: 80px;
      }

      .shop-collection {
        display: block;
        padding: 14px;
      }

      .collection-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
      }

      .product2-card {
        min-height: 0;
      }

      .product2-card img {
        height: 190px;
      }
    }

    @media (max-width: 560px) {
      .collection-grid {
        grid-template-columns: 1fr;
      }
    }

    .footer {
      margin-bottom: 0;
    }
