/* ==========================================================================
   Himidiriya by Ru (හිමිදිරිය) — Boutique Nightwear & Accessories
   Kelly Felder-inspired clean editorial e-commerce stylesheet
   ========================================================================== */

@font-face {
  font-family: 'Aragalaya';
  src: url('../fonts/Aragalaya.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-page: #ffffff;
  --bg-soft: #f7f4ef;
  --bg-card: #f3f0eb;
  --bg-dark: #141312;
  --text-main: #161412;
  --text-muted: #6c655e;
  --text-light: #ffffff;
  --accent-gold: #a6825b;
  --border-subtle: #e9e4dc;
  --radius-none: 0px;
  --radius-sm: 2px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sinhala: 'Aragalaya', 'Abhaya Libre', serif;
  --font-sinhala-unicode: 'Abhaya Libre', serif;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --------------------------------------------------------------------------
   Announcement Bar
   -------------------------------------------------------------------------- */
.announcement-bar {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 0;
  text-align: center;
}

.announcement-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.dot-sep {
  opacity: 0.45;
}

/* --------------------------------------------------------------------------
   Sticky Header & Sinhala Logo
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 104px;
  gap: 16px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-main);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--text-main);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Centered Sinhala Brand Logo: හිමිදිරිය BY RU with Botanical Sun Halo */
.brand-logo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  text-align: center;
  padding: 2px 8px;
}

.sun-halo-svg {
  width: 214px;
  height: auto;
  display: block;
  margin-bottom: -30px;
  pointer-events: none;
}

.logo-sinhala {
  position: relative;
  z-index: 2;
  font-family: var(--font-sinhala);
  font-size: 21.5px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  padding: 12px 6px 10px;
  margin: -12px -6px -10px;
  background: linear-gradient(135deg, #6e4e26 0%, #9e7742 45%, #5c3f1c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #7c592d;
  white-space: nowrap;
}

.logo-kern {
  display: inline-block;
  width: 2.2px;
}

.logo-sub {
  position: relative;
  z-index: 2;
  font-family: var(--font-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.42em;
  color: #8e6837;
  margin-top: 9px;
  padding-left: 0.42em;
}

.logo-divider {
  width: 68px;
  height: 7px;
  margin-top: 2px;
  display: block;
}

.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}

.footer-sun-svg {
  width: 266px;
  margin-bottom: -38px;
}

.footer-sinhala {
  font-size: 26.5px;
  background: linear-gradient(135deg, #f0d9ac 0%, #c8a26a 50%, #f5e2bc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #e6c896;
}

.footer-sub {
  color: #dfbe82;
  font-size: 11.5px;
  margin-top: 11px;
}

.footer-divider {
  width: 82px;
  height: 8px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 4px;
  transition: opacity var(--transition);
}

.icon-btn:hover {
  opacity: 0.65;
}

.wishlist-btn .badge-count {
  position: absolute;
  top: -3px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  padding: 6px 2px;
  transition: opacity var(--transition);
}

.cart-trigger:hover {
  opacity: 0.65;
}

.mobile-menu-btn {
  display: none;
  justify-self: start;
}

/* Search Drawer */
.search-drawer {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-page);
  padding: 14px 0;
}

.search-drawer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-drawer input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-main);
  background: transparent;
}

.btn-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}

/* Mobile Nav */
.mobile-nav {
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-page);
  padding: 16px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: var(--radius-none);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--text-light);
  color: var(--text-main);
  border: 1px solid var(--text-light);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-light);
}

.btn-outline-light {
  background-color: transparent;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
  background-color: var(--text-light);
  color: var(--text-main);
}

.btn-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border: 1px solid var(--bg-dark);
}

.btn-dark:hover {
  background-color: #2f2c29;
  border-color: #2f2c29;
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Hero Banner
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 540px;
  max-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: #26221e;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 17, 14, 0.66) 0%,
    rgba(20, 17, 14, 0.36) 48%,
    rgba(20, 17, 14, 0.08) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 600px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  max-width: 470px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section {
  padding: 76px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.section-header-stacked {
  align-items: flex-end;
  flex-wrap: wrap;
}

.section-kicker {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-main);
}

.link-underline {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text-main);
  padding-bottom: 4px;
  transition: opacity var(--transition);
}

.link-underline:hover {
  opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Category Grid (4 Columns — Kelly Felder lookbook style)
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-card {
  display: block;
}

.category-img-wrap {
  aspect-ratio: 3 / 4;
  background-color: var(--bg-card);
  overflow: hidden;
  margin-bottom: 14px;
}

.category-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.category-card:hover .category-img-wrap img {
  transform: scale(1.05);
}

.category-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.category-meta h3 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.category-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Collection Filter Tabs & Product Cards
   -------------------------------------------------------------------------- */
.collection-section {
  padding-top: 24px;
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tab {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition);
}

.filter-tab:hover {
  border-color: var(--text-main);
  color: var(--text-main);
}

.filter-tab.active {
  background-color: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-light);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
}

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: var(--bg-card);
  overflow: hidden;
  margin-bottom: 14px;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: rgba(255, 255, 255, 0.94);
  color: var(--text-main);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 9px;
}

.product-wish-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
}

.product-wish-btn:hover {
  transform: scale(1.08);
  background: #ffffff;
}

.product-wish-btn.active svg {
  fill: var(--text-main);
}

/* Hover Quick-Add Bar */
.product-quick-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.product-card:hover .product-quick-bar,
.product-card:focus-within .product-quick-bar {
  opacity: 1;
  transform: translateY(0);
}

.quick-add-btn {
  flex: 1;
  background: rgba(20, 19, 18, 0.92);
  color: var(--text-light);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 11px 10px;
  transition: background var(--transition);
}

.quick-add-btn:hover {
  background: var(--bg-dark);
}

.quick-view-btn {
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 11px 12px;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.product-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-fabric {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.product-title {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-main);
}

.product-price {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.empty-state {
  text-align: center;
  padding: 48px 20px;
  background-color: var(--bg-soft);
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 18px;
}

/* --------------------------------------------------------------------------
   Split Editorial Section
   -------------------------------------------------------------------------- */
.editorial-section {
  background-color: var(--bg-soft);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  max-width: 1440px;
  margin: 0 auto;
}

.editorial-image {
  min-height: 460px;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-copy {
  padding: 64px 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.sinhala-tag {
  font-family: var(--font-sinhala-unicode);
  font-size: 15px;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.editorial-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.2vw, 44px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 18px;
}

.editorial-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 500px;
}

.editorial-highlights {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-main);
}

.editorial-highlights li::before {
  content: '— ';
  color: var(--accent-gold);
}

/* --------------------------------------------------------------------------
   Trust Strip & Newsletter
   -------------------------------------------------------------------------- */
.trust-strip {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.trust-icon {
  color: var(--accent-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.trust-item h4 {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 3px;
}

.trust-item p {
  font-size: 12.5px;
  color: var(--text-muted);
}

.newsletter-section {
  padding: 64px 0;
  background-color: var(--bg-page);
}

.newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
}

.newsletter-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 2.8vw, 36px);
  font-weight: 500;
  margin-bottom: 6px;
}

.newsletter-copy p {
  font-size: 14px;
  color: var(--text-muted);
}

.newsletter-form {
  display: flex;
  width: 100%;
  max-width: 460px;
}

.newsletter-form input {
  flex: 1;
  border: 1px solid var(--border-subtle);
  border-right: none;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.newsletter-form input:focus {
  border-color: var(--text-main);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-dark);
  color: rgba(255, 255, 255, 0.86);
  padding: 68px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-desc {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 300px;
  margin-bottom: 20px;
}

.social-links {
  display: flex;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.social-links a:hover {
  color: var(--accent-gold);
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.68);
}

.footer-col a:hover {
  color: var(--text-light);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

.payment-badges {
  display: flex;
  gap: 10px;
}

.payment-badges span {
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   Slide-Over Cart Drawer & Quick View Modal
   -------------------------------------------------------------------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 12, 0.45);
  z-index: 90;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 410px;
  height: 100%;
  background: var(--bg-page);
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: -12px 0 36px rgba(0, 0, 0, 0.12);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-drawer-header h3 {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.cart-shipping-note {
  background: var(--bg-soft);
  padding: 10px 24px;
  font-size: 12px;
  text-align: center;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-subtle);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cart-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 48px 16px;
  font-size: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-item img {
  width: 76px;
  height: 98px;
  object-fit: cover;
  background: var(--bg-card);
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 500;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

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

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-subtle);
}

.qty-control button {
  width: 26px;
  height: 26px;
  font-size: 14px;
}

.qty-control span {
  padding: 0 8px;
  font-size: 12.5px;
}

.remove-link {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: underline;
}

.cart-drawer-footer {
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
}

.cart-tax-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(16, 14, 12, 0.55);
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 780px;
  background: var(--bg-page);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 14px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.modal-media {
  aspect-ratio: 3 / 4;
  background: var(--bg-card);
}

.modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-body h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 8px;
}

.modal-price {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.modal-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.size-pill {
  border: 1px solid var(--border-subtle);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 500;
}

.size-pill.active {
  background: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 12px 22px;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  z-index: 120;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .category-grid,
  .product-grid,
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-grid {
    grid-template-columns: 1fr;
  }

  .editorial-image {
    min-height: auto;
    aspect-ratio: 4 / 3;
  }

  .editorial-copy {
    padding: 44px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-media img {
    object-position: 78% 18%;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .announcement-bar {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    padding: 8px 0;
  }

  .announcement-inner span:not(:first-child) {
    display: none;
  }

  .header-inner {
    height: 88px;
    grid-template-columns: auto 1fr auto;
    gap: 6px;
  }

  .header-actions {
    gap: 6px;
  }

  .brand-logo {
    padding: 0 2px;
  }

  .sun-halo-svg {
    width: 170px;
    margin-bottom: -24px;
  }

  .logo-sinhala {
    font-size: 17px;
  }

  .logo-sub {
    font-size: 8.5px;
    margin-top: 7px;
  }

  .logo-divider {
    width: 54px;
  }

  .cart-label {
    display: none;
  }

  .hero-section {
    height: 68svh;
    min-height: 460px;
    max-height: 580px;
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(20, 17, 14, 0.1) 0%,
      rgba(20, 17, 14, 0.45) 55%,
      rgba(20, 17, 14, 0.82) 100%
    );
  }

  .hero-content {
    align-self: flex-end;
    padding-bottom: 30px;
  }

  .hero-eyebrow {
    font-size: 10px;
    margin-bottom: 8px;
  }

  .hero-title {
    font-size: 38px;
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .hero-cta-group {
    gap: 10px;
  }

  .hero-cta-group .btn {
    padding: 12px 18px;
    font-size: 10.5px;
    letter-spacing: 0.12em;
  }

  .section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 24px;
    gap: 16px;
  }

  .category-grid {
    gap: 16px 12px;
  }

  .category-meta {
    flex-direction: column;
    gap: 2px;
  }

  .category-meta h3 {
    font-size: 14px;
  }

  .filter-tabs {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .section-header > * {
    min-width: 0;
    max-width: 100%;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 10.5px;
  }

  .product-grid {
    gap: 22px 12px;
  }

  .product-badge {
    top: 8px;
    left: 8px;
    font-size: 9px;
    padding: 4px 7px;
  }

  .product-wish-btn {
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
  }

  .product-quick-bar {
    opacity: 1;
    transform: none;
    left: 6px;
    right: 6px;
    bottom: 6px;
  }

  .quick-add-btn {
    padding: 8px 6px;
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }

  .quick-view-btn {
    display: none;
  }

  .product-top-row {
    gap: 4px;
  }

  .product-fabric {
    font-size: 9.5px;
  }

  .product-title {
    font-size: 13.5px;
    line-height: 1.35;
  }

  .editorial-copy {
    padding: 36px 20px;
  }

  .trust-grid {
    gap: 20px 14px;
  }

  .newsletter-section {
    padding: 48px 0;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 10px;
  }

  .newsletter-form input {
    border-right: 1px solid var(--border-subtle);
  }

  .modal-card {
    max-height: 90vh;
    overflow-y: auto;
  }

  .modal-grid {
    grid-template-columns: 1fr;
  }

  .modal-media {
    aspect-ratio: 4 / 3;
  }

  .modal-body {
    padding: 24px 20px;
  }

  .toast {
    width: calc(100% - 32px);
    max-width: 360px;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
