:root{
  --primary:#1F2933;
  --secondary:#52606D;
  --accent:#F97316;
  --bg:#F5F7FA;
  --surface:#FFFFFF;
  --border:#D9E2EC;
  --muted:#7B8794;
  --success:#16A34A;
}

body{
  background:#F5F7FA;
  font-family:'Inter',sans-serif;
  color:#1F2933;
}

.modal{
  z-index: 1050;
}

.modal-backdrop{
  z-index: 1040;
}

.navbar{
  background:#1F2933;
  padding:18px 0;
  box-shadow:0 8px 30px rgba(0,0,0,.08);
  z-index: 100;
}

.navbar-brand{
  color:white !important;
  font-family:'Oswald',sans-serif;
  font-size:30px;
  letter-spacing:2px;
  cursor: pointer;
}

.navbar-brand i{
  color:#F97316 !important;
}

.search-box{
  position:relative;
  width:320px;
}

.search-box i{
  position:absolute;
  top:50%;
  left:14px;
  transform:translateY(-50%);
  color:#9AA5B1;
}

.search-box input{
  border:none;
  border-radius:12px;
  padding:12px 14px 12px 42px;
}

.search-box input:focus{
  border:2px solid #F97316;
  box-shadow:none;
}

.cart-button{
  background:transparent;
  border:none;
  color: #F97316;
  padding:0 10px;
  border-radius:12px;
  font-weight:600;
}
.cart-button i, .cart-button-modal i{
  font-size:30px;
}

.cart-button i:hover{
  color:white;
}

.cart-button-modal{
  font-size:15px;
  background:transparent;
  border:none;
  color: #F97316;
  padding:0 10px;
  border-radius:12px;
  font-weight:600;
}

.cart-button-modal:hover{
  color:white;
}

.cart-badge{
  position:absolute;
  top:-8px;
  right:-8px;
}

.category-btn{
  background:#323F4B;
  color:white !important;
  border:none;
  padding:12px 18px;
  border-radius:12px;
  font-weight:600;
  width: auto;
}

.category-btn:hover{
  background:#3E4C59;
  color:white;
}

.category-btn:focus{
  box-shadow:none;
}

.signin-btn{
  background:transparent;
  border:2px solid #F97316;
  color:#F97316;
  padding:10px 18px;
  border-radius:12px;
  font-weight:600;
  transition:.3s;
}

.signin-btn:hover{
  background:#F97316;
  color:white;
}

.signup-btn{
  background:#F97316;
  border:none;
  color:white;
  padding:12px 18px;
  border-radius:12px;
  font-weight:600;
  transition:.3s;
}

.signup-btn:hover{
  background:#ea580c;
}

.auth-buttons i{
  margin-right:6px;
}

.hero{
  background:
  linear-gradient(rgba(0,0,0,.55),rgba(0,0,0,.55)),
  url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?q=80&w=1400&auto=format&fit=crop');

  background-size:cover;
  background-position:center;

  border-radius:28px;
  padding:90px 70px;
  margin-bottom:60px;
  color:white;
}

.hero h1{
  font-family:'Oswald',sans-serif;
  font-size:68px;
  line-height:1;
  margin-bottom:20px;
}

.hero p{
  color:#CBD2D9;
  max-width:650px;
  line-height:1.9;
  margin-bottom:35px;
}

.hero-btn{
  background:#F97316;
  color:white;
  border:none;
  padding:16px 26px;
  border-radius:12px;
  font-weight:600;
}

.section{
  margin-top:90px;
}

.section-title{
  font-family:'Oswald',sans-serif;
  font-size:42px;
  margin-bottom:10px;
}

.section-subtitle{
  color:#7B8794;
  margin-bottom:40px;
}

.product-section{
  display: flex;
  flex-direction: row;
  width: 100%;
  max-height:200vh;
  gap:30px;
}

.filter-box{
  width:250px;
  display: inline;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.filter-nav{
  display:none !important;
}

.filter-box h6 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.filter-box .form-check-label {
  cursor: pointer;
}

.filter-box input,
.filter-box select,
.filter-box label,
.filter-box span {
  font-size: 12px;
}

.product-box{
  max-height:100%;
  width:100%;
  overflow:hidden;
  overflow-y:auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-box::-webkit-scrollbar {
  display: none;
}

.products{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:28px;
}

.product-card{
  position:relative;
  border:none;
  border-radius:8px;
  overflow:hidden;
  background:white;
  transition:.35s;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  cursor: pointer;
}

.product-card:hover{
  transform:translateY(-8px);
  box-shadow:0 4px 8px rgba(0,0,0,.12);
}

.product-image{
  width:100%;
  height:150px;
  object-fit:cover;
}

.product-content{
  padding:10px;
  position:relative;
}

.badge.quote{
  background:#1F2933;
  color:white;
  padding:10px 14px;
  border-radius:999px;
  position:absolute;
  top:18px;
  left:18px;
  font-size:12px;
}

.card-title{
  font-size:13px;
  font-weight:700;
  line-height:1.4;

  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;

  overflow:hidden;
  text-overflow:ellipsis;

  min-height:33px;
  max-height:33px; 
  margin:none;
}

.top-left-badge{
  position:absolute;
  top:12px;
  left:12px;
  font-size:11px;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  color:white;
}

.top-left-badge.new{
  background:#111827;
}

.top-right-icon{
  position:absolute;
  top:12px;
  right:12px;
  width:34px;
  height:34px;
  background:white;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 3px 10px rgba(0,0,0,.1);
  cursor:pointer;
}

.discount-badge{
  position:absolute;
  top:120px;
  left:12px;
  background:#EF4444;
  color:white;
  font-size:11px;
  font-weight:800;
  padding:6px 10px;
  border-radius:999px;
  z-index:5;
}

.limited-stock{
  font-size:12px;
  font-weight:700;
  color:#F97316;
  margin-top:0px;
}

.volume-discount{
  margin-top:6px;
  font-size:12px;
  font-weight:700;
  color:#10B981;
}

.product-category{
  font-size:11px;
  color:#6B7280;
  text-transform:uppercase;
  letter-spacing:.5px;
}

.bottom-badges{
  display:flex;
  flex-direction: column;
  justify-content:flex-end;
}

.card-cart-icon{
  font-size:28px;
  text-align:center;
}

.quote-btn{
  background:#1F2933;
  border:none;
  color:white;
  padding:12px 18px;
  border-radius:12px;
  font-weight:600;
}

.services{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  gap:24px;
}

.service-card{
  background:white;
  padding:35px;
  border-radius:22px;
  box-shadow:0 10px 30px rgba(0,0,0,.05);
}

.cta{
  background:
  linear-gradient(135deg,#1F2933,#111827);

  border-radius:32px;
  padding:80px 60px;
  text-align:center;
  color:white;
}

.cta h2{
  font-family:'Oswald',sans-serif;
  font-size:56px;
}

.primary-btn{
  background:#F97316;
  border:none;
  color:white;
  padding:16px 30px;
  border-radius:14px;
  font-weight:700;
}

#cartModal .modal-body{
  min-height:90vh;
}

#viewModal .modal-content
#cartModal .modal-content{
  height:100%;
  border:none;
  border-radius:24px;
}

#viewModal .modal-header,
#variantsModal .modal-header,
#cartModal .modal-header{
  background:#1F2933;
  color:white !important;
}

#viewModal .modal-body{
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap:15px;
  padding-top:30px;
  padding-bottom:100px;
}

#variantsModal{
  z-index: 1061 !important;
}

#variantsModal .modal-body{
  min-height: 80vh;
  max-height: 80vh;
}

.custom-modal-backdrop.show{
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px); /* Safari */
  z-index: 1060;
}

.variants-t-container{
  position:relative;
  overflow: auto;
  max-height:75vh;  
  border: 1px solid rgb(228, 228, 228);
  cursor: pointer;
}

#variantsTable thead{
  position:sticky;
  top:-1px;
}

#variantsTable thead th{
  background-color: rgb(239, 239, 239);
}

#variantsModal .modal-header{
  display: flex;
  gap:100px;
}

.variants-search-box{
  position:relative;
  width:320px;
}

.variants-search-box i{
  position:absolute;
  top:50%;
  left:14px;
  transform:translateY(-50%);
  color:#9AA5B1;
}

.variants-search-box input{
  border-radius:12px;
  padding:12px 14px 12px 42px;
}

.variants-search-box input:focus{
  border:2px solid #F97316;
  box-shadow:none;
}

.product-details{
  width:1000px;
  margin:auto;
  padding:20px;
  border-radius:8px;
  background:white;
}

.details-2 {
  height: auto !important;
}

.view-product-desc{
  margin-top:5px;
  border: 1px solid rgb(236, 232, 232);
  width:100%;
  text-wrap:wrap;
  min-height:200px;
  padding:15px;
  border-radius:8px;
}

.add-btn{
  font-size:15px;
  background:#F97316;
  border:none;
  color:white;
  padding:12px 18px;
  border-radius:12px;
  font-weight:600;
}

.cart-item{
  border:none;
  border-radius:18px;
  box-shadow:0 5px 18px rgba(0,0,0,.05);
}

.cart-item-image{
  width:85px;
  height:85px;
  object-fit:cover;
  border-radius:16px;
}

.cart-variant{
  font-size: 12px;
}

.quantity-btn{
  width:34px;
  height:34px;
  border-radius:10px;
  border:none;
  background:#EEF2F6;
}

.checkout-summary{
  background:#F8FAFC;
  border:1px solid #E2E8F0;
  border-radius:22px;
  padding:28px;
  min-height:75vh;
}

footer{
  background:#111827;
  margin-top:90px;
  padding:70px 0;
  color:#CBD2D9;
}

.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1fr;
  gap:50px;
}

.footer-title{
  color:white;
  font-weight:700;
  margin-bottom:20px;
}

footer ul{
  list-style:none;
  padding:0;
}

footer li{
  margin-bottom:10px;
  color:#9AA5B1;
}

.success-icon{
  font-size:90px;
  color:#16A34A;
}

.burger-option{
  display:none;
}

#imagePreviewContainer{
  overflow:auto;
}

@media(min-width:768px){
  .filter-box{
    position:sticky !important;
    top:10px;
    width: 250px !important;
    display: inline !important;
    height:100%;
  }
}

@media(max-width:768px){
  
  .hero{
    padding:60px 30px;
  }

  .hero h1{
    font-size:48px;
  }

  .search-box{
    display:none;
  }

  .cta{
    padding:60px 30px;
  }

  .cta h2{
    font-size:40px;
  }

  .burger-option{
    display:inline !important;
  }

  .filter-box{
    position:fixed;
    top:0;
    left:0;
    z-index: 110;
    width: 0;
    display: none;
    height:100%;
  }

  .filter-nav{
    display:flex !important;
  }

  .product-details{
    width: 90%;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }

  .product-image{
    height:320px;
  }

  .card-title{
    font-size:28px;
    min-height:76px;
    max-height:76px;     
  }


  .top-left-badge,
  .top-right-icon,
  .limited-stock,
  .volume-discount{
    font-size:18px;
  }

  .discount-badge{
    top:270px;
    font-size:18px;
  }

  .product-category{
    font-size:15px;
  }

  .card-cart-icon{
    font-size:40px;
  }  
  .product-box{
    overflow:visible;
  }
}

.no-products {
  padding: 20px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: #555;
  box-shadow: 0 px 2px rgba(0, 0, 0, 0.08);
  width:95%;
  margin:auto;
}

#cartItems{
  max-height:500px;
  overflow-y:auto;
}

/* image */
.product-image-box img{
  width:100%;
  border-radius:12px;
  object-fit:cover;
}

/* color options */
.color-swatch{
  width:22px;
  height:22px;
  border-radius:50%;
  border:2px solid #eee;
  cursor:pointer;
}

.black{ background:black; }
.red{ background:red; }
.blue{ background:royalblue; }

.option-group{
  display:flex;
  flex-direction: row;
  gap:20px;
}

.option-group label{
  min-width:120px;
  font-size: 13px;
}

.variant-options{
  display:flex;
  flex-wrap: wrap;
  gap:8px;
  max-height:100px;
  overflow-y: auto;
}

.variant-options span{
  border:1px solid #ddd;
  padding:6px 10px;
  border-radius:8px;
  cursor:pointer;
  font-size: 11px;
  transition: all 0.2s ease;
}

.active-option {
  color: white;
  background: black;
  border: 1px solid var(--accent) !important;
  box-shadow: 4px 8px 12px rgba(0, 0, 0, 0.2);
}

.image-preview-wrapper{
  width:100%;
  max-height: 400px;
  aspect-ratio:1/1;
  border-radius:18px;
  overflow:hidden;
  background:#e2e8f0;
}

.view-image{
  width:100%;
  height:100%;
  object-fit:cover;
}

.thumbnail-image{
  width:70px;
  height:70px;
  border-radius:12px;
  object-fit:cover;
  cursor:pointer;
  border:2px solid transparent;
  transition:.2s ease;
}

.thumbnail-image:hover{
  border-color:#0d6efd;
  transform:scale(1.05);
}

.thumbnail-wrapper {
  position: relative;
  display: inline-block;
  margin: 5px;
}

.disabled-fade {
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.3s ease;
}