/* Style System for The Pair Theory E-Commerce website */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Color Palette */
  --bg-cream: #e0e1d1;
  --bg-pure: #FFFFFF;
  --color-charcoal: #1A1A1A;
  --color-grey-dark: #2C2C2C;
  --color-grey-mid: #757575;
  --color-grey-light: #EBEBEB;
  --color-gold: #C5A059;
  --color-gold-hover: #B48E47;
  --color-gold-light: #F4EFE6;
  --color-rose-gold: #D29D93;
  --color-silver: #A9A9A9;
  --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.03);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.12);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
  
  /* Fonts */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Layout */
  --header-height: 120px;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-cream);
  color: var(--color-charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--color-grey-light);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-serif {
  font-family: var(--font-serif);
}

/* Sold-Out Badge on product card */
.sold-out-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(30,30,30,0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 8;
  pointer-events: none;
}

/* Out-of-stock notice in modal */
.modal-sold-out {
  display: inline-block;
  background: #FEE2E2;
  color: #B91C1C;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* Top Notification Banner */
.notification-banner {
  background-color: var(--color-charcoal);
  color: var(--bg-cream);
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  padding: 10px 0;
  text-transform: uppercase;
  position: relative;
  z-index: 1001;
}

/* Header */
header {
  background-color: rgba(224, 225, 209, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: var(--header-height);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
}

.header-container {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.header-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-charcoal);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Homepage header hidden at top, slides down on scroll */
header.homepage-header {
  position: fixed;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header.homepage-header.scrolled {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.logo span {
  font-style: italic;
  color: var(--color-gold);
  margin-right: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Search Bar */
.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  border: 1px solid var(--color-grey-light);
  background-color: var(--bg-pure);
  padding: 8px 16px;
  padding-left: 36px;
  border-radius: 20px;
  font-family: var(--font-sans);
  font-size: 14px;
  width: 200px;
  outline: none;
  transition: var(--transition-smooth);
}

.search-input:focus {
  width: 280px;
  border-color: var(--color-gold);
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--color-grey-mid);
  pointer-events: none;
  font-size: 14px;
}

/* Header Icons */
.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-charcoal);
  font-size: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background-color: var(--color-gold-light);
  color: var(--color-gold);
}

.cart-count {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--color-gold);
  color: var(--bg-pure);
  font-size: 10px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-cream);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 0 40px 0;
  position: relative;
}

.hero h1 {
  font-size: 42px;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 16px;
  color: var(--color-grey-mid);
  max-width: 500px;
  margin: 0 auto 30px auto;
  font-weight: 300;
}

/* View Toggle (Instagram Grid vs Shop Grid) */
.view-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--color-grey-light);
  padding-bottom: 1px;
}

.toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-grey-mid);
  padding: 14px 28px;
  position: relative;
  transition: var(--transition-fast);
}

.toggle-btn i {
  margin-right: 8px;
}

.toggle-btn.active {
  color: var(--color-charcoal);
  font-weight: 600;
}

.toggle-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-charcoal);
}

/* Main Shop Area */
.shop-section {
  padding-bottom: 100px;
}

/* Category Filters & Sorting */
.shop-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.categories-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  max-width: 100%;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.categories-list::-webkit-scrollbar {
  display: none;
}

.category-tag {
  background-color: var(--bg-pure);
  border: 1px solid var(--color-grey-light);
  color: var(--color-charcoal);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.category-tag.active, .category-tag:hover {
  background-color: var(--color-charcoal);
  color: var(--bg-cream);
  border-color: var(--color-charcoal);
}

.sort-select {
  border: 1px solid var(--color-grey-light);
  background-color: var(--bg-pure);
  padding: 10px 20px;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-charcoal);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sort-select:focus {
  border-color: var(--color-gold);
}

/* E-Commerce Catalog Grid View */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 40px 30px;
  transition: var(--transition-smooth);
}

/* Catalog Product Card */
.product-card {
  background-color: var(--bg-pure);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.product-img-container {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Square ratio */
  overflow: hidden;
  background-color: #F6F6F6;
  cursor: pointer;
}

.product-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Color Dot Selection overlay on card */
.card-variant-selector {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(4px);
  transition: var(--transition-smooth);
}

.product-card:hover .card-variant-selector {
  opacity: 1;
  transform: translateY(0);
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.1);
  position: relative;
}

.color-dot.active::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--color-charcoal);
}

/* Quick Add Button overlay */
.quick-add-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--bg-pure);
  color: var(--color-charcoal);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 10;
  opacity: 0;
  transform: scale(0.9);
  transition: var(--transition-smooth);
}

.product-card:hover .quick-add-btn {
  opacity: 1;
  transform: scale(1);
}

.quick-add-btn:hover {
  background-color: var(--color-charcoal);
  color: var(--bg-cream);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-cat {
  font-size: 11px;
  color: var(--color-grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.product-title {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-charcoal);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title:hover {
  color: var(--color-gold);
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.price {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-charcoal);
}

/* Instagram Grid View Mode */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.instagram-item {
  position: relative;
  width: 100%;
  padding-bottom: 100%; /* Perfect Square */
  overflow: hidden;
  background-color: #F6F6F6;
  border-radius: 8px;
  cursor: pointer;
}

.instagram-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.instagram-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition-smooth);
  color: var(--bg-pure);
  padding: 20px;
  text-align: center;
  z-index: 5;
}

.instagram-item:hover img {
  transform: scale(1.05);
}

.instagram-item:hover .instagram-overlay {
  opacity: 1;
}

.instagram-overlay i {
  font-size: 24px;
  margin-bottom: 10px;
}

.instagram-overlay .ig-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 4px;
}

.instagram-overlay .ig-price {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-gold-light);
}

/* Detail Lightbox Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 16, 20, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  background-color: var(--bg-cream);
  width: 90%;
  max-width: 940px;
  height: 80vh;
  max-height: 600px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-premium);
  display: flex;
  position: relative;
  z-index: 2002;
  transform: scale(0.95);
  transition: var(--transition-smooth);
}

.modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--bg-pure);
  color: var(--color-charcoal);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-fast);
}

.modal-close:hover {
  background-color: var(--color-charcoal);
  color: var(--bg-cream);
}

/* Modal Left: Single Product Image */
.modal-image-side {
  width: 50%;
  position: relative;
  background-color: #F6F6F6;
  overflow: hidden;
}

.modal-product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: fadeSlideIn 0.4s ease;
}

@keyframes fadeSlideIn {
  from { opacity: 0.5; transform: scale(1.02); }
  to   { opacity: 1;   transform: scale(1); }
}

/* Modal Right: Details side */
.modal-details-side {
  width: 50%;
  padding: 40px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 8px;
}

.modal-price {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 24px;
}

.modal-desc {
  font-size: 14px;
  color: var(--color-grey-dark);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* add-to-cart section */
.add-to-cart-section {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}


.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-grey-light);
  background-color: var(--bg-pure);
  border-radius: 30px;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 40px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.qty-btn:hover {
  background-color: var(--bg-cream);
}

.qty-value {
  width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}

.add-cart-btn {
  flex-grow: 1;
  background-color: var(--color-charcoal);
  color: var(--bg-cream);
  border: none;
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.add-cart-btn:hover {
  background-color: var(--color-gold);
}

.ig-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-grey-mid);
  text-decoration: none;
  font-size: 12px;
  margin-top: 15px;
  transition: var(--transition-fast);
}

.ig-link-btn:hover {
  color: var(--color-gold);
}

/* Shopping Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background-color: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 3000;
  box-shadow: var(--shadow-premium);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: var(--transition-smooth);
}

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

.cart-header {
  padding: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
}

.cart-close {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 4px;
}

/* Shipping Progress Bar */
.shipping-meter {
  padding: 16px 24px;
  background-color: var(--bg-pure);
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.shipping-text {
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--color-grey-dark);
}

.shipping-bar-container {
  width: 100%;
  height: 4px;
  background-color: var(--color-grey-light);
  border-radius: 2px;
  overflow: hidden;
}

.shipping-bar-progress {
  height: 100%;
  background-color: var(--color-gold);
  width: 0%;
  transition: width 0.6s ease;
}

/* Cart Items Side */
.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-grey-mid);
  text-align: center;
}

.cart-empty-state i {
  font-size: 40px;
  margin-bottom: 16px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  background-color: var(--bg-pure);
  padding: 12px;
  border-radius: 8px;
  box-shadow: var(--shadow-subtle);
}

.cart-item-img-container {
  width: 70px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background-color: #F6F6F6;
  position: relative;
}

.cart-item-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.cart-item-meta {
  font-size: 11px;
  color: var(--color-grey-mid);
  margin-bottom: 8px;
}

.cart-item-meta span {
  display: inline-block;
  margin-right: 10px;
}

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

.cart-qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--color-grey-light);
  background: var(--bg-pure);
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-qty-value {
  font-size: 13px;
  font-weight: 600;
  margin: 0 8px;
}

.cart-item-price {
  font-size: 14px;
  font-weight: 600;
}

.cart-item-remove {
  background: none;
  border: none;
  color: #D32F2F;
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
  margin-left: 8px;
  transition: var(--transition-fast);
}

.cart-item-remove:hover {
  opacity: 0.7;
}

/* Cart Footer */
.cart-footer {
  padding: 24px;
  background-color: var(--bg-pure);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

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

.cart-summary-row.total {
  font-size: 18px;
  font-weight: 600;
  border-top: 1px solid var(--color-grey-light);
  padding-top: 10px;
  margin-bottom: 20px;
}

.checkout-btn {
  width: 100%;
  background-color: #25D366; /* WhatsApp Green */
  color: var(--bg-pure);
  border: none;
  border-radius: 30px;
  padding: 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition-fast);
}

.checkout-btn:hover {
  background-color: #20BA5A;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

/* Footer Section */
footer.site-footer {
  background-color: var(--color-charcoal);
  color: var(--bg-cream);
  padding: 60px 0 30px 0;
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--color-gold);
}

.footer-col p {
  color: rgba(250, 249, 246, 0.7);
  margin-bottom: 10px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 15px;
}

.footer-social-link {
  color: var(--bg-cream);
  border: 1px solid rgba(250, 249, 246, 0.2);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-social-link:hover {
  background-color: var(--bg-cream);
  color: var(--color-charcoal);
  border-color: var(--bg-cream);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(250, 249, 246, 0.5);
  font-size: 12px;
}

/* Media Queries */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }
  
  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  
  .instagram-overlay .ig-title {
    font-size: 13px;
  }
  
  .instagram-overlay .ig-price {
    font-size: 11px;
  }
  
  .instagram-overlay i {
    font-size: 16px;
    margin-bottom: 4px;
  }
  
  .modal-content {
    flex-direction: column;
    height: 90vh;
    max-height: none;
  }
  
  .modal-image-side {
    width: 100%;
    height: 45%;
  }
  
  .modal-details-side {
    width: 100%;
    height: 55%;
    padding: 24px;
  }
  
  .modal-title {
    font-size: 20px;
  }
  
  .modal-price {
    margin-bottom: 12px;
  }
  
  .search-input {
    width: 150px;
  }
  
  .search-input:focus {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .header-actions {
    gap: 8px;
  }
  
  .search-input {
    display: none; /* Hide search input on very small devices, or shrink to icon */
  }
}

/* ─── Webpage Logo Styling ────────────────────────────────────────────────── */
.logo-img-large {
  height: 95px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo:hover .logo-img-large {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  :root {
    --header-height: 100px;
  }
  .logo-img-large {
    height: 75px;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 90px;
  }
  .logo-img-large {
    height: 65px;
  }
}

/* ─── Modal Image Slider Styles ───────────────────────────────────────────── */
.slider-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.85);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: all 0.25s ease;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.modal-image-side:hover .slider-arrow-btn {
  opacity: 1;
  pointer-events: auto;
}

.slider-arrow-btn:hover {
  background-color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow-btn.prev {
  left: 16px;
}

.slider-arrow-btn.next {
  right: 16px;
}

.slider-arrow-btn.hidden {
  display: none !important;
}

.slider-dots-container {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

.slider-dot.active {
  background-color: #FFFFFF;
  transform: scale(1.2);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* ─── Auth and Checkout Additions ──────────────────────────────── */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-container {
  display: flex;
  align-items: center;
}

.user-profile {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.user-dropdown {
  position: absolute;
  top: 44px;
  right: 0;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 8px 0;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: column;
  z-index: 100;
}

.user-profile:hover .user-dropdown {
  display: flex;
}

.user-dropdown span {
  font-size: 13px;
  padding: 8px 16px;
  color: #333333;
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.dropdown-item {
  background: none;
  border: none;
  text-align: left;
  padding: 8px 16px;
  font-size: 13px;
  color: #E05252;
  cursor: pointer;
  width: 100%;
}

.dropdown-item:hover {
  background-color: #FAFAFA;
}

.hidden {
  display: none !important;
}

/* Cart checkout layout enhancements */
.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.checkout-divider {
  text-align: center;
  font-size: 12px;
  color: #888;
  text-transform: uppercase;
}

.checkout-btn.primary {
  background-color: #111111;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
}

.checkout-btn.primary:hover {
  background-color: #333333;
}

.checkout-btn.secondary {
  background-color: #25D366;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  font-weight: 600;
}

.checkout-btn.secondary:hover {
  background-color: #20BA5A;
}

/* ─── Hero Section ─────────────────────────────────────────────────────────── */
.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  background-color: var(--bg-cream);
  padding: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.hero-video-container {
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 0;
  overflow: hidden;
  border: none;
  background-color: var(--bg-cream);
}

.hero-video {
  width: 85%;
  height: 85%;
  object-fit: contain;
  display: block;
}

/* ─── Storefront Grid/Sidebar Layout ────────────────────────────────────────── */
.storefront-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 80px;
  align-items: start;
}

/* Sidebar filter styles */
.filter-sidebar {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 24px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
  max-height: calc(100vh - var(--header-height) - 40px);
  overflow-y: auto;
  box-shadow: var(--shadow-subtle);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 12px;
}

.sidebar-header h3 {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.close-filters-btn {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--color-charcoal);
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-grey-dark);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-bottom: 6px;
}

/* Category Filter pills in Sidebar */
.categories-list-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-tag-sidebar {
  background: none;
  border: none;
  text-align: left;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--color-grey-mid);
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: var(--font-sans);
}

.category-tag-sidebar:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--color-charcoal);
}

.category-tag-sidebar.active {
  background: var(--color-gold-light);
  color: var(--color-gold-hover);
  font-weight: 500;
}

/* Price range inputs */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.price-inputs .input-container {
  position: relative;
  flex: 1;
}

.price-inputs .currency {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--color-grey-mid);
}

.price-inputs input {
  width: 100%;
  padding: 8px 8px 8px 20px;
  border: 1px solid var(--color-grey-light);
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-sans);
  background: white;
}

.to-separator {
  font-size: 12px;
  color: var(--color-grey-mid);
}

.price-slider {
  width: 100%;
  accent-color: var(--color-gold);
  height: 4px;
  cursor: pointer;
}

/* Sort dropdown sidebar */
.sort-select-sidebar {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-grey-light);
  border-radius: 6px;
  font-size: 14px;
  font-family: var(--font-sans);
  background-color: white;
  color: var(--color-charcoal);
  cursor: pointer;
}

/* Shades (colors) list */
.shades-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 5px;
}

.shade-label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: var(--color-grey-dark);
  cursor: pointer;
  user-select: none;
  gap: 8px;
}

.shade-label input[type="checkbox"] {
  accent-color: var(--color-gold);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.shade-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--color-grey-mid);
}

/* Mobile Filter Bar */
.mobile-filter-bar {
  display: none;
  margin-bottom: 20px;
  flex-direction: column;
  gap: 10px;
}

.mobile-filter-btn {
  width: 100%;
  background: var(--color-charcoal);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-fast);
}

.mobile-filter-btn:hover {
  background: var(--color-grey-dark);
}

.active-filters-summary {
  font-size: 13px;
  color: var(--color-grey-mid);
}

/* ─── Dual Pricing & Badge UI ────────────────────────────────────────────────── */
.product-price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 6px;
}

.mrp-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-card .price {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-charcoal);
}

.product-card .mrp {
  font-size: 11px;
  text-decoration: line-through;
  color: var(--color-grey-mid);
}

.discount-badge {
  font-size: 10px;
  color: #B91C1C;
  background-color: #FEF2F2;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Product Modal Pricing Row */
.price-row-modal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 20px;
}

.mrp-row-modal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-row-modal .sale-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-charcoal);
}

.price-row-modal .mrp-slashed {
  font-size: 14px;
  text-decoration: line-through;
  color: var(--color-grey-mid);
}

.discount-badge-modal {
  font-size: 11px;
  color: #B91C1C;
  background-color: #FEF2F2;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.modal-color {
  font-size: 14px;
  color: var(--color-grey-dark);
  margin-bottom: 12px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .storefront-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero-section {
    height: 35vh;
    min-height: 200px;
  }

  .mobile-filter-bar {
    display: flex;
  }

  /* Slide-out mobile filter drawer */
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 100vh;
    max-height: 100vh;
    z-index: 2000;
    background: white;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-premium);
    border-radius: 0 12px 12px 0;
    border-left: none;
  }

  .filter-sidebar.active {
    transform: translateX(0);
  }

  .close-filters-btn {
    display: block;
  }
}
