/* ══════════════════════════════════════════════════════════════════
   TEJASVIN — RESPONSIVE.CSS  v27.07-stable
   Mobile-first glass UI • Animations • Premium Mobile Experience
   ══════════════════════════════════════════════════════════════════ */

/* ─── Scroll Progress Bar (Desktop) ────────────────────────────── */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, rgb(201,162,77), rgba(245,215,120,1), rgb(201,162,77));
  z-index: 9999;
  transition: width 0.1s linear;
  box-shadow: 0 0 8px rgba(201,162,77,0.7);
  pointer-events: none;
}

/* ─── Back To Top Button ────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 2rem;
  width: 4.8rem;
  height: 4.8rem;
  background: rgba(201,162,77,0.15);
  border: 1.5px solid rgba(201,162,77,0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(201,162,77);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
  z-index: 500;
  text-decoration: none;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#back-to-top:hover {
  background: rgba(201,162,77,0.3);
  box-shadow: 0 0 20px rgba(201,162,77,0.4);
  transform: translateY(-3px);
}

/* ─── Scroll-Trigger Animations (Desktop + Mobile) ─────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.55s cubic-bezier(0.4,0,0.2,1), transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delay for grid children */
.reveal-grid > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-grid > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-grid > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-grid > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-grid > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-grid > *:nth-child(6) { transition-delay: 0.3s; }
.reveal-grid > *:nth-child(7) { transition-delay: 0.35s; }
.reveal-grid > *:nth-child(8) { transition-delay: 0.4s; }

/* ─── Update Notification Banner ────────────────────────────────── */
#update-notification {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(8,8,8,0.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  animation: fadeInNotif 0.5s ease both;
}

@keyframes fadeInNotif {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.update-notif__card {
  background: linear-gradient(135deg, rgba(25,22,15,0.96) 0%, rgba(14,14,12,0.98) 100%);
  border: 1px solid rgba(201,162,77,0.35);
  border-radius: 20px;
  padding: 3.2rem 2.8rem;
  max-width: 44rem;
  width: 100%;
  text-align: center;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(201,162,77,0.08),
    inset 0 1px 0 rgba(255,255,255,0.06);
  animation: slideUpCard 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
  animation-delay: 0.1s;
  position: relative;
  overflow: hidden;
}

.update-notif__card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(201,162,77,0.12) 0%, transparent 70%);
  pointer-events: none;
}

@keyframes slideUpCard {
  from { opacity: 0; transform: translateY(40px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.update-notif__icon {
  font-size: 3.6rem;
  margin-bottom: 1.2rem;
  display: block;
  filter: drop-shadow(0 4px 16px rgba(201,162,77,0.5));
}

.update-notif__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: rgb(201,162,77);
  margin-bottom: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: center;
}

.update-notif__body {
  font-family: 'Inter', sans-serif;
  font-size: 1.45rem;
  color: rgba(245,239,230,0.75);
  line-height: 1.7;
  margin-bottom: 2.4rem;
  text-align: center;
}

.update-notif__features {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2.4rem;
  text-align: left;
}

.update-notif__feature {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  color: rgba(245,239,230,0.8);
  font-family: 'Inter', sans-serif;
}

.update-notif__feature-icon {
  color: rgb(201,162,77);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.update-notif__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,162,77,0.12);
  border: 1px solid rgba(201,162,77,0.3);
  border-radius: 20px;
  padding: 0.4rem 1.2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(201,162,77);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif;
}

.update-notif__dismiss {
  width: 100%;
  padding: 1.4rem;
  background: rgb(201,162,77);
  color: #080808;
  border: none;
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.update-notif__dismiss:hover,
.update-notif__dismiss:active {
  background: rgba(245,215,120,1);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201,162,77,0.35);
}

/* ─── VERSION LINK IN FOOTER ────────────────────────────────────── */
.version-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.1rem;
  color: rgba(245,239,230,0.3);
  transition: color 0.2s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-weight: 500;
}

.version-link:hover {
  color: rgb(201,162,77);
  text-decoration: none;
}

.version-link__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(201,162,77);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.version-link:hover .version-link__dot {
  opacity: 1;
  box-shadow: 0 0 6px rgba(201,162,77,0.7);
}

/* ─── DESKTOP ENHANCEMENTS ──────────────────────────────────────── */

/* Enhanced card hover (desktop) */
@media (min-width: 750px) {
  .card-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(201,162,77,0.06) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
  }

  .card-wrapper:hover::before {
    opacity: 1;
  }

  /* Parallax hint on hero */
  .banner__media img {
    will-change: transform;
    transition: transform 12s ease;
  }

  .banner:hover .banner__media img {
    transform: scale(1.06) translateY(-1%);
  }

  /* Section headers animated underline */
  .section-header {
    position: relative;
  }

  /* Card quick-add button (desktop visible on hover) */
  .card-quick-add {
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .card-wrapper:hover .card-quick-add {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE LAYOUT  (max-width: 749px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 749px) {

  /* ── Base ─────────────────────────────────────────────────────── */
  .page-width {
    padding: 0 1.4rem;
    text-align: left;
  }

  h1, h2, h3, h4, h5, h6, p {
    text-align: left;
  }

  /* ── Fix vertical layout for body grid ───────────────────────── */
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ── HEADER ──────────────────────────────────────────────────── */
  .header-wrapper {
    background: rgba(8,8,8,0.88);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(201,162,77,0.18);
  }

  .header {
    height: 6rem;
    grid-template-columns: 5.2rem 1fr 9.6rem;
    grid-template-areas: "left-icons heading icons";
    gap: 0;
    padding: 0 1.2rem;
  }

  /* Replace logo image with text branding on mobile */
  .header__heading-logo-wrapper {
    display: none;
  }

  .header__heading-link::after {
    content: 'TEJASVIN';
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.0rem;
    font-weight: 700;
    color: rgb(201,162,77);
    letter-spacing: 0.10em;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(201,162,77,0.35);
  }

  .header__heading {
    justify-self: center;
    text-align: center;
  }

  .header__icons {
    gap: 0.2rem;
    min-width: auto;
    justify-content: flex-end;
  }

  .header__icon {
    width: 4rem;
    height: 4rem;
  }

  .header__icon svg { width: 1.9rem; height: 1.9rem; }

  /* ── TRUST BAR — hidden on mobile ───────────────────────────── */
  .trust-bar { display: none; }

  /* ── HERO BANNER ─────────────────────────────────────────────── */
  .banner--adapt .banner__media::before {
    padding-bottom: 52%;
  }

  .banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 20rem;
    overflow: hidden;
  }

  .banner__media {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    overflow: hidden;
  }

  .banner__media::before {
    padding-bottom: 100% !important;
  }

  .banner__media::after {
    background: linear-gradient(
      to left,
      transparent 0%,
      rgba(8,8,8,0.6) 70%,
      rgba(8,8,8,0.95) 100%
    ) !important;
  }

  .banner__content {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem 1.4rem 2rem 1.6rem;
    background: linear-gradient(135deg, #0a0a08 0%, #111109 100%);
    border-right: 1px solid rgba(201,162,77,0.15);
    z-index: 2;
  }

  .banner__box { max-width: 100%; }

  .banner__heading {
    font-size: 2.4rem !important;
    margin-bottom: 0.8rem;
    text-align: left;
    line-height: 1.1;
  }

  .banner__text {
    font-size: 1.25rem !important;
    margin-bottom: 1.6rem;
    text-align: left;
    color: rgba(245,239,230,0.6);
    line-height: 1.5;
  }

  .banner__buttons {
    flex-direction: column;
    gap: 0.8rem;
  }

  .banner__buttons .button {
    width: 100%;
    padding: 1.1rem 1.4rem;
    font-size: 1.1rem;
    border-radius: 8px;
    justify-content: center;
  }

  /* ── CATALOG HERO BAND ───────────────────────────────────────── */
  .catalog-mobile-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgb(201,162,77) 0%, rgba(195,148,52,1) 50%, rgb(201,162,77) 100%);
    padding: 2rem 1.6rem;
    margin-bottom: 0;
    min-height: 13rem;
    overflow: hidden;
    position: relative;
  }

  .catalog-mobile-hero__text {
    flex: 1;
  }

  .catalog-mobile-hero__label {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(8,8,8,0.6);
    margin-bottom: 0.4rem;
  }

  .catalog-mobile-hero__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #080808;
    line-height: 1.05;
    letter-spacing: -0.01em;
    text-align: left;
  }

  .catalog-mobile-hero__img {
    width: 10rem;
    height: 10rem;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.85;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.3));
    margin-left: 1rem;
  }

  /* ── FILTER BAR — TWO GOLD BUTTONS ──────────────────────────── */
  .collection-filter-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.2rem 0;
    border-top: none;
    border-bottom: none;
    margin-bottom: 1.2rem;
    flex-wrap: unset;
  }

  /* Hide existing label/select elements in filter bar */
  .collection-filter-bar label,
  .collection-filter-bar select,
  .collection-filter-bar .product-count {
    display: none;
  }

  /* Filter & Sort By buttons */
  .mobile-filter-btn,
  .mobile-sort-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.3rem;
    background: rgb(201,162,77);
    color: #080808;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .mobile-filter-btn:active,
  .mobile-sort-btn:active {
    transform: scale(0.97);
    opacity: 0.85;
  }

  /* ── PRODUCT GRID (MOBILE GLASS CARDS) ──────────────────────── */
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem !important;
  }

  /* Glass Card  */
  .card-wrapper {
    background: rgba(255,255,255,0.035);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(201,162,77,0.14);
    border-radius: 14px;
    box-shadow:
      0 4px 20px rgba(0,0,0,0.4),
      inset 0 1px 0 rgba(255,255,255,0.05);
    overflow: hidden;
    transform: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .card-wrapper:active {
    border-color: rgba(201,162,77,0.4);
    box-shadow: 0 2px 12px rgba(0,0,0,0.5);
    transform: scale(0.98) !important;
  }

  /* Square image */
  .card__inner.ratio::before {
    padding-bottom: 100% !important;
  }

  .card__inner {
    background: rgba(20,20,20,0.9);
    border-radius: 0;
  }

  /* Card info */
  .card--standard > .card__content {
    padding: 1rem 1rem 1.2rem;
    background: rgba(10,10,10,0.6);
  }

  .card__heading.h5 {
    font-size: 1.25rem;
    font-weight: 600;
    color: rgba(245,239,230,0.92);
    margin-bottom: 0.3rem;
    text-align: left;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .full-unstyled-link {
    text-align: left;
  }

  /* Price row with + button */
  .card-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.4rem;
  }

  .price-item--sale {
    font-size: 1.3rem !important;
    font-weight: 700;
    color: rgb(201,162,77) !important;
    text-align: left;
  }

  /* Quick-add "+" button */
  .card-quick-add {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(201,162,77,0.14);
    border: 1.5px solid rgba(201,162,77,0.4);
    color: rgb(201,162,77);
    font-size: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease;
    flex-shrink: 0;
    line-height: 1;
    padding-bottom: 1px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    z-index: 2;
    position: relative;
  }

  .card-quick-add:active {
    background: rgba(201,162,77,0.35);
    transform: scale(0.9);
  }

  /* ── COLLECTION TITLE ────────────────────────────────────────── */
  .collection-page-title {
    font-size: 2.6rem;
    text-align: left;
    margin-bottom: 1.2rem;
  }

  .section-header-page {
    margin-bottom: 1.2rem;
  }

  /* ── SECTIONS ────────────────────────────────────────────────── */
  .collection {
    padding: 2.4rem 0;
  }

  .section-header {
    margin-bottom: 1.8rem;
    padding-bottom: 1.2rem;
  }

  .section-title {
    font-size: 2.2rem;
    text-align: left;
  }

  /* ── FEATURED SECTION HEADING LEFT ALIGN ─────────────────────── */
  .section-header h2 {
    text-align: left;
  }

  /* ── BRAND STRIP / PHILOSOPHY ────────────────────────────────── */
  section[style*="padding:7rem"] {
    padding: 4rem 0 !important;
  }

  section[style*="padding:7rem"] h2 {
    font-size: 2.2rem !important;
    text-align: left;
    margin-bottom: 1.6rem !important;
  }

  section[style*="padding:7rem"] p {
    text-align: left;
    font-size: 1.45rem !important;
  }

  section[style*="padding:7rem"] .button {
    width: 100%;
    justify-content: center;
  }

  /* ── FOOTER ──────────────────────────────────────────────────── */
  .footer__blocks-wrapper {
    grid-template-columns: 1fr;
    gap: 2.4rem;
  }

  .footer-block__heading {
    text-align: left;
  }

  .footer__content-bottom-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .footer__copyright.caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  /* ── PRODUCT PAGE MOBILE ─────────────────────────────────────── */
  .product-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product__title {
    font-size: 2.4rem !important;
    text-align: left;
  }

  .product__price {
    justify-content: flex-start;
  }

  /* ── BACK TO TOP — mobile position ──────────────────────────── */
  #back-to-top {
    bottom: 2rem;
    right: 1.4rem;
    width: 4.2rem;
    height: 4.2rem;
    font-size: 1.6rem;
  }

  /* ── MOBILE MENU DRAWER GLASS ────────────────────────────────── */
  .menu-drawer {
    background: rgba(8,8,8,0.92);
    backdrop-filter: blur(32px) saturate(180%);
    -webkit-backdrop-filter: blur(32px) saturate(180%);
    border-right: 1px solid rgba(201,162,77,0.18);
  }

  .menu-drawer__menu-item {
    font-size: 1.5rem;
    padding: 1.4rem 1.6rem;
    border-radius: 10px;
    transition: all 0.2s ease;
  }

  .menu-drawer__menu-item:hover {
    background: rgba(201,162,77,0.08);
    color: rgb(201,162,77);
    padding-left: 2rem;
  }

  /* ── TOAST position on mobile ───────────────────────────────── */
  .toast {
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.8rem;
  }

  /* Update notification — mobile only show */
  #update-notification.desktop-hide {
    display: none;
  }
}

/* On desktop, hide the update notification */
@media (min-width: 750px) {
  #update-notification {
    display: flex; /* Show on desktop too, just once */
  }
}

/* ══════════════════════════════════════════════════════════════════
   v27.07-stable — MOBILE LAYOUT FIXES
   ══════════════════════════════════════════════════════════════════ */

/* ── Narrow phone fix (<= 380px) ────────────────────────────────── */
@media (max-width: 380px) {
  /* Stack banner fully on very narrow screens */
  .banner {
    display: flex !important;
    flex-direction: column !important;
    min-height: auto !important;
  }

  .banner__media {
    grid-column: unset !important;
    grid-row: unset !important;
    height: 18rem;
    flex-shrink: 0;
  }

  .banner__content {
    grid-column: unset !important;
    grid-row: unset !important;
    position: relative !important;
    padding: 2rem 1.4rem !important;
    min-height: 18rem;
  }

  /* Slightly smaller product card names */
  .card__heading.h5 {
    font-size: 1.1rem;
  }

  /* Catalog mobile hero on narrow phone */
  .catalog-mobile-hero__title {
    font-size: 2.4rem;
  }

  .catalog-mobile-hero__img {
    width: 7rem;
    height: 7rem;
  }

  /* Header: tighter on very narrow */
  .header {
    grid-template-columns: 4.4rem 1fr 8rem !important;
  }

  .header__heading-link::after {
    font-size: 1.6rem !important;
    letter-spacing: 0.06em !important;
  }
}

/* ── General mobile improvements ────────────────────────────────── */
@media (max-width: 749px) {
  /* Better touch targets for icons */
  .header__icon {
    min-width: 4rem;
    min-height: 4rem;
    touch-action: manipulation;
  }

  /* Prevent text overflow in product card title */
  .card__heading.h5 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
    display: block;
  }

  /* Product form columns — stack fully */
  .product-form__submit-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .product-form__cart-submit,
  .product-form__buy-it-now,
  .product-wishlist-btn {
    width: 100%;
    justify-content: center;
  }

  /* Fix related products section title overflow */
  .related-products__title {
    flex-wrap: wrap;
    font-size: 1.8rem;
  }

  /* Wishlist page hero on small phones */
  .wishlist-page-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 3rem 0 2rem;
  }

  /* AI chat panel — fully responsive */
  #aiChatPanel {
    border-radius: 16px 16px 0 0;
    bottom: 0 !important;
    right: 0 !important;
    width: 100% !important;
    border-left: none;
    border-right: none;
    border-bottom: none;
  }

  /* Fix footer policies list to wrap properly */
  .policies.list-unstyled {
    flex-direction: column;
    gap: 0.4rem;
  }
}

