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

/* Color Variables */
:root {
  --bg-primary: #FFFBFB;       /* Rose White Studio Background */
  --bg-secondary: #FFF6F6;     /* Light Rose Card BG */
  --bg-tertiary: #1E1717;      /* Dark Charcoal Cherry */
  
  --accent-cherry: #DC2626;     /* Cherry/Crimson Red */
  --accent-cherry-hover: #991B1B;
  --accent-rose: #FDA4AF;      /* Soft Rose Gold */
  
  --text-main: #271E1E;
  --text-muted: #6E5C5C;
  --text-light: #FFFBFB;
  
  --border-color: #F3E8E8;
  --border-focus: #DC2626;
  
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 15px 30px rgba(110, 92, 92, 0.05), 0 8px 15px rgba(110, 92, 92, 0.03);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted);
}

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

.text-cherry { color: var(--accent-cherry); }
.text-rose { color: var(--accent-rose); }
.text-muted { color: var(--text-muted); }

/* Header Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 251, 251, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span {
  color: var(--accent-cherry);
}

.lang-switch-btn {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  margin-right: 15px;
}

.lang-switch-btn:hover {
  color: var(--text-main);
  background-color: var(--bg-secondary);
}

.nav-cta-btn {
  background-color: var(--accent-cherry);
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: 100px;
  transition: var(--transition-smooth);
}

.nav-cta-btn:hover {
  background-color: var(--accent-cherry-hover);
  transform: translateY(-1px);
}

/* Studio Split Showcase Section */
.showcase-section {
  padding: 60px 0 100px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Gallery Container */
.gallery-container {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

.main-image-frame {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  background-color: var(--bg-secondary);
}

.main-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.main-image-frame:hover img {
  transform: scale(1.02);
}

.thumb-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.thumb-item {
  aspect-ratio: 2/3;
  border-radius: var(--border-radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

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

.thumb-item:hover {
  opacity: 0.9;
}

.thumb-item.active {
  opacity: 1;
  border-color: var(--accent-cherry);
}

/* Right Details Panel */
.details-panel {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.boutique-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.1);
  color: var(--accent-cherry);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.product-title {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
}

.product-desc {
  font-size: 1.05rem;
  line-height: 1.7;
}

.price-tag {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.price-sale {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-cherry);
  font-family: 'Playfair Display', serif;
}

.price-regular {
  font-size: 1.3rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.price-discount {
  background-color: rgba(220, 38, 38, 0.05);
  color: var(--accent-cherry);
  padding: 4px 10px;
  font-size: 0.85rem;
  border-radius: 6px;
  font-weight: 600;
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.bullet-icon {
  color: var(--accent-cherry);
  font-size: 0.9rem;
}

/* Color Style Swatches */
.swatch-grid {
  display: flex;
  gap: 12px;
}

.swatch-item {
  position: relative;
}

.swatch-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.swatch-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  user-select: none;
}

.swatch-label .color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: inline-block;
  border: 1px solid rgba(0,0,0,0.1);
}

.swatch-item input:checked + .swatch-label {
  border-color: var(--accent-cherry);
  background-color: var(--bg-secondary);
  color: var(--accent-cherry);
}

/* Custom size selections */
.sizing-box {
  background: rgba(220, 38, 38, 0.02);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.size-select-row {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.size-radio-item {
  position: relative;
  flex-grow: 1;
}

.size-radio-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.size-radio-label {
  display: block;
  text-align: center;
  padding: 12px;
  background-color: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.size-radio-item input:checked + .size-radio-label {
  border-color: var(--accent-cherry);
  background-color: var(--bg-secondary);
  color: var(--accent-cherry);
}

/* Custom measurement slide box */
.custom-measurements-panel {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px dashed var(--border-color);
  display: none;
}

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

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 30px;
  background-color: var(--accent-cherry);
  color: var(--text-light);
  border: none;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--accent-cherry-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px 30px;
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-main);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--accent-cherry);
}

/* Form Styles */
.checkout-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.checkout-card h2 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.checkout-card .subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  background-color: white;
}

/* Quantity Selection */
.qty-selector {
  display: inline-flex;
  align-items: center;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-main);
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

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

.qty-input {
  width: 50px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  background: transparent;
  color: var(--text-main);
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
}

/* Shipping Radio Options */
.shipping-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shipping-option {
  position: relative;
}

.shipping-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shipping-option-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.shipping-option input:checked + .shipping-option-label {
  border-color: var(--accent-cherry);
  background-color: var(--bg-secondary);
}

.shipping-option-label .radio-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.shipping-option-label .radio-bullet::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition-smooth);
}

.shipping-option input:checked + .shipping-option-label .radio-bullet::before {
  border-color: var(--accent-cherry);
  background-color: var(--accent-cherry);
  box-shadow: inset 0 0 0 3px white;
}

.shipping-price {
  font-weight: 700;
  color: var(--accent-cherry);
}

/* Invoice Calculations Table */
.invoice-summary {
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
}

.invoice-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.invoice-row:last-child {
  margin-bottom: 0;
}

.invoice-row.total-row {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px dashed var(--border-color);
  font-size: 1.25rem;
  font-weight: 800;
}

.invoice-row.total-row .val {
  color: var(--accent-cherry);
}

/* Form Fallback validations */
.user-invalid-fallback {
  border-color: var(--accent-cherry) !important;
  background-color: rgba(220, 38, 38, 0.01) !important;
}

.user-valid-fallback {
  border-color: var(--text-muted) !important;
}

.validation-error-msg {
  color: var(--accent-cherry);
  font-size: 0.8rem;
  margin-top: 5px;
  font-weight: 500;
  display: none;
}

/* FAQ Accordion */
.faq-block h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent-cherry);
  padding-left: 12px;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question i {
  transition: transform 0.3s ease;
  color: var(--accent-cherry);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: rgba(0,0,0,0.005);
}

.faq-content p {
  padding: 0 20px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active {
  border-color: var(--accent-cherry);
}

.faq-item.active .faq-content {
  max-height: 200px;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

/* Specifications Table Block */
.specs-block h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent-cherry);
  padding-left: 12px;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
}

.specs-label {
  color: var(--text-muted);
  font-weight: 500;
}

.specs-value {
  color: var(--text-main);
  font-weight: 600;
}

/* Customer Reviews cards */
.reviews-block h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--accent-cherry);
  padding-left: 12px;
}

.review-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-lg);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.review-author {
  font-weight: 600;
}

.review-stars {
  color: #FBBF24;
  font-size: 0.9rem;
}

.review-text {
  font-style: italic;
}

/* Footer Section */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-tertiary);
  color: var(--text-light);
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-logo span {
  color: var(--accent-cherry);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 1.5rem 0;
}

.footer-socials a {
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.footer-socials a:hover {
  color: var(--accent-cherry);
}

/* Responsive Queries */
@media (max-width: 991px) {
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .site-header .container {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .checkout-card {
    padding: 1.5rem;
  }

  .gallery-container {
    padding: 1rem;
  }

  .swatch-grid {
    flex-direction: column;
    gap: 8px;
  }

  .swatch-label {
    width: 100%;
    justify-content: center;
  }

  .size-select-row {
    flex-direction: column;
    gap: 8px;
  }

  .size-radio-label {
    width: 100%;
  }

  .measurements-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
