/* ========================================================
   FOSTANYA LUXURY MINIMALIST STYLESHEET
   Clean, Modern, Ultra High-Converting Fashion Landing
   ======================================================== */

:root {
  --font-main: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Minimalist Luxury Palette */
  --bg-page: #fbfbfb;
  --bg-card: #ffffff;
  --text-primary: #121212;
  --text-secondary: #5a5a5a;
  --text-muted: #8e8e93;
  --border-light: #eaeaea;
  --border-focus: #c59b27;
  
  /* Brand Accents */
  --accent-gold: #c59b27;
  --accent-gold-hover: #a6811e;
  --accent-rose: #be185d;
  --accent-dark: #1a1a1a;
  --success: #15803d;
  --success-bg: #f0fdf4;
  --error: #b91c1c;
  --error-bg: #fef2f2;

  --shadow-subtle: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  direction: rtl;
  text-align: right;
  padding-bottom: 90px; /* Space for mobile sticky CTA */
}

/* Announcement Header */
.top-announcement {
  background: var(--accent-dark);
  color: #f5f5f5;
  text-align: center;
  padding: 9px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* Navigation Bar */
.navbar {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}

.brand-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-logo span {
  color: var(--accent-gold);
}

/* Country Selector Switcher */
.country-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f4f4f5;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}
.country-switcher label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}
.country-select {
  background: transparent;
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
}

/* Main Container */
.page-container {
  max-width: 620px;
  margin: 0 auto;
  padding: 16px;
}

/* Product Header */
.product-hero-info {
  margin-bottom: 14px;
}
.exclusive-pill {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
}
.product-title {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.35;
}

.social-proof-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.star-rating {
  color: #f59e0b;
  font-size: 0.95rem;
}

/* Image Showcase */
.gallery-wrapper {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  margin-bottom: 20px;
  position: relative;
}
.main-preview-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}
.tag-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(18, 18, 18, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.thumbs-row {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #fafafa;
  border-top: 1px solid var(--border-light);
  overflow-x: auto;
}
.thumb-img {
  width: 65px;
  height: 65px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}
.thumb-img.active {
  border-color: var(--accent-gold);
  transform: scale(1.05);
}

/* Pricing Card */
.pricing-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 20px;
}
.current-price-val {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--text-primary);
}
.currency-tag {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-gold);
  margin-right: 4px;
}
.old-price-val {
  text-decoration: line-through;
  color: var(--text-muted);
  font-size: 1rem;
  margin-left: 8px;
}
.save-badge {
  background: #fdf2f8;
  color: var(--accent-rose);
  border: 1px solid #fbcfe8;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
}

/* Trust Badges Minimalist */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.trust-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.trust-item .icon {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 3px;
}

/* Bullet Highlights */
.highlights-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  margin-bottom: 24px;
}
.highlight-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f4f4f5;
  font-size: 0.92rem;
  font-weight: 600;
}
.highlight-line:last-child {
  border-bottom: none;
}
.highlight-line .check {
  color: var(--success);
  font-weight: 900;
  font-size: 1.1rem;
}

/* Checkout Form Card */
.checkout-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid var(--border-light);
  margin-bottom: 24px;
}
.checkout-header {
  text-align: center;
  margin-bottom: 20px;
}
.checkout-header h3 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
}
.checkout-header p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Bundle Options */
.bundles-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.bundle-item {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  position: relative;
}
.bundle-item.active {
  border-color: var(--accent-dark);
  background: #fafafa;
}
.bundle-item .best-deal-tag {
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--accent-gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
}

/* Options / Pills */
.form-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 8px;
  display: block;
}
.options-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.choice-pill {
  padding: 8px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.choice-pill:hover {
  border-color: var(--text-muted);
}
.choice-pill.active {
  background: var(--accent-dark);
  color: #fff;
  border-color: var(--accent-dark);
}
.choice-pill.disabled {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
  background: #f4f4f5;
  border-color: var(--border-light);
}

/* Input Fields */
.input-row {
  margin-bottom: 14px;
}
.input-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.styled-input, .styled-select, .styled-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d4d4d8;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  background: #fff;
  color: var(--text-primary);
  transition: border-color 0.2s ease;
}
.styled-input:focus, .styled-select:focus, .styled-textarea:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.12);
}

/* Calculation Breakdown */
.breakdown-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 18px;
  margin-bottom: 20px;
}
.breakdown-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}
.breakdown-line.total {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--text-primary);
  border-top: 1px solid #cbd5e1;
  padding-top: 8px;
  margin-top: 8px;
  margin-bottom: 0;
}

/* Main CTA Button */
.cta-button {
  width: 100%;
  background: var(--accent-dark);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}
.cta-button:hover {
  background: #27272a;
}
.cta-button:active {
  transform: scale(0.99);
}
.cta-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Sticky Bottom Bar on Mobile */
.sticky-mobile-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-light);
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.06);
}
.sticky-price-wrap .sticky-price {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}
.sticky-price-wrap .sticky-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.sticky-cta-btn {
  background: var(--accent-dark);
  color: #fff;
  font-weight: 800;
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 0.95rem;
}

/* Alert Box */
.alert-box {
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: none;
}
.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid #fca5a5;
}

/* Spinner */
.spinner-ring {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
