/* ==========================================================================
   RAJA EMAS - Core Design System & Product Detail Page Styling
   ========================================================================== */

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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f7f5;
  --bg-taupe: #aba393;
  --bg-taupe-dark: #968e7e;
  --text-dark: #242424;
  --text-muted: #666666;
  --text-light: #ffffff;
  --accent-gold: #d4af37;
  --border-color: #e5e5e5;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1280px;
  --transition-fast: 0.25s ease;
  --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

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

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

/* Typography Helpers */
.title-bar {
  text-align: center;
  margin-bottom: 40px;
}

.type-subheading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--text-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: 1px solid var(--text-dark);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

.btn-primary:hover {
  background-color: #3a3a3a;
  border-color: #3a3a3a;
  color: #ffffff;
}

/* Header Web Component Layout */
.announcement-bar {
  background-color: var(--bg-taupe);
  color: var(--text-light);
  padding: 8px 20px;
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.announcement-bar .social-links {
  display: flex;
  gap: 12px;
}

.announcement-bar .social-links a {
  color: var(--text-light);
  display: flex;
  align-items: center;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
}

.announcement-bar .social-links a:hover {
  opacity: 1;
}

.site-header-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow var(--transition-fast);
}

.site-header-sticky.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 12px;
  position: relative;
}

.header-logo {
  margin-bottom: 16px;
  text-align: center;
}

.header-logo a {
  display: inline-block;
}

.header-logo-text {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-dark);
  text-transform: lowercase;
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dark);
  position: relative;
  padding: 4px 0;
}

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

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

.header-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  padding: 6px;
}

.action-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-dark);
}

.action-btn:hover {
  opacity: 0.7;
}

.mobile-menu-toggle {
  display: none;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-dark);
}

/* Modals */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 2100;
  padding: 40px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  transition: transform var(--transition-medium);
}

.search-modal.is-open {
  transform: translateY(0);
}

.search-form-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--text-dark);
}

.search-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  border: none;
  outline: none;
  background: transparent;
}

.search-close-btn {
  position: absolute;
  right: -40px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

/* BREADCRUMB STYLING */
.breadcrumb-nav {
  padding: 24px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.breadcrumb-nav a:hover {
  color: var(--text-dark);
  text-decoration: underline;
}

.breadcrumb-nav span {
  margin: 0 8px;
  color: #ccc;
}

/* PRODUCT DETAIL PAGE LAYOUT */
.product-detail-section {
  padding-bottom: 80px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Product Gallery */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-main-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #f9f9f9;
  border: 1px solid var(--border-color);
  overflow: hidden;
}

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

.product-thumbnails {
  display: flex;
  gap: 12px;
}

.thumb-item {
  width: 80px;
  height: 80px;
  border: 1px solid var(--border-color);
  cursor: pointer;
  opacity: 0.7;
  transition: all var(--transition-fast);
}

/* HERO PARALLAX BANNER */
.hero-banner-section {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 550px;
  max-height: 850px;
  overflow: hidden;
  background-color: #eee;
}

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

.hero-content-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  padding: 40px 20px;
  z-index: 10;
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 400;
  margin-bottom: 30px;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.thumb-item.active,
.thumb-item:hover {
  border-color: var(--text-dark);
  opacity: 1;
}

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

/* Product Summary Box */
.product-summary-box {
  display: flex;
  flex-direction: column;
}

.pdp-tag {
  display: inline-block;
  background-color: var(--text-dark);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  margin-bottom: 12px;
  width: fit-content;
}

.pdp-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.pdp-category {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pdp-catalog-note {
  background-color: var(--bg-secondary);
  border-left: 3px solid var(--accent-gold);
  padding: 16px 20px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.pdp-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.pdp-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 35px;
}

/* Product Specs Accordion */
.pdp-accordion-item {
  border-top: 1px solid var(--border-color);
}

.pdp-accordion-item:last-child {
  border-bottom: 1px solid var(--border-color);
}

.pdp-accordion-header {
  width: 100%;
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  cursor: pointer;
}

.pdp-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.pdp-accordion-item.is-open .pdp-accordion-body {
  max-height: 200px;
  padding-bottom: 16px;
}

/* Category Grid & Footer Components */
.section-padding { padding: 80px 0; }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.category-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.category-image-wrapper { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background-color: #f4f4f4; margin-bottom: 18px; }
.category-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.category-card:hover .category-image-wrapper img { transform: scale(1.05); }
.category-name { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dark); margin-top: 6px; }

/* Subpage Banner */
.subpage-banner { background-color: var(--bg-taupe); color: var(--text-light); padding: 60px 20px; text-align: center; }
.subpage-banner h1 { font-family: var(--font-heading); font-size: 2.8rem; font-weight: 400; margin-bottom: 10px; }
.subpage-banner p { font-size: 0.95rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.9; }

/* Form Container Box */
.form-container-box { max-width: 750px; margin: 0 auto; background: #ffffff; padding: 40px; }
.form-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { font-size: 0.8rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; color: var(--text-dark); }
.form-control { width: 100%; padding: 14px 16px; font-family: var(--font-body); font-size: 0.95rem; border: 1px solid var(--border-color); outline: none; transition: border-color var(--transition-fast); background-color: #fafafa; }
.form-control:focus { border-color: var(--text-dark); background-color: #ffffff; }
textarea.form-control { resize: vertical; min-height: 140px; }
.form-disclaimer { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }

/* Accordion Section */
.accordion-section { padding: 60px 0 90px; background-color: #ffffff; border-top: 1px solid var(--border-color); }
.accordion-item { border-bottom: 1px solid var(--border-color); }
.accordion-header { width: 100%; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); font-size: 1.05rem; font-weight: 500; color: var(--text-dark); text-align: left; cursor: pointer; }
.accordion-header svg { width: 18px; height: 18px; transition: transform var(--transition-fast); }
.accordion-item.is-open .accordion-header svg { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; }
.accordion-item.is-open .accordion-body { max-height: 400px; padding-bottom: 20px; }

/* Contact Cards Grid */
.contact-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 70px; }
.contact-card-box { background-color: var(--bg-secondary); padding: 40px 30px; text-align: center; border: 1px solid var(--border-color); display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.contact-card-box h3 { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; margin-bottom: 12px; }
.contact-card-box p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }
.map-container { width: 100%; margin: 40px 0; border: 1px solid var(--border-color); overflow: hidden; }
.map-container iframe { width: 100%; height: 450px; border: none; }

/* Catalog Section & Product Cards */
.catalog-section { padding: 90px 0; background-color: #ffffff; }
.catalog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: #ffffff; border: 1px solid var(--border-color); transition: all var(--transition-fast); display: flex; flex-direction: column; }
.product-card:hover { box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08); border-color: #dcdcdc; }
.product-image-container { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; position: relative; background-color: #f9f9f9; }
.product-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-image-container img { transform: scale(1.06); }
.product-tag { position: absolute; top: 12px; left: 12px; background: var(--text-dark); color: var(--text-light); font-size: 0.65rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 10px; }
.product-info { padding: 16px; text-align: center; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; }
.product-title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.product-category-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Feature Rows & About Us */
.feature-row-section { padding: 80px 0; background-color: var(--bg-primary); }
.feature-row-container { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; align-items: center; }
.feature-row-image { width: 100%; overflow: hidden; }
.feature-row-image img { width: 100%; height: auto; object-fit: cover; }
.feature-row-content { padding: 20px 0; }
.feature-row-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 30px; }
.about-section { background-color: var(--bg-secondary); padding: 90px 0; }
.about-container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; }
.about-content { padding-right: 20px; }
.about-paragraphs p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }

/* Logo Bar */
.logo-bar-section { padding: 65px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); background-color: #ffffff; }
.logo-bar-grid { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 40px; }
.logo-bar-item img { max-height: 48px; width: auto; filter: grayscale(100%); opacity: 0.7; transition: all var(--transition-fast); }
.logo-bar-item:hover img { filter: grayscale(0%); opacity: 1; }

/* Lookbook Slider */
.lookbook-slider-section { position: relative; width: 100%; background-color: #1a1a1a; overflow: hidden; }
.lookbook-slider-container { position: relative; width: 100%; height: 85vh; min-height: 650px; max-height: 950px; }
.lookbook-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out; }
.lookbook-slide.active { opacity: 1; visibility: visible; }
.lookbook-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; width: 50px; height: 50px; background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(4px); color: #ffffff; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; transition: all var(--transition-fast); border: 1px solid rgba(255, 255, 255, 0.3); }
.slider-arrow:hover { background: rgba(255, 255, 255, 0.9); color: #000000; }
.slider-arrow.prev { left: 30px; }
.slider-arrow.next { right: 30px; }
.slider-arrow svg { width: 24px; height: 24px; stroke: currentColor; }
.slider-controls-bottom { position: absolute; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; align-items: center; gap: 16px; background: rgba(0, 0, 0, 0.4); padding: 8px 20px; border-radius: 30px; backdrop-filter: blur(6px); }
.slider-play-pause-btn { color: #ffffff; font-size: 1rem; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; cursor: pointer; }
.slider-play-pause-btn svg { width: 18px; height: 18px; fill: #ffffff; }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all var(--transition-fast); }
.slider-dot.active { background: #ffffff; transform: scale(1.3); }

/* Footer Component */
.site-footer { background-color: var(--bg-taupe); color: var(--text-light); padding: 70px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-col h4 { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; letter-spacing: 1.5px; margin-bottom: 20px; color: #ffffff; }
.footer-col p { font-size: 0.85rem; line-height: 1.8; opacity: 0.9; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.85rem; opacity: 0.85; transition: opacity var(--transition-fast); }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-input { padding: 12px 16px; font-family: var(--font-body); font-size: 0.85rem; border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.15); color: #ffffff; outline: none; }
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.7); }
.newsletter-btn { background-color: var(--text-dark); color: var(--text-light); font-size: 0.75rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 12px; transition: background-color var(--transition-fast); }
.newsletter-btn:hover { background-color: #000000; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.2); padding-top: 25px; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; opacity: 0.85; }
.payment-badge-icons { display: flex; gap: 8px; }
.payment-badge { background: #ffffff; color: #333333; font-size: 0.65rem; font-weight: 700; padding: 3px 8px; border-radius: 3px; letter-spacing: 0.5px; }

/* Responsive Design */
@media (max-width: 1024px) {
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .header-actions { position: static; transform: none; }
  .header-container { flex-direction: row; justify-content: space-between; padding: 15px 0; }
  .header-logo { margin-bottom: 0; }
  .main-navigation { display: none; }
  .mobile-menu-toggle { display: block; position: static; transform: none; }
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 15px; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 1.75rem; }
  .pdp-title { font-size: 1.8rem; }
  .category-grid { grid-template-columns: 1fr; gap: 25px; }
  .feature-row-container, .about-container { grid-template-columns: 1fr; gap: 30px; }
  .form-group-row { grid-template-columns: 1fr; }
  .lookbook-slider-container { height: 65vh; min-height: 450px; }
  .slider-arrow { width: 40px; height: 40px; }
  .slider-arrow.prev { left: 10px; }
  .slider-arrow.next { right: 10px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}
