/* =========================================================================
   "STITCH" PREMIUM EDITORIAL REDESIGN - AZURA SWIM
   ========================================================================= */

   @import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Montserrat:wght@200;300;400;500&family=Cairo:wght@300;400;600&display=swap');

   :root {
     /* Quiet Luxury Palette */
     --bg-main: #F7F5F0;      /* Alabaster/Sand */
     --bg-card: #FFFFFF;      /* Pure White */
     --primary: #111111;      /* Deep Charcoal/Black */
     --accent: #B08D57;       /* Soft Muted Gold */
     --text-muted: #666666;   
     --border: #E5E0D8;
     --transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
   }
   
   * { margin: 0; padding: 0; box-sizing: border-box; }
   
   html { scroll-behavior: smooth; }
   
   body {
     font-family: 'Montserrat', sans-serif;
     background-color: var(--bg-main);
     color: var(--primary);
     line-height: 1.6;
     -webkit-font-smoothing: antialiased;
     overflow-x: hidden;
   }
   
   h1, h2, h3, h4, .serif { 
     font-family: 'Cormorant Garamond', serif; 
     font-weight: 400; 
   }
   
   /* RTL Support */
   html[dir="rtl"] body { font-family: 'Cairo', sans-serif; }
   html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 { font-family: 'Cairo', sans-serif; font-weight: 300; }
   
   .container {
     max-width: 1400px;
     margin: 0 auto;
     padding: 0 5%;
   }
   
   /* ==================== NAVBAR ==================== */
   .navbar {
     position: fixed;
     top: 0; width: 100%;
     padding: 30px 0;
     z-index: 1000;
     transition: var(--transition);
   }
   .navbar.scrolled {
     padding: 15px 0;
     background: rgba(247, 245, 240, 0.95);
     backdrop-filter: blur(10px);
     border-bottom: 1px solid var(--border);
   }
   .navbar .container {
     display: flex;
     justify-content: space-between;
     align-items: center;
   }
   
   .brand-logo {
     text-decoration: none;
     color: var(--primary);
     display: flex;
     align-items: center;
     gap: 15px;
   }
   .brand-icon {
     width: 40px; height: 40px;
   }
   .brand-icon path[fill="var(--primary)"] {
     transition: var(--transition);
   }
   .brand-name {
     font-family: 'Cormorant Garamond', serif;
     font-size: 28px;
     letter-spacing: 3px;
     color: var(--primary);
     transition: var(--transition);
   }
   .brand-tag {
     font-size: 9px;
     letter-spacing: 4px;
     color: var(--text-muted);
     text-transform: uppercase;
   }
   
   /* Invert logo if on dark hero, but we are using light editorial hero */
   
   .nav-links {
     display: flex;
     list-style: none;
     gap: 40px;
   }
   .nav-links a {
     text-decoration: none;
     color: var(--primary);
     font-size: 11px;
     text-transform: uppercase;
     letter-spacing: 2px;
     font-weight: 400;
     position: relative;
   }
   .nav-links a::after {
     content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 1px;
     background: var(--accent); transition: var(--transition);
   }
   .nav-links a:hover::after { width: 100%; }
   
   .nav-actions { display: flex; align-items: center; gap: 30px; }
   .lang-switch button {
     background: none; border: none; font-family: 'Montserrat', sans-serif;
     font-size: 11px; letter-spacing: 1px; cursor: pointer; color: var(--text-muted);
     transition: var(--transition);
   }
   .lang-switch button.active { color: var(--primary); font-weight: 500; border-bottom: 1px solid var(--primary); }
   
   .mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 20px; position: relative; }
   .mobile-menu-btn span { position: absolute; width: 100%; height: 1px; background: var(--primary); left: 0; transition: 0.3s; }
   .mobile-menu-btn span:nth-child(1) { top: 0; }
   .mobile-menu-btn span:nth-child(2) { top: 50%; transform: translateY(-50%); }
   .mobile-menu-btn span:nth-child(3) { bottom: 0; }
   
   /* ==================== HERO (EDITORIAL SPLIT) ==================== */
   .hero {
     height: 100vh;
     display: flex;
     align-items: center;
     position: relative;
     overflow: hidden;
     padding-top: 80px;
   }
   .hero-content {
     flex: 1;
     padding-left: 10%;
     position: relative;
     z-index: 2;
   }
   .hero-image-wrapper {
     flex: 1.2;
     height: 100%;
     position: relative;
   }
   .hero-image-wrapper img {
     width: 100%; height: 100%; object-fit: cover;
     object-position: top center;
     filter: brightness(0.95);
   }
   
   .hero-subtitle {
     font-size: 11px;
     text-transform: uppercase;
     letter-spacing: 4px;
     color: var(--accent);
     margin-bottom: 20px;
     display: block;
   }
   .hero-title {
     font-size: 6vw;
     line-height: 1;
     color: var(--primary);
     margin-bottom: 30px;
     margin-left: -5px;
     white-space: nowrap;
   }
   .hero-desc {
     font-size: 14px;
     color: var(--text-muted);
     max-width: 400px;
     margin-bottom: 50px;
     line-height: 1.8;
   }
   .hero-btn {
     display: inline-block;
     padding: 15px 40px;
     background: transparent;
     color: var(--primary);
     text-decoration: none;
     font-size: 11px;
     letter-spacing: 2px;
     text-transform: uppercase;
     border: 1px solid var(--primary);
     transition: var(--transition);
     position: relative;
     overflow: hidden;
   }
   .hero-btn::before {
     content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
     background: var(--primary); transform: scaleX(0); transform-origin: right;
     transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); z-index: -1;
   }
   .hero-btn:hover { color: var(--white); }
   .hero-btn:hover::before { transform: scaleX(1); transform-origin: left; }
   
   /* ==================== FABRIC SECTION ==================== */
   .fabric-section {
     padding: 150px 0;
     background: var(--bg-card);
   }
   .fabric-grid {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 100px;
     align-items: center;
   }
   .section-tag {
     font-size: 10px; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-bottom: 15px;
   }
   .section-title {
     font-size: 48px; line-height: 1.1; margin-bottom: 30px;
   }
   .fabric-intro {
     font-size: 15px; color: var(--text-muted); margin-bottom: 50px; line-height: 2;
   }
   .fabric-features {
     display: flex; flex-direction: column; gap: 40px;
   }
   .fab-feat-item {
     display: flex; gap: 20px; align-items: flex-start;
   }
   .fab-feat-icon {
     font-size: 20px; color: var(--accent); margin-top: 5px;
   }
   .fab-feat-info h4 {
     font-family: 'Montserrat', sans-serif; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 10px;
   }
   .fab-feat-info p {
     font-size: 13px; color: var(--text-muted); line-height: 1.7;
   }
   .fabric-visual {
     position: relative; height: 700px;
   }
   .fabric-art {
     width: 100%; height: 100%; position: relative;
     background-image: url('images/borkini-simple/gris/Gemini_Generated_Image_yuzoznyuzoznyuzo.jpg'); /* Use a real image as texture */
     background-size: cover; background-position: center;
     filter: grayscale(20%) sepia(20%) contrast(1.1);
   }
   .fab-badge {
     position: absolute; bottom: -30px; left: -30px;
     background: var(--primary); color: var(--bg-main);
     padding: 30px; display: flex; align-items: center; gap: 15px;
   }
   .fab-badge-icon { font-size: 30px; }
   .fab-badge-text { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; }
   
   /* ==================== PRODUCTS COLLECTION ==================== */
   .products-section {
     padding: 150px 0;
   }
   .section-header { text-align: center; margin-bottom: 80px; }
   .products-grid {
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     gap: 40px 30px;
   }
   /* Make every 1st item large */
   .products-grid .product-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
   .product-card {
     cursor: pointer;
     position: relative;
     display: flex; flex-direction: column;
   }
   .product-image {
     width: 100%; height: 100%; /* Fill space for grid */
     min-height: 400px; /* Base height */
     background: var(--bg-card);
     overflow: hidden;
     position: relative;
     margin-bottom: 20px;
   }
   .products-grid .product-card:nth-child(1) .product-image { min-height: 800px; }
   .product-card img {
      width: 100%; height: 100%; object-fit: cover;
      object-position: top center;
     transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
   }
   .product-card:hover img { transform: scale(1.05); }
   
   .product-info { display: flex; flex-direction: column; gap: 8px; }
   .product-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; color: var(--primary); }
   .product-desc { font-size: 12px; color: var(--text-muted); }
   .product-price { font-size: 13px; font-weight: 500; letter-spacing: 1px; margin-top: 5px; }
   .product-badge {
     position: absolute; top: 20px; left: 20px;
     font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
     background: var(--bg-main); padding: 5px 10px; color: var(--primary);
   }
   .product-colors { display: flex; gap: 5px; margin-top: 10px; }
   .color-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--border); }
   .product-quick-view { display: none; } /* Kept for JS compatibility but hidden in editorial design */
   
/* ==================== REVIEWS ==================== */
.reviews-section {
  padding: 80px 0 120px;
  background: var(--bg-card);
}
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.review-card {
  padding: 40px;
  background: var(--bg-main);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.stars { color: var(--accent); font-size: 16px; letter-spacing: 2px; }
.review-text { font-size: 13px; color: var(--text-muted); font-style: italic; line-height: 1.8; flex-grow: 1; }
.review-author { font-size: 11px; font-family: 'Montserrat', sans-serif; font-weight: 600; letter-spacing: 1px; color: var(--primary); text-transform: uppercase; }

/* ==================== FOOTER ==================== */
.footer {
  background: var(--primary);
  color: var(--bg-main);
  padding: 40px 0;
  text-align: center;
}
.footer-simple {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.footer-contact {
  font-size: 13px;
  color: #999;
  letter-spacing: 1px;
}
.footer-bottom-simple {
  font-size: 11px;
  color: #666;
  margin-top: 10px;
}
   
   /* ==================== SIDE DRAWER MODALS (Replaces Center Modals) ==================== */
   .modal-overlay, .order-modal-overlay {
     position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
     background: rgba(0,0,0,0.4);
     backdrop-filter: blur(5px);
     z-index: 2000;
     opacity: 0; visibility: hidden; transition: var(--transition);
   }
   .modal-overlay.active, .order-modal-overlay.active { opacity: 1; visibility: visible; }
   
   .modal, .order-modal {
     position: absolute; top: 0; right: -600px; /* Slide from right */
     width: 100%; max-width: 500px; height: 100vh;
     background: var(--bg-main);
     padding: 60px 40px;
     overflow-y: auto;
     transition: right 0.6s cubic-bezier(0.19, 1, 0.22, 1);
     box-shadow: -20px 0 50px rgba(0,0,0,0.1);
   }
   
   html[dir="rtl"] .modal, html[dir="rtl"] .order-modal {
     right: auto; left: -600px; transition: left 0.6s cubic-bezier(0.19, 1, 0.22, 1);
   }
   
   .modal-overlay.active .modal, .order-modal-overlay.active .order-modal { right: 0; }
   html[dir="rtl"] .modal-overlay.active .modal, html[dir="rtl"] .order-modal-overlay.active .order-modal { left: 0; }
   
   .modal-close {
     position: absolute; top: 20px; right: 30px;
     background: none; border: none; font-size: 30px; color: var(--primary); cursor: pointer; transition: 0.3s;
   }
   html[dir="rtl"] .modal-close { right: auto; left: 30px; }
   .modal-close:hover { transform: rotate(90deg); }
   
    .modal-body { display: flex; flex-direction: column; gap: 30px; }
    .modal-image { width: 100%; display: flex; flex-direction: column; }
    .modal-image img#modalImage { width: 100%; height: 450px; object-fit: cover; object-position: top center; transition: 0.3s; }
    .modal-thumbnails { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 5px; }
    .modal-thumbnails img { width: 60px; height: 60px; object-fit: cover; cursor: pointer; opacity: 0.6; transition: 0.3s; border: 2px solid transparent; border-radius: 4px; }
    .modal-thumbnails img:hover, .modal-thumbnails img.active { opacity: 1; border-color: var(--primary); }
   
   .product-tag { font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
   .modal-details h2 { font-size: 32px; line-height: 1.1; margin-bottom: 15px; }
   .price { font-size: 18px; margin-bottom: 30px; }
   .description { font-size: 13px; color: var(--text-muted); line-height: 1.8; margin-bottom: 40px; }
   
   .option-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; font-weight: 500; }
   .size-options { display: flex; gap: 10px; margin-bottom: 30px; }
   .size-btn {
     width: 40px; height: 40px; border: 1px solid var(--border); background: transparent;
     cursor: pointer; transition: 0.3s; font-family: 'Montserrat', sans-serif; font-size: 11px;
   }
   .size-btn.active, .size-btn:hover { border-color: var(--primary); background: var(--primary); color: var(--bg-main); }
   
   .color-options { display: flex; gap: 10px; margin-bottom: 50px; }
   .color-option { width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: 0.3s; }
   .color-option.active { border-color: var(--primary); transform: scale(1.1); }
   
   .order-btn, .submit-order-btn {
     width: 100%; padding: 20px;
     background: var(--primary); color: var(--bg-main);
     border: none; cursor: pointer; font-family: 'Montserrat', sans-serif;
     font-size: 11px; letter-spacing: 2px; text-transform: uppercase; transition: 0.3s;
   }
   .order-btn:hover, .submit-order-btn:hover { background: var(--accent); }
   
/* Center Modal for Size Guide */
.center-modal {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9);
  width: 100%; max-width: 450px; background: var(--bg-main); padding: 40px;
  opacity: 0; visibility: hidden; transition: var(--transition);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}
.modal-overlay.active .center-modal { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.size-guide-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.size-guide-table th { padding: 10px 0; border-bottom: 2px solid var(--border); color: var(--primary); text-transform: uppercase; font-size: 10px; letter-spacing: 1px; }
.size-guide-table td { padding: 15px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
html[dir="rtl"] .size-guide-table { text-align: right; }
html[dir="rtl"] .center-modal { left: auto; right: 50%; transform: translate(50%, -50%) scale(0.9); }
html[dir="rtl"] .modal-overlay.active .center-modal { transform: translate(50%, -50%) scale(1); }

/* Sticky Order Bar */
.sticky-order-bar {
  position: sticky;
  bottom: 0px;
  background: var(--bg-main);
  padding: 10px 0;
  margin-top: 10px;
  z-index: 100;
  box-shadow: 0 -10px 20px var(--bg-main);
}
.modal-details {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

   /* Order Form Adjustments */
   .order-summary { display: flex; gap: 20px; align-items: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
   .order-summary img { width: 80px; height: 100px; object-fit: cover; }
   #orderProductName { font-family: 'Cormorant Garamond', serif; font-size: 20px; margin-bottom: 5px; }
   #orderProductMeta { font-size: 11px; color: var(--text-muted); }
   .form-group { margin-bottom: 25px; }
   .form-group label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
   .form-group input, .form-group textarea {
     width: 100%; padding: 15px; border: 1px solid var(--border); background: transparent;
     font-family: 'Montserrat', sans-serif; font-size: 13px; transition: 0.3s;
   }
   .form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }
   .cod-badge {
     background: var(--bg-card); padding: 20px; display: flex; gap: 15px; align-items: center; margin-bottom: 40px; border: 1px solid var(--border);
   }
   .cod-text { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 5px; }
   .cod-desc { font-size: 11px; color: var(--text-muted); }
   
   /* Hide previous structure elements that aren't needed */
   .features-bar { display: none; }
   
   /* Floating Product Card Colors */
   .product-colors {
     position: absolute;
     top: 15px;
     right: 15px;
     display: flex;
     gap: 5px;
     z-index: 2;
     background: rgba(255,255,255,0.7);
     padding: 5px 8px;
     border-radius: 20px;
     backdrop-filter: blur(4px);
   }
   .color-dot {
     width: 14px;
     height: 14px;
     border-radius: 50%;
     border: 1px solid rgba(0,0,0,0.1);
     box-shadow: 0 2px 4px rgba(0,0,0,0.1);
   }

   /* ==================== OUT OF STOCK ==================== */
   .color-dot-oos {
     position: relative;
     opacity: 0.4;
   }
   .color-dot-oos::after {
     content: '';
     position: absolute;
     top: 50%; left: -1px; right: -1px;
     height: 1px;
     background: #cc0000;
     transform: rotate(-45deg);
   }
   .color-option-wrap {
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 4px;
   }
   .color-option.color-oos {
     opacity: 0.4;
     position: relative;
   }
   .color-option.color-oos::after {
     content: '';
     position: absolute;
     top: 50%; left: -2px; right: -2px;
     height: 2px;
     background: #cc0000;
     transform: rotate(-45deg);
   }
   .oos-label {
     font-size: 8px;
     color: #cc0000;
     text-transform: uppercase;
     letter-spacing: 0.5px;
     font-weight: 600;
   }
   .oos-notice {
     background: #fff3f3;
     border: 1px solid #ffcccc;
     color: #cc0000;
     padding: 10px 15px;
     font-size: 12px;
     margin-bottom: 20px;
     text-align: center;
     border-radius: 4px;
   }
   .order-btn.btn-disabled {
     background: #999;
     cursor: not-allowed;
     opacity: 0.6;
   }
   .order-btn.btn-disabled:hover {
     background: #999;
   }

   /* Responsive */
   @media (max-width: 900px) {
     .hero { flex-direction: column; height: auto; padding-top: 100px; }
     .hero-content { padding: 40px 5%; order: 2; }
     .hero-image-wrapper { width: 100%; height: 60vh; order: 1; }
     .hero-title { font-size: 40px; }
     .products-grid { grid-template-columns: 1fr 1fr; }
     .products-grid .product-card:nth-child(1) { grid-column: span 1; grid-row: span 1; }
     .fabric-grid { grid-template-columns: 1fr; gap: 50px; }
     .fabric-visual { height: 400px; }
     .reviews-grid { grid-template-columns: 1fr; }
     .review-card { padding: 30px; }
     .footer-grid { grid-template-columns: 1fr; gap: 40px; }
   }
   @media (max-width: 600px) {
     .products-grid { grid-template-columns: 1fr; }
      .product-image { min-height: 500px; }
      .products-grid .product-card:nth-child(1) .product-image { min-height: 500px; }
      .nav-links { display: none; }
     .mobile-menu-btn { display: block; }
   }
