.navbar.home-nav {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.navbar.home-nav {
    background: transparent;
}
/* Prevent hero section from being blocked by fixed navbar */
section.hero {
    margin-top: 0;
}
/* Ensure navbar always has a background */

/* CATEGORY PAGE CONSISTENCY FIXES */
.category-page .filter-banner {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1em;
}

.category-page .filter-banner button {
    background: var(--card-background);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0.5em 1em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    font-size: 1em;
    cursor: pointer;
}

.category-page .category-filters {
    /* Conflicting rules removed. Use .category-filters at the bottom of the file for sliding panel. */
}
.category-page .category-filters.open {
    /* Conflicting rules removed. Use .category-filters.open at the bottom of the file for sliding panel. */
}
.category-page .category-filters .filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}
.category-page .category-filters h3 {
    margin: 0;
    font-size: 1.3em;
    color: var(--primary-color);
}
.category-page .category-filters button {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: var(--accent-color);
}

.category-page .featured-section {
    width: 100%;
    margin: 0 auto;
}
.category-page .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2em;
    margin: 2em 0;
}
.category-page .product-card {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.2em 1em;
    text-align: center;
    transition: box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.category-page .product-card:hover {
    box-shadow: 0 8px 24px rgba(44,62,80,0.15);
}
.category-page .product-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-bottom: 0.8em;
    background: #f7f7f7;
}
.category-page .product-card h4 {
    font-size: 1.1em;
    margin: 0.5em 0 0.2em 0;
    color: var(--primary-color);
}
.category-page .product-price {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5em;
}
.category-page .btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.5em 1.2em;
    font-size: 1em;
    cursor: pointer;
    margin-top: 0.5em;
    transition: background 0.2s;
}
.category-page .btn:hover {
    background: #d35400;
}
.category-page .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(44,62,80,0.15);
    z-index: 200;
    justify-content: center;
    align-items: center;
}
.category-page .modal-content {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2em 1.5em;
    max-width: 350px;
    width: 90vw;
    text-align: center;
    position: relative;
}
.category-page .modal-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    border-radius: var(--border-radius);
    margin-bottom: 1em;
    background: #f7f7f7;
}
.category-page .modal-content h2 {
    font-size: 1.2em;
    margin: 0.5em 0 0.2em 0;
    color: var(--primary-color);
}
.category-page .modal-price {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5em;
}
.category-page .modal-desc {
    font-size: 1em;
    color: var(--text-color);
    margin-bottom: 1em;
}
.category-page .close {
    position: absolute;
    top: 0.5em;
    right: 1em;
    font-size: 2em;
    color: var(--accent-color);
    cursor: pointer;
    background: none;
    border: none;
}
.category-page .no-products {
    background: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2em 1.5em;
    text-align: center;
    margin: 2em auto;
    max-width: 400px;
}
/* static/styles.css */

/* --- Import Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
/* @import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Story+Script&display=swap');

/* --- CSS Variables for Easy Theme Management --- */
:root {
    --primary-color: #2c3e50;    /* A modern, dark blue */
    --secondary-color: #3498db;  /* A complementary brighter blue */
    --accent-color: #e67e22;     /* A vibrant orange, similar to your current brown */
    --background-color: #ecf0f1; /* A light, clean grey background */
    --text-color: #34495e;       /* A softer, dark grey for text */
    --card-background: #ffffff;   /* White background for cards */
    --border-radius: 8px;       /* Softer, rounded corners */
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'DM Sans', sans-serif; /* Use the new font */
    margin: 0;
    padding: 0;
    background: var(--background-color); /* Use CSS variable */
    color: var(--text-color);           /* Use CSS variable */
}
body {
    /* font-family: 'Segoe UI', Arial, sans-serif; */
    margin: 0;
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    color: #222;
}

header {
    /* background: #fff; */
    color: #000;
    /* padding: 0.2em 0; */
    /* height: 100%; */
    width: 100%;
    position: fixed;
    z-index: 5;
    /* box-shadow: 2px 9px 10px rgba(0, 0, 0, 0.1); */
    /* transition: a .5s; */
}

.navbar.static {
    background: #333;
    padding: 0 !important;
    padding-top: 0 !important;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .left {
    display: flex;
    align-items: center;
    gap: 5em;
    /* justify-content: space-between; */
}

.logo {
    font-size: 3.5em;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
    padding-left: .5em;
    font-family: 'Story Script', sans-serif;
}
.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5em;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 1.1em;
    font-weight: 550;
    padding-bottom: .2em;
}
.nav-links a:hover {
    /* color: #ff9800; */
    border-bottom: 2px solid #fff;
} 

.sm {
 display: none;
}

.mobile-menu {
    display: none;
}

@media only screen and (max-width: 992px){
    section.categories-section .container .categories-grid{
    grid-template-columns: 1fr 1fr !important;
}
}

@media only screen and (max-width: 768px){
    .sm {
        display: block;
    }

    .navbar.sm {
    margin: auto;
    padding: .2rem 1rem;
    background: #333;
}

.logo {
    padding: 0;

    font-size: 2.5em;
}

     nav.sm .container .mobile-nav {
      position: relative;
      width: 60px;
      height: 60px;
      justify-content: center;
      align-items: center;
      cursor: pointer;
      transition: 0.5s;
    animation-delay: 1s;
   }

   nav.sm .container .mobile-nav span {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        transform: rotate(0);
        transition: 0.5s;
    }
    
   nav.sm .container .mobile-nav.active span {
     transform: rotate(0);
     transition-delay: 0.5s;
    }
    
   nav.sm .container .mobile-nav span::before {
     content: '';
     position: absolute;
     width: 40px;
     height: 3px;
     background: #fff;
     border-radius: 3px;
     transition: 0.5s;
    }
    
   nav.sm .container .mobile-nav.active span::before {
     transform: rotate(0);
     transition-delay: .5s;
    }
    
   nav.sm .container .mobile-nav span::after {
     content: '';
     position: absolute;
     width: 25px;
     height: 3px;
     background: #fff;
     border-radius: 3px;
     transition: 0.5s;
     transform: translateY(-12px);
     box-shadow: 0 24px #fff;
    }
    
   nav.sm .container .mobile-nav.active span::after {
     width: 40px;
     transform: translateY(0px);
     box-shadow: 0 0 #fff;
    }

    header .mobile-menu.show { 
        /* display: flex; */
        transform: scale(1);
    }
    header .mobile-menu {
        position:fixed;
        top:9%;
        bottom:0;
        /* left:0; */
        right:0;
        background: #000;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow-y: auto;
        z-index: 900;
        transform: scale(0);
        transition:  0.5s;
        width: 100%;
    }
    
    header .mobile-menu.show {
        transform: scale(1);
    }
    
    header .mobile-menu ul {
     position: relative;
     display: flex;
     flex-direction: column;
     gap: 50px;
     justify-content: center;
     align-items: center;
     /* margin-top: 2em; */
    }
    
    header .mobile-menu ul li {
     position: relative;
     list-style-type: none;
     text-align: center;
     display: block;
     /* margin: 3em auto; */
    }
    
    header .mobile-menu ul li a {
     position: relative;
     text-decoration: none;
     font-size: 2rem;
     color: #fff;
     font-weight: 700;
     text-transform: uppercase;
     display: inline-block;
    }

    .lg {
        display: none;
    }

    section.categories-section .container .categories-grid{
    display: grid;
    /* grid-template-rows:  1fr  1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr !important; */
    grid-template-columns:  1fr !important;
    gap: 30px !important;
    margin-top: 3em;
}

section.categories-section .container .categories-grid .category-card a div.category-name .img-con{
    height: 350px !important;
    width: 350px !important;
}
}



.swiper {
    width: 100%;
    margin-top: -5em;
    height: 120vh;
    position: relative;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
    margin-bottom: 1em;
    position: relative;
}

.swiper-pagination {
    position: absolute !important;
    left: 5% !important;
    bottom: 5% !important;
    width: auto !important;
    text-align: left !important;
    z-index: 10;
}

.swiper-pagination .swiper-pagination-bullet {
    background-color: #000;
    width: 5px; 
    height: 5px; 
}

/* Swiper pagination bullets custom style */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #111;
    opacity: 0.7;
    border: none;
    margin: 0 12px !important;
    box-shadow: none;
    transition: box-shadow 0.3s, opacity 0.3s;
}

.swiper-pagination-bullet-active {
    background: #111;
    opacity: 1;
    border: none;
    width: 10px;
    height: 10px;
    position: relative;
    z-index: 1;
}

.swiper-pagination-bullet-active::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    border: 1px solid #111;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    background: transparent;
    z-index: -1;
}

.hero-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-caption p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.hero-caption .btn {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.hero-caption .btn:hover {
    background-color: #d35400;
}

.swiper {
    width: 100%;
    height: 400px;
    position: relative;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
}

section.hero.slide-one {
    background-image: url('/static/k.jpg');
}

section.hero.slide-two {
    background-image: url('/static/j.jpg');
}

section.hero.slide-three {
    background-image: url('/static/l.jpg');
}






section.hero .container .text{
 display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.2em;
}

@media only screen and (max-width: 768px){
section.hero {
     background-size:contain;
    background-position-y: 75px;
}
}

section.hero .img {
    height: 100%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

section.hero .img img {
    height: 100%;
    width: auto;
    object-fit: cover;
    /* max-width: 100%; */
    border-radius: 20px;
}

/* section.hero div.overlay {
    position: absolute;
    left: 0%;
    right: 
    top: 0%;
    bottom: 0%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    max-width: 100% !important;
    height: 100%;
    background-size: cover;
      display: flex;      
    flex-direction: column;
    justify-content: center;
    align-items: center;
} */
section.hero div.container h1.title {
    font-size: 4.5em;
    font-weight:500;
    margin: 0;
    width: 100%;
    line-height: 1;
    text-align: left;
}
section.hero div.container .text p.tline {
    font-size: 0.9em;
    width: 90%;
    text-align: left;
    padding: 0;
    margin-bottom: 2em;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.explore {
    text-decoration: none;
    color: #fff;
    padding: 1.3em 2.5em;
    border: 2px solid #fff;
    margin-top: 2.5em;
    font-size: 1em;
    transition: 0.3s;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.explore:hover {
    border:none;
    background-color: #b88346;
}

@media only screen and (max-width: 768px){
    section.hero {
    height:50vh;
    /* padding-top: 9em; */
}

.swiper {
    margin-top: 0;
    height: 50vh;
}
 section.hero .container {
    /* width:auto; */
}

section.hero .container {
    width: 60%;
    transform: translateX(10%);
    /* transform: translateY(20%); */
    /* padding-left: 1em; */
    margin-top: 0;
    height: 30%;
}

section.hero .container .text{
 display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
}

section.hero div.container h1.title {
    font-size: 1.5em;
    font-weight:550;
    margin: 0;
    width: 100%;
    line-height: 1;
    text-align: left;
}
section.hero div.container .text p.tline {
    font-size: 0.5em;
    width: 90%;
    text-align: left;
    padding: 0;
    margin-bottom: 1em;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.explore {
    text-decoration: none;
    color: #fff;
    padding: .7em 1.5em;
    border: 1px solid #fff;
    margin-top: 1.2em;
    font-size: .6em;
    transition: 0.3s;
    letter-spacing: 2px;
    text-transform: uppercase;
}

section.hero .img {
    height: 100%;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

section.hero .img img {
    height: 100%;
    width: auto;
    object-fit: cover;
    /* max-width: 100%; */
    border-radius: 20px;
}
}

/* main {
    min-height: 60vh;
    padding: 0em 0em;
} */

section.categories-section {
    margin-top: 3em !important;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    margin:auto;
}

section.categories-section .container .section-header h2 {
    text-align: center;
    font-size: 2.5em;
    letter-spacing: -2px;
}
section.categories-section .container .categories-grid{
    display: grid;
    grid-template-rows:  1fr  1fr 1fr;
    grid-template-columns:  1fr  1fr 1fr ;
    gap: 38px;
    margin-top: 3em;
}

section.categories-section .container .categories-grid .category-card a{
    /* color: #fff; */
    text-decoration: none;
    text-align: center;
        display: flex;
        flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}
section.categories-section .container .categories-grid .category-card a:hover div.category-name img{
    transform: scale(1.1);
    transition: transform 0.5s ease;

}
section.categories-section .container .categories-grid .category-card a:hover div.category-name p{
    transform: scale(1.1);
    transition: all 0.5s ease;
    letter-spacing: 5px;
    color: #e67e22 !important;
    font-size: 1.2rem !important;

}
section.categories-section .container .categories-grid .category-card a div.category-name .img-con p{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  padding: 1em 2.5em;
  color: #222;
  font-size: 1.09rem;
  font-weight: bold;
  box-shadow: 2px 2px 9px rgba(0, 0, 0, 0.09);
  transition: all 0.5s ease;
}

section.categories-section .container .categories-grid .category-card a div.category-name{
    /* background: #333; */
    /* margin: 1rem; */
    /* padding: 0.5rem; */
    border-radius: 20px;
    /* scale: 0.5; */
  position: relative;
  /* z-index: 1; */
  /* overflow: hidden; */
    /* width: 60px; */
  /* height: 34px; */
  outline: none;
  /* border: 1px solid #333; */
}
section.categories-section .container .categories-grid .category-card a div.category-name{
    /* background: #333; */
    /* margin: 1rem; */
    /* padding: 0.5rem; */
    border-radius: 20px;
    /* scale: 0.5; */
    position: relative;
    /* z-index: 1; */
    /* overflow: hidden; */
        /* width: 60px; */
    /* height: 34px; */
    outline: none;
    /* border: 1px solid #333; */
}
section.categories-section .container .categories-grid .category-card a div.category-name .img-con{
    height: 300px !important;
    width: 300px;
    /* object-fit: cover; */
    /* padding: 0.9rem; */
    /* background-color: #ccc; */
    /* border-radius: 20px; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    background-color: #eee;
    /* box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); */
    /* border: 2px solid #222; */
    /* margin: auto; */
}
section.categories-section .container .categories-grid .category-card a div.category-name img{
    height: 80% !important;
    width: 80% !important;
    object-fit: contain !important;
    transition: transform 0.5s ease;
    border: none !important;
    /* padding: 0.9rem;
    background-color: #ccc; */
    /* border-radius: 20px; */
    /* box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); */
}


/* section.categories-section .container .categories-grid .category-card a div.category-name.category-electronics { 
    background: url('/static/imgs/electronics.jpg') no-repeat center center/cover; 
} */

.btn-2 {
    background: #b88346;
    color: #fff;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    border: 1px solid #000;
    outline: none;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* font-size: 1rem; */
    transition: background 0.3s, color 0.3s;
    width: auto;
    height: auto;
    display: inline-block;
}

.btn-2:hover {
  color: black;
}

.btn-2:after {
  content: "";
  background: white;
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: 0;
  bottom: 0;
  transform: skewX(-45deg) scale(0, 1);
  transition: all 0.5s;
}

.btn-2:hover:after {
  transform: skewX(-45deg) scale(1, 1);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

section.featured-section {
    /* margin-top: 3em !important;
    margin-bottom: 3em !important; */
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% ;
    margin: 3em auto ;
}

section.featured-section .container .section-header h2 {
    text-align: center;
    font-size: 2.5em;
    letter-spacing: -2px;
    margin-bottom:2em;
}

section.featured-section .container .products-grid  {
 display: grid;
    grid-template-columns: repeat(4, 1fr);
        justify-content: center !important;
    align-items: center !important;
    gap: 1em;
    margin: auto;
    width: 70%;

}
@media only screen and (max-width: 1024px){
    section.featured-section .container .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}
@media only screen and (max-width: 768px){
    section.featured-section .container .products-grid {
        grid-template-columns: repeat(1, 1fr);
    }

}

section.featured-section .container .products-grid .product-card {
    /* padding: 1em; */
    text-align: left;
    border-radius: 20px;
    position: relative;
}

section.featured-section .container .products-grid .product-card:hover img {
    transform: scale(1.05);
}

section.featured-section .container .products-grid .product-card div.img-container {
    width: 250px !important;
    height: 250px !important;
    border-radius: 20px;
    transition: transform .5s ease;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
section.featured-section .container .products-grid .product-card img {
    width: 90% !important;
    height: 90% !important;
    object-fit: contain;
    border-radius: 20px;
    transition: transform .5s ease;
}

section.featured-section .container .products-grid .product-card h3 {
    /* border-top: 1px solid #ddd; */
    padding-top: 1em;
}
section.featured-section .container .products-grid .product-card p {
 font-weight: 500;
}
section.featured-section .container .products-grid .product-card div.rating {
display: flex;
    
}
section.featured-section .container .products-grid .product-card div.rating img{
width: 13px !important;
}
section.featured-section .container .products-grid .product-card button {
margin-bottom: .8em !important;
}

h1.cart {
    text-align: center;
    margin-top: 2em;
    font-size: 2em;
}

table {
    width: 90%;
    margin: 2em auto;
}

table, th, td {
  /* border: 1px solid black; */
  border-collapse: collapse;
}

th {
    text-align: left;
    border-bottom: 1px solid #ddd;
    padding-bottom: .8em;
    /* margin-bottom: .8em; */
}
td{
padding-top: .9em !important;
border-bottom: 1px solid #ddd;
    padding-bottom:.9em !important;
}


@media only screen and (max-width: 1024px){
td.quantity {
    text-align: center;
}
}

.remove-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 0.5em 1em;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
}

p.total {
    text-align: center;
    font-size: 1.5em;
    margin-top: 1em;
}

a.btn, button.btn {
    text-align: center;
    margin-top: 1em;
    border: none;
    cursor: pointer;
}
main {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding-top: 5em; */
    margin-bottom: 2em;
}

footer {
    background: #222;
    color: #fff;
    padding: 1em 0;
    text-align: center;
}
.footer-links {
    margin-bottom: 0.8em;
    margin-top: 0.8em;
}

@media only screen and (max-width: 1024px){

    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8em;
    }
}

.footer-links a {
    color: #fff;
    margin: 0 0.5em;
    text-decoration: none;
    font-size: 1em;
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #ff9800;
}
.footer-copy {
    font-size: 0.9em;
    color: #bbb;
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 10px;
    top: 5px;
    font-size: 28px;
    cursor: pointer;
}

.slider-wrapper {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.slider-wrapper img{
    height: 300px;
    width: 300px;
    object-fit: contain;
}

.slide {
    display: none;
    width: 100%;
}
.slide.active {
    display: block;
}
.prev, .next {
    cursor: pointer;
    background: #ccc;
    padding: 5px 10px;
    border: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.prev { left: 5px; }
.next { right: 5px; }
.navbar.lg {
    margin: auto;
    padding: 1rem;
    padding-top: 2rem;
    transition: all .5s;
}
.account-section {
    margin-top: 2rem;
    border-top: 1px solid #ccc;
    padding-top: 1rem;
}
.order-card {
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
}
.btn {
    display: inline-block;
    padding: 0.8rem 1.2rem;
    background-color: #b88346;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    width:100%;
}

@media only screen and (max-width: 768px){
.width {
    width:90% !important;
}

.btn {
    width: 90%;
}
.btn.btn-primary {
    width: 100%;
}

}


.btn.btn-lg {
    width:85%;
}
.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}
.logout-btn {
    background-color: #dc3545;
}
.flash-container {
    margin: 1rem auto;
    padding: 0 1rem;
    max-width: 800px;
}

.alert {
    padding: 0.75rem 1rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Admin Dashboard Styles */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1rem;
}

.sidebar-header h2 {
    text-align: center;
    margin-bottom: 2rem;
}

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

.sidebar-menu li a {
    display: block;
    padding: 1rem;
    color: #ecf0f1;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar-menu li a:hover {
    background: #34495e;
}

.admin-main {
    flex: 1;
    padding: 2rem;
    background: #ecf0f1;
}

.dashboard-header h1 {
    margin-bottom: 2rem;
}

.dashboard-content table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dashboard-content th, .dashboard-content td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.dashboard-content th {
    background: #f7f7f7;
}

.form-container {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}
.form-error {
  color: #cc0000;
  font-size: 0.85em;
  margin-top: 4px;
  display: block;
}

.flash {
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 1em;
}

.flash-success {
  background-color: #e6ffed;
  color: #2d7a46;
  border: 1px solid #b0f1c2;
}

.flash-error, .flash-danger {
  background-color: #ffe6e6;
  color: #b30000;
  border: 1px solid #ffb3b3;
}

.form-error {
  color: #cc0000;
  font-size: 0.85em;
  margin-top: 4px;
  display: block;
}

input {
    padding: 1em  7em 1em 1em;
    border-radius: 10px;
    outline: none;
    border: 1px solid #000;
    margin-top: .5em;
    margin-bottom: 1.5em;
    width: 200px;
}

label {
    font-weight: 500;
    font-size: 1.1rem;
}

.form-group {
/* margin-top: 1.5em; */
}

div.dflex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap:  20px;
}

@media only screen and (max-width: 1024px){
div.dflex {
    display: grid;
    grid-template-columns: 1fr;
    row-gap:  20px;
}
}
/* =================================================================== */
/* ===== STYLES FOR THE "ADD PRODUCT" FORM ===== */
/* =================================================================== */

/* --- Form Container --- */


/* --- General Form Field Styling --- */

.body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

input[type="file"] {
 border:none;
 border-radius: 0;
 outline:none;
 border-radius:10px;
 padding: 0;
 margin-top: 1.5em;
 /* font-size: 1.02rem; */
 /* color:  #b88346; */
 /* border: 2px solid #b88346; */
 /* background-color: #dfc2a2ff; */
 width: 100%;
}

input[type="file"]::file-selector-button {
  border-radius: 10px;
  padding: 0 16px;
  height: 35px;
  cursor: pointer;
  background-color: #dfc2a2ff;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0px 1px 0px rgba(0, 0, 0, 0.05);
  margin-left: 0;
  margin-right: 16px;
  transition: background-color 700ms;
}

/* file upload button hover state */
input[type="file"]::file-selector-button:hover {
  background-color: #f3f4f6;
}

/* file upload button active state */
input[type="file"]::file-selector-button:active {
  background-color: #e5e7eb;
}

input[type="checkbox"] {
 border:none;
 border-radius: 0;
 outline:none;
 padding: .0 0 0 0 ;
 transform: translateX(-50%);
}

select, textarea {
    width: 100%;
    margin-top: .9em;
    margin-bottom: .9em;
    padding: .5em;
    border-radius: 10px;
        outline: none;
    border: 1px solid #000;
}

select {
padding: 1em  7em 1em 1em;
}

textarea {
    padding-top: 2em;
}

/* We style the label to look like a button */
.custom-file-upload {
    display: inline-block;
    padding: 12px 20px;
    cursor: pointer;
    background-color: #34495e;
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.custom-file-upload:hover {
    background-color: #2c3e50;
}

/* This will be a placeholder to show the names of the selected files */
#file-chosen {
    margin-left: 1rem;
    font-style: italic;
    color: #555;
}


/* --- Submit Button --- */
.add-product-form-container .btn-2 {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background-color: #b88346;
    border: none;
    color: #fff;
}
.add-product-form-container .btn-2:hover {
    background-color: #a0723c;
}

Swiper navigation button custom style */
.swiper-button-next,
.swiper-button-prev {
    background: #fff8e1;
    color: #222;
    border-radius: 50%;
    width: 38px !important;
    height: 38px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    opacity: 0;
    transition: opacity 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    display: none;
}

/* Custom SVG arrow for next button */
.swiper-button-next {
    background-image: url("data:image/svg+xml;utf8,<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M6 4L10 8L6 12' stroke='%23333' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}

/* Custom SVG arrow for prev button*/
.swiper-button-prev {
    background-image: url("data:image/svg+xml;utf8,<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M10 4L6 8L10 12' stroke='%23333' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
} 

/* Optional: Remove default background arrow */
.swiper-button-next,
.swiper-button-prev {
    /* background-image: none !important; */
}
.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
    opacity: 1;
} 

/* Category Slider Styles */
.categories-slider {
    width: 100%;
    padding: 1.5rem 0;
}
.categories-slider .swiper-slide {
    width: 180px;
    max-width: 90vw;
    display: flex;
    justify-content: center;
    align-items: center;
}
.category-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    text-align: center;
    padding: 1rem;
    transition: box-shadow 0.3s, transform 0.3s;
    border: 2px solid transparent;
}
.category-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.13);
    transform: translateY(-5px);
    border-color: #ff6600;
}
.category-card .img-con {
    width: 100%;
    height: 100px;
    margin-bottom: 1rem;
}
.category-card .img-con img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}
.category-card p {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    margin: 0;
}
.swiper-pagination-categories {
    margin-top: 1rem;
    text-align: center;
}
/* Add or replace these styles in your styles.css */

.swiper {
    width: 100%;
    height: 100vh;
    position: relative;
}

.swiper-wrapper {
    width: 100%;
    height: 100%;
}

section.hero {
    color: #fff;
    text-align: center;
    height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
}

section.hero.slide-one {
    background: url('../static/k.jpg') no-repeat center center/cover;
}

section.hero.slide-two {
    background: url('../static/j.jpg') no-repeat center center/cover;
}

section.hero.slide-three {
    background: url('../static/l.jpg') no-repeat center center/cover;
}

section.hero .container {
    width: 50%;
    transform: translateX(20%);
}

section.hero .container .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.2em;
}

section.hero div.container h1.title {
    font-size: 4.5em;
    font-weight: 500;
    margin: 0;
    width: 100%;
    line-height: 1;
    text-align: left;
}

section.hero div.container .text p.tline {
    font-size: 0.9em;
    width: 90%;
    text-align: left;
    padding: 0;
    margin-bottom: 2em;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.explore {
    text-decoration: none;
    color: #fff;
    padding: 1.3em 2.5em;
    border: 2px solid #fff;
    margin-top: 2.5em;
    font-size: 1em;
    transition: 0.3s;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.explore:hover {
    border: none;
    background-color: #b88346;
}

/* --- Swiper Controls Styling --- */
.swiper-pagination {
    position: absolute !important;
    left: 5% !important;
    bottom: 5% !important;
    width: auto !important;
    text-align: left !important;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    border: 2px solid transparent;
}

.swiper-pagination-bullet-active {
    background: transparent;
    border-color: #fff;
}

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
    opacity: 0;
    transition: opacity 0.3s;
}

.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
    opacity: 0.8;
}

/* Mobile Adjustments */
@media only screen and (max-width: 768px) {
    .swiper, section.hero {
        height: 50vh;
    }
    section.hero .container {
        width: 80%;
        transform: translateX(10%);
    }
    section.hero div.container h1.title {
        font-size: 1.5em;
    }
    section.hero div.container .text p.tline {
        font-size: 0.5em;
        margin-bottom: 1em;
    }
    .explore {
        padding: .7em 1.5em;
        margin-top: 1.2em;
        font-size: .6em;
    }
}

/* public pages style */

.public-page-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.public-page-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.public-page-hero {
    background-color: var(--primary-color);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.public-page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.public-page-hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.icon-grid-item {
    text-align: center;
}

.icon-grid-item i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.faq-item {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.faq-item h3 {
    margin-top: 0;
}

.faq-item p {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-bottom: 0;
}

.faq-item.active p {
    max-height: 1000px; /* A large enough value */
    margin-top: 1rem;
}

.error-page {
    text-align: center;
    padding: 50px;
}

.error-page h1 {
    font-size: 4rem;
    color: var(--primary-color);
}

.error-page p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.btn-google {
    background-color: #4285F4;
    color: white;
}

.btn-google:hover {
    background-color: #357ae8;
}

.content-section {
    background: #ffffff;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 1rem;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.password-wrapper {
    position: relative;
}

.form-group-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}

.filter-banner {
    display: none;
    background-color: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: center;
    position: sticky;
    top: 60px; /* Adjust based on your navbar height */
    z-index: 998;
}

#toggle-filters-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: auto;
}

.category-filters {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    max-width: 320px;
    height: 100%;
    background-color: var(--card-background);
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: left 0.3s ease-in-out;
    z-index: 1001;
    overflow-y: auto;
    padding: 1rem;
}

.category-filters.open {
    left: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

#close-filters-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.no-products {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 2rem;
}

.no-products h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.no-products p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}
