
:root {
    --primary-color: #0E0F51;
    --brand-secondary-color: #ff6600;
    --secondary-color: #000;
    --background-color: #e6e6e6;
    --border-color: #ddd;
    --font-family: "Noto Serif Bengali", serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--background-color) !important;
}

.container {
    max-width: 1520px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

/* Header Styles */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    /* position: fixed; */
    /* top: 0; */
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid #eee;
}

.nav {
    padding: 1rem 0;
    display: block;
    z-index: 1000;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.logo h1 a {
    color: var(--primary-color);
    font-size: 1.8rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}
#siteMenu{
    background: var(--primary-color) !important;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 0;
    flex-direction: row;
    justify-content: flex-start;
    z-index: 1000;
}

.nav-menu a {
    text-decoration: none;
    color: var(--background-color);
    font-weight: 500;
    transition: color 0.3s;
    z-index: 1000;
}

.nav-menu a:hover {
    color: #ff6600;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 25px;
    justify-content: flex-end;
}
.nav-menu {
    width: 100%;
    background: white;
    padding: 0;
    border-top: 1px solid #eee;
    display: none; /* Hidden by default on desktop */
}

/* Show nav-menu only on mobile */
@media (min-width: 992px) {
    .nav-menu {
        display: none !important; /* Force hide on desktop */
    }
}
.nav-menu ul li {
    padding: 8px 25px;
    border-right: 1px solid #eee;
}
.nav-menu ul li:last-child {
    border-right: none;
}
.nav-menu ul li .submenu li {
    padding: 0px;
    display: block;
}
.nav-menu ul li a:hover:after {
    width: 100%;
    left: 0;
}

/* Submenu */
.has-submenu {
    position: relative;
    z-index: 1000;
}
.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--secondary-color);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    gap: 5px;
    z-index: 1000;
}
.submenu-toggle:hover {
  color: var(--primary-color);
  z-index: 1000;
}
.sub.has-submenu .submenu-toggle {
    padding: 0;
    border: 0;
    z-index: 1000;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}
.submenu {
    display: none !important;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fff;
    position: absolute;
    min-width: 300px;
    left: 0 !important;
    top: 43px;
    border-radius: 0;
    border: 1px solid #eee;
    z-index: 1000;
}
.has-submenu .sub.submenu {
    top: -1%;
    left: -101% !important;
    z-index: 1000;
}
.submenu li a {
    padding: 10px 15px;
    display: block;
    color: var(--secondary-color);
    transition: all ease-in-out 0.1s;
    border-bottom: 1px solid #eee;
}
.submenu li:last-child a {
    border-bottom: none;
    z-index: 1000;
}
.submenu li a:hover{
    color: var(--primary-color);
    z-index: 1000;
}
.submenu li a:hover, .submenu .submenu-toggle:hover {
    background-color: #e1e1e170;
}
.arrow {
    transition: transform 0.3s;
    font-size: 12px;
    color: #777;
}
.has-submenu.open > .submenu {
  display: block !important;
}
li.sub.has-submenu ul li{
    padding:0px;
    border: 0px;
}
li.sub.has-submenu ul li a{
    padding: 10px 15px;
    display: block;
    border-bottom:1px solid #eee;
}
.search-box {
    position: relative;
}

.search-box input {
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    outline: none;
    width: 100%;
}

.search-box i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: color 0.3s;
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 999999;
}

/* ----------------------
   Sidebar categories (template2)
   Kept design identical to original inline styles in template2/index.html
   Scoping to .sidebar ensures nav .submenu rules are untouched.
----------------------- */
.page-wrap {
    padding: 16px;
}

.sidebar {
    background: #fff;
    height: 500px;
    position: sticky;
    top: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.sidebar .sidebar-content {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.category-item {
    position: relative;
}

.category-link {
    display: flex;
    align-items: flex-start !important;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px;
    color: #1f2937;
    text-decoration: none;
    border-bottom: 1px solid #dcd7da;
    font-size: 13px;
    text-align: left;
    width: 100%;
    text-transform: uppercase;
    font-weight: 600;
}

.category-icon {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
}

.submenu-content {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    padding: 20px 20px 20px 30px;
    background: #f8f9fa;
}

.submenu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #1f2937;
    text-decoration: none;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submenu a:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #d1d5db;
}

.submenu-icon {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
}

.category-link:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Sidebar-scoped mega submenu to avoid colliding with header nav .submenu */
.sidebar .submenu {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    background: #f8f9fa !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08) !important;
    height: 500px !important;
    width: calc(100vw - 200px) !important;
    padding: 0 !important;
    z-index: 9999999 !important;
    overflow-y: auto !important;
    border: 1px solid #e5e7eb !important;
    margin-left: -10px !important;
}

.category-item:hover > .submenu,
.sidebar .submenu:hover {
    display: block !important;
    visibility: visible !important;
}

/* Ensure only items that actually have submenu show on hover; more specific rule to override conflicts */
.category-item.has-submenu:hover > .submenu {
    display: block !important;
    visibility: visible !important;
}

@media (max-width:991px) {
    .sidebar {
        height: auto;
        position: static;
    }

    .products-section .row > .col,
    .products-section .product-col,
    .products-section .col {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}

@media (max-width: 768px) {
    .products-section .row > .col,
    .products-section .product-col,
    .products-section .col {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }

    .sidebar {
        display: none;
    }
    .submenu-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

.user-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 26px;
}
.user-menu {
    position: relative;
}
.user-submenu {
    display: none;
    position: absolute;
    right: 75px;
    top: 100%;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 140px;
    z-index: 1001;
}

/* Hero Section */
.hero {
    height: 400px;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}
.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #c0392b;
}
.category-page-section{
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.category-page-section h3{
    /* color: var(--brand-secondary-color); */
}

.products-section {
    margin-top: 3rem;
}
.price_wrapper {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
}
.old-price{
    text-decoration: line-through;
    color: #e7000b;
}
.sale-price{
    color: var(--primary-color);
    font-weight: bold;
}
.section-title {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 700;
    font-family: "Arial", sans-serif;
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Category-wise layout */
.hover-underline:hover {
    color: #007bff !important; /* Bootstrap primary color */
    text-decoration: underline !important;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #9ca3af; /* similar to text-gray-400 */
    font-weight: bold;
  }
  
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: white;
}

.category-products-grid{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-col{
    width: 16.66%  !important;
}

/* Mobile override: force two-up layout (2 cards per row) on small screens
   Some templates use .product-col, others rely on bootstrap .col classes.
   This rule targets any .col inside .products-section to ensure mobile
   displays exactly two items per row as requested. */
@media (max-width: 575.98px) {
    .products-section .row > .col,
    .products-section .product-col,
    .products-section .col {
        flex: 0 0 33.33% !important;
        max-width: 33.33% !important;
    }
}

.category-section {
    display: block;
}

.category-section.hidden {
    display: none;
}

.category-header {
    text-align: center;
    background-color: #0E0F51;
    padding: 1rem;
}
.combo-category-header{
    color: #000;
}
.category-header h3 .category-header a{
    font-size: 1.125rem;
    color: var(--secondary-color);
    text-transform: capitalize;
    font-weight: 700;
    padding: 10px;
    text-align: center;

}
.category-container {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    margin-top: 10px;
}
.product-card {
    background: white;
    overflow: hidden;
    box-shadow: none;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 8px;
    position: relative; /* allow absolute overlays like wishlist */
}

/* Smooth zoom for product images on hover */
.product-card .product-image {
    transition: transform 0.35s ease;
}

.product-card:hover .product-image {
    transform: scale(1.2);
}

.product-card a {
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 143px;
}

/* ------------------------------------------------------------------
   RESPONSIVE ADJUSTMENTS FOR TEMPLATE2 PRODUCT CARDS
   - Changes added below make product cards feel like a native app on
     mobile/tablet/desktop while preserving the existing template2
     visual design. Kept changes scoped to .products-section so other
     templates/styles are unaffected.
   - Author: assistant (annotated). If you want these moved or tuned,
     edit the breakpoints or aspect-ratio values below.
------------------------------------------------------------------- */
.products-section .product-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.products-section .product-card .product-image {
    width: 100% !important; /* ensure full width in the card */
    height: auto !important;
    aspect-ratio: 1 / 1; /* square product card images (1:1) */
    object-fit: cover !important;
    object-position: center center !important;
    max-width: 100%;
}

.category-container .product-title{
    display: -webkit-box;
    -webkit-line-clamp: 2; /* clamp to two lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 48px;
}

.products-section .product-title {
    white-space: normal; /* allow wrapping for mobile */
    height: auto;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* clamp to two lines */
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    margin: 8px 0 6px;
}

.products-section .product-info {
    padding: 12px; /* slightly tighter padding for compact native feel */
    min-height: auto; /* let content determine height on small screens */
    text-align: center;
}

/* Desktop / large screens: align info left, restore fuller padding */
@media (min-width: 992px) {
    .products-section .product-card {
        border-radius: 6px;
    }
    .products-section .product-title {
        font-size: 1rem;
    }
    .products-section .product-info {
        text-align: left;
        padding: 18px;
    }
}

/* Tablet: prefer two columns and slightly tighter spacing */
@media (max-width: 991.98px) {
    .product-col { width: 50% !important; } /* ensure 2 columns on tablets */
    .products-section .product-info { padding: 12px; }
}

/* Mobile: two-up layout only for product listings (leave categories unaffected).
   Target .product-row (used for product grids) so top-categories keep their
   3-up layout. */
@media (max-width: 575.98px) {
    .products-section .product-row > .col,
    .products-section .product-row .product-col,
    .products-section .product-row .col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .products-section .product-card { border-radius: 0; }
    .products-section .product-title { -webkit-line-clamp: 2; line-clamp: 2; font-size: 0.95rem; }
    .products-section .product-info { padding: 10px; }
    /* ensure product images stay square on mobile */
    .products-section .product-card .product-image { aspect-ratio: 1 / 1; height: auto; }
}

/* End of assistant changes for responsive product cards */
.related-products .product-info {
    min-height: auto;
}
.product-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* force a square box regardless of source dimensions */
    max-width: 220px; /* optional: remove or change to fit layout */
    display: block;
    object-fit: cover; /* fill the square without distortion (cropping if needed) */
    object-position: center;
    padding: 8px;
}
.product-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 0;
    color: var(--primary-color);
    line-height: 22px;
    display: block;
    height: 48px;
}

.product-description {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.single-product-page .product-title {
    text-align: left;
}
.single-product-page .product-info {
    width: 100%;
}

.add-to-cart-btn:hover {
    background: var(--brand-secondary-color);
}

/* Product slider start */

/* ----------------------
   Container & Layout
----------------------- */
.zoom-container {
    position: relative;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin: auto;
    z-index: 1;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    border: 1px solid #eee;
}

.main-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* ----------------------
   Zoom Viewer
----------------------- */
.zoom-result {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 20px;
    width: 400px;
    height: 400px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-repeat: no-repeat;
    background-size: 200% 200%;
    display: none;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ----------------------
   Slider Container
----------------------- */
.slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.slider-track {
    display: flex;
    gap: 10px;
    overflow: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

/* ----------------------
   Thumbnail Images
----------------------- */

.thumbnail:hover {
    border-color: var(--primary-color);
}

.thumbnail.active {
    border-color: var(--primary-color);
}

/* ----------------------
   Slider Buttons
----------------------- */
.slider-btn {
    border: 1px solid #ddd;
    border-radius: 50%;
    background: var(--primary-color) !important;
    width: 40px;
    height: 35px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    display: inline-block;
}

.slider-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
}

.slider-btn:disabled {
    cursor: not-allowed;
    opacity: 0.4;
    background: var(--primary-color) !important;
}

/* ----------------------
   Template2 specific layout tweaks
   - Header: make top header container align items with space-between
   - Carousel: banner image height and object-fit
   - Sidebar: max-height and scroll behavior
----------------------- */

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* ensure logo, search and icons spread */
    gap: 1rem;
}

/* Header alignment fix: prevent cart/user icons from dropping to the next line on md+ screens */
.top-header > [class*="col-"] {
    display: flex;
    align-items: center;
}

/* On medium and larger screens keep the top header on a single row */
@media (min-width: 768px) {
    .top-header {
        flex-wrap: nowrap;
    }
    /* Allow columns to size according to bootstrap grid but keep their contents centered vertically */
    .top-header > .col-6,
    .top-header > .col-sm-6,
    .top-header > .col-md-3,
    .top-header > .col-lg-2,
    .top-header > .col-md-6,
    .top-header > .col-lg-8 {
        display: flex;
        align-items: center;
    }
}

.hero .banner-image, .carousel-img {
    height: 500px;
    object-fit: cover;
}
/* Sidebar: enforce max height and scrolling when many categories */
.sidebar {
    max-height: 500px;
}
.sidebar .sidebar-content {
    max-height: 500px;
    overflow-y: auto;
}

/* Top-categories: ensure two rows (handled via bootstrap cols), center images */
.featured-category-card .featured-category-image,
.featured-category-card i {
    display: block;
    margin: 0 auto;
}

/* Top Navigation Bar with Static Menu Items */
.top-nav-bar {
    background: var(--primary-color);
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.top-nav-bar .container {
    max-width: 1200px;
    margin: 0 auto;
}

.categories-label {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.static-menu-items {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    justify-content: flex-start;
}

.static-menu-items li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.static-menu-items li a:hover {
    color: #ff6600;
}

/* Hero Section Layout */
.hero {
    /* background: #f8f9fa; */
    /* padding: 2rem 0; */
    min-height: 500px;
}

.hero-content-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.static-menu-row {
    background: var(--primary-color);
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.static-menu-row .static-menu-items {
    justify-content: center;
    gap: 3rem;
}

/* Sidebar Header */
.sidebar-header {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

/* New header layout (ahbab-like) */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
}

.logo-col img.logo-img {
    max-height: 48px;
}

.search-col .search-box input,
.search-box input {
    width: 100%;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    border: 1px solid #ddd;
}

.icons-col .nav-icons {
    gap: 12px;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-color);
    color: #fff;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.75rem;
}

@media (max-width: 991px) {
    .search-col { display: none; }
}

@media (max-width: 575px) {
    .logo-col img.logo-img { 
        max-height: 40px;
        max-width: 200px;
     }
}

/* Product slider End */
/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.cart-header h3 {
    margin: 0;
    color: #666;
    font-size: 1.5rem;
    font-weight: 400;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #e74c3c;
    padding: 5px;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.cart-items {
    flex: 1;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    animation: slideIn 0.3s ease-out;
}
.cart-item:first-child {
    padding-top: 0px;
}
.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0px;
}



.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 500;
    margin-bottom: 0px;
    font-size: 16px;
    line-height: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 2;       /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;            /* adjust for readability */
    max-height: calc(2.4em * 2); /* keeps height consistent */
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: bold;
}

.quantity-controls {
    display: flex;
    align-items: center;
    /* gap: 0.5rem; */
    margin-top: 0.5rem;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    /* border-radius: 3px; */
}

.quantity-btn:hover {
    background: #f0f0f0;
}

.quantity {
    padding: 0.2rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    width: 48px;
    height: 30px;
    text-align: center;
}


.cart-footer {
    padding: 1.5rem;
    border-top: 2px dashed #ddd;
    flex-shrink: 0;
}

.cart-summary {
    margin-bottom: 15px;
}

.cart-subtotal, .cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 1rem;
}

.cart-subtotal {
    color: #666;
}

.cart-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
}
.checkout-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

/* ===== Scoped Product Page Cart (to avoid conflicts) ===== */
.product-cart.cart-sidebar { display: flex !important; flex-direction: column !important; }
.product-cart .cart-header { padding: 1.25rem !important; border-bottom: 1px solid #eee !important; }
.product-cart .cart-content { flex: 1 !important; overflow-y: auto !important; }
.product-cart .cart-items { padding: 1rem !important; max-height: none !important; background: transparent !important; border-radius: 0 !important; }
.product-cart .cart-item { display: flex; gap: 12px; }
.product-cart .cart-item-body { flex: 1; display: flex; flex-direction: column; }
.product-cart .cart-item-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-cart .cart-items > .cart-item { background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 12px; margin-bottom: 16px; }
.product-cart .cart-items > .cart-item:last-child { margin-bottom: 0; }
.product-cart .cart-items-sep, .product-cart .cart-items > .cart-item + .cart-item { border-top: 0; }
.product-cart .cart-footer { border-top: 2px dashed #e5e7eb !important; padding: 1rem 1.25rem !important; background: #fff; }
.product-cart .cart-summary { margin-bottom: 12px; }
.product-cart .cart-subtotal, .product-cart .cart-total { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.product-cart .checkout-btn { width: 100%; }

.checkout-btn:hover {
    background: #219a52;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Product Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1002;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 0px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1003;
}

.modal-body {
    padding: 2rem;
}

.modal-product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
    border: 1px solid #766f6f;
}
.contact-buttons {
    margin-top: 5px;
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 28rem;
}
.contact-buttons a{
    font-size: 1rem;
    padding: 0.6rem 2rem; 
    border-radius: 0px;
    text-decoration: none;
    flex: 1;
    text-align: center;
}
.contact-buttons .btn-success {
    background-color: #25D366 !important; /* WhatsApp */
    border-color: #25D366 !important;
    color: #fff !important;
}
.contact-buttons .btn-success:hover {
    background-color: #1ebe57 !important;
    border-color: #1ebe57 !important;
}
.contact-buttons .btn-primary {
    background-color: #2196F3 !important; /* Messenger */
    border-color: #2196F3 !important;
    color: #fff !important;
}
.contact-buttons .btn-primary:hover {
    background-color: #1b87e5 !important;
    border-color: #1b87e5 !important;
}
.contact-buttons i{
    font-size: 1rem;
}
/* Footer */
.footer {
    background: #f8f9fa;
    color: var(--secondary-color);
}
.powerd_by_text {
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease-in-out;
    color: #fff;
}
.powerd_by_text:hover{
    color: #ffc107;
}
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0px;
}

.footer-section h3, .footer-section h4 {
    margin-bottom: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding: 15px 0px;
    background: var(--primary-color);
    color: #fff;
    margin: 0;
}
.footer-bottom p{
    margin: 0;
}
.product-button-price {
    color: white;
}

/* For the product details page */
.product-details-section {
    padding: 20px 0px 30px;
    background: #f8f9fa;
    border-radius: 10px;
}

.breadcrumb {
    margin-bottom: 15px;
    color: #000;
    gap: 10px;
    align-items: center;
    border-radius: 5px;
}
.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
}
.breadcrumb span {
    font-size: 16px;
    font-weight: 600;
}
.breadcrumb a:hover {
    text-decoration: underline;
}

.product-details-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.product-gallery {
    flex: 1;
    max-width: 600px;
}

/* Desktop Layout: Thumbnails left, Main image right */
.desktop-layout {
    display: flex;
    gap: 1rem;
    height: 500px;
}

.thumbnail-slider-container {
    display: flex;
    flex-direction: column;
    width: 120px;
    height: 100%;
    position: relative;
}

.slider-track-vertical {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 10px 10px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    height: calc(100% - 60px);
    /* padding: 0.5rem 0; */
}

.slider-track-vertical::-webkit-scrollbar {
    display: none;
}

.slider-track-vertical .thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-track-vertical .thumbnail:hover,
.slider-track-vertical .thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
    
}

.thumbnail-slider-container .slider-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background-color: var(--primary-color) !important;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.thumbnail-slider-container .prev-slide-btn {
    top: 0;
}

.thumbnail-slider-container .next-slide-btn {
    bottom: 0;
}

.desktop-layout .main-image-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

/* Mobile Layout: Main image top, Thumbnails bottom */
.mobile-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-layout .main-image-wrapper {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.mobile-layout .slider-container {
    position: relative;
    width: 100%;
}

.mobile-layout .slider-track {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.5rem !important;
}

.mobile-layout .slider-track::-webkit-scrollbar {
    display: none;
}

.mobile-layout .slider-track .thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.mobile-layout .slider-track .thumbnail:hover,
.mobile-layout .slider-track .thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.mobile-layout .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    background: var(--primary-color) !important;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.mobile-layout .prev-slide-btn {
    left: -26px;
}

.mobile-layout .next-slide-btn {
    right: -32px;
}
.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    background: #ffffff;
    border: 0;
}
.thumbnail-container {
    display: flex;
    gap: 10px;
}
.thumbnail {
    border: 1px solid #ddd;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: 0 0px;
    border-radius: 0px;
    cursor: pointer;
}
.thumbnail:hover {
    border-color: var(--primary-color);
}

/* Use more specific selectors to avoid index page conflicts */
.product-details-section .product-title {
    font-size: 32px;
    margin-bottom: 5px;
    color: var(--primary-color);
    line-height: 36px;
    min-height: auto;
    font-weight: 800;
}
.product-details-section .product-price {
    font-size: 20px;
    font-weight: bold;
    color: #ff6900;
    margin: 10px 0px 20px;
}
.product-details-section .product-info {
    padding: 0px 0px 20px;
    justify-content: flex-start;
}
.product-meta {
    /* margin-bottom: 2rem; */
}
.meta-item {
    display: flex;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}
.meta-label {
    font-weight: bold;
    min-width: 120px;
    color: #666;
}
.meta-value {
    color: var(--secondary-color);
}
.product-details-section .product-description {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: #555;
}
/* Quantity and Add to Cart Section */
.quantity-cart-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    max-width: 28rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    /* gap: 0.5rem; */
}

.wishlist-btn {
    background: var(--primary-color);
    color: white;
    width: 58px;
    height: 48px;
    cursor: pointer;
    font-size: 16px;
}

.buy-now-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    max-width: 28rem;
}
.quantity-label {
    margin-right: 1rem;
    font-weight: bold;
}
.quantity-input {
    width: 70px;
    height: 40px;
    padding: 0.5rem;
    text-align: center;
    border: 1px solid #ddd;
    /* border-radius: 5px; */
    font-size: 1rem;
}
.action-buttons {
    display: flex;
    gap: 15px;
}

.add-to-cart-btn {
    /* flex: 1; */
    padding: 8px 1px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    font-weight: 500;
    white-space: nowrap;
    /* border-radius: 5px; */
}
.product-details-section .add-to-cart-btn, .product-details-section .buy-now-btn {
    padding: 12px 20px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}
.product-details-section .add-to-cart-btn {
    background: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}
.product-details-section .add-to-cart-btn:hover {
    background: var(--primary-color);
    color: white;
}
.buy-now-btn {
    width: 100%;
    padding: 10px 15px;
    background: var(--secondary-color);
    color: white;
    border: none;
    /* border-radius: 5px; */
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
    font-weight: 500;
}
.product-details-section .buy-now-btn:hover {
    background: #111;
}

/* Product Tabs */
.product-tabs {
    margin-top: 50px;
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}
.tabs-header {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}
.tab-btn {
    padding: 0.8rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}
.tab-btn.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: bold;
}
.tab-content {
    display: none;
    padding: 1rem 0;
    line-height: 1.7;
    color: #555;
}
.tab-content.active {
    display: block;
}

/* Related Products */
.related-products {
    margin: 60px 0px;
}
.related-products .section-title {
    /* text-align: center; */
    font-size: 28px;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}
.related-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}
.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
.related-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.related-info {
    padding: 1.5rem;
}
.related-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}
.related-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-details-container {
        flex-direction: column;
    }
    .product-gallery {
        max-width: 100%;
    }
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .main-image {
        height: 400px;
    }
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .action-buttons {
        flex-direction: column;
    }
    .product-details-section .add-to-cart-btn,
    .product-details-section .buy-now-btn {
        width: 50%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .main-image {
        height: 300px;
    }
    .product-details-section .product-title {
        font-size: 1.3rem;
    }
    .product-details-section .product-price {
        font-size: 1.5rem;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .tabs-header {
        flex-wrap: wrap;
    }
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}
/* End of Product Details Page Styles */

/* Responsive Design */
@media (max-width: 768px) {
    .cart-content{
        max-height: 450px;
    }
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu ul {
        gap: 1rem;
    }
    .hero-content h2 {
        font-size: 2rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .category-filter {
        flex-wrap: wrap;
    }

    .category-header h3 {
        font-size: 1.5rem;
    }
}

/* Mobile / Off-canvas nav enhancements for template2 */
/* Full-screen off-canvas menu when hamburger is clicked */
.nav-menu {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-menu.show {
    transform: translateX(0);
    opacity: 1;
}

/* Force visible when .show is present (higher priority) */
.nav-menu.show {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 3000 !important;
}

/* Mobile-specific full-screen menu layout */
@media (max-width: 991px) {
    .nav-menu {
        display: block; /* Show on mobile */
        position: fixed;
        top: 0;
        left: -100%;
        width: 100vw;
        height: 100vh;
        background: #fff;
        z-index: 3000;
        padding: 0 !important;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    .nav-menu.show { left: 0; }
    .nav-menu .container { max-width: 100%; padding: 0 !important; }
    .nav-menu .navbar-nav {
        display: block;
        padding: 16px 0;
    }
    .nav-menu .navbar-nav > li {
        border-bottom: 1px solid #eee;
        padding: 12px 0;
    }
    .nav-menu .navbar-nav a,
    .nav-menu .navbar-nav .submenu-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 8px 6px;
        color: var(--secondary-color);
        font-weight: 600;
    }

    /* Nested submenu in mobile: collapse/expand behavior */
    .nav-menu .submenu {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        min-width: auto !important;
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        padding-left: 12px;
        display: none !important;
    }

    .nav-menu .submenu.open {
        display: block !important;
    }

    .nav-menu .submenu li a {
        padding: 8px 10px;
        display: block;
        font-weight: 500;
        text-transform: none;
    }

    /* Make header compact on mobile */
    .top-header { gap: 0.5rem; }
    .logo-col { flex: 0 0 auto; }
    .icons-col { flex: 0 0 auto; }
    .search-col { display: none !important; }
    .col-12.d-lg-none { display: block !important; }
}

/* ------------------------------------------------------------------
   Template2 mobile nav/header fixes (assistant)
   - Ensure off-canvas nav and top header have white background and
     readable link colors on mobile (matches template7 behavior).
   - Scoped to max-width: 991px to avoid impacting desktop styles.
------------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Force the off-canvas menu background to pure white and ensure it
       overlays content cleanly like template7 */
    .nav-menu, .nav-menu .container {
        background: #ffffff !important;
        color: #111 !important;
    }

    /* Top header (logo/search row) keep white background on mobile */
    .top-header, .search-mobile-row {
        background: #ffffff !important;
    }

    /* Menu links: ensure good contrast and block-level tappable areas */
    .nav-menu .navbar-nav a,
    .nav-menu .navbar-nav .submenu-toggle {
        display: flex;
        align-items: center;
        padding: 12px 10px !important;
        color: var(--secondary-color) !important;
        background: transparent !important;
    }

    /* When the off-canvas menu is visible, prevent underlying page from
       showing through by using a high z-index and white bg */
    .nav-menu.show {
        left: 0 !important;
        background: #ffffff !important;
        z-index: 4000 !important;
    }
}

/* Mobile header 2-row layout: first row logo | cart | user | burger, second row search */
@media (max-width: 991px) {
    /* Use wrapping row so logo and icons share the first line, search occupies full second line */
    .top-header {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    /* Desktop search hidden on mobile */
    .top-header .search-col { display: none !important; }

    /* Logo and icons should appear on the first row (same order) */
    .top-header > .logo-col { order: 1; flex: 0 0 auto; }
    .top-header > .icons-col { order: 1; flex: 0 0 auto; margin-left: auto; }

    /* Icons order inside icons-col (cart, user, burger) */
    .icons-col .nav-icons { display:flex; align-items:center; gap:12px; }
    .icons-col .cart-icon { order: 1; }
    .icons-col .user-menu { order: 2; }
    .icons-col .toggleMenu { order: 3; }

    /* Mobile search row: force to new line and full width */
    .search-mobile-row { order: 2; flex-basis: 100%; width: 100%; padding-top: 6px; }
    .search-mobile-row .search-box input { width: 100%; padding: 10px 12px; border-radius: 8px; }
}

/* Close button for mobile menu */
.nav-menu .closeMenu {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #333;
    padding: 8px;
    z-index: 2001;
}

/* Hamburger button styling */
.toggleMenu {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: var(--secondary-color);
}
.toggleMenu:hover,
.closeMenu:hover {
    opacity: 0.7;
}


@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }
    .category-header h3 {
        font-size: 1.3rem;
    }
}

/* Mobile-specific index adjustments */
@media (max-width: 768px) {
    /* Reduce hero/banner height for mobile */
    .hero .banner-image,
    .carousel-img { height: 220px !important; border-radius: 6px !important; }

    /* Reduce product image heights to avoid long scrolls */
    .product-image { height: 220px !important; }

    /* Featured category image smaller on mobile */
    .products-section .featured-category-image,
    .featured-category-card .featured-category-image {
        width: 100% !important;
        height: 100% !important;
    }

    /* Hide sidebar on small screens to keep layout clean (already hidden at <=768 but reinforce) */
    .sidebar { display: none !important; }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInNotification {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOutNotification {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Site Content */
/* Product Details */
.attribute-group {
    margin-bottom: 8px;
}
.attribute-item {
    display: inline-block;
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 15px;
    margin: 2px 4px 2px 0;
    font-size: 14px;
    color: var(--secondary-color);
    transition: box-shadow 0.2s;
    margin-top: 5px;
    border-color: var(--primary-color);

}
.attribute-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-color: #ff6900;
    background: #ff6900;
    color: #fff;
    cursor: pointer;
}
.attribute-item.selected {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(231,76,60,0.15);
}
/* Product */
.demo-products-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 0px;
}
.demo-product-card{
    border:1px solid #eee;
    border-radius:8px; 
    padding:24px; 
    width:180px; 
    text-align:center;
}
.box-open-icon{
    font-size:48px; 
    color:#888;
}
/* Empty Product */
.empty-products-container{
    text-align: center;
    padding: 50px 20px; 
    width: 100%;
}
.empty-products-content{
    max-width: 500px; 
    margin: 0 auto;
}
.empty-icon{
    font-size: 80px;
    color: #e0e0e0;
    margin-bottom: 20px;
}
/* Newsletter */
.newsletter-section {
    background: #eee;
    padding: 3rem 0;
}
.newsletter-title {
    font-size: 40px;
    font-weight: 700;
    color: var(--secondary-color);
}
.newsletter-description {
    color: var(--secondary-color);
    margin: 0;
    font-size: 18px;
}
.newsletter-form {
    display: flex;
    gap: 8px;
    flex: 1 1 300px;
    justify-content: flex-end;
}
.newsletter_inp {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    flex: 1;
    outline: none !important;
    box-shadow: none !important;
}
.newsletter-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.top-sales-category-section {
    border-radius: 5px;
    border: 1px solid #eee;
    text-align: center;
    padding: 15px;
    margin: 10px;
    background: #fff;
    transition: all ease-in-out 0.2s;
    overflow: hidden;
}
.featured-category-image{
    object-fit: contain;
    transition: all ease-in-out 0.2s;
}
.top-sales-category-section:hover{
    border-color: var(--primary-color);
}
.top-sales-category-section:hover img{
    /* preserve the translateX centering when scaling so image doesn't shift */
    transform: translateX(-50%) scale(1.1);
}
/* Template2 - Top Categories: larger 1:1 images, no card bg, small gaps */
.products-section .top-sales-category-section {
    background: transparent !important;
    border: none !important;
    padding: 6px !important;
    margin: 4px !important;
}
    .products-section .top-sales-category-section {
        background: transparent !important;
        border: none !important;
        padding: 4px !important;
        margin: 0 !important; /* remove extra outside margin so columns align perfectly */
    }
.products-section .featured-category-card { text-decoration: none !important; color: #000 !important; }

.products-section .featured-category-card { text-decoration: none !important; color: #000 !important; }

.products-section .category-image-wrap {
    width: 100%;
    padding-top: 100%; /* 1:1 ratio spacer */
    position: relative;
}
.products-section .category-image-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

.new-arrival-product-section{
    margin-top: 3rem;
}

.products-section .featured-category-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}
.products-section .featured-category-image {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%%;
    height: 100%%;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.18s ease; /* smooth and quick scale */
    transform-origin: center center;
}
.products-section .category-name { margin-top: 0px; color: #000; }
.products-section .row.g-2 > .col,
.products-section .row.g-3 > .col { padding-left: 4px; padding-right: 4px; }

/* Ensure row items align from the left so second row starts at left when more than 8 items exist */
.products-section .row {
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 0px;
}
.products-section .category-name { margin-top: 0px; color: #000; }

/* Tighter gaps for the row grid */
.products-section .row.g-2 > .col,
.products-section .row.g-3 > .col { padding-left: 6px; padding-right: 6px; }
/* Checkout Page  */
#checkout {
    padding: 25px 0px;
}
.page-title {
    font-size: 1rem;
    color: var(--secondary-color);
    text-transform: capitalize;
    position: relative;
    padding-bottom: -0.5rem;
    line-height: 2rem;
    text-align: center;
}
.page-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}
.checkout-flex {
    margin: 10px 0px 0px;
}
.checkout-sub-title {
    font-size: 23px;
    font-weight: 600;
    line-height: 30px;
    margin-bottom: 10px;
    text-align: center;
}
.checkout-summary, .checkout-form {
    padding: 20px;
    border-radius: 5px;
    background: #eee;
    min-height: 580px;
}
.checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.cart-items {
    background: #fff;
    border-radius: 5px;
    padding: 6px;
    /* min-height: 120px; */
    max-height: 600px;
    overflow-y: auto;
}
.cart-item-title {
    font-weight: 500;
    margin-bottom: 0px;
    font-size: 16px;
    line-height: 26px;
}

.promo-message{
    margin-top: 8px;
    font-size: 0.9rem;
}
.promo-code {
    position: relative;
}
.promo-code input {
    line-height: 44px;
    height: 44px;
    border-radius: 5px;
    border: 1px solid #ddd;
    outline: none;
    box-shadow: none !important;
    margin-top: 10px;
}
.promo-btn {
    position: absolute;
    top: 0;
    height: 44px;
    right: 0;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
    padding: 0px 25px;
    border-radius: 0px 5px 5px 0px;
    font-weight: 600;
    font-size: 16px;
    outline: none;
    box-shadow: none;
}
.promo-code input:focus{
    border: 1px solid var(--primary-color);
}
.empty-cart-message{
    text-align: center;
    color: #666;
    padding: 2rem;
}
.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    line-height: 18px;
}
.payment-methods {
    display: flex;
    /* align-items: flex-start; */
    gap: 10px;
    margin-bottom: 0px;
    flex-direction: column;
    justify-content: center;
}
.payment-method-label {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
    min-width: 200px;
    gap: 5px;
}
.payment-method-label input:checked + .payment-method-label {
    border-color: var(--primary-color) !important;
}
.payment-method-label:hover,.payment-method-label:focus {
    border-color: var(--primary-color);
}
.order-place-btn {
    width: 100%;
    background: var(--primary-color);
    color: #fff;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 600;
    transition: all ease-in-out 0.2s;
}
.order-place-btn:hover {
    opacity: 0.8;
}
.checkout-form-inner {
    display: flex !important;
    flex-direction: column;
    gap: 15px;
}

.payment-icon{
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Top Categories Section - React Style */
.top-categories-section {
    /* background: #fff; */
    padding: 2rem 0;
}

/* Section Title with Lines */
.title-line {
    height: 1px;
    background-color: #d1d5db;
}

.title-text {
    font-size: 20px;
    color: #374151;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Category Card Link */
.category-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    padding: 8px;
    position: relative;
    overflow: hidden;
}

.category-card-link:hover {
    background-color: transparent;
}

/* Flex grid for Top Categories: mobile 3, tablet 6, desktop 8 */
.top-categories-grid-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* spacing similar to Bootstrap g-4 */
}

.top-cat-col {
    flex: 0 0 calc(33.333% - 1rem);
}

@media (min-width: 768px) { /* md/tablet */
    .top-cat-col { flex: 0 0 calc(16.666% - 1rem); }
}

@media (min-width: 992px) { /* lg/desktop */
    .top-cat-col { flex: 0 0 calc(12.5% - 1rem); }
}

/* Category Image Container */
.category-image-container {
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-in-out;
    border-radius: 6px;
}

.category-card-link:hover .category-image {
    transform: none;
}

/* Category Name Container */
.category-name-container {
    width: 100%;
    text-align: center;
}

.category-name {
    color: #000;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
    padding: 8px 12px;
    text-transform: capitalize;
    transition: all 0.3s ease-in-out;
    line-height: 1.2;
    border-radius: 4px;
}

.category-card-link:hover .category-name {
    background-color: #000;
    color: #fff;
}

/* Responsive Grid */
@media (max-width: 575.98px) {
    .top-categories-section .col-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .top-categories-section .col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .top-categories-section .col-md-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

@media (min-width: 992px) {
    .top-categories-section .col-lg-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

@media (min-width: 1200px) {
    .top-categories-section .col-xl-2 {
        flex: 0 0 16.666667%;
        max-width: 16.666667%;
    }
}

/* Template2 - Top Categories card adjustments */
.featured-category-card {
    text-decoration: none !important;
    color: #000 !important; /* black text */
    display: block;
    padding: 8px 6px;
}

.featured-category-card .featured-category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    display: block;
    margin: 0 auto;
}

.featured-category-card .category-name {
    color: #000 !important;
    text-decoration: none !important;
    margin-top: 6px;
    font-size: 0.9rem;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    /* overflow: hidden; */
    text-overflow: ellipsis;
}

/* Ensure row-cols classes control columns: 3 on mobile, 4 on md, 8 on xl */
@media (max-width: 576px) {
    .row-cols-3 > .col { flex: 0 0 33.3333%; max-width: 33.3333%; }
}

/* Make 8 columns visible on large screens (>=992px) to match user's request */
@media (min-width: 992px) {
    .row-cols-xl-8 > .col,
    .row-cols-8 > .col {
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }
}

/* explicit helper for row-cols-lg-8 used by template2 index */
@media (min-width: 992px) {
    .row-cols-lg-8 > .col { flex: 0 0 12.5%; max-width: 12.5%; }
}

/* Slight spacing tweak for top-sales-category-section inside the row-cols grid */
.top-sales-category-section {
    padding: 6px;
    margin: 0;
}

.products-section .category-name, .featured-category-card .category-name {
    /* margin-top: 47px !important; */
    font-size: 0.9rem !important;
}

/* Hide dynamic categories on desktop by default (Bootstrap .d-none also applied).
   On mobile we must override the Bootstrap utility that uses !important, so use
   an !important override here to ensure the mobile menu items are visible. */
.dynamic-categories {
    display: none;
}

/* Show only on mobile - override Bootstrap's .d-none (which uses !important) */
@media (max-width: 991px) {
    .dynamic-categories {
        display: block !important;
    }
}

/* Checkout Styles */
.checkout-header {
    margin-bottom: 2rem;
}

.dashed-line {
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #ccc 0px,
        #ccc 10px,
        transparent 10px,
        transparent 20px
    );
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.checkout-container {
    padding: 10px;
    margin-bottom: 2rem;
}

.billing-section, .product-details-section {
    padding: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
}

.custom-border-line {
    width: 25%;
    height: 100%;
    background: transparent;
    border-bottom: 4px dashed #d1d5db; /* gray-300 color */
    pointer-events: none;
  }
  
.form-fields .form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #9ca3af !important;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 15, 81, 0.1);
}


.cart-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 4px;
    background: white;
    border-bottom: 2px dashed #ddd;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.25rem;
}

.cart-item-title {
    font-weight: 700;
    color: #333;
    font-size: 1rem;
    flex: 1;
    margin-right: 1rem;
}

.cart-item-price {
    color: #333;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.cart-item-variation {
    background: #f3f4f6;
    color: #6b7280;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
    width: fit-content;
    margin-bottom: 0.5rem;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-section {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 500;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1; /* slate-300 */
    border-radius: 8px;
    background: #fff;
    overflow: hidden; /* keep inner edges neat */
}

.quantity-btn {
    width: 48px;
    height: 48px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover {
    background: #f3f4f6;
}


.quantity {
    min-width: 48px;
    height: 48px;
    text-align: center;
    line-height: 42px;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b; /* slate-500 */
    background: #fff;
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
}

.quantity-input {
    width: 48px;
    height: 48px;
    text-align: center;
    border: 1px solid #ddd;
    /* border-radius: 4px; */
}

.remove-item {
    color: #333;
    text-decoration: underline;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.2s ease;
    border: none;
    background: none;
}

.remove-item:hover {
    color: #dc2626;
}

/* Order Summary */
.order-summary {
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-weight: 600;
    border-bottom: 1px dashed #ddd;
}

.summary-item.total {
    /* border-bottom: 2px solid #333; */
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    /* padding: 0.5rem; */
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.delivery-option:hover {
    background-color: #f8f9fa;
}

.delivery-option input[type="radio"] {
    margin: 0;
}

/* Payment Section */
.payment-section {
    margin-bottom: 1.5rem;
}

.payment-method {
    margin-bottom: 1rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.payment-option:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.payment-option input[type="radio"] {
    margin: 0;
}

.payment-option input[type="radio"]:checked + * {
    color: var(--primary-color);
}

.payment-option i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.payment-option img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.payment-option small {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.payment-note {
    color: #666;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-style: italic;
}

.we-also-accept {
    margin-top: 1rem;
}

.we-also-accept p {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
}

.other-payment-methods .payment-option {
    padding: 0.75rem;
    text-align: center;
    flex-direction: column;
    gap: 0.5rem;
}

/* Coupon Section */
.coupon-section {
    margin-bottom: 1.5rem;
}

.coupon-input {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.coupon-input .form-control {
    flex: 1;
}

.coupon-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.coupon-btn:hover {
    background: #0a0b3a;
}

.coupon-message {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Order Button */
.order-confirm-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.order-confirm-btn:hover {
    background: #0a0b3a;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-container {
        /* padding: 1rem; */
    }

    .checkout-container .col-md-6{
        padding: 0px !important;
    }

    .section-title{
        padding: 17px 10px
    }

    .cart-item-title{
        font-size: 14px;
        line-height: 20px;
    }

    .quantity-btn, {
        width: 34px;
        height: 47px;
        line-height: 26px;
    }

    .quantity-input{
        width: 47px;
        height: 47px;
        line-height: 29px;
    }

    .order-summary, .payment-section, .coupon-section, .order-confirm-btn{
        padding: 10px;
    }
    
    .billing-section, .product-details-section{
        padding: 0px !important;
    }
    
    .other-payment-methods {
        flex-direction: column;
    }
    
    .other-payment-methods .payment-option {
        min-width: auto;
    }
}

/* New Footer Styles */
.footer {
    background: #2c2c2c;
    color: white;
}

/* Main Footer Section */
.footer-main {
    background: #2c2c2c;
    padding: 40px 0;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-logo {
    margin-bottom: 20px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-transform: lowercase;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #ccc;
}

.contact-item i {
    color: #e74c3c;
    margin-right: 10px;
    width: 16px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #444;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
}

.footer-section h4 {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: white;
}

/* Payment Methods Section */
.footer-payment {
    background: #3a3a3a;
    padding: 20px 0;
    border-top: 1px solid #444;
}

.payment-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}


/* Copyright Section */
.footer-bottom {
    background: white;
    padding: 15px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    color: #333;
    font-size: 0.9rem;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 0.9rem;
}

.powered-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.powered-logo .logo-text {
    color: #ff6600;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
}

.powered-logo .logo-subtext {
    color: #333;
    font-size: 0.7rem;
    line-height: 1;
}
/* searchable select city zone  */
#city.select2-container .select2-selection--single,
#zone.select2-container .select2-selection--single {
    height: 44px !important;
}

#city.select2-container .select2-selection--single .select2-selection__rendered,
#zone.select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
}

#city.select2-container .select2-selection--single .select2-selection__arrow,
#zone.select2-container .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
}

.select2-container--default .select2-selection--single {
    height: 44px !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-main {
        padding: 30px 0;
    }
    
    .payment-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .payment-methods {
        justify-content: center;
    }
}

/* Checkout - make city select height/border consistent (Select2 + native) */
#city.form-control {
    height: 44px;
    border: 1px solid #9ca3af !important;
    border-radius: 6px;
}

/* Target the Select2 that is created next to the hidden #city select */
#city + .select2 .select2-selection--single {
    height: 44px !important;
    border: 1px solid #9ca3af !important;
    border-radius: 6px !important;
}
#city + .select2 .select2-selection--single .select2-selection__rendered {
    line-height: 44px !important;
}
#city + .select2 .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
}

/* Mobile Footer Fixed Bar */
.mobile-footer-bar {
    display: none;
}

@media (max-width: 991px) {
    .mobile-footer-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: #f5f5f5;
        border-top: 1px solid #ddd;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 999;
        padding: 8px 0;
        justify-content: space-around;
        align-items: center;
    }
    
    .mobile-footer-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        cursor: pointer;
        padding: 8px 12px;
        flex: 1;
        text-decoration: none;
        color: var(--secondary-color);
        transition: color 0.3s ease;
        position: relative;
        min-width: 0;
        border: none;
        background: none;
    }
    
    /* Make div look like link */
    div.mobile-footer-item {
        text-decoration: none;
    }
    
    .mobile-footer-item:hover,
    .mobile-footer-item:active {
        color: var(--primary-color);
    }
    
    .mobile-footer-item i {
        font-size: 20px;
        display: block;
    }
    
    .mobile-footer-item svg {
        width: 20px;
        height: 20px;
        display: block;
        stroke: var(--secondary-color);
    }
    
    .mobile-footer-item svg path,
    .mobile-footer-item svg rect,
    .mobile-footer-item svg circle {
        stroke: var(--secondary-color);
    }
    
    .mobile-footer-item svg text {
        fill: var(--secondary-color);
    }
    
    .mobile-footer-item span:not(.wishlist-icon-container):not(.mobile-wishlist-badge):not(.cart-icon-container):not(.mobile-cart-badge) {
        font-size: 11px;
        text-align: center;
        line-height: 1.2;
        display: block;
        margin-top: 2px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
        color: var(--secondary-color);
    }
    
    .cart-icon-container {
        position: relative;
        display: inline-block;
    }
    
    .mobile-cart-badge {
        position: absolute;
        top: -8px;
        right: -8px;
        background-color: var(--primary-color);
        color: #fff;
        border-radius: 50%;
        width: 16px;
        height: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
        font-weight: bold;
        line-height: 1;
        min-width: 16px;
        padding: 2px;
    }
    
    .mobile-cart-badge:empty,
    .mobile-cart-badge[style*="display: none"] {
        display: none !important;
    }
    
    /* Add padding to body to prevent content from being hidden behind fixed footer */
    body {
        padding-bottom: 70px;
    }
}
/* Policy Pages Styles (About Us, Privacy Policy, Terms & Conditions, Return & Refund Policy) */
.policy-page-section {
    background: #fff;
    min-height: 600px;
}

.policy-page-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.policy-page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: left;
    line-height: 1.3;
}

.policy-page-content {
    text-align: left;
    color: var(--secondary-color);
    font-size: 16px;
    line-height: 1.8;
}

.policy-page-content p {
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.policy-page-content h2,
.policy-page-content h3,
.policy-page-content h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 16px;
}

.policy-page-content h2 {
    font-size: 24px;
}

.policy-page-content h3 {
    font-size: 20px;
}

.policy-page-content h4 {
    font-size: 18px;
}

.policy-page-content ul,
.policy-page-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.policy-page-content li {
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.policy-page-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.policy-page-content a:hover {
    color: var(--secondary-color);
}

.policy-page-content strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Responsive Design for Policy Pages */
@media (max-width: 768px) {
    .policy-page-section {
        padding: 40px 0;
    }
    
    .policy-page-title {
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .policy-page-content {
        font-size: 15px;
    }
    
    .policy-page-content h2 {
        font-size: 22px;
    }
    
    .policy-page-content h3 {
        font-size: 18px;
    }
    
    .policy-page-content h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .policy-page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .policy-page-content {
        font-size: 14px;
    }
}
