/* ============================================
   KAVIRA BOUTIQUE - Main Stylesheet
   Color Palette: Gold, Maroon, Deep Green, Ivory
   Typography: Playfair Display (serif) + Lato (sans)
   ============================================ */

/* --- CSS Variables --- */
:root {
  --gold: #C6A855;
  --gold-light: #E8D48B;
  --gold-dark: #9E7E2E;
  --maroon: #6B1D2A;
  --maroon-dark: #4a0e1a;
  --maroon-light: #8b2e3f;
  --deep-green: #1B4332;
  --green-light: #2D6A4F;
  --ivory: #FFFBF0;
  --ivory-dark: #F5EDD6;
  --cream: #FDF8EF;
  --charcoal: #2C2C2C;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --text-light: #7A7A7A;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background-color: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--maroon-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

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

.section-padding {
  padding: 80px 0;
}

/* --- Typography --- */
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 16px;
  color: var(--maroon-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-medium);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 48px;
}

.gold-accent {
  color: var(--gold-dark);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--maroon);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--maroon-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}

.btn-gold:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border: 2px solid var(--maroon);
}

.btn-outline:hover {
  background: var(--maroon);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover {
  background: #1DA851;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ivory);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(198, 168, 85, 0.2);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo {
  flex-shrink: 0;
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: var(--ivory);
      display: flex;
      align-items: center;
      justify-content: center;
      border: 2px solid var(--gold);
      overflow: hidden;
      box-shadow: 0 0 0 4px rgba(139,46,63,0.93);
}

.nav-logo img {
  height: 150%;
  width: 150%;
  object-fit: contain;
  padding: 0px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-medium);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--maroon);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 28px;
  height: 2px;
  background: var(--maroon);
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--deep-green) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="p" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(198,168,85,0.1)"/></pattern></defs><rect fill="url(%23p)" width="100" height="100"/></svg>');
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-text {
  color: var(--ivory);
}

.hero-text .tagline {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3.5rem;
  color: var(--ivory);
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero-text h1 .highlight {
  color: var(--gold-light);
  font-style: italic;
}

.hero-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 251, 240, 0.85);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image-wrapper img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.hero-image-wrapper::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gold);
  z-index: 1;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: var(--gold);
  color: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

/* --- Features Strip --- */
.features-strip {
  background: var(--white);
  padding: 40px 0;
  border-bottom: 1px solid var(--ivory-dark);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--gold-dark);
}

.feature-item h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
}

.feature-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* --- Collections Section --- */
.collections {
  background: var(--cream);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.collection-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  background: var(--white);
}

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

.collection-card-image {
  height: 360px;
  overflow: hidden;
  position: relative;
}

.collection-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.collection-card:hover .collection-card-image img {
  transform: scale(1.05);
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74, 14, 26, 0.8) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.collection-card-overlay h3 {
  color: var(--ivory);
  font-size: 1.4rem;
}

.collection-card-overlay p {
  color: var(--gold-light);
  font-size: 0.85rem;
  margin-top: 4px;
}

/* --- Featured Products --- */
.featured-products {
  background: var(--ivory);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

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

.product-card-image {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.product-card-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-silk {
  background: var(--gold);
  color: var(--white);
}

.tag-semi-silk {
  background: var(--green-light);
  color: var(--white);
}

.tag-new {
  background: var(--maroon);
  color: var(--white);
}

.tag-occasion {
  background: var(--ivory);
  color: var(--text-dark);
  border: 1px solid var(--gold);
}

.product-card-body {
  padding: 20px;
}

.product-card-body h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.product-card-body .product-code {
  font-size: 0.8rem;
  color: var(--text-light);
  font-family: 'Lato', sans-serif;
  letter-spacing: 1px;
}

.product-card-body .product-enquire {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #25D366;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card-body .product-enquire:hover {
  color: #1DA851;
}

/* --- Gallery Page --- */
.gallery-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--deep-green) 100%);
  text-align: center;
}

.gallery-hero h1 {
  color: var(--ivory);
  font-size: 3rem;
  margin-bottom: 12px;
}

.gallery-hero p {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.gallery-filters {
  background: var(--white);
  padding: 24px 0;
  border-bottom: 1px solid var(--ivory-dark);
  position: sticky;
  top: 80px;
  z-index: 100;
}

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

.filter-btn {
  padding: 10px 20px;
  border: 1px solid var(--ivory-dark);
  border-radius: 30px;
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-medium);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  padding: 48px 0;
}

/* --- Product Modal --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-image {
  position: relative;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f9f6f0;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--maroon);
  color: var(--white);
}

.modal-content h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.modal-content .modal-code {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.modal-content .modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.modal-content .modal-description {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 28px;
}

.modal-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.modal-detail-item {
  font-size: 0.85rem;
}

.modal-detail-item strong {
  display: block;
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

/* --- About Page --- */
.about-hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--deep-green) 100%);
  text-align: center;
}

.about-hero h1 {
  color: var(--ivory);
  font-size: 3rem;
  margin-bottom: 12px;
}

.about-hero p {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-story-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-story-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.about-story-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-story-content p {
  color: var(--text-medium);
  margin-bottom: 16px;
  line-height: 1.8;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.value-card {
  text-align: center;
  padding: 40px 24px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.value-card .value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.5rem;
  color: var(--gold-dark);
  border: 2px solid var(--gold-light);
}

.value-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* --- Contact Page --- */
.contact-hero {
  padding-top: 120px;
  padding-bottom: 60px;
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--deep-green) 100%);
  text-align: center;
}

.contact-hero h1 {
  color: var(--ivory);
  font-size: 3rem;
  margin-bottom: 12px;
}

.contact-hero p {
  color: var(--gold-light);
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--maroon);
  border: 1px solid var(--gold-light);
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.contact-item-text p,
.contact-item-text a {
  font-size: 0.9rem;
  color: var(--text-medium);
}

.contact-item-text a:hover {
  color: var(--maroon);
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--ivory-dark);
  border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--ivory);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 168, 85, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.required-star {
  color: var(--maroon);
}

.phone-prefix-group {
  display: flex;
}

.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f0ede6;
  border: 1px solid #d0c8b8;
  border-right: none;
  border-radius: 6px 0 0 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #555;
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}

.phone-prefix-group input {
  border-radius: 0 6px 6px 0;
  flex: 1;
}

/* --- Footer --- */
.footer {
  background: var(--maroon-dark);
  color: var(--ivory);
  padding: 60px 0 24px;
}

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

.footer-brand h3 {
  font-size: 1.6rem;
  color: var(--ivory);
  margin-bottom: 12px;
}

.footer-brand h3 span {
  color: var(--gold-light);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 251, 240, 0.7);
  line-height: 1.7;
}

.footer-links h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 16px;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  font-size: 0.9rem;
  color: rgba(255, 251, 240, 0.7);
}

.footer-links ul li a:hover {
  color: var(--gold-light);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 251, 240, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ivory);
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--gold);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 251, 240, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 251, 240, 0.5);
}

.footer-admin-link {
  color: rgba(255, 251, 240, 0.4);
  font-size: 0.8rem;
  text-decoration: none;
  display: none;
}

.footer-admin-link:hover {
  color: rgba(255, 251, 240, 0.7);
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* --- Instagram Section --- */
.instagram-section {
  background: var(--white);
  text-align: center;
}

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

.instagram-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.instagram-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(74, 14, 26, 0.5);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .hero-content {
    padding-top: 120px;
  }

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

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

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

  .about-story {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .modal-image img {
    height: 300px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--ivory);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    border-bottom: 1px solid var(--ivory-dark);
    transform: translateY(-120%);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .brand-features {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .arrivals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  #productModal .modal-image {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 300px;
  }

  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .section-title {
    font-size: 2rem;
  }

  .section-padding {
    padding: 60px 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

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

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .modal-content {
    padding: 28px;
  }

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

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Hero Alternate (Index - centered) --- */
.hero-tagline {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.8;
  color: rgba(255, 251, 240, 0.85);
  margin-bottom: 36px;
  max-width: 600px;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: bounce 2s infinite;
  z-index: 5;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Brand Features (Intro) --- */
.brand-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
  text-align: center;
}

.brand-features .feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.brand-features .feature-item h3 {
  font-size: 1.2rem;
  color: var(--maroon-dark);
}

.brand-features .feature-item p {
  font-size: 0.9rem;
  color: var(--text-medium);
  max-width: 300px;
}

/* --- Collection Cards (home) --- */
.collection-image {
  height: 320px;
  overflow: hidden;
  position: relative;
}

.collection-info {
  padding: 20px;
}

.collection-info h3 {
  font-size: 1.2rem;
  color: var(--maroon-dark);
  margin-bottom: 4px;
}

.collection-info p {
  font-size: 0.85rem;
  color: var(--text-medium);
}

/* --- Arrivals Grid --- */
.arrivals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

/* --- Product Image & Badge --- */
.product-image {
  height: 340px;
  overflow: hidden;
  position: relative;
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--maroon);
  color: var(--white);
}

.product-info {
  padding: 20px;
}

.product-info h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text-dark);
}

.product-info .product-code {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-info .product-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--deep-green) 0%, var(--maroon-dark) 100%);
  text-align: center;
}

.cta-section h2 {
  color: var(--ivory);
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255, 251, 240, 0.8);
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* --- WhatsApp Large Button --- */
.btn-whatsapp-large {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  background: #25D366;
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-whatsapp-large:hover {
  background: #1DA851;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

/* --- Instagram Grid (Home) --- */
.insta-item {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

/* --- Modal (Index - restructured) --- */
#productModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

#productModal.active {
  display: flex;
}

#productModal > .modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.3s ease;
}

#productModal .modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
}

#productModal .modal-image {
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
}

#productModal .modal-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#productModal .modal-details h2 {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: var(--maroon-dark);
}

#productModal .modal-desc {
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

#productModal .modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

#productModal .modal-specs .spec {
  font-size: 0.85rem;
  color: var(--text-dark);
}

#productModal .modal-specs .spec strong {
  color: var(--text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#productModal .modal-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

#productModal .modal-price-note {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 12px;
}

#modalPhoneInput {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.9rem;
  box-sizing: border-box;
  margin-bottom: 10px;
}

/* --- About Story Reverse --- */
.about-story-reverse {
  direction: rtl;
}

.about-story-reverse > * {
  direction: ltr;
}

@media (max-width: 1024px) {
  .about-story-reverse {
    direction: ltr;
  }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

/* --- Loading Placeholder --- */
.img-placeholder {
  background: linear-gradient(135deg, var(--ivory-dark) 0%, var(--ivory) 50%, var(--ivory-dark) 100%);
  background-size: 200% 200%;
  animation: shimmer 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.85rem;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   IMAGE CAROUSEL / MULTI-IMAGE SUPPORT
   ============================================ */

/* --- Carousel Container --- */
.image-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.image-carousel .carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.image-carousel .carousel-slide {
  min-width: 100%;
  height: 100%;
  flex-shrink: 0;
  position: relative;
}

.image-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-carousel .carousel-slide .img-placeholder {
  width: 100%;
  height: 100%;
}

/* --- Carousel Navigation Arrows --- */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.image-carousel:hover .carousel-nav,
.image-carousel:focus-within .carousel-nav {
  opacity: 1;
}

.carousel-nav:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav--prev {
  left: 8px;
}

.carousel-nav--next {
  right: 8px;
}

.carousel-nav svg {
  width: 16px;
  height: 16px;
  stroke: var(--text-dark);
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Carousel Dots/Indicators --- */
.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* --- Carousel in Product Cards --- */
.product-card-image .image-carousel,
.product-image .image-carousel {
  height: 340px;
}

/* --- Carousel in Modal --- */
.modal-image .image-carousel {
  height: 420px;
  min-height: 0;
  max-height: 420px;
  background: #f9f6f0;
}

.modal-image .image-carousel .carousel-slide {
  height: 420px;
}

.modal-image .image-carousel .carousel-slide img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  background: #f9f6f0;
}

.modal-image .carousel-nav {
  width: 40px;
  height: 40px;
  opacity: 0.7;
}

.modal-image .carousel-nav svg {
  width: 20px;
  height: 20px;
}

.modal-image .image-carousel:hover .carousel-nav {
  opacity: 1;
}

.modal-image .carousel-dots {
  bottom: 16px;
  padding: 6px 12px;
}

.modal-image .carousel-dot {
  width: 9px;
  height: 9px;
}

/* --- Carousel Counter Badge --- */
.carousel-counter {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  z-index: 10;
  letter-spacing: 0.5px;
}

/* --- Carousel Touch/Swipe Support --- */
.image-carousel.is-dragging .carousel-track {
  transition: none;
}

/* --- Single Image (no carousel needed) --- */
.image-carousel[data-count="1"] .carousel-nav,
.image-carousel[data-count="1"] .carousel-dots,
.image-carousel[data-count="1"] .carousel-counter {
  display: none;
}

/* --- Collection Card Carousel --- */
.collection-image .image-carousel {
  height: 320px;
}

/* --- Responsive Carousel Adjustments --- */
@media (max-width: 768px) {
  .carousel-nav {
    width: 28px;
    height: 28px;
    opacity: 0.7;
  }

  .carousel-nav svg {
    width: 14px;
    height: 14px;
  }

  .image-carousel:hover .carousel-nav {
    opacity: 1;
  }

  .carousel-dots {
    bottom: 8px;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
  }
}

@media (max-width: 480px) {
  .carousel-nav {
    opacity: 0.8;
  }

  .carousel-nav--prev {
    left: 4px;
  }

  .carousel-nav--next {
    right: 4px;
  }
}

/* Gallery category heading */
.gallery-category-heading {
  grid-column: 1 / -1;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--maroon);
  padding: 24px 0 8px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 8px;
  text-transform: capitalize;
}

/* Gallery loading placeholder */
.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
  color: var(--text-light);
  font-family: 'Lato', sans-serif;
}

/* ============================================
   PHONE MASKING
   ============================================ */
   ============================================ */

.phone-masked {
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.04em;
  color: inherit;
  -webkit-user-select: none;
  user-select: none;
}

.phone-revealed {
  font-family: 'Lato', sans-serif;
  letter-spacing: 0.04em;
  color: inherit;
}

.phone-reveal-btn {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  font-size: 0.72rem;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--maroon);
  background: transparent;
  border: 1px solid var(--maroon);
  border-radius: 3px;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1.6;
  transition: background 0.15s, color 0.15s;
}

.phone-reveal-btn:hover {
  background: var(--maroon);
  color: var(--white);
}

/* Footer context — lighter button to match footer palette */
.footer .phone-reveal-btn {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.footer .phone-reveal-btn:hover {
  background: var(--gold-light);
  color: var(--charcoal);
}

/* ============================================
   NAVBAR MOBILE FIX
   ============================================ */
@media (max-width: 768px) {
  .nav-container {
    height: 60px;
    padding: 0 16px;
  }

  .nav-logo {
    width: 52px;
    height: 52px;
  }

  .nav-links {
    top: 60px;
  }

  .gallery-filters {
    top: 60px;
  }
}

/* ============================================
   FILTERS TOGGLE (mobile collapsible)
   ============================================ */

.filters-toggle {
  display: none;
}

.filters-toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chevron-icon {
  transition: transform 0.25s;
}

@media (max-width: 768px) {
  .filters-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    background: var(--white);
    border: 1px solid var(--ivory-dark);
    border-radius: 8px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-medium);
    cursor: pointer;
    margin-bottom: 0;
  }

  .filters-container {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 0 4px;
    flex-wrap: nowrap;
    overflow: visible;
    justify-content: flex-start;
  }

  .filters-container.open {
    display: flex;
  }

  .filters-toggle.open .chevron-icon {
    transform: rotate(180deg);
  }

  .filter-btn {
    width: 100%;
    text-align: left;
    border-radius: 8px;
    white-space: normal;
  }
}

/* ============================================
   ENQUIRY MODAL — extracted from inline styles
   ============================================ */

.enquiry-modal {
  max-width: 480px;
}

.enquiry-modal-content {
  padding: 32px;
  position: relative;
}

.enquiry-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.enquiry-title {
  margin-bottom: 4px;
  font-size: 1.4rem;
}

.enquiry-item-label {
  color: var(--text-light);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.enquiry-item-readonly {
  background: var(--ivory-dark);
  cursor: not-allowed;
  color: var(--text-medium);
}

.enquiry-error {
  display: none;
  color: #c0392b;
  font-size: 0.85rem;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: #fdf0f0;
  border-radius: 6px;
  border-left: 3px solid #c0392b;
}

.enquiry-submit {
  width: 100%;
  margin-top: 8px;
}

.enquiry-success {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.enquiry-success-icon {
  margin-bottom: 12px;
}

.enquiry-success-heading {
  color: var(--deep-green);
  margin-bottom: 8px;
}

.enquiry-success-text {
  color: var(--text-medium);
  font-size: 0.9rem;
}

/* Modal carousel placeholder */
.modal-placeholder {
  width: 100%;
  min-height: 500px;
}

.modal-placeholder-text {
  color: var(--gold);
}

.required-star {
  color: var(--maroon);
}

