/* ===========================================================
   SHIVAM FURNISHING — shared styles
   Theme: luxury blush pink + deep plum + gold accent
=========================================================== */

:root{
  --linen:      #FBEFEE;   /* soft blush pink background */
  --linen-deep: #F4DEDC;
  --surface:    #FFFFFF;
  --border:     #EDD9D6;

  --indigo:     #5A2E42;   /* plum (buttons / hover) */
  --indigo-deep:#2E1522;   /* deep plum (navbar / footer) */
  --terracotta: #B5677D;   /* dusty rose accent */
  --mustard:    #C9A24C;   /* gold accent */

  --ink:        #2E2024;
  --muted:      #8B7378;

  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(46,21,34,0.18);
}

*{ box-sizing: border-box; margin:0; padding:0; }

html{ scroll-behavior: smooth; height: 100%; }

body{
  font-family: 'Inter', sans-serif;
  background: var(--linen);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

footer{ margin-top: auto; }

img, video{ max-width:100%; display:block; }

a{ color:inherit; text-decoration:none; }

.container{
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family:'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  font-weight: 600;
}

h1,h2,h3{
  font-family:'Fraunces', serif;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------------- NAVBAR (dark plum, subtle fabric weave texture) ---------------- */
.navbar{
  position: sticky;
  top:0;
  z-index: 500;
  background-color: var(--indigo-deep);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.028) 0px, rgba(255,255,255,0.028) 1px, transparent 1px, transparent 9px),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 9px);
  box-shadow: 0 4px 20px -8px rgba(46,21,34,0.45);
}

.nav-inner{
  max-width: 1220px;
  margin: 0 auto;
  padding: 14px 24px;
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 20px;
}

.nav-search{
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  padding: 8px 6px 8px 16px;
}
.nav-search input{
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #F7ECEA;
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
}
.nav-search input::placeholder{ color: rgba(247,236,234,0.5); }
.nav-search button{
  background: var(--mustard);
  border: none;
  border-radius: 50%;
  width: 30px; height: 30px;
  display:flex; align-items:center; justify-content:center;
  cursor:pointer; flex-shrink:0; color: var(--indigo-deep);
}

.nav-wishlist{
  position: relative;
  display: flex !important;
  align-items: center;
}
.wishlist-count{
  position:absolute; top:-6px; right:-10px;
  background: var(--terracotta); color:#fff;
  font-size:10px; font-weight:700; min-width:16px; height:16px;
  border-radius:999px; display:none; align-items:center; justify-content:center;
  padding:0 4px;
}

@media (max-width: 860px){
  .nav-search{ display:none; }
}

/* Standalone mobile search row — sits just below the navbar, NOT inside the hamburger menu */
.mobile-search-bar{ display:none; }
@media (max-width: 860px){
  .mobile-search-bar{
    display:flex; justify-content:center;
    padding: 14px 16px 18px;
    background-color: var(--indigo-deep);
    background-image:
      repeating-linear-gradient(135deg, rgba(255,255,255,0.028) 0px, rgba(255,255,255,0.028) 1px, transparent 1px, transparent 9px),
      repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 9px);
  }
  .mobile-search-bar form{
    width:100%; max-width:480px; display:flex; align-items:center;
    background: #fff; border:none;
    border-radius:999px; padding:6px 6px 6px 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  }
  .mobile-search-bar input{
    flex:1; border:none; outline:none; background:none; color: var(--ink);
    font-size:14px; font-family:'Inter',sans-serif; min-width:0;
  }
  .mobile-search-bar input::placeholder{ color: var(--muted); }
  .mobile-search-bar button{
    background: var(--indigo-deep); border:none; border-radius:50%;
    width:34px; height:34px; color:#fff;
    display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0;
    transition: background .2s ease;
  }
  .mobile-search-bar button:hover{ background: var(--indigo); }
}

.nav-logo{
  display:flex;
  align-items:center;
  gap: 12px;
  line-height: 1.1;
}

.nav-fold-icon{
  flex-shrink: 0;
  width: 40px; height: 40px;
  object-fit: contain;
  background: transparent;
}

.nav-logo-text{
  display:flex;
  flex-direction:column;
}

.nav-logo .name{
  font-family:'Fraunces', serif;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #F7ECEA;
}

.nav-logo .tag{
  font-family:'Noto Sans Devanagari','Fraunces',serif;
  font-size: 13px;
  color: var(--mustard);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.nav-links{
  display:flex;
  align-items:center;
  gap: 34px;
  list-style:none;
}

.nav-links a{
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(247,236,234,0.85);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after{
  content:"";
  position:absolute;
  left:0; bottom:0;
  width:0%; height:2px;
  background: var(--mustard);
  transition: width .25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after{ width:100%; }

.nav-links a.active{ color: #fff; font-weight:600; }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding: 6px;
}
.nav-toggle span{
  width: 24px; height:2px;
  background: #F7ECEA;
  border-radius: 2px;
}

@media (max-width: 860px){
  .nav-toggle{ display:flex; }
  .nav-links{
    position:absolute;
    top: 100%; left:0; right:0;
    background: var(--indigo-deep);
    flex-direction:column;
    align-items:flex-start;
    gap: 4px;
    padding: 10px 24px 20px;
    display:none;
  }
  .nav-links.open{ display:flex; }
  .nav-links li{ width:100%; }
  .nav-links a{ display:block; padding: 12px 0; width:100%; border-bottom:1px solid rgba(247,236,234,0.12); }
}

/* ---------------- HERO ---------------- */
.hero{
  position: relative;
  height: 78vh;
  min-height: 460px;
  overflow: hidden;
  background: var(--indigo-deep);
}

.hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  transition: opacity 0.9s ease;
  pointer-events:none;
}
.hero-slide.active{ opacity:1; pointer-events:auto; }

.hero-slide img,
.hero-slide video{
  width:100%; height:100%;
  object-fit: cover;
}

.hero-overlay{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(35,59,82,0.15) 0%, rgba(20,20,18,0.55) 100%);
}

.hero-caption{
  position:absolute;
  left:0; right:0; bottom:64px;
  text-align:center;
  color:#fff;
  padding: 0 24px;
  z-index: 5;
}

.hero-caption .eyebrow{ color: var(--mustard); }

.hero-caption h1{
  color:#fff;
  font-size: clamp(28px, 4.5vw, 52px);
  margin-top: 10px;
  max-width: 760px;
  margin-left:auto; margin-right:auto;
}

.hero-dots{
  position:absolute;
  bottom: 26px; left:0; right:0;
  display:flex; justify-content:center; gap:8px;
  z-index: 6;
}
.hero-dots button{
  width:8px; height:8px; border-radius:50%;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.25);
  cursor:pointer; padding:0;
  transition: background .2s ease, width .2s ease;
}
.hero-dots button.active{
  background:#fff; width: 22px; border-radius: 6px;
}

/* ---------------- SCROLL-REVEAL ANIMATIONS ---------------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}
/* staggered delay for grid children */
.cat-grid .reveal:nth-child(1), .product-grid .reveal:nth-child(1){ transition-delay: 0.02s; }
.cat-grid .reveal:nth-child(2), .product-grid .reveal:nth-child(2){ transition-delay: 0.08s; }
.cat-grid .reveal:nth-child(3), .product-grid .reveal:nth-child(3){ transition-delay: 0.14s; }
.cat-grid .reveal:nth-child(4), .product-grid .reveal:nth-child(4){ transition-delay: 0.20s; }
.cat-grid .reveal:nth-child(5), .product-grid .reveal:nth-child(5){ transition-delay: 0.26s; }
.cat-grid .reveal:nth-child(6), .product-grid .reveal:nth-child(6){ transition-delay: 0.32s; }
.cat-grid .reveal:nth-child(7), .product-grid .reveal:nth-child(7){ transition-delay: 0.38s; }
.cat-grid .reveal:nth-child(8), .product-grid .reveal:nth-child(8){ transition-delay: 0.44s; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
}

/* ---------------- HERO CAPTION ENTRANCE ---------------- */
.hero-caption .eyebrow,
.hero-caption h1{
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 0.8s cubic-bezier(0.16,1,0.3,1) forwards;
}
.hero-caption h1{ animation-delay: 0.12s; }

@keyframes heroIn{
  to{ opacity:1; transform: translateY(0); }
}

/* subtle breathing scale on hero background for a premium feel */
.hero-slide img, .hero-slide video{
  animation: heroZoom 9s ease-in-out infinite alternate;
}
@keyframes heroZoom{
  from{ transform: scale(1); }
  to{ transform: scale(1.06); }
}
/* ---------------- SECTION HEADERS ---------------- */
.section{ padding: 72px 0; }
.section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom: 32px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2{ font-size: clamp(24px,3vw,34px); margin-top:6px; }
.section-head p{ color: var(--muted); font-size:14.5px; max-width: 420px; }

/* ---------------- CATEGORIES (horizontal slider) ---------------- */
.cat-slider{
  position: relative;
  display:flex;
  align-items:center;
  gap: 8px;
}

.cat-grid{
  display:flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  padding-bottom: 6px;
  flex: 1;
  scrollbar-width: none;
  cursor: grab;
}
.cat-grid.dragging{ cursor: grabbing; scroll-behavior: auto; }
.cat-grid::-webkit-scrollbar{ display:none; }

.cat-arrow{
  flex-shrink:0;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  font-size: 22px;
  line-height:1;
  color: var(--indigo-deep);
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 5;
}
.cat-arrow:hover{ background: var(--indigo-deep); color:#fff; }

.cat-card{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  flex: 0 0 240px;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow);
  isolation: isolate;
  scroll-snap-align: start;
}
.cat-card img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.cat-card:hover img{ transform: scale(1.06); }
.cat-card::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(24,22,18,0.78) 100%);
}
.cat-card .cat-label{
  position:absolute; left:16px; right:16px; bottom:16px; z-index:2;
  color:#fff;
}
.cat-card .cat-label .count{ font-size:12px; opacity:.85; }
.cat-card .cat-label .cname{ font-family:'Fraunces',serif; font-size:19px; margin-top:2px; }

@media (max-width: 700px){
  .cat-card{ flex-basis: 168px; }
  .cat-grid{ gap: 12px; }
  .cat-arrow{ width:36px; height:36px; font-size:18px; }
}

/* ---------------- PRODUCT GRID / CARDS ---------------- */
.product-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 980px){ .product-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width: 700px){ .product-grid{ grid-template-columns: repeat(2,1fr); gap:14px; } }

.product-card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display:flex;
  flex-direction:column;
  transition: box-shadow .25s ease, transform .25s ease;
}
.product-card:hover{ box-shadow: var(--shadow); transform: translateY(-3px); }

.product-thumb{
  position:relative;
  aspect-ratio: 1/1.05;
  overflow:hidden;
  background: var(--linen-deep);
}
.product-thumb img{ width:100%; height:100%; object-fit:cover; transition: transform .5s ease; }
.product-card:hover .product-thumb img{ transform: scale(1.05); }

.product-badge{
  position:absolute; top:10px; left:10px;
  background: var(--indigo-deep);
  color:#fff;
  font-size:10.5px;
  letter-spacing:.06em;
  text-transform:uppercase;
  padding: 4px 9px;
  border-radius: 999px;
}

.product-code{
  position:absolute; top:8px; right:8px;
  background: rgba(46,21,34,0.65);
  color: #F7ECEA;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 3px 7px;
  border-radius: 6px;
  font-family:'Inter', sans-serif;
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.gallery-main .product-code{ top:12px; right:12px; font-size:11px; padding:4px 9px; }

.card-wishlist-btn{
  position:absolute; top:8px; left:8px; z-index:5;
  background: rgba(255,255,255,0.9); border:none; border-radius:50%;
  width:30px; height:30px; display:flex; align-items:center; justify-content:center;
  color: var(--muted); cursor:pointer; transition: all .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.card-wishlist-btn:hover{ color: var(--terracotta); }
.card-wishlist-btn.active{ color: var(--terracotta); }
.card-wishlist-btn.active svg path{ fill: currentColor; }

.product-info{ padding: 14px 16px 18px; }
.product-cat{ font-size:11.5px; color: var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.product-name{
  font-family:'Fraunces', serif;
  font-size: 16px;
  margin-top: 4px;
  color: var(--ink);
  font-weight:600;
}
.product-price{
  margin-top: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--indigo-deep);
}
.product-price .mrp{
  font-weight:400;
  color: var(--muted);
  text-decoration: line-through;
  font-size:12.5px;
  margin-left:6px;
}

/* ---------------- BUTTONS ---------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn-primary{ background: var(--indigo-deep); color:#fff; }
.btn-primary:hover{ background: var(--indigo); transform: translateY(-1px); }
.btn-outline{ background: transparent; color: var(--indigo-deep); border: 1.5px solid var(--indigo-deep); }
.btn-outline:hover{ background: var(--indigo-deep); color:#fff; }
.btn-block{ width:100%; }

/* ---------------- FOOTER ---------------- */
footer{
  background: var(--indigo-deep);
  color: rgba(255,255,255,0.85);
  padding: 48px 0 24px;
}
footer .foot-grid{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap: 28px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.15);
}
footer h4{ font-family:'Fraunces',serif; color:#fff; font-size:17px; margin-bottom:10px; }
footer p, footer a{ font-size:13.5px; color: rgba(255,255,255,0.7); }
footer .bottom{ padding-top:18px; font-size:12.5px; text-align:center; color: rgba(255,255,255,0.55); }

.dev-credit{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:16px;
  padding-left:16px;
  border-left:1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.55);
  text-decoration:none;
  transition: color 0.2s ease;
}
.dev-credit:hover{ color: var(--mustard); }
.dev-credit img{
  width:20px; height:20px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid rgba(255,255,255,0.3);
}

/* ---------------- UTIL / MISC ---------------- */
.text-center{ text-align:center; }
.mt-8{ margin-top:8px; }

.alert-box{
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  margin-bottom: 18px;
}
.alert-box-success{ background:#E9F4EC; color:#3E7A4F; border:1px solid #CDE7D3; }
.alert-box-error{ background:#FBEAE8; color:#B3453B; border:1px solid #F1CFC9; }
.alert-box-warning{ background:#FBF3E4; color:#8A5A17; border:1px solid #F0DFB8; }
