@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800&display=swap');

:root {
  --color-bg: #FAFAF8;
  --color-white: #FFFFFF;
  --color-text: #2D2D2D;
  --color-text-light: #5A5A5A;
  --color-gold: #C5A572;
  --color-gold-dark: #A8894E;
  --color-burgundy: #722F37;
  --color-burgundy-dark: #5A252C;
  --color-border: #E8E4DF;
  --color-shadow: rgba(0, 0, 0, 0.08);
  --font-main: 'Heebo', sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --transition: 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  direction: rtl;
  line-height: 1.7;
  font-size: 16px;
}

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

a:hover {
  color: var(--color-gold);
}

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

ul {
  list-style: none;
}

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

/* Header */
.site-header {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--color-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 45px;
  width: 210px;
  display: inline-block;
  background: url('../images/logo.png') no-repeat center / contain;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

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

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

.cart-icon {
  position: relative;
  font-size: 1.3rem;
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--color-burgundy);
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text);
}

/* Hero Section */
.hero {
  position: relative;
  background: url('../images/hero-bg.jpeg') center center / cover no-repeat;
  color: white;
  padding: 0;
  text-align: center;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(45, 20, 22, 0.55) 0%,
    rgba(45, 20, 22, 0.45) 40%,
    rgba(45, 20, 22, 0.65) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 20px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 1.25rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 35px;
  opacity: 0.92;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.btn-hero {
  background: transparent;
  color: white;
  border: 2px solid var(--color-gold);
  padding: 14px 40px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-main);
  display: inline-block;
}

.btn-hero:hover {
  background: var(--color-gold);
  color: var(--color-text);
}

/* Sections */
.section {
  padding: 60px 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.section-subtitle {
  text-align: center;
  color: var(--color-text-light);
  margin-bottom: 40px;
  font-size: 1.1rem;
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Value Props */
.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.value-prop {
  text-align: center;
  padding: 30px 20px;
}

.value-prop-icon {
  margin-bottom: 15px;
  line-height: 1;
}

.value-prop-icon svg {
  width: 48px;
  height: 48px;
}

.value-prop h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--color-burgundy);
}

.value-prop p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: white;
  padding: 50px 20px 30px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: var(--color-gold);
}

.footer-col p,
.footer-col a {
  color: #CCCCCC;
  font-size: 0.9rem;
  line-height: 2;
}

.footer-col a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 0.85rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--color-burgundy) 0%, var(--color-burgundy-dark) 100%);
  color: white;
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
}

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

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  direction: rtl;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.3);
}

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

/* Utility */
.text-center {
  text-align: center;
}

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-20 {
  margin-bottom: 20px;
}

/* Quantity Selector */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}

.quantity-selector button {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--color-bg);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
}

.quantity-selector button:hover {
  background: var(--color-border);
}

.quantity-selector input {
  width: 50px;
  height: 40px;
  border: none;
  border-right: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  text-align: center;
  font-family: var(--font-main);
  font-size: 1rem;
}

.quantity-selector input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 165, 114, 0.3);
}

/* Price */
.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-burgundy);
}

.price-currency {
  font-size: 1rem;
  font-weight: 400;
}

/* Breadcrumb */
.breadcrumb {
  padding: 15px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

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

.breadcrumb span {
  margin: 0 8px;
}

/* Success Page */
.success-container {
  text-align: center;
  padding: 80px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  font-size: 4rem;
  color: #4CAF50;
  margin-bottom: 20px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
  animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
  z-index: 10;
  line-height: 1;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2.5rem;
  width: 50px;
  height: 70px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s, background 0.2s;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: 15px;
}

.lightbox-next {
  right: 15px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.product-main-image {
  cursor: zoom-in;
}

.success-container h1 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.success-container p {
  color: var(--color-text-light);
  margin-bottom: 30px;
  font-size: 1.1rem;
}
