/**
 * THRIFT STORE Stylesheet
 * Exact thrifttylor.com Aesthetic, Anton Display Typography & Clean Vintage Streetwear UI
 */

:root {
  /* Colors */
  --bg-main: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --bg-subtle: #f1ede8;
  --text-main: #000000;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border-color: #e5e5e5;
  --border-subtle: #f1ede8;
  
  /* Accents */
  --accent-sage: #c3cca6;
  --accent-sage-hover: #b8c396;
  --accent-black: #000000;
  --accent-sale: #fdc656;
  --accent-sold: #000000;
  --accent-success: #10b981;
  --accent-blue: #2563eb;

  /* Typography */
  --font-display: 'Anton', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Instrument Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 100px;

  --container-max: 1320px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ----------------- TOP ANNOUNCEMENT TICKER ----------------- */
.announcement-bar {
  background-color: #000000;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 110;
  border-bottom: 1px solid #222;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  white-space: nowrap;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  background-color: #666;
  border-radius: 50%;
  display: inline-block;
}

.highlight {
  color: #ffffff;
  font-weight: 700;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----------------- SITE HEADER ----------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Brand Logo (thrifttylor style typographic logo) */
.brand-logo-wrapper {
  display: flex;
  align-items: center;
}

.brand-logo-text {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo-text .brand-thrift {
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: inherit;
}

.brand-logo-text .brand-store {
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: inherit;
}

.brand-logo-text .sub-tag {
  font-size: inherit;
  font-family: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  display: inline;
  transform: none;
  margin-right: 0;
}

/* Nav Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 0;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: #000000;
}

.nav-link.active::after,
.nav-link:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #000000;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #000000;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  position: relative;
  transition: var(--transition);
}

.header-action-btn:hover {
  background-color: var(--bg-secondary);
}

.action-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #000000;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000000;
}

/* ----------------- HERO BANNER (THRIFT.TYLOR STYLE) ----------------- */
.tylor-hero {
  position: relative;
  width: 100%;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #ffffff;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: brightness(0.9);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: #ffffff;
  margin-bottom: 24px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-btn-frosted {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 12px 32px;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}

.hero-btn-frosted:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ----------------- SECTION HEADERS ----------------- */
.section {
  padding: 60px 0;
}

.section-title-anton {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #000000;
  margin-bottom: 24px;
}

/* Collection Pill Chips */
.collection-pills-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 32px;
  scrollbar-width: none;
}
.collection-pills-bar::-webkit-scrollbar {
  display: none;
}

.collection-pill {
  background-color: var(--bg-secondary);
  color: #111111;
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.collection-pill:hover,
.collection-pill.active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* ----------------- PRODUCTS GRID ----------------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  content-visibility: auto;
  contain-intrinsic-size: 0 420px;
  touch-action: manipulation;
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.15;
  background-color: #f3f3f3;
  background-image: linear-gradient(90deg, #f0f0f0 0px, #f8f8f8 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 12px;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  will-change: transform;
}

.product-image-container img[loading="lazy"] {
  opacity: 1;
}

.product-card:hover .product-image-container img {
  transform: scale(1.03);
}

/* Editorial Card Optimization */
.editorial-card {
  content-visibility: auto;
  contain-intrinsic-size: 0 320px;
  touch-action: manipulation;
}

/* Badges */
.card-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  z-index: 2;
}

.badge-sale {
  background-color: var(--accent-sale);
  color: #000000;
}

.badge-sold-out {
  background-color: #000000;
  color: #ffffff;
}

.card-wishlist-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
  z-index: 2;
}
.card-wishlist-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
}

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

.product-title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.product-price {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: #000000;
}

.product-compare-price {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.product-sold-text {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: #999999;
}

/* ----------------- EDITORIAL BANNERS ----------------- */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.editorial-card {
  position: relative;
  height: 340px;
  background-size: cover;
  background-position: center;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  color: #ffffff;
}

.editorial-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
  transition: var(--transition);
}
.editorial-card:hover .editorial-overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

.editorial-content {
  position: relative;
  z-index: 2;
}

.editorial-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 6px;
}

.editorial-subtitle {
  font-size: 0.85rem;
  color: #e5e5e5;
  margin-bottom: 12px;
}

.editorial-link {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ----------------- COMMUNITY NEWSLETTER SECTION ----------------- */
.community-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 80px 0;
  text-align: center;
}

.community-box {
  max-width: 580px;
  margin: 0 auto;
}

.community-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 400;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 12px;
  line-height: 1;
}

.community-subtext {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.community-input-group {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  border: 1px solid #000000;
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #ffffff;
}

.community-input {
  flex-grow: 1;
  border: none;
  padding: 14px 18px;
  font-size: 0.9rem;
  outline: none;
}

.community-btn {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 0 24px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.community-btn:hover {
  background: #333333;
}

/* ----------------- BUTTONS ----------------- */
.btn-primary {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  padding: 14px 28px;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  background-color: #222222;
  border-color: #222222;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  padding: 14px 28px;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover {
  background-color: var(--bg-secondary);
}

.btn-sage {
  background-color: var(--accent-sage);
  color: #000000;
  border: 1px solid var(--accent-sage);
  padding: 14px 28px;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
}
.btn-sage:hover {
  background-color: var(--accent-sage-hover);
}

/* ----------------- DETAIL MODAL ----------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.modal-backdrop.active {
  display: flex;
}

.product-modal-container {
  background: #ffffff;
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 960px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  padding: 36px;
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #f0f0f0;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 10;
  transition: var(--transition);
}
.modal-close-btn:hover {
  background: #000000;
  color: #ffffff;
}

.product-modal-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-main-image {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  background-color: #f7f7f7;
  border-radius: 2px;
  overflow: hidden;
}
.modal-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-thumbs {
  display: flex;
  gap: 10px;
}
.modal-thumb {
  width: 70px;
  height: 80px;
  border-radius: 2px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}
.modal-thumb.active,
.modal-thumb:hover {
  opacity: 1;
  border-color: #000000;
}
.modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-product-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: #000000;
}

.modal-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.modal-price {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 800;
  color: #000000;
}

.modal-original-price {
  font-size: 1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.measurements-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 16px;
}

.measurements-header {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.measurements-table {
  width: 100%;
  border-collapse: collapse;
}
.measurements-table td {
  padding: 6px 0;
  font-size: 0.82rem;
  border-bottom: 1px solid #eaeaea;
}
.measurements-table td:last-child {
  text-align: right;
  font-weight: 700;
}

.condition-box {
  background-color: #fafafa;
  border-left: 3px solid #000000;
  padding: 12px 16px;
  border-radius: 2px;
}

.policy-warning-banner {
  background-color: #fff9e6;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 0.78rem;
  display: flex;
  gap: 10px;
  align-items: center;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.btn-buy-now {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  padding: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: var(--transition);
}
.btn-buy-now:hover {
  background-color: #222222;
}

.btn-whatsapp-enquiry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25d366;
  color: #ffffff;
  padding: 12px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius-xs);
  transition: var(--transition);
}
.btn-whatsapp-enquiry:hover {
  background-color: #20ba59;
}

/* ----------------- CART DRAWER ----------------- */
.cart-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
}
.cart-drawer-backdrop.active {
  display: block;
}

.cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  animation: slideDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

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

.cart-drawer-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.free-ship-progress-bar {
  background: var(--bg-secondary);
  padding: 12px 20px;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--border-color);
}
.progress-track {
  height: 5px;
  background: #e5e5e5;
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #000000;
  transition: width 0.3s ease;
}

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

.cart-item {
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 14px;
}
.cart-item-img {
  width: 64px;
  height: 72px;
  object-fit: cover;
  border-radius: 2px;
}
.cart-item-details {
  flex-grow: 1;
}
.cart-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #000000;
}
.cart-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.cart-item-price {
  font-weight: 700;
  font-size: 0.9rem;
  margin-top: 4px;
}
.cart-item-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
}

.cart-drawer-footer {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-input-group {
  display: flex;
  gap: 8px;
}
.coupon-input {
  flex-grow: 1;
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  font-size: 0.8rem;
  outline: none;
  border-radius: 2px;
}
.btn-apply-coupon {
  background: #000000;
  color: #ffffff;
  border: none;
  padding: 0 16px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
}

.cart-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
}
.summary-row.total {
  font-weight: 800;
  font-size: 1.1rem;
  border-top: 1px solid #eee;
  padding-top: 8px;
  margin-top: 4px;
}

/* ----------------- CHECKOUT VIEW ----------------- */
.checkout-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  padding: 40px 0 80px;
}
.checkout-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 28px;
  margin-bottom: 24px;
}
.checkout-card-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-group.full {
  grid-column: 1 / -1;
}
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 2px;
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
}
.form-control:focus {
  border-color: #000000;
}

/* ----------------- FOOTER ----------------- */
.site-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 60px 0 24px;
  border-top: 1px solid #222;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

.footer-text {
  font-size: 0.85rem;
  color: #aaaaaa;
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links li a {
  font-size: 0.85rem;
  color: #aaaaaa;
  transition: var(--transition);
}
.footer-links li a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: #777777;
}

/* ----------------- INSTANT SEARCH MODAL ----------------- */
.search-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2500;
  display: none;
  overflow-y: auto;
  padding: 20px 16px;
  animation: fadeIn 0.2s ease;
}
.search-modal-backdrop.active {
  display: block;
}

.search-modal-container {
  background: #ffffff;
  max-width: 680px;
  width: 100%;
  margin: 30px auto auto;
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: modalScaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #ededed;
}

.search-input-box {
  display: flex;
  align-items: center;
  flex-grow: 1;
  background: #f4f4f4;
  border-radius: 4px;
  padding: 8px 14px;
  gap: 10px;
  border: 1.5px solid transparent;
  transition: var(--transition);
}
.search-input-box:focus-within {
  background: #ffffff;
  border-color: #000000;
  box-shadow: 0 0 0 1px #000000;
}

.search-input-icon {
  font-size: 1.1rem;
  color: #777;
  flex-shrink: 0;
}

.global-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: #000000;
}
.global-search-input::placeholder {
  color: #999999;
}

.search-clear-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #888;
  padding: 2px 6px;
  line-height: 1;
  transition: color 0.15s ease;
}
.search-clear-btn:hover {
  color: #000;
}

.search-tags-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: #fafafa;
  border-bottom: 1px solid #ededed;
}

.search-tags-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #777777;
  letter-spacing: 0.06em;
}

.search-tag-chip {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #222222;
  cursor: pointer;
  transition: all 0.15s ease;
}
.search-tag-chip:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.search-results-area {
  max-height: 55vh;
  overflow-y: auto;
  padding: 12px 20px 20px;
}

.search-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #666666;
}

.search-result-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f3f3f3;
  text-decoration: none;
  color: inherit;
}
.search-result-row:last-child {
  border-bottom: none;
}
.search-result-row:hover {
  background: #f4f4f5;
}

.search-result-thumb {
  width: 58px;
  height: 58px;
  border-radius: 3px;
  object-fit: cover;
  background: #eee;
  flex-shrink: 0;
}

.search-result-info {
  flex-grow: 1;
  min-width: 0;
}

.search-result-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}

.search-result-sub {
  font-size: 0.8rem;
  color: #666666;
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-result-price-box {
  text-align: right;
  flex-shrink: 0;
}

.search-result-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: #000000;
}

.search-result-stock-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 2px;
  margin-top: 3px;
}
.search-result-stock-tag.in-stock {
  background: #e6f7ec;
  color: #15803d;
}
.search-result-stock-tag.sold-out {
  background: #f3f4f6;
  color: #6b7280;
}

.search-view-catalog-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #000000;
  color: #ffffff;
  padding: 12px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-top: 14px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.search-view-catalog-btn:hover {
  background: #222222;
}

/* ----------------- MOBILE DRAWER ----------------- */
.mobile-nav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
}
.mobile-nav-backdrop.active {
  display: block;
}

.mobile-nav-drawer {
  position: absolute;
  top: 0;
  left: 0;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: #ffffff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  animation: slideLeft 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideLeft {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

.mobile-drawer-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: #000000;
  text-transform: uppercase;
}

/* ----------------- TOAST ----------------- */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #000000;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--transition);
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast.success {
  border-left: 4px solid var(--accent-success);
}
.toast.error {
  border-left: 4px solid #ef4444;
}

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 992px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .checkout-container {
    grid-template-columns: 1fr;
  }
  .product-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-headline {
    font-size: 3.4rem;
  }
}

/* ----------------- RAZORPAY MODAL STYLING ----------------- */
.rzp-modal-card {
  max-width: 480px;
  width: 92%;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #0f172a;
  border: 1px solid #1e293b;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85);
  animation: modalPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.rzp-modal-header {
  background: #1e293b;
  padding: 18px 24px;
  border-bottom: 1px solid #334155;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rzp-method-option {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.rzp-method-option:hover {
  background: #334155;
  border-color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.rzp-pay-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.rzp-pay-btn:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
}
