@import url("https://fonts.googleapis.com/css2?family=Spartan:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* ==========================================================================
   1. Base & Resets
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Spartan", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  width: 100%;
  padding-top: 80px; /* For fixed header, adjust if header height changes */
  overflow-x: hidden; /* Prevent horizontal scroll on body */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 12px;
  height: 8px; /* For horizontal scrollbars */
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background-color: #c1c1c1; /* Default thumb color */
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #1815be; /* Thumb hover color */
}

/* ==========================================================================
   2. Typography
   ========================================================================== */
h1 {
  font-size: 3.125rem; /* 50px */
  line-height: 4rem; /* 64px */
  color: #222;
}

h2 {
  font-size: 2.875rem; /* 46px */
  line-height: 3.375rem; /* 54px */
  color: #222;
}

h4 {
  font-size: 1.5rem; /* 24px */
  color: #222;
}

h6 {
  font-weight: 700;
  font-size: 0.75rem; /* 12px */
}

p {
  font-size: 1rem; /* 16px */
  color: #465b52;
  margin: 15px 0 20px 0;
}

/* ==========================================================================
   3. Utility Classes
   ========================================================================== */
.section-p1 {
  padding: 40px 80px;
}

.section-m1 {
  margin: 40px 0; /* Primarily for top/bottom margin */
}

.text-center {
    text-align: center !important; /* Ensure it overrides if needed */
}
.text-center-content { /* If you need to center block children */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.select-none {
  user-select: none;
}

.out-of-stock {
    color: #e74c3c;
    font-weight: 600;
    margin: 10px 0;
    padding: 8px 15px;
    background-color: #fde2e2;
    border-radius: 5px;
    display: inline-block;
}

.in-stock {
    color: #27ae60;
    font-weight: 600;
    margin: 10px 0;
    padding: 8px 15px;
    background-color: #e3f4ec;
    border-radius: 5px;
    display: inline-block;
}

/* ==========================================================================
   4. Buttons
   ========================================================================== */
button.normal {
  font-size: 14px;
  font-weight: 600;
  padding: 15px 30px;
  color: #000;
  background-color: #fff;
  border-radius: 5px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.3s ease;
}
button.normal:hover {
  background-color: #088178;
  color: #fff;
}

button.white {
  font-size: 13px;
  font-weight: 600;
  padding: 11px 18px;
  color: #ffffff;
  background-color: transparent;
  cursor: pointer;
  border: 1px solid white;
  outline: none;
  transition: all 0.3s ease;
}
button.white:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   5. Header
   ========================================================================== */
#Header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 80px;
    background-color: #eb3838;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    z-index: 999;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transition: top 0.4s ease-out;
}
#Header.header-hidden {
    top: -100px; /* Adjust if header height changes */
}
#Header .logo { /* Add a class to your logo image/link */
    max-height: 40px; /* Example */
}

#navbar {
  display: flex;
  align-items: center;
  justify-content: center;
}
#navbar li {
  list-style: none;
  padding: 0 20px;
  position: relative;
}
#navbar li a {
  cursor: pointer;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  transition: 0.3s ease;
}
#navbar li a:hover,
#navbar li a.active {
  color: #1815be;
}
#navbar li a.active::after,
#navbar li a:hover::after {
  content: "";
  width: 30%;
  height: 2px;
  background-color: #1815be;
  position: absolute;
  bottom: -4px;
  left: 20px;
}

.lg-bag { /* Wrapper for cart icon in header for badge positioning */
  position: relative;
}
.head-Cart { /* Cart icon in header */
  font-size: 1.3rem; /* This is on the <a> or <i> tag */
  color: #ffffff; /* Ensure icon is visible */
}
.head-Cart:hover {
    color: #1815be; /* Match nav link hover */
}
#cart-count { /* Cart count badge */
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #1815be; /* Contrasting color, was #e8484a */
    color: white;
    font-size: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

/* Mobile Navigation */
#mobile {
  display: none; /* Shown via media query */
  align-items: center;
}
#mobile i { /* Style for hamburger icon */
    color: #ffffff;
    font-size: 24px;
    padding-left: 20px; /* Space from other nav items if any */
    cursor: pointer;
}
#Close { /* Close button for mobile menu */
  display: none; /* Shown via JS when mobile menu is active */
  /* Positioned absolutely within the mobile #navbar */
  color: #222;
  font-size: 24px;
  cursor: pointer;
}

/* ==========================================================================
   6. Hero Section (#img-slider)
   ========================================================================== */
#img-slider {
  height: 90vh;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-image: url('/images/onlineshop/img/banner/b1.jpg'); 
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
#img-slider .info {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 30px 80px;
  max-width: 600px;
  text-align: left;
}
#img-slider .info h4 {
  padding-bottom: 15px;
  color: #222; /* Default, adjust if unreadable */
}
#img-slider .info h2 {
  color: #222; /* Default, adjust if unreadable */
}
#img-slider .info h1 {
  color: #1815be;
}
#img-slider .info p {
  margin-bottom: 20px;
  color: #465b52; /* Default, adjust if unreadable */
}
#img-slider .info button {
  background-color: #1815be;
  color: #ffffff;
  border: none;
  padding: 14px 65px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
#img-slider .info button:hover {
  background-color: #100d8a;
}

/* ==========================================================================
   7. Feature Section (#feature)
   ========================================================================== */
#feature {
  display: flex;
  align-items: center; /* Vertically align items if they have different heights */
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px; /* Modern way to space items */
}
#feature .fe-box {
  width: 180px; /* Or use flex-basis with gap for more dynamic sizing */
  text-align: center;
  padding: 25px 15px;
  box-shadow: 20px 20px 34px rgba(0, 0, 0, 0.03);
  border: 1px solid #cce7d0;
  border-radius: 4px;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}
#feature .fe-box:hover {
  box-shadow: 10px 10px 54px rgba(70, 62, 221, 0.1);
}
#feature .fe-box img {
  width: 100%;
  max-width: 100px; /* Control image size within box */
  margin-bottom: 10px;
}
#feature .fe-box h6 {
  display: inline-block;
  padding: 9px 8px 6px 8px;
  line-height: 1;
  border-radius: 4px;
  color: #1815be;
  background-color: #fddde4;
}
#feature .fe-box:nth-child(2) h6 { background-color: #cdebbc; }
#feature .fe-box:nth-child(3) h6 { background-color: #d1e8f2; }
#feature .fe-box:nth-child(4) h6 { background-color: #f6dbf6; }
#feature .fe-box:nth-child(5) h6 { background-color: #cdd4f8; }
#feature .fe-box:nth-child(6) h6 { background-color: #fff2e5; }

/* ==========================================================================
   8. Category Selection Section
   ========================================================================== */
#select-categories {
    margin-bottom: 30px;
}
.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.categories-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}
.categories-header .show-all {
    font-size: 0.95rem;
    color: #1815be;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
}
.categories-header .show-all:hover {
    color: #100d8a;
    border-bottom-color: #100d8a;
}

.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 15px; /* Space for scrollbar or visual */
    scrollbar-width: none; /* Firefox */
}
.category-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}
.category-item {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 130px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px 10px;
    text-align: center;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid transparent;
}
.category-item:hover,
.category-item:focus {
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
    border-color: #1815be;
}
.category-icon img,
.category-icon i {
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 8px;
    color: #1815be; /* Icon color if using Font Awesome */
}
.category-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333;
    display: block;
    line-height: 1.3;
}

/* ==========================================================================
   9. Product Sections (Horizontal Scroll & Cards)
   ========================================================================== */
.product-section {
    /* Uses .section-p1 for main padding */
}
.product-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.product-section .section-header h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 0;
    position: relative;
    padding-bottom: 10px;
}
.product-section .section-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #1815be;
    position: absolute;
    bottom: 0;
    left: 0;
}
.product-section .view-all-btn {
    text-decoration: none;
    color: #fff;
    background-color: #1815be;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    border: 1px solid #1815be;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.product-section .view-all-btn:hover {
    background-color: #100d8a;
    border-color: #100d8a;
}
.product-section .view-all-btn i {
    font-size: 0.9em;
}

/* Horizontal Scroll Container for Products */
.pro-container.horizontal-scroll {
    display: flex;
    flex-wrap: nowrap; /* CRITICAL for horizontal scroll */
    overflow-x: auto;
    overflow-y: hidden;
    padding: 15px 5px 25px 5px; /* T, R/L for shadow, B for scrollbar */
    gap: 15px; /* MODIFIED from 20px */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #c1c1c1 #f1f1f1; /* thumb track Firefox */
}
/* Webkit scrollbar styles for this container */
.pro-container.horizontal-scroll::-webkit-scrollbar { height: 8px; }
.pro-container.horizontal-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.pro-container.horizontal-scroll::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 10px; }
.pro-container.horizontal-scroll::-webkit-scrollbar-thumb:hover { background: #1815be; }

/* Product Card Styling (.pro) */
.pro {
    width: 220px; /* MODIFIED from 240px */
    min-width: 200px; /* MODIFIED from 220px */
    flex-shrink: 0; /* CRITICAL: Prevents cards from shrinking */
    height: auto;
    min-height: 320px;
    padding: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Clip image hover scale etc. */
}
.pro:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-color: #1815be;
}

.pro .img-fixed-container {
    width: 100%;
    height: 220px;
    min-height: 220px;
    flex-shrink: 0; /* Prevent this from shrinking if .pro is flex */
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pro .img-fixed-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.pro:hover .img-fixed-container img {
    transform: scale(1.05);
}

.pro .des {
    text-align: left;
    padding: 0 5px;
    flex-grow: 1; /* Takes remaining space */
    display: flex;
    flex-direction: column;
    min-height: 0; /* Fix for flex item content overflow */
}
.pro .des .product-title {
    margin: 0 0 8px 0;
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    height: 2.6em; /* Approx 2 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pro .des .product-category {
    margin-bottom: 5px;
}
.pro .des .product-category span {
    color: #787878;
    font-size: 0.75rem;
    font-weight: 400;
}

.pro .des .description-text { /* For shop page grid view short description */
    height: 2.8em; /* Approx 2 lines for 1.4 line height */
    line-height: 1.4;
    overflow: hidden;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}
.pro .des .description-text span {
    font-size: 14px;
    color: #606060;
}

.pro .des .price-container {
    margin-top: auto; /* Pushes to bottom */
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pro .des h4 { /* Price */
    font-size: 1.125rem;
    font-weight: 700;
    color: #1815be;
    margin: 0;
}

/* Cart button on product card */
.pro .add-to-cart-form {
    /* Part of .price-container flex layout */
}
.pro .add-to-cart-btn.cart {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1815be;
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(24, 21, 190, 0.2);
    cursor: pointer;
}
.pro .add-to-cart-btn.cart:hover {
    background-color: #100d8a;
    transform: scale(1.1);
}
.pro .add-to-cart-btn.cart i {
    font-size: 1rem;
}

/* Empty state for product sections */
.product-section .no-products-message { /* More specific class */
    text-align: center;
    width: 100%;
    padding: 30px 20px; /* Consistent padding */
    color: #666;
    font-size: 1rem; /* Consistent font size */
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}
/* styles.css or your main stylesheet */

.pro .card-cart-controls {
    display: flex; /* Or inline-flex if you want it on one line with text */
    flex-direction: column; /* Stack button and quantity controls */
    align-items: center; /* Center them */
    margin-top: 10px;
    width: 100%; /* Make it take full width of the card's bottom area */
}

.pro .card-cart-controls .add-to-cart-btn,
.pro .card-cart-controls .quantity-wrapper {
    width: 80%; /* Adjust as needed */
    max-width: 180px; /* Max width for the button/controls */
    padding: 8px 10px; /* Smaller padding for card buttons */
    font-size: 0.9em; /* Slightly smaller font */
    margin: 3px 0;
    /* Inherit general button styles or define specific ones */
}

.pro .card-cart-controls .add-to-cart-btn {
    background-color: #088178; /* Example color */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}
.pro .card-cart-controls .add-to-cart-btn:hover {
    background-color: #06635e;
}


.pro .card-cart-controls .quantity-wrapper {
    border: 1px solid #ccc;
    border-radius: 4px;
    display: flex; /* This will be overridden by JS to 'flex' when shown */
    justify-content: space-between;
    align-items: center;
}

.pro .card-cart-controls .quantity-wrapper .quantity-btn {
    padding: 5px 10px;
    cursor: pointer;
    user-select: none; /* Prevent text selection */
}
.pro .card-cart-controls .quantity-wrapper .quantity-input {
    width: 40px; /* Adjust */
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    padding: 5px 0;
    font-size: 1em;
}

/* Ensure spinner is visible on card buttons if they have dark backgrounds */
.pro .card-cart-controls .add-to-cart-btn .loading-spinner {
     border: 2px solid rgba(255,255,255,0.3);
     border-top-color: white;
}

/* Styles for quantity wrapper on product details page (if different) */
#prodetails .single-pro-details .quantity-wrapper {
    /* Your existing styles for quantity wrapper on product detail */
    display: flex;
    align-items: center;
    margin-top: 10px; /* Or existing margin */
    border: 1px solid #cce7d0;
    border-radius: 4px;
    padding: 5px;
    width: fit-content;
}
#prodetails .single-pro-details .quantity-wrapper .quantity-btn {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 16px;
    color: #088178;
    user-select: none;
}
#prodetails .single-pro-details .quantity-wrapper .quantity-input {
    width: 50px;
    text-align: center;
    font-size: 16px;
    border: none;
    margin: 0 5px;
    padding: 5px;
    -moz-appearance: textfield; /* Firefox */
}
#prodetails .single-pro-details .quantity-wrapper .quantity-input::-webkit-outer-spin-button,
#prodetails .single-pro-details .quantity-wrapper .quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* ==========================================================================
   10. Newsletter Section
   ========================================================================== */
#newsletter {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    background-image: url('../images/onlineshop/img/banner/b14.png'); /* ADJUST PATH */
    background-position: 20% 30%;
    background-color: #041e42;
    background-repeat: no-repeat;
    padding: 50px 80px;
    /* margin from .section-m1 if used */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
#newsletter .newstext h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
#newsletter .newstext p {
    font-size: 0.9rem;
    font-weight: 500;
    color: #818ea0;
    margin-bottom: 0;
    line-height: 1.5;
}
#newsletter .newstext p span {
    color: #ffbd27;
    font-weight: 600;
}
#newsletter .form {
    display: flex;
    width: 100%;
    max-width: 450px;
    margin-top: 20px; /* Space if newstext is wide and form wraps */
}
#newsletter input[type="text"] {
    height: 50px;
    padding: 0 20px;
    font-size: 14px;
    border: 1px solid transparent;
    border-radius: 4px 0 0 4px;
    outline: none;
    flex-grow: 1;
    min-width: 0; /* Fix for flex item overflow */
}
#newsletter input[type="text"]:focus {
    border-color: #1815be;
}
#newsletter .form button { /* Assuming button is direct child, not in <a> */
    height: 50px;
    padding: 0 30px;
    background-color: #1815be;
    color: white;
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}
#newsletter .form button:hover {
    background-color: #100d8a;
}

/* ==========================================================================
   11. Banner Sections
   ========================================================================== */
/* Main Call to Action Banner (#banner) */
#banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-image: url('../images/onlineshop/img/banner/b1.jpg'); /* ADJUST PATH */
  width: 100%;
  min-height: 40vh;
  background-size: cover;
  background-position: center;
  padding: 40px 20px;
}
#banner h4 {
  color: white;
  font-size: 1rem;
  font-weight: 500;
}
#banner h2 {
  color: white;
  font-size: 2rem;
  padding: 10px 0;
  font-weight: 700;
}
#banner h2 span {
  color: #ef3636;
}
/* Uses button.normal, hover defined globally */

/* Small Banners Section (#sm-banner) */
#sm-banner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}
#sm-banner .banner-box { /* Add class="banner-box box1" and "banner-box box2" in HTML */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-size: cover;
  background-position: center;
  min-width: calc(50% - 10px);
  flex-grow: 1;
  height: 50vh;
  padding: 30px;
  border-radius: 8px;
  overflow: hidden;
  color: white;
}
#sm-banner .banner-box.box1 { background-image: url('../images/onlineshop/img/banner/b17.jpg'); /* ADJUST PATH */ }
#sm-banner .banner-box.box2 { background-image: url('../images/onlineshop/img/banner/b10.jpg'); /* ADJUST PATH */ }

#sm-banner .banner-box h4 {
  color: inherit;
  font-size: 1.25rem;
  font-weight: 400;
}
#sm-banner .banner-box h2 {
  color: inherit;
  font-size: 1.75rem;
  font-weight: 800;
  margin: 5px 0 10px 0;
}
#sm-banner .banner-box span { /* Description text */
  color: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  padding-bottom: 15px;
  display: block;
}
#sm-banner .banner-box button.white:hover {
  background-color: #1815be;
  border-color: #1815be;
}

/* Feature Banners (#banner3) */
#banner3 {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  /* Padding from .section-p1 if used as parent */
}
#banner3 .banner-box { /* Add class="banner-box b7", "banner-box b4", "banner-box b18" in HTML */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-size: cover;
  background-position: center;
  min-width: calc(33.333% - 14px); /* Adjust for 3 boxes with 20px gap */
  flex-grow: 1;
  height: 30vh;
  padding: 20px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.3s ease;
}
#banner3 .banner-box.b7 { background-image: url('../images/onlineshop/img/banner/b7.jpg'); /* ADJUST PATH */ }
#banner3 .banner-box.b4 { background-image: url('../images/onlineshop/img/banner/b4.jpg'); /* ADJUST PATH */ }
#banner3 .banner-box.b18 { background-image: url('../images/onlineshop/img/banner/b18.jpg'); /* ADJUST PATH */ }

#banner3 .banner-box h2 { /* Main title */
  color: white;
  font-weight: 900;
  font-size: 1.375rem;
  margin-bottom: 5px;
}
#banner3 .banner-box h3 { /* Sub-title */
  color: #ec544e;
  font-weight: 800;
  font-size: 0.9375rem;
}
#banner3 .banner-box:hover {
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}
#banner3 .banner-box:hover::before { /* Optional overlay on hover */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.15);
    z-index: 1;
}
#banner3 .banner-box > * { /* Ensure content is above overlay */
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 40px 0; /* Top/bottom padding, side from .section-p1 */
  /* margin from .section-m1 if used */
}
footer .col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-basis: 200px; /* Min width, adjust as needed */
  flex-grow: 1;
}
footer .logo { /* Footer logo image */
  max-width: 150px;
  margin-bottom: 30px;
  cursor: pointer;
}
footer h4 { /* Column titles */
  font-size: 1rem;
  font-weight: 600;
  padding-bottom: 15px;
  margin-bottom: 10px;
  color: #222;
}
footer p {
  font-size: 0.875rem;
  color: #465b52;
  margin: 0 0 10px 0;
  line-height: 1.6;
}
footer a {
  font-size: 0.875rem;
  text-decoration: none;
  color: #465b52;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}
footer a:hover {
  color: #1815be;
}

footer .follow {
  margin-top: 20px;
}
footer .follow h4 {
    margin-bottom: 10px;
}
footer .follow i { /* Social media icons */
  color: #465b52;
  padding-right: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}
footer .follow i:hover {
  color: #1815be;
}

footer .install .row { /* For app store images */
    display: flex;
    gap: 10px;
    margin-top: 10px;
}
footer .install .row img {
  height: 40px;
  width: auto;
  border: 1px solid #1815be;
  border-radius: 6px;
  cursor: pointer;
}
footer .install img.payment-methods { /* For payment gateway images */
  margin: 10px 0 15px 0;
  cursor: pointer;
  max-height: 30px;
}

footer .copyright {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  margin-top: 20px; /* Space if columns wrap unevenly */
  border-top: 1px solid #e1e1e1;
  font-size: 0.875rem;
  color: #606060;
}

/* ==========================================================================
   13. Cart Page Specific Styles (#cart)
   ========================================================================== */
#cart {
    overflow-x: auto; /* For responsiveness */
}
#cart table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    white-space: nowrap;
}
#cart table img {
    width: 70px;
    border-radius: 4px;
}
#cart table td:nth-child(1) { width: 100px; text-align: center; } /* Remove Btn */
#cart table td:nth-child(2) { width: 150px; text-align: center; } /* Image */
#cart table td:nth-child(3) { width: 250px; text-align: left; padding-left: 10px; white-space: normal; } /* Product Name (allow wrap) */
#cart table td:nth-child(4), /* Price */
#cart table td:nth-child(5), /* Quantity */
#cart table td:nth-child(6) { width: 150px; text-align: center; } /* Subtotal */

#cart table td:nth-child(5) input[type="number"] {
    width: 60px;
    padding: 10px 5px 10px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    -moz-appearance: textfield; /* Firefox */
}
#cart table td:nth-child(5) input[type="number"]::-webkit-outer-spin-button,
#cart table td:nth-child(5) input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none; /* Safari, Chrome, Edge, Opera */
    margin: 0;
}

#cart table thead {
    border: 1px solid #e2e9e1;
    border-left: none;
    border-right: none;
}
#cart table thead td {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    padding: 18px 0;
    color: #222;
}
#cart table tbody tr td {
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e9e1;
}
#cart table tbody tr:last-child td {
    border-bottom: none;
}
#cart table tbody td {
    font-size: 14px;
    color: #465b52;
}
.remove-from-cart {
    color: #e8484a;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.remove-from-cart:hover {
    color: #c0392b;
}
.empty-cart { /* Message when cart is empty */
    text-align: center;
    padding: 50px 0;
}
.empty-cart h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
}
.empty-cart p { margin-bottom: 25px; }
/* Cart Totals Section (e.g., #cart-add) would be styled separately */

/* ==========================================================================
   14. Product Details Page (#prodetails)
   ========================================================================== */
#prodetails {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px; /* Space from header */
    /* padding from .section-p1 */
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

/* Product Image Section */
.single-pro-img {
    width: 100%; /* Default, overridden by media query for larger screens */
    max-width: 50%;
    padding-right: 50px;
    flex-shrink: 0;
}
.single-pro-img #mainImg {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover; /* Or contain */
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    cursor: zoom-in; /* If zoom functionality exists */
}
.zoom-container { /* If using a zoom library */
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}
.zoom-container:hover #mainImg { transform: scale(1.03); /* Subtle hover zoom */ }

.small-img-group {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 15px;
}
.small-img-col {
    flex-basis: calc(25% - 7.5px); /* 4 thumbnails with 10px gap */
    cursor: pointer;
}
.small-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    transition: all 0.3s ease;
    opacity: 0.7;
    border: 2px solid transparent;
}
.small-img:hover,
.small-img.active {
    opacity: 1;
    border-color: #1815be;
}

/* Product Details Text Section */
.single-pro-details {
    width: 100%; /* Default, overridden by media query */
    max-width: 50%;
    padding: 20px 0 0 20px; /* T, L padding for space from image */
    flex-grow: 1;
}
.single-pro-details h5 { /* Category/Brand */
    font-size: 1rem;
    font-weight: 600;
    color: #777;
    margin-bottom: 10px;
    line-height: 1.3;
    text-transform: uppercase;
}
.single-pro-details h4 { /* Product Name/Title */
    font-size: 1.8rem;
    color: #222;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e1e1;
    line-height: 1.3;
}
.single-pro-details h2 { /* Price */
    font-size: 2rem;
    font-weight: 700;
    color: #1815be;
    margin-bottom: 25px;
}

/* Quantity Controls */
.quantity-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 15px 0;
}
.quantity-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  background-color: #1815be;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 22px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.quantity-btn:hover { background-color: #100d8a; }
.quantity-btn:active { background-color: #0c0a6d; transform: scale(0.95); }
.quantity-btn:disabled {
    background-color: #c2c1f0;
    color: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}
.quantity-input {
  width: 40px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #333;
  border: none;
  background-color: transparent;
  padding: 0;
  margin: 0;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Product Form Elements (Select, Input) */
.single-pro-details select,
.single-pro-details input[type="text"], /* Example for other inputs */
.single-pro-details input[type="email"] {
    display: block;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    width: 100%;
    max-width: 300px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}
.single-pro-details select:focus,
.single-pro-details input[type="text"]:focus,
.single-pro-details input[type="email"]:focus {
    border-color: #1815be;
    box-shadow: 0 0 5px rgba(24, 21, 190, 0.2);
}

/* Add to Cart Button (Product Details Page) */
.single-pro-details .add-to-cart-btn { /* Specific class for this button */
    background-color: #1815be;
    color: #fff;
    padding: 15px 30px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 5px 15px rgba(24, 21, 190, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.single-pro-details .add-to-cart-btn:hover {
    background-color: #100d8a;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(24, 21, 190, 0.3);
}
.single-pro-details .add-to-cart-btn.added {
    background-color: #4CAF50;
}
.single-pro-details .add-to-cart-btn.added:hover {
    background-color: #45a049;
}

/* Loading Spinner for Add to Cart Button */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    vertical-align: middle;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Description (Details Page) */
.single-pro-details h4.product-description-title {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
    text-transform: none;
    letter-spacing: normal;
}
.single-pro-details .description-content {
    line-height: 1.7;
    color: #606060;
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.single-pro-details .description-content span { /* If description comes in a span */
    display: block; /* Ensure it behaves as a block */
}

/* Product Features List (Details Page) */
.product-features {
    margin: 20px 0;
}
.product-features h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #222;
    font-weight: 600;
}
.product-features ul {
    list-style: none;
    padding-left: 0;
}
.product-features li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: #606060;
    font-size: 0.9rem;
}
.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 1px;
    color: #1815be;
    font-weight: bold;
}

/* Related Products Section (on Product Details Page) */
#product1.related-products { /* Assumes #product1 is also used for related products */
    margin-top: 50px;
    background-color: #f9f9f9;
    border-radius: 15px;
    padding-bottom: 30px;
    /* Uses .section-p1 for side padding */
}
#product1.related-products h2 { /* Title for related products */
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    position: relative;
    margin-bottom: 15px;
    padding-bottom: 10px;
}
#product1.related-products h2::after {
    content: '';
    width: 80px;
    height: 3px;
    background: #1815be;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}
#product1.related-products > p { /* Subtitle for related products */
    text-align: center;
    color: #606060;
    margin-bottom: 40px;
    font-size: 1rem;
}
/* Uses .pro-container.horizontal-scroll and .pro for product display */

/* ==========================================================================
   15. Toast Notifications
   ========================================================================== */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 280px;
    max-width: 380px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    z-index: 10000;
    transform: translateX(calc(100% + 20px));
    opacity: 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}
.toast-notification.show {
    transform: translateX(0);
    opacity: 1;
}
.toast-notification.success { background-color: #4CAF50; }
.toast-notification.error { background-color: #F44336; }
.toast-notification.info { background-color: #2196F3; }
.toast-notification.warning { background-color: #ff9800; }

.toast-notification i.toast-icon { /* Class for the icon */
    margin-right: 12px;
    font-size: 22px;
    flex-shrink: 0;
}
.toast-notification .toast-message { /* Text content */
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.4;
}
.toast-notification .close-toast { /* Close button */
    cursor: pointer;
    font-size: 20px;
    margin-left: 15px;
    opacity: 0.8;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    transition: opacity 0.3s ease;
}
.toast-notification .close-toast:hover {
    opacity: 1;
}

/* ==========================================================================
   16. Product Reviews Section
   ========================================================================== */
.product-reviews {
    margin-top: 50px;
    /* padding from .section-p1 */
}
.product-reviews h3.reviews-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: #222;
}
.product-reviews h3.reviews-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #1815be;
}
.review-box {
    border: 1px solid #e1e1e1;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.reviewer-name {
    font-weight: 600;
    color: #222;
    font-size: 1rem;
}
.review-date {
    color: #888;
    font-size: 0.8rem;
}
.review-rating {
    margin-bottom: 10px;
    color: #f39c12; /* Gold/Yellow for stars */
}
.review-rating i { /* Individual star icon */
    font-size: 0.9rem;
    margin-right: 2px;
}
.review-content {
    line-height: 1.6;
    color: #606060;
    font-size: 0.9rem;
}
/* Add Review Form styling would go here if applicable */

/* ==========================================================================
   17. Breadcrumb Navigation
   ========================================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding: 15px 0; /* Top/bottom padding, side from .section-p1 */
    margin-bottom: 20px;
    background-color: #f8f8f8;
    border-radius: 6px;
    font-size: 0.9rem;
}
.breadcrumb a,
.breadcrumb span {
    text-decoration: none;
    color: #606060;
    margin: 0 5px;
    display: inline-flex;
    align-items: center;
}
.breadcrumb a:hover {
    color: #1815be;
    text-decoration: underline;
}
.breadcrumb span.current-page {
    color: #1815be;
    font-weight: 600;
}
.breadcrumb i.separator { /* Icon like > or / */
    font-size: 0.8em;
    color: #999;
    margin: 0 8px;
}

/* ==========================================================================
   18. Grid Layout for Products (e.g., Shop Page)
   ========================================================================== */
.pro-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 15px 0;
}
.pro-grid-container .pro { /* .pro styling inherited, adjust if needed for grid */
    width: 100%;
    min-width: unset;
    margin: 0;
}
.no-products { /* Message when no products in grid */
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    grid-column: 1 / -1; /* Span all columns */
}
.no-products h3 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.5rem;
}
.no-products p {
    color: #666;
    font-size: 1rem;
}

/* ==========================================================================
   19. Pagination
   ========================================================================== */
#pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 40px;
    padding: 15px 0;
    flex-wrap: wrap;
}
#pagination .pagination { /* UL element */
    display: flex;
    padding-left: 0;
    list-style: none;
    margin: 0;
    align-items: center;
    gap: 8px;
}
#pagination .page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0.3rem 0.5rem;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid #ddd;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    line-height: 1;
    box-sizing: border-box;
}
#pagination .page-item.active .page-link {
    background-color: #1815be;
    color: #fff;
    border-color: #1815be;
    font-weight: bold;
    cursor: default;
}
#pagination .page-item.disabled .page-link {
    background-color: #f5f5f5;
    color: #aaa;
    border-color: #eee;
    cursor: not-allowed;
    opacity: 0.7;
}
#pagination .page-item.disabled .page-link svg {
    fill: #aaa;
}
#pagination .page-item:not(.active):not(.disabled) .page-link:hover {
    background-color: #f0f0f0;
    color: #1815be;
    border-color: #1815be;
}
#pagination .page-link svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}
 #page-header.about-header { /* Re-using this for consistency */
        background-image: url("{{ asset('images/onlineshop/img/banner/b19.jpg') }}"); /* Example checkout banner */
        height: 40vh;
    }
    #page-header h2, #page-header p { color: #fff; }


    #checkout-process .checkout-container {
        max-width: 1100px; /* Control overall width */
        margin: 0 auto;
    }

    #checkout-process .checkout-grid {
        display: grid;
        grid-template-columns: 1fr; /* Stack on mobile */
        gap: 40px;
    }

    @media (min-width: 992px) { /* Desktop layout */
        #checkout-process .checkout-grid {
            grid-template-columns: 1fr 1.2fr; /* Order summary smaller, details larger */
        }
    }

    #checkout-process .order-summary-column,
    #checkout-process .customer-payment-column {
        background-color: #f9f9f9;
        padding: 30px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }

    #checkout-process h3 {
        font-size: 1.5rem; /* 24px, matches h4 */
        color: #222;
        margin-bottom: 25px;
        padding-bottom: 10px;
        border-bottom: 1px solid #e1e1e1;
    }

    /* Order Summary Table */
    .cart-summary-table table {
        width: 100%;
        border-collapse: collapse;
    }
    .cart-summary-table th, .cart-summary-table td {
        padding: 12px 0;
        font-size: 0.9rem;
        color: #465b52;
        border-bottom: 1px dashed #e1e1e1;
    }
    .cart-summary-table thead th {
        text-align: left;
        text-transform: uppercase;
        font-weight: 600;
        color: #222;
        padding-bottom: 10px;
    }
    .cart-summary-table tbody td:first-child {
        max-width: 200px; /* Prevent long product names from breaking layout too much */
        white-space: normal;
    }
    .cart-summary-table .text-right { text-align: right; }
    .cart-summary-table tfoot th, .cart-summary-table tfoot td {
        font-weight: 600;
    }
    .cart-summary-table .order-total-row th,
    .cart-summary-table .order-total-row td {
        font-size: 1.1rem;
        color: #1815be;
        border-top: 2px solid #1815be;
        padding-top: 15px;
    }

    /* Customer Details Form */
    .customer-payment-column .form-group {
        margin-bottom: 20px;
    }
    .customer-payment-column .form-group label {
        display: block;
        font-weight: 600;
        color: #333;
        margin-bottom: 8px;
        font-size: 0.9rem;
    }
    .customer-payment-column .form-group label .required {
        color: #e8484a;
        margin-left: 3px;
    }
    .customer-payment-column input[type="text"],
    .customer-payment-column input[type="email"],
    .customer-payment-column input[type="tel"],
    .customer-payment-column textarea {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #ddd;
        border-radius: 5px;
        font-size: 0.95rem;
        font-family: "Spartan", sans-serif;
        transition: border-color 0.3s ease;
    }
    .customer-payment-column input:focus,
    .customer-payment-column textarea:focus {
        border-color: #1815be;
        outline: none;
        box-shadow: 0 0 0 2px rgba(24, 21, 190, 0.1);
    }
    .customer-payment-column textarea {
        resize: vertical;
        min-height: 100px;
    }
    .customer-payment-column .form-control-checkout { /* If using the specific class */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.95rem;
    font-family: "Spartan", sans-serif;
    transition: border-color 0.3s ease;
    background-color: #fff; /* Ensure background is white */
}
.customer-payment-column .form-control-checkout:focus {
    border-color: #1815be;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 21, 190, 0.1);
}
.customer-payment-column textarea.form-control-checkout {
    resize: vertical;
    min-height: 100px;
}
    .form-error {
        display: block;
        color: #e8484a;
        font-size: 0.8rem;
        margin-top: 5px;
    }
    .form-divider {
        margin: 30px 0;
        border: 0;
        border-top: 1px solid #e1e1e1;
    }

    /* Payment Options */
    .payment-options-container {
        margin-bottom: 25px;
    }
    .payment-option {
        margin-bottom: 15px;
    }
    .payment-option-input {
        margin-right: 10px;
        transform: scale(1.2); /* Make radio button slightly larger */
        cursor: pointer;
    }
    .payment-option-label {
        font-size: 1rem;
        color: #333;
        cursor: pointer;
        display: inline-flex; /* For icon alignment */
        align-items: center;
    }
    .payment-option-label .icon {
        margin-right: 8px;
        color: #1815be;
        font-size: 1.1em;
    }

    /* Place Order Button */
    .submit-button-container {
        margin-top: 30px;
    }
    .place-order-btn { /* Uses .normal styles */
        width: 100%;
        background-color: #1815be;
        color: #fff;
        font-size: 1.1rem;
    }
    .place-order-btn:hover {
        background-color: #100d8a;
        color: #fff;
    }

    /* Alert Messages */
    .alert {
        padding: 15px;
        margin-bottom: 20px;
        border: 1px solid transparent;
        border-radius: 4px;
        font-size: 0.95rem;
    }
    .alert-danger.error-message { /* Example */
        color: #721c24;
        background-color: #f8d7da;
        border-color: #f5c6cb;
    }
    .alert-warning.warning-message { /* Example */
        color: #856404;
        background-color: #fff3cd;
        border-color: #ffeeba;
    }



/* ==========================================================================
   20. Responsive Styles
   ========================================================================== */

/* Large Desktops (Optional: Wider than 1200px) */
@media (min-width: 1400px) {
    .section-p1 {
        padding-left: 100px;
        padding-right: 100px;
    }
    #Header, #img-slider .info, #newsletter { /* Apply wider padding if needed */
        padding-left: 100px;
        padding-right: 100px;
    }
    #img-slider .info { max-width: 700px; }
    .pro-grid-container { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* Medium Desktops to Large Tablets */
@media (max-width: 1200px) {
    /* .pro-grid-container adjusts with auto-fill */
    #sm-banner .banner-box { min-width: calc(50% - 10px); } /* Two per row */
    #banner3 .banner-box { min-width: calc(50% - 10px); } /* Two per row, third wraps */
}

/* ADDED SECTION: For screens between ~800px and 1199px, make product cards a bit narrower */
@media (min-width: 800px) and (max-width: 1199px) {
    .pro { /* This targets product cards in this screen range */
        width: 200px;
        min-width: 180px; /* Adjust if needed, must be <= width */
    }
}

/* Tablets and Smaller Desktops */
@media (max-width: 991px) {
    .section-p1 { padding: 40px 40px; }
    #Header { padding: 20px 40px; }
    #img-slider .info { padding-left: 40px; padding-right: 40px; max-width: 80%; }
    #newsletter { padding-left: 40px; padding-right: 40px; }

    #prodetails { flex-direction: column; } /* Stack image and details */
    .single-pro-img { max-width: 100%; padding-right: 0; margin-bottom: 30px; }
    .single-pro-details { max-width: 100%; padding: 0; }

    #newsletter .form { max-width: 100%; }
    .pro-grid-container { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Small Tablets & Large Mobile Phones */
@media (max-width: 799px) { /* Original user breakpoint */
    body { padding-top: 70px; /* Adjust if header height changes */ }
    .section-p1 { padding: 30px 20px; }
    #Header { padding: 15px 20px; }
    #img-slider .info, #newsletter { padding-left: 20px; padding-right: 20px; }

    /* Mobile Navigation Activation */
    #navbar {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        position: fixed;
        top: 0; /* Or header height if header is not fully transparent */
        right: -300px; /* Off-screen */
        height: 100vh;
        width: 300px;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); /* Shadow on the left */
        padding: 80px 0 0 20px; /* Top padding for header, left padding for items */
        transition: right 0.3s ease-in-out;
        z-index: 998; /* Below header overlay if any, but above content */
    }
    #navbar.active { right: 0; } /* JS toggles this class */
    #navbar li { margin-bottom: 25px; width: 100%; }
    #navbar li a { color: #222; } /* Dark text for light mobile menu */
    #navbar li a:hover, #navbar li a.active { color: #1815be; }
    #navbar li a.active::after, #navbar li a:hover::after {
        left: 0; /* Align with text start */
        background-color: #1815be; /* Ensure visibility */
    }
    #mobile { display: flex; } /* Show hamburger */
    #Close { /* Display handled by JS along with #navbar.active */
        display: block; /* Make it visible for positioning */
        position: absolute;
        top: 20px;
        right: 25px;
        /* Other styles already defined */
    }

    /* Hero section */
    #img-slider { height: 70vh; justify-content: center; }
    #img-slider .info { align-items: center; text-align: center; max-width: 90%; }
    #img-slider .info h4 { font-size: 1.1rem; padding-bottom: 10px; }
    #img-slider .info h2 { font-size: 1.8rem; line-height: 1.2; }
    #img-slider .info h1 { font-size: 2.2rem; line-height: 1.2; }
    #img-slider .info p { font-size: 0.9rem; margin: 10px 0 20px 0; }
    #img-slider .info button { padding: 12px 25px; font-size: 14px; }

    /* Product sections */
    .product-section .section-header { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
    .product-section .section-header h2 { font-size: 1.5rem; }
    .product-section .view-all-btn { font-size: 13px; padding: 8px 15px; align-self: flex-end; }

    /* Horizontal scroll products on tablet */
    .pro-container.horizontal-scroll { gap: 15px; /* flex-wrap: nowrap; is inherited */ }
    .pro {
        /* Width for .pro in this range (768px to 799px) will be picked up by the new @media rule or base styles */
        /* The following width & min-width were specific to this breakpoint, but might be better handled by the new rule or base */
        /* width: 200px; /* Original value */
        /* min-width: 180px; /* Original value */
        min-height: 350px;
    }
    .pro .img-fixed-container { height: 180px; min-height: 180px; }
    .pro .des .product-title { font-size: 0.9rem; }
    .pro .des h4 { font-size: 1rem; } /* Price */

    #feature { justify-content: center; }
    #feature .fe-box { width: calc(50% - 10px); margin: 0; }

    #newsletter { margin: 30px 0; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    #newsletter .form { width: 100%; }
    #newsletter .newstext h4 { font-size: 1.25rem; }

    #sm-banner .banner-box { min-width: 100%; height: auto; min-height: 35vh; }
    #banner3 { padding: 0 20px; } /* For consistency if it's not in .section-p1 */
    #banner3 .banner-box { min-width: 100%; height: auto; min-height: 25vh; }

    footer .col { flex-basis: calc(50% - 10px); margin-bottom: 30px; }

    .small-img { height: 80px; } /* Product details thumbnails */
}

/* Mobile Phones (Portrait) - Stacking product cards */
@media (max-width: 767px) {
    .pro-container.horizontal-scroll {
        flex-direction: column;
        align-items: center;
        overflow-x: visible; /* Disable horizontal scroll */
        gap: 20px;
        padding: 15px 0;
    }
    .pro {
        width: 90%;
        max-width: 350px;
        min-width: unset;
        flex-shrink: 1; /* Not strictly needed for column, but fine */
        min-height: auto;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    body { padding-top: 60px; }
    .section-p1 { padding: 20px 15px; }
    #Header, #img-slider .info, #newsletter { padding-left: 15px; padding-right: 15px; }

    h1 { font-size: 2rem; line-height: 1.3; } /* Adjusted for better fit */
    h2 { font-size: 1.6rem; line-height: 1.3; }
    h4 { font-size: 1.1rem; }

    #navbar { width: 250px; padding-top: 70px; }
    #Close { top: 15px; right: 20px; }

    #img-slider { height: 60vh; }
    #img-slider .info h4 { font-size: 1rem; }
    #img-slider .info h2 { font-size: 1.4rem; } /* Adjusted */
    #img-slider .info h1 { font-size: 1.7rem; } /* Adjusted */
    #img-slider .info p { font-size: 0.8rem; }
    #img-slider .info button { padding: 10px 20px; font-size: 13px; }

    .product-section .section-header h2 { font-size: 1.3rem; }
    .product-section .view-all-btn { font-size: 12px; padding: 6px 12px; }

    .pro {
        width: 100%;
        max-width: none; /* Ensures it takes full width when stacked */
        /* Other .pro properties for small mobile remain for stacked appearance */
    }
    .pro .img-fixed-container { height: 200px; min-height: 200px; }
    .pro .des .product-title { font-size: 0.85rem; height: 2.4em; }
    .pro .des h4 { font-size: 0.95rem; } /* Price */
    .pro .add-to-cart-btn.cart { width: 35px; height: 35px; }
    .pro .add-to-cart-btn.cart i { font-size: 0.9rem; }

    #feature .fe-box { width: 100%; }

    #newsletter { margin: 20px 0; padding-top: 30px; padding-bottom: 30px; }
    #newsletter .newstext h4 { font-size: 1.1rem; }
    #newsletter .newstext p { font-size: 0.8rem; }
    #newsletter .form { flex-direction: column; gap: 10px; }
    #newsletter input[type="text"],
    #newsletter .form button {
        height: 45px;
        padding: 0 15px;
        font-size: 13px;
        border-radius: 4px;
    }

    #sm-banner .banner-box,
    #banner3 .banner-box { padding: 20px; min-height: 25vh; }
    #sm-banner .banner-box h2, #banner3 .banner-box h2 { font-size: 1.4rem; } /* Adjusted */
    #sm-banner .banner-box h4, #banner3 .banner-box h3 { font-size: 0.9rem; }

    footer { text-align: center; }
    footer .col { align-items: center; flex-basis: 100%; margin-bottom: 25px; }
    footer .logo { margin-left: auto; margin-right: auto; }

    #prodetails { padding: 20px; }
    .single-pro-details h5 { font-size: 0.9rem; }
    .single-pro-details h4 { font-size: 1.3rem; } /* Product title */
    .single-pro-details h2 { font-size: 1.5rem; } /* Price */
    .small-img-group { justify-content: space-between; }
    .small-img-col { flex-basis: calc(25% - 5px); }
    .small-img { height: 60px; }
    .single-pro-details .add-to-cart-btn { max-width: 100%; }

    .breadcrumb { padding: 10px 0; font-size: 0.8rem; } /* Padding from .section-p1 */
    #pagination .page-link { min-width: 35px; height: 35px; font-size: 0.9rem; }
    #pagination .pagination { gap: 5px; }
}