/* ==========================================================================
   WoodCraft — home page extras (deal of the week, budget, occasions, polish)
   Loaded only on the home page.
   ========================================================================== */

/* ---------- Deal of the week ---------- */
.deal-section {
  position: relative; overflow: hidden; color: var(--beige);
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(181, 138, 80, .28), transparent 60%),
    radial-gradient(800px 400px at -10% 110%, rgba(181, 138, 80, .18), transparent 60%),
    repeating-linear-gradient(98deg, rgba(255, 255, 255, .018) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #3d2718 0%, #513522 55%, #3a2416 100%);
}
.deal-section h2, .deal-section h3 { color: var(--cream); }
.deal-section .eyebrow { color: var(--gold); }
.deal-section .section-sub { color: rgba(233, 221, 204, .78); }
.deal-spot {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: 22px; overflow: hidden;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .28); backdrop-filter: blur(4px);
}
.deal-media { position: relative; background: radial-gradient(circle at 50% 45%, #f6ecdc 0%, #e4d2b8 70%, #d6c0a0 100%); min-height: 420px; }
.deal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.deal-spot:hover .deal-media img { transform: scale(1.05); }
.deal-ribbon {
  position: absolute; top: 22px; left: 22px; z-index: 2; background: var(--danger); color: #fff;
  font-weight: 600; font-size: 13px; letter-spacing: .08em; padding: 8px 14px; border-radius: 40px;
  box-shadow: 0 8px 20px rgba(168, 74, 58, .35);
}
.deal-ribbon i { margin-right: 6px; animation: flick 1.4s ease-in-out infinite; display: inline-block; }
@keyframes flick { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(-8deg); } }
.deal-body { padding: 46px 44px; display: flex; flex-direction: column; justify-content: center; }
.deal-body .p-cat { color: var(--gold); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; }
.deal-body h3 { font-size: clamp(30px, 3.2vw, 42px); margin: 8px 0 10px; }
.deal-body h3 a { color: inherit; }
.deal-body h3 a:hover { color: var(--gold); }
.deal-body .rating { color: var(--gold); font-size: 13px; margin-bottom: 14px; }
.deal-body .rating span { color: rgba(233, 221, 204, .7); margin-left: 6px; }
.deal-price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; flex-wrap: wrap; }
.deal-price .now { font-family: var(--font-display); font-size: 44px; color: #fff; line-height: 1; font-weight: 600; }
.deal-price del { color: rgba(233, 221, 204, .55); font-size: 18px; }
.deal-price .save { background: rgba(181, 138, 80, .18); color: var(--gold); border: 1px solid rgba(181, 138, 80, .45); padding: 3px 10px; border-radius: 30px; font-size: 13px; font-weight: 600; }
.deal-section .countdown div { background: rgba(255, 255, 255, .07); }
.deal-stock { margin-bottom: 24px; font-size: 13.5px; color: rgba(233, 221, 204, .85); }
.deal-stock i { color: var(--gold); margin-right: 6px; }
.deal-stock strong { color: #fff; font-weight: 600; }
.deal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.deal-actions .btn-light-wood { background: transparent; color: var(--cream); border-color: rgba(255, 255, 255, .4); }
.deal-actions .btn-light-wood:hover { background: var(--cream); color: var(--brown); }

.deal-mini { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.deal-mini a {
  display: flex; gap: 16px; align-items: center; padding: 14px; border-radius: 16px; color: var(--beige);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: all .35s var(--ease); flex: 1;
}
.deal-mini a:hover { background: rgba(255, 255, 255, .1); transform: translateX(6px); border-color: rgba(181, 138, 80, .5); color: var(--beige); }
.deal-mini img { width: 92px; height: 92px; border-radius: 12px; object-fit: cover; flex: none; background: var(--beige); }
.deal-mini h6 { font-family: var(--font-display); font-size: 19px; color: var(--cream); margin: 0 0 4px; line-height: 1.2; }
.deal-mini .pr { font-size: 15px; color: #fff; font-weight: 600; }
.deal-mini .pr del { color: rgba(233, 221, 204, .5); font-weight: 400; font-size: 13px; margin-left: 6px; }
.deal-mini .off { font-size: 11.5px; color: var(--gold); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 991px) {
  .deal-spot { grid-template-columns: 1fr; }
  .deal-media { min-height: 320px; }
  .deal-body { padding: 32px 26px; }
}

/* ---------- Shop by budget ---------- */
.budget-section {
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(181, 138, 80, .14), transparent 70%),
    radial-gradient(600px 300px at 0% 100%, rgba(121, 84, 56, .08), transparent 70%),
    var(--cream) !important;
}
.budget-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.budget-tab {
  position: relative; display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink);
  transition: all .4s var(--ease); cursor: pointer;
}
.budget-tab:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.budget-tab .ic {
  width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 18px;
  color: var(--brown); background: var(--cream); transition: all .4s var(--ease);
}
.budget-tab .t { display: flex; flex-direction: column; line-height: 1.1; }
.budget-tab small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.budget-tab strong { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--brown); }
.budget-tab .cnt { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; align-self: flex-start; }
.budget-tab.active { background: linear-gradient(140deg, #5c3d27, #3d2718); border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.budget-tab.active .ic { background: var(--gold); color: #fff; }
.budget-tab.active small, .budget-tab.active .cnt { color: rgba(233, 221, 204, .75); }
.budget-tab.active strong { color: #fff; }
.budget-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; width: 18px; height: 18px; margin-left: -9px;
  background: #47301f; transform: rotate(45deg); border-radius: 3px;
}

.budget-panel { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: stretch; }
.budget-info {
  position: relative; overflow: hidden; border-radius: 20px; padding: 34px 30px; color: var(--beige);
  display: flex; flex-direction: column;
  background: repeating-linear-gradient(98deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 9px), linear-gradient(160deg, #5c3d27 0%, #3d2718 100%);
}
.budget-info::before {
  content: ""; position: absolute; width: 240px; height: 240px; right: -90px; bottom: -90px; border-radius: 50%;
  border: 30px solid rgba(181, 138, 80, .12);
}
.budget-info .eyebrow { color: var(--gold); }
.budget-info h3 { color: #fff; font-size: 32px; margin: 6px 0 10px; }
.budget-info p { font-size: 14px; color: rgba(233, 221, 204, .8); margin-bottom: 22px; }
.budget-info .facts { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.budget-info .facts li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.budget-info .facts i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--gold); font-size: 13px; flex: none; }
.budget-info .facts strong { color: #fff; font-weight: 600; }
.budget-info .btn-gold { margin-top: auto; align-self: flex-start; position: relative; }
.budget-info.swap > * { animation: budgetIn .55s var(--ease) both; }
.budget-info.swap > *:nth-child(2) { animation-delay: .05s; }
.budget-info.swap > *:nth-child(3) { animation-delay: .1s; }
.budget-info.swap > *:nth-child(4) { animation-delay: .15s; }
@keyframes budgetIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.budget-products { position: relative; min-width: 0; }
.budget-products .swiper { padding: 4px 4px 8px; margin: -4px; }
.budget-products .swiper-slide { height: auto; }
.budget-products.swap .swiper-slide { animation: budgetIn .5s var(--ease) both; }
.budget-products.swap .swiper-slide:nth-child(2) { animation-delay: .06s; }
.budget-products.swap .swiper-slide:nth-child(3) { animation-delay: .12s; }
.budget-products.swap .swiper-slide:nth-child(4) { animation-delay: .18s; }
.budget-nav { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.budget-empty { height: 100%; min-height: 300px; border: 1px dashed var(--line); border-radius: 18px; display: grid; place-items: center; text-align: center; color: var(--muted); background: #fff; padding: 30px; }
.budget-empty i { font-size: 30px; color: var(--gold); margin-bottom: 10px; }

@media (max-width: 991px) {
  .budget-tabs { grid-template-columns: repeat(2, 1fr); }
  .budget-tab.active::after { display: none; }
  .budget-panel { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .budget-tabs { gap: 10px; }
  .budget-tab { padding: 14px; gap: 10px; flex-wrap: wrap; }
  .budget-tab .ic { width: 38px; height: 38px; border-radius: 10px; font-size: 15px; }
  .budget-tab strong { font-size: 24px; }
  .budget-tab .cnt { margin-left: 0; width: 100%; order: 3; }
}

/* ---------- Gifts for every occasion ---------- */
.occasion-card { position: relative; display: block; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--beige); isolation: isolate; }
.occasion-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); z-index: -2; }
.occasion-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(46, 30, 19, 0) 35%, rgba(46, 30, 19, .88) 100%); transition: background .5s; }
.occasion-card:hover img { transform: scale(1.08); }
.occasion-card:hover::after { background: linear-gradient(180deg, rgba(46, 30, 19, .15) 10%, rgba(46, 30, 19, .92) 100%); }
.occasion-card .tag {
  position: absolute; top: 18px; left: 18px; background: rgba(255, 255, 255, .92); color: var(--brown);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; padding: 6px 12px; border-radius: 30px;
}
.occasion-card .body { position: absolute; inset: auto 0 0 0; padding: 26px 24px; color: var(--beige); }
.occasion-card h3 { color: #fff; font-size: 30px; margin-bottom: 6px; }
.occasion-card p { font-size: 13.5px; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: all .5s var(--ease); }
.occasion-card:hover p { max-height: 60px; opacity: 1; margin-bottom: 12px; }
.occasion-card .link-arrow { color: var(--gold); }
@media (hover: none) { .occasion-card p { max-height: none; opacity: 1; margin-bottom: 10px; } }

/* ---------- Gift wrap banner ---------- */
.giftwrap {
  margin-top: 34px; border-radius: 18px; padding: 26px 32px; display: flex; flex-wrap: wrap; gap: 18px 30px; align-items: center; justify-content: space-between;
  background: repeating-linear-gradient(45deg, rgba(181, 138, 80, .07) 0 12px, transparent 12px 24px), var(--cream); border: 1px dashed var(--gold);
}
.giftwrap .l { display: flex; align-items: center; gap: 18px; }
.giftwrap .l i { font-size: 30px; color: var(--gold); }
.giftwrap h5 { margin: 0; font-size: 24px; }
.giftwrap p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Small polish on existing home sections ---------- */
.stat strong { font-variant-numeric: tabular-nums; }
.craft-section .craft-item { transition: transform .4s var(--ease); }
.craft-section .craft-item:hover { transform: translateY(-4px); }
.insta-item { position: relative; overflow: hidden; display: block; }
.insta-item img { transition: transform .9s var(--ease); }
.insta-item::after {
  content: "\f16d"; font-family: "Font Awesome 6 Brands"; font-weight: 400; position: absolute; inset: 0;
  display: grid; place-items: center; font-size: 30px; color: #fff; background: rgba(81, 53, 34, .55); opacity: 0; transition: opacity .4s;
}
.insta-item:hover::after { opacity: 1; }
.insta-item:hover img { transform: scale(1.1); }

/* ==========================================================================
   Mobile & tablet
   ========================================================================== */
@media (max-width: 991px) {
  .showcase-stage { height: 420px; }
  .deal-section .section-head p { max-width: none; }
}

@media (max-width: 767px) {
  /* Deal of the week: shorter image, tighter copy, side deals scroll sideways */
  .deal-media { min-height: 250px; }
  .deal-ribbon { top: 14px; left: 14px; font-size: 12px; padding: 6px 12px; }
  .deal-body { padding: 24px 20px 26px; }
  .deal-body h3 { font-size: 28px; }
  .deal-price { gap: 10px; margin-bottom: 18px; }
  .deal-price .now { font-size: 34px; }
  .deal-price del { font-size: 15px; }
  .deal-section .countdown { gap: 8px; margin-bottom: 18px; }
  .deal-section .countdown div { min-width: 0; flex: 1; padding: 8px 4px; }
  .deal-section .countdown strong { font-size: 24px; }
  .deal-actions > * { flex: 1 1 0; justify-content: center; text-align: center; white-space: nowrap; letter-spacing: .08em; padding-left: 10px; padding-right: 10px; gap: 6px; }
  .deal-mini {
    flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -12px; padding: 0 12px 6px; scrollbar-width: none;
  }
  .deal-mini::-webkit-scrollbar { display: none; }
  .deal-mini a { flex: 0 0 82%; scroll-snap-align: start; padding: 12px; }
  .deal-mini a:hover { transform: none; }
  .deal-mini img { width: 72px; height: 72px; }
  .deal-mini h6 { font-size: 17px; }

  /* Shop by budget: compact summary, facts as chips */
  .budget-info { padding: 24px 22px; }
  .budget-info h3 { font-size: 26px; margin-bottom: 6px; }
  .budget-info p { margin-bottom: 16px; }
  .budget-info .facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
  .budget-info .facts li { font-size: 12.5px; gap: 6px; background: rgba(255, 255, 255, .07); border-radius: 30px; padding: 5px 12px 5px 5px; }
  .budget-info .facts i { width: 24px; height: 24px; font-size: 11px; }
  .budget-info .btn-gold { align-self: stretch; justify-content: center; }
  .budget-info::before { width: 160px; height: 160px; border-width: 22px; right: -60px; bottom: -60px; }
  .budget-panel { gap: 20px; }
  .budget-nav { margin-top: 14px; }

  /* Occasion cards in a 2-up grid */
  .occasion-card { border-radius: 16px; }
  .occasion-card .tag { top: 10px; left: 10px; font-size: 9.5px; padding: 4px 9px; letter-spacing: .12em; }
  .occasion-card .body { padding: 14px 14px 16px; }
  .occasion-card h3 { font-size: 21px; line-height: 1.1; margin-bottom: 6px; }
  .occasion-card p { display: none; }
  .occasion-card .link-arrow { font-size: 11px; }

  .giftwrap { padding: 20px; margin-top: 22px; }
  .giftwrap .l { align-items: flex-start; gap: 14px; }
  .giftwrap .l i { font-size: 24px; margin-top: 4px; }
  .giftwrap h5 { font-size: 20px; margin-bottom: 4px; }
  .giftwrap .btn-wood { width: 100%; justify-content: center; }

  /* Craft stats: keep labels on one line */
  .craft-section .stat strong { font-size: 40px; }
  .craft-section .stat span { font-size: 10.5px; letter-spacing: .08em; }

  .showcase-stage { height: 340px; }
}

@media (max-width: 375px) {
  .budget-tab strong { font-size: 21px; }
  .occasion-card h3 { font-size: 18px; }
  .deal-body h3 { font-size: 25px; }
}

/* Tablet: occasion cards sit 4-up, so keep their text small */
@media (min-width: 768px) and (max-width: 991px) {
  .occasion-card .tag { top: 12px; left: 12px; font-size: 9.5px; padding: 4px 9px; }
  .occasion-card .body { padding: 16px; }
  .occasion-card h3 { font-size: 21px; }
  .occasion-card p { display: none; }
  .occasion-card .link-arrow { font-size: 11px; }
}

/* Follow Our Workshop: product photo slider */
.workshop-slider { position: relative; padding: 0 10px; }
.workshop-slider .insta-item { aspect-ratio: 1; border-radius: 14px; }
.workshop-slider .insta-item img { width: 100%; height: 100%; object-fit: cover; }
.workshop-slider .insta-item::after { content: "\f06e"; font-family: "Font Awesome 6 Free"; font-weight: 900; } /* eye icon: tiles open the product */
.workshop-slider .ws-name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px 14px 12px;
  color: #fff; font-size: 13.5px; line-height: 1.3; background: linear-gradient(0deg, rgba(46, 30, 19, .82), transparent);
  opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); pointer-events: none;
}
.workshop-slider .insta-item:hover .ws-name { opacity: 1; transform: none; }
.workshop-slider .slider-arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); background: #fff; box-shadow: 0 6px 18px rgba(46, 30, 19, .18); }
.workshop-slider .ws-prev { left: 22px; }
.workshop-slider .ws-next { right: 22px; }
@media (max-width: 767px) { .workshop-slider .slider-arrow { display: none; } .workshop-slider .ws-name { opacity: 1; transform: none; font-size: 12px; } }

/* Festive Sale banner (banner_1): mirrored so the elephants sit on the right, clear of the text */
.promo-bg-flip { transform: scaleX(-1); background-position: center; }

/* ==========================================================================
   Shop by Budget — photo tabs, product thumbs, photo summary panel
   ========================================================================== */
.budget-section { position: relative; overflow: hidden; isolation: isolate; }
.budget-section::before { /* faint wood grain + big rupee mark */
  content: "₹"; position: absolute; z-index: -1; right: -2%; top: -60px; font-family: var(--font-display);
  font-size: 420px; line-height: 1; color: rgba(121, 84, 56, .06); pointer-events: none;
}
.budget-section::after {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: repeating-linear-gradient(100deg, rgba(121, 84, 56, .035) 0 2px, transparent 2px 14px);
}

/* tabs become photo cards */
.budget-tabs { gap: 18px; margin-bottom: 30px; }
.budget-tab {
  overflow: hidden; isolation: isolate; min-height: 148px; padding: 20px; border: 0;
  flex-wrap: wrap; align-content: space-between; color: #fff;
  box-shadow: 0 10px 26px rgba(46, 30, 19, .14);
}
.budget-tab .bg { position: absolute; inset: 0; z-index: -2; background: var(--tab-bg) center / cover no-repeat; transition: transform 1.2s var(--ease); }
.budget-tab::before { /* readability overlay */
  content: ""; position: absolute; inset: 0; z-index: -1; transition: background .4s var(--ease);
  background: linear-gradient(160deg, rgba(46, 30, 19, .45) 0%, rgba(46, 30, 19, .82) 100%);
}
.budget-tab:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(46, 30, 19, .24); }
.budget-tab:hover .bg { transform: scale(1.08); }
.budget-tab .ic { width: 42px; height: 42px; border-radius: 12px; font-size: 16px; color: #fff; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.budget-tab small { color: rgba(255, 255, 255, .78); }
.budget-tab strong { color: #fff; font-size: 34px; text-shadow: 0 4px 18px rgba(0, 0, 0, .3); }
.budget-tab .cnt {
  margin-left: auto; align-self: flex-start; padding: 4px 10px; border-radius: 30px; font-size: 11.5px; letter-spacing: .04em;
  color: #fff; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
}
.budget-tab .thumbs { display: flex; align-items: center; width: 100%; order: 5; margin-top: 14px; }
.budget-tab .thumbs img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #fff;
  border: 2px solid #fff; margin-right: -9px; box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}
.budget-tab .thumbs em { margin-left: 16px; font-style: normal; font-size: 12px; color: rgba(255, 255, 255, .85); }

.budget-tab.active { background: none; transform: translateY(-6px); box-shadow: 0 0 0 3px var(--gold), 0 20px 44px rgba(46, 30, 19, .3); }
.budget-tab.active::before { background: linear-gradient(160deg, rgba(92, 61, 39, .35) 0%, rgba(46, 30, 19, .78) 100%); }
.budget-tab.active .ic { background: var(--gold); }
.budget-tab.active .cnt { background: var(--gold); color: #fff; }
.budget-tab.active::after { background: var(--gold); bottom: -11px; }
.budget-tab.active small { color: rgba(255, 255, 255, .85); }

/* summary panel: the selected range's photo behind a deep wood gradient */
.budget-info {
  background:
    linear-gradient(165deg, rgba(61, 39, 24, .78) 0%, rgba(46, 30, 19, .94) 70%),
    var(--info-bg, none) center / cover no-repeat, #3d2718;
  box-shadow: 0 18px 40px rgba(46, 30, 19, .22);
}
.budget-info .from {
  display: flex; align-items: baseline; gap: 10px; margin: 2px 0 14px; padding: 10px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); align-self: flex-start;
}
.budget-info .from small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(233, 221, 204, .75); }
.budget-info .from strong { font-family: var(--font-display); font-size: 30px; color: var(--gold); line-height: 1; }

@media (max-width: 575px) {
  .budget-tab { min-height: 128px; padding: 14px; }
  .budget-tab strong { font-size: 25px; }
  .budget-tab .cnt { margin-left: 0; order: 4; }
  .budget-tab .thumbs { margin-top: 8px; }
  .budget-tab .thumbs img { width: 26px; height: 26px; margin-right: -7px; }
  .budget-section::before { font-size: 260px; }
}
