:root{ --page-max: 1024px; --gutter: 16px; /* side padding */
  --nepal-blue:#003893; /* from head and foot BG. Nepali Blue from https://www.schemecolor.com/nepal-flag-colors.php */
  --button:#3399FF;
}

/* Header Layout */
.site-header{
  display: flex;
  justify-content: space-between;  
  align-items:center;  
  background-color: var(--nepal-blue);
  color: #fff;
  padding: 1rem 2rem;
}

/* utility */
.hidden {
  display: none !important;
}

#loader {
  position: fixed;
  inset: 0; /* full screen */
  background: white;          
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  z-index: 9999999; /* above everything */
}

#loader img {
  width: 120px; /* adjust size */
  height: auto;
}

body { 
  font-family: "Roboto Condensed", sans-serif; 
  margin: 0;
}

/* Left / center / right alignment */
/* Logo layout */
.logo {
  display: flex;
  align-items: center; /* vertically center image + text */
  gap: 12px;
}

.logo img {
  width: 65px;
  height: 65px;
}

.logo span {
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}
.site-header a {
  color: white;
  text-decoration: none;
}
.main-nav{ 
  justify-self:center;
}
.cart-link{ 
  justify-self:end;
  padding-left: 14px;
  font-size: 28px;
}

.site-header nav ul{
  display:flex;
  gap: 1rem;                  
  list-style:none;
  margin:0;
  padding:0;
  font-size:28px;
  
}

.site-header nav a:hover{
    background: white; 
    color: var(--nepal-blue);
    border-radius: 4px;
    padding: 3px;
}

.site-header nav li + li{ position:relative; }

.site-header nav li + li::before{
  content:"| ";
  color:white;
  margin:0 10px; /* equal space on both sides of the pipe */
}

header .logo {
  font-weight: bold;
  color: white;
  font-size: 30px;
}

/* make the top section stretch full width */
.full-bleed {
  margin: 0;
}

/* HERO section under the header */
.hero {
  height: 40vh; /* originally 260px, shorter, not sure which is visually better */
  min-height: 32vh;
    
  background-image: url("images/Hero_Boudhanath_Panorama_2016.jpg");
  background-size: cover; 
  background-repeat: no-repeat;
  background-position: center 30%;
  display: flex;
  align-items: center;
  padding: 32px 16px;
  transition: height 0.6s ease;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.50), /* darkest behind the text */
    rgba(0, 0, 0, 0.15),
    transparent
  );
  pointer-events: none;
  z-index: 0;
}

/* make sure the copy sits above the overlay */
#heroCopy {
  position: relative;
  z-index: 1;
}

/* Compact height for WOMEN / MEN views */
.hero.hero--compact {
  height: 32vh;
  min-height: 32vh;
}

.hero-text {
  max-width: 680px;
  text-align: left;
  padding: 20px 24px;                
  background: transparent;     
  color: #fff;
  border-radius: 8px;
}

/* default home tagline */
#heroCopy h1 {
  margin: 0 0 8px;
  font-size: 2.6rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}
#heroCopy p {
  margin: 0;
  font-size: 2rem;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

/* WOMEN / MEN label style */
.hero-label {
  text-align: left;
  position: relative;
  z-index: 1;
}
.hero-label span {
  display: inline-block;
  font-size: 3rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 800;
  text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

.hero-label-np {
  display: block;
  /* Nepali styles */
  font-size: 1.8rem;
}

.hero-label-en {
  display: block;
  /* English styles */
  font-size: 1.4rem;
  letter-spacing: 0.15em;
}

/* home intro under hero */
.home-intro {
  max-width: 960px;
  margin: 3rem auto 2rem;
  padding: 0 1.5rem;
  line-height: 1.7;
  color: #1f2933;
  font-size: 1rem;
}

/* category gallery for Women/Men */
.category-gallery {
  max-width: var(--page-max);
  margin: 3rem auto 2rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.gender-categories {
  max-width: var(--page-max);
  margin: 2.5rem auto 2rem;
  padding: 2.5rem var(--gutter);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
}

/* Women’s category background */
.gender-categories--women {
  background-image: url("images/istockphoto-857171382-612x612.jpg");
}

/* Men’s category background */
.gender-categories--men {
  background-image: url("images/mens-categories-bg.JPG");
}

/* hero text for large screens */
@media (min-width: 901px) {
  #heroCopy h1 {
    font-size: 2.2rem;   
  }
  #heroCopy p {
    font-size: 1.6rem;   
  }
  .hero-text {
    max-width: 640px; 
  }
}

@media (max-width: 900px) {
  .site-header{
    flex-direction: column;
    padding: 1.2rem;
    text-align: center;
  }
  .site-header nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    
  }
  .category-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    min-height: 48vh;
    padding: 40px
     20px;
  }

  #heroCopy h1:first-of-type {
    font-size: 2.4rem;
  }

  #heroCopy h1:nth-of-type(2) {
    font-size: 2rem;
  }

  #heroCopy p {
    font-size: 1.2rem;
  }

  #browseView {
    padding: 30px 18px;
  }

  .browse-grid {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    padding: 1rem;
    text-align: center;
  }
  .site-header nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
  .category-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    min-height: 60vh;
    padding: 28px 18px;
    justify-content: flex-start;
  }

  .hero-text {
    padding: 12px 16px;
  }

  #heroCopy h1:first-of-type {
    font-size: 1.9rem;
    margin-bottom: 8px;
  }

  #heroCopy p:first-of-type {
    font-size: 1.1rem;
    margin-bottom: 18px;
  }

  #heroCopy h1:nth-of-type(2) {
    font-size: 1.6rem;
    margin-bottom: 6px;
  }

  #heroCopy p:nth-of-type(2) {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  #browseView h1 {
    font-size: 1.8rem;
    margin-bottom: 24px;
  }

  .browse-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card h3 {
    font-size: 1rem;
  }
}

@media (max-width: 420px) {
  .category-gallery {
    grid-template-columns: 1fr;
  }
}

.category-card {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
}

.category-card .placeholder {
  height: 160px;
  border: 1px dashed #d1d5db;
  background: #f9fafb;
  margin-bottom: 10px;
  display: flex;
  place-items: center;
  font-size: 0.8rem;
  color: #94a3b8;
  justify-content: center;
  align-items: center;
}

.category-card .placeholder .category-icon {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.category-card .label {
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Browse layout */
.browse-layout {
  max-width: var(--page-max);
  margin: 2rem auto 3rem;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr); /* sidebar + main */
  gap: 24px;
}

#browseView {
  padding: 40px 20px;
  max-width: 1300px;
  margin: 0 auto;
}

#browseView h1 {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--nepal-blue);
  letter-spacing: 0.03em;
  margin-bottom: 32px;
}

.browse-filters {
  background: #f5f5f7;
  border-right: 1px solid #e2e8f0;
  padding: 20px 16px;
  font-size: 0.9rem;
}

.browse-filters h3 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.filter-group {
  margin-bottom: 1.4rem;
}

.filter-group h4 {
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}

/* sidebar buttons */
.filter-pill {
  display: inline-block;
  margin: 2px 4px 4px 0;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-size: 0.8rem;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--button);
  color: #fff;
  border-color: var(--button);
}

/* color squares */
.color-chip {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid #cbd5e1;
  margin-right: 4px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.filter-checkbox input {
  margin: 0;
}

.color-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 2px;
  border: 1px solid #cbd5e1;
}

/* main */
.browse-main {
  background: #f7f7f8;
  padding: 16px 18px 24px;
}

.browse-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.browse-sort label {
  margin-right: 4px;
  font-size: 0.85rem;
}

/* results tags row (chips under “Results”) */
.browse-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.browse-tags-label {
  font-weight: 600;
  margin-right: 4px;
}

.browse-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #e5edf7;
  cursor: pointer;
}

.browse-tag span {
  pointer-events: none;
}

.browse-tag-remove {
  font-size: 0.8rem;
}

.browse-clear {
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f3f4f6;
  cursor: pointer;
}

/* product grid under categories */
.browse-grid {
  display: grid;
  margin-top: 18px;
  /* cards between 220px and 280px wide, never wider */
  grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
  gap: 26px;
  padding: 10px;
  justify-content: left;   /* center cards when there's extra space */
  overflow: hidden;
}

/* on tablets: allow a bit narrower cards */
@media (max-width: 800px) {
  .browse-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
  }
}

/* on phones: single column that can fill the width */
@media (max-width: 550px) {
  .browse-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 200px));
  }
}

.browse-grid .product-card img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.browse-grid .product-card:hover img {
  transform: scale(1.03);
}

.browse-grid .product-card {
  background: #ffffff;
  border: 1px solid #d8d3c4;
  border-radius: 16px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.06);
  padding: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.browse-grid .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.10);
}

.product-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #2e2a25;
  margin-bottom: 6px;
}

.product-card .price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--nepal-blue);
  letter-spacing: 0.01em;
}

.product-card {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.9rem;
}

.product-card .placeholder-img img {
   width: 100%;
  height: 160px;
  background: #fff;
  border: 1px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 0.75rem;
  color: #9ca3af;
  overflow: hidden;
}

.product-card .product-card-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-image-main img.product-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-image-thumbs img.product-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
}

.product-card .title {
  font-weight: 600;
  margin-bottom: 2px;
}

.product-card .price {
  font-size: 0.9rem;
}

/* make the card stack vertically */
.product-card {
  display: flex;
  flex-direction: column;
}

/* bottom row: price left, + button right */
.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

/* price styling in the footer */
.product-footer .price {
  font-size: 0.9rem;
  font-weight: 600;
}

/* small square "+" add-to-cart button */
.btn-add-cart {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #d1d5e8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 0;
}

.btn-add-cart:hover {
  background: #e2e8f0;
}

.collapsible-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.collapsible-header .arrow {
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.collapsible-content.expanded {
  max-height: 1200px;
}

.collapsible-header .arrow.expanded {
  transform: rotate(180deg);
}

/* Product options side drawer */
.option-drawer-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  background: rgba(15, 23, 42, 0.45); /* semi-transparent dark */
  z-index: 1000;
}

.option-drawer-overlay.hidden {
  display: none;
}

.option-drawer {
  width: min(360px, 90vw);
  background: #fff;
  box-shadow: -6px 0 18px rgba(15, 23, 42, 0.35);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.option-drawer-close {
  align-self: flex-end;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.option-drawer-product {
  font-weight: 600;
  margin: 0;
}

.option-group h3 {
  font-size: 0.9rem;
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.option-drawer-add {
  margin-top: 8px;
  align-self: flex-end;
}

/* Cart link + badge */
.cart-link{
  display:inline-flex; 
  align-items:center; 
  gap:8px;
  color:white; 
  text-decoration:none; 
  font-weight:600;
}
.cart-badge{
  display:inline-grid; 
  place-items:center;
  min-width:18px; 
  height:18px; 
  padding:0 5px;
  font-size:11px; 
  line-height:1; 
  color:#fff;
  background:#285ea8; 
  border-radius:999px;
}

header nav a {
  text-decoration: none;
  color: white;
}

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

/* ===== Single Product View ===== */

/* Simple breadcrumb: Home > Gender > Category > Product */
.breadcrumb {
  max-width: var(--page-max);
  margin: 16px auto 8px;
  padding: 0 var(--gutter);
  font-size: 0.9rem;
  color: #6b7280;
}

/* Overall page wrapper */
.product-page {
  max-width: var(--page-max);
  margin: 0 auto 40px;
  padding: 0 var(--gutter) 40px;
}

/* Two-column layout: images left, details right */
.product-main {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

/* Image placeholders */
.product-image-main .placeholder,
.product-image-thumbs .placeholder {
  background: #f3f4f6;
  border: 1px dashed #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.9rem;
}

.product-image-main .placeholder {
  height: 280px;
}

.product-image-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.product-image-thumbs .placeholder {
  height: 120px;
}

/* Detail text */
.product-details h1 {
  margin: 0 0 8px;
}

.product-price {
  font-weight: 700;
  margin: 0 0 12px;
}

.product-description {
  margin: 0 0 12px;
  line-height: 1.5;
}

.product-material {
  margin: 0 0 16px;
}

.product-quantity {
  margin: 0 0 16px;
}

.product-quantity input {
  width: 80px;
}

.size-pill {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #f9fafb;
  font-size: 0.85rem;
  cursor: pointer;
}

.size-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  margin-bottom: 12px;
}

.size-pill.is-selected {
  background: #e5e7eb;
  border-color: #6b7280;
  font-weight: 600;
}

/* Color swatches row (bigger than sidebar ones) */
.product-colors .color-swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 16px;
}

.product-colors .color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
}

.product-colors .color-swatch.is-selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--nepal-blue);
}

/* Add-to-cart button on detail view */
.btn-primary {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid #6b7280;
  background: #e5e7eb;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary:hover {
  background: #d1d5db;
}

/* Related products section just reuses .browse-grid, .product-card */

/* ===== Toast notification (reuse for cart + detail) ===== */
.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: rgba(31, 41, 55, 0.95);
  color: #f9fafb;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Shopping Cart */

/* PANEL + TABLE */
.panel{  
  background: #ffffff;
  border:1px solid #d8d3c4;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.cart-wrap {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 24px;
  background: #faf9f7;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  border: 1px solid #e7e5df;
}

/* Items grid layout: [select][image][title][color][size][price][qty][subtotal] */
.cart-head,.cart-row{
  display:grid;
  grid-template-columns: repeat(8, 1fr);
  align-items:center;
  text-align: center;
  gap:12px;
  padding: 14px 16px;
  padding-right: 10%;
}

.cart-head{
  font-weight: 700;
  color: var(--nepal-blue);
  background: rgba(0, 56, 147, 0.05);
  border-radius: 12px;
  padding: 18px 16px;
  border-bottom: none;
}

.cart-row {
  border-top:1px solid #ece7dd;
  padding: 20px;
  border-radius: 12px;
  background: #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cart-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.thumb{
  width:86px;
  height:86px;
  border:1px dashed #cbd5e1;
  border-radius:10px;
  display:flex;
  place-items:center;
  color:#9ca3af;
  background:#f8fafc;
  justify-self:start;
  overflow: hidden;
}

.thumb img,
.cart-thumb-img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.title{ font-weight:700 }
.num{ font-variant-numeric:tabular-nums; }

.qty{ 
  display:inline-flex;  
  overflow:hidden;
  border:1px solid #d6cab8;
  background: #faf7f2;
  border-radius: 8px; 
}

.qty button{ 
  all:unset; 
  width:32px; 
  height:32px; 
  display:grid; 
  place-items:center; 
  background: #f1efe9;
  transition: background 0.2s;
  cursor:pointer 
}

.qty button:hover {
  background: #e4dccd;
}

.qty input{ 
  width:42px; 
  text-align:center; 
  border:0; 
  outline:0 
}

/* Color + Size cells */
.color-cell{ justify-self:center }
.swatch{ 
  width:18px; 
  height:18px; 
  outline:1px solid #e5e7eb; 
  display:inline-block }
.size-cell{
  justify-self:center;
  padding:4px 8px; 
  border:1px solid #e5e7eb; 
  border-radius:8px; 
  font-size:12px; 
  background:#fff
}

/* Remove icon at far left */
.remove-icon {
  cursor: pointer;
  color: #b91c1c;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.25s;
}
.remove-icon:hover {
  background: rgba(185, 28, 28, 0.1);
}

/* Empty state */
.empty{ padding:28px 20px; 
  text-align:center; 
  color:#64748b }

/* Right column layout */
.side{ display:grid; 
  grid-template-columns: 1fr 3fr; /* two equal columns */
  gap:18px }

#shipBlock{ grid-column:1 / -1; } /* full width */

.card.summary {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #d6d3c4;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.card.summary h2 {
  color: var(--nepal-blue);
  margin-bottom: 16px;
}


/* --- Shipping card --- */
.card{ 
  background: white;
  border: 1px solid #d6d3c4;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.card h2{ 
  font-size:18px;
  color: var(--nepal-blue);
  margin-bottom: 16px; 
}

.stack{ display:grid; gap:10px }
.field{ display:grid; gap:6px }
.select{ position:relative }
.select select{
  width:100%; 
  appearance:none;
  padding:10px 12px; 
  border:1px solid #d1d5db; 
  border-radius:10px; 
  background:#fff;
}
/* Disabled look */
.stack.disabled{
  background:#f3f4f6; /* light grey block */
  padding:12px;
  opacity:1;
}
.stack.disabled select{
  background:#eef0f3; /* inner fields slightly lighter */
  color:#9aa3ad;
  border-color:#d8dde3;
}
.select::after{
  content:"▾"; 
  position:absolute; 
  right:10px; 
  top:50%; 
  translate:0 -50%;
  color:#9aa3ad; 
  pointer-events:none;
}

/* --- Summary box --- */
.summary{
  background:#fff;
}
.summary .row{
  display:flex; 
  justify-content:space-between; 
  align-items:center;
  padding:10px 12px; 
  border-bottom:1px solid #d7dde6;
}
.summary .row:first-of-type{
  border:1px solid #334155; /* dark border around the box */
  border-bottom:1px solid #d7dde6;
  margin-top:6px;
}
.summary .row + .row{
  border-left:1px solid #334155;
  border-right:1px solid #334155;
}
.summary .row:last-child{
  border-bottom:1px solid #334155;
}
.summary .total{ font-weight:800 }
.summary .num{ font-variant-numeric:tabular-nums }

/* --- Checkout button --- */
.checkout{
  display:inline-block; 
  width:max-content;
  margin-top:14px;
  padding:10px 18px;
  border-radius:10px;
  font-weight:700;
  border:1px solid #6b7280;
  background:#e5e7eb; /* gray fill */
  box-shadow: 0 3px 8px rgba(0, 56, 147, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;   
  cursor:not-allowed; /* disabled by default */
}
.checkout.ready{
  background:#4f46e5; /* enable style */
  color:#fff;
  border-color:#4338ca;
  box-shadow:0 2px 0 #3730a3;
  cursor:pointer;
}
#checkoutBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 56, 147, 0.45);
}

/* Cart Page Title */
.cart-title {
  color: var(--nepal-blue);
  letter-spacing: 0.03em;
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
}

.cart-border-top {
  height: 6px;
  background: linear-gradient(to right, #003893, #c49a3a, #003893);
  border-radius: 8px 8px 0 0;
  margin-bottom: 16px;
}
.cart-border-bottom {
  height: 6px;
  background: linear-gradient(to right, #003893, #c49a3a, #003893);
  border-radius: 0 0 8px 8px;
  margin-top: 16px;
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  align-items: center;
}

.continue-shopping {
  margin-top:14px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #e5e7eb;
  border: 1px solid #6b7280;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 2px 0 #9ca3af;
}

.continue-shopping:hover {
  background: #d1d5db;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 56, 147, 0.45);
}

/* Footer */

footer.site-footer {
  background: var(--nepal-blue);
  color: white;
  text-align: center;
}

/* Inner layout */
.footer-container { 
  max-width: 1000px; 
  margin: 0 auto; 
  padding: 36px 20px; 
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 16px;
  justify-items: center;
}
.footer-grid h4 { 
  margin: 0 0 10px; 
  font-weight: 700; 
}
.footer-grid ul { 
  list-style: none; 
  margin: 8px 0 0; 
  padding: 10px;
}

/* Link styles */
.site-footer a,
.site-footer a:link,
.site-footer a:visited {
  color: #cfd8e3;
  text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus-visible {
  color: white;
  text-decoration: underline;
}
.site-footer a:active { color: white; }

.site-footer .footer-grid {
  gap: 32px 16px;
  font-size: 0.95rem;
  line-height: 1.5; 
}

.git {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  padding: 10px;
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 24px;
}

/* ===== About dialog / modal ===== */

.about-dialog {
  border: none;
  border-radius: 10px;
  padding: 24px 28px 20px;
  max-width: 640px;
  width: 90%;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

@media (max-width: 600px) {
  .about-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 16px 16px 24px;
    box-sizing: border-box;
  }

  .about-dialog h2 {
    font-size: 1.1rem;
  }
}

.about-dialog h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.about-dialog a {
  color: var(--button);
  text-decoration: underline;
}

/* backdrop dimmer */
.about-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

/* close “X” button in top-right */
.about-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}

.about-close:hover {
  color: #000;
}

.about-ok {
  padding: 6px 14px;
  border-radius: 4px;
  border: none;
  background: var(--button);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.about-ok:hover {
  filter: brightness(1.1);
}

/* ===== Home intro (about blurb under hero) ===== */

.home-intro {
  max-width: 960px;
  margin: 3rem auto 2rem;
  padding: 0 1.5rem;
  line-height: 1.7;
  color: #1f2933;
  font-size: 1rem;
  animation: fadeUp 0.7s ease-out 0.15s both; /* subtle entrance */
}

.home-intro h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: var(--nepal-blue);
}

.home-featured-header h2 {
  color: white;
}

.home-intro p {
  margin: 0;
}

/* Small screens: center the text for nicer layout */
@media (max-width: 600px) {
  .home-intro {
    text-align: center;
  }
}

/* Simple fade/slide-up animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Featured Items on Home ===== */

/* make the angle animatable */
@property --angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

@keyframes rotate-border {
  to {
    --angle: 1080deg;
  }
}

/* Outer shell: conic-gradient border */
.home-featured {
  --angle: 180deg; /* starting angle */

  max-width: var(--page-max);
  margin: 4.5rem auto 4.5rem;
  padding: 10px;
  border-radius: 16px;

  position: relative;
  isolation: isolate;

  background: conic-gradient(
    from var(--angle),
    #ff6b6b,
    #ffd93d,
    #6fffe9,
    #7b61ff,
    #ff6b6b
  );

  animation: rotate-border 10s linear infinite;
}

.home-featured::before {
  content: "";
  position: absolute;
  inset: -6px; /* slightly bigger than the box to give glow effect*/
  border-radius: inherit;
  z-index: -1; /* so it sits behind the main section */

  background: conic-gradient(
    from var(--angle),
    #ff6b6b,
    #ffd93d,
    #6fffe9,
    #7b61ff,
    #ff6b6b
  );

  filter: blur(14px); /* this controls how soft/wide the glow is */
  opacity: 0.9; /* adjust if you want a softer glow */
  pointer-events: none;
  animation: rotate-border 10s linear infinite; /* keep two layers in sync */
}

.home-featured-header {
  border-radius: 10px;
  padding: 12px 16px;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.35);
  margin-bottom: 16px;
}

.home-featured-header h2 {
  margin: 0 0 4px;
  font-size: 2rem;
}

.home-featured-tagline {
  margin: 0;
  font-size: 0.95rem;
  font-style: italic;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .featured-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lux-tagline {
  font-weight: 700;
  font-size: 1.3rem;
  margin-top: 0.5rem;
}

.featured-card {
  background: #FFFFFF;
  color: #111827;
  border-radius: 10px;
  padding: 12px 12px 14px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16);
  border: 2px solid var(--nepal-blue);
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.featured-card:hover,
.featured-card:focus-visible {
  background: #d1d5db;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.24);
  transform: translateY(-2px);
}

.featured-img {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 8px;
  background: #f3f4f6;
}

.featured-img img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.featured-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--nepal-blue);
}

.featured-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.featured-price {
  margin: 0;
  font-weight: 700;
  color: #DC143C;
}

.featured-desc {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #4b5563;
}

/* Inner content box */
.home-featured-inner {
  border-radius: inherit;
  padding: 16px 20px 24px;
  background: linear-gradient(
    rgba(0,0,0,0.5),
    rgba(0,0,0,0.5)
  );
  color: #ffffff;
}