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

:root {
  --primary: #000000;
  --primary-hover: #1f2937;
  --accent-red: #e11d48;
  --accent-green: #059669;
  --accent-green-bg: #ecfdf5;
  --bg-light: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-light);
  color: var(--text-main);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 90px;
}

@media (min-width: 769px) {
  body {
    padding-bottom: 40px;
  }
}

/* Announcement Top Bar */
.top-bar {
  background: var(--text-main);
  color: #ffffff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.top-bar .timer {
  background: var(--accent-red);
  color: #fff;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: 800;
}

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

@media (max-width: 480px) {
  .container {
    padding: 16px 12px;
  }
}

/* Header Brand */
.header-brand {
  text-align: center;
  padding: 8px 0 20px;
}

.header-brand .logo-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 6px 20px;
  border-radius: 30px;
  color: var(--text-main);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

/* Product Grid (Laptop Desktop vs Mobile) */
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Gallery Section */
.gallery-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-md);
  position: relative;
}

@media (min-width: 769px) {
  .gallery-card {
    position: sticky;
    top: 60px;
  }
}

.main-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.discount-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--accent-red);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.3);
  z-index: 10;
}

.thumbnails-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  justify-content: flex-start;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-item {
  width: 65px;
  height: 65px;
  background: #f8fafc;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 2px;
}

.thumb-item.active {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

/* Product Info Section */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-title {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1.35;
  color: var(--text-main);
}

@media (max-width: 480px) {
  .product-title {
    font-size: 1.45rem;
  }
}

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: #d97706;
}

.reviews-summary .stars {
  letter-spacing: 2px;
}

.reviews-summary .count {
  color: var(--text-muted);
  font-weight: 500;
}

/* Price Box */
.price-box {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

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

.current-price {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-main);
}

.current-price .currency {
  font-size: 1.1rem;
  margin-right: 4px;
}

.old-price {
  font-size: 1.2rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.shipping-free-tag {
  background: var(--accent-green-bg);
  border: 1px solid rgba(5, 150, 105, 0.2);
  color: var(--accent-green);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 20px;
}

/* Features List */
.features-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.features-title {
  font-size: 1.1rem;
  font-weight: 900;
  margin-bottom: 14px;
  color: var(--text-main);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.96rem;
  color: #334155;
}

.feature-item:last-child {
  margin-bottom: 0;
}

.feature-icon {
  background: var(--text-main);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 3px;
}

.feature-highlight {
  font-weight: 800;
  color: var(--text-main);
}

/* Options Section */
.options-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.option-title {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Size Pickers Grid */
.size-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.size-btn {
  background: #f8fafc;
  border: 2px solid var(--card-border);
  color: var(--text-main);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.size-btn:hover {
  border-color: #cbd5e1;
}

.size-btn.active {
  background: var(--text-main);
  border-color: var(--text-main);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

.size-btn .size-name {
  font-weight: 900;
  font-size: 1.25rem;
}

.size-btn .size-weight {
  font-size: 0.85rem;
  margin-top: 2px;
  opacity: 0.85;
}

/* Offer Selector Cards */
.offer-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.offer-card {
  background: #f8fafc;
  border: 2px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.offer-card.active {
  border-color: var(--text-main);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.offer-radio {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  margin-left: 12px;
  position: relative;
  cursor: pointer;
}

.offer-card.active .offer-radio {
  border-color: var(--text-main);
}

.offer-card.active .offer-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: var(--text-main);
  border-radius: 50%;
}

.offer-info {
  display: flex;
  align-items: center;
}

.offer-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-main);
}

.offer-badge {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--accent-green);
  color: #ffffff;
  font-weight: 900;
  font-size: 0.75rem;
  padding: 2px 10px;
  border-radius: 12px;
}

.offer-price {
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--text-main);
}

/* COD Form Section */
.form-card {
  background: #ffffff;
  border: 2px solid var(--text-main);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-lg);
  margin-top: 10px;
}

.form-header {
  text-align: center;
  margin-bottom: 24px;
}

.form-header h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.form-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text-main);
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 1.05rem;
  outline: none;
  transition: all 0.2s ease;
}

.input-group input:focus {
  border-color: var(--text-main);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.input-group input::placeholder {
  color: #94a3b8;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  background: var(--text-main);
  color: #ffffff;
  border: none;
  padding: 18px 24px;
  border-radius: var(--radius-md);
  font-size: 1.3rem;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.35);
}

/* Trust Badges */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

@media (max-width: 600px) {
  .trust-badges {
    grid-template-columns: 1fr;
  }
}

.trust-item {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.trust-item .icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.trust-item h4 {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Reviews Section & Real Customer Photos */
.reviews-section {
  margin-top: 44px;
}

.section-title {
  text-align: center;
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 24px;
  color: var(--text-main);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

.review-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.review-author {
  font-weight: 900;
  color: var(--text-main);
  font-size: 1rem;
}

.review-city {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: #f1f5f9;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 700;
}

.review-text {
  font-size: 0.96rem;
  color: #334155;
  margin-bottom: 14px;
  line-height: 1.55;
}

/* Real Review Photo Styling */
.review-photo-wrap {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #f1f5f9;
  border: 1px solid var(--card-border);
  margin-top: 10px;
}

.review-photo-wrap img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
}

.review-photo-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.85);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
}

/* Mobile Sticky Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--card-border);
  padding: 12px 16px;
  z-index: 99;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}

.sticky-price-info {
  display: flex;
  flex-direction: column;
}

.sticky-price {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--text-main);
}

.sticky-sub {
  font-size: 0.78rem;
  color: var(--accent-green);
  font-weight: 700;
}

.sticky-btn {
  background: var(--text-main);
  color: #ffffff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25);
}

/* Thank You Page */
.thankyou-wrap {
  max-width: 580px;
  margin: 40px auto;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  box-shadow: var(--shadow-lg);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
  border: 2px solid rgba(5, 150, 105, 0.2);
}

.thankyou-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 10px;
}

.thankyou-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
}

.order-summary-box {
  background: #f8fafc;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: right;
  margin-bottom: 28px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  color: var(--text-muted);
}

.summary-val {
  font-weight: 800;
  color: var(--text-main);
}

.summary-val.highlight {
  color: var(--text-main);
  font-size: 1.2rem;
  font-weight: 900;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #ffffff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
  transition: all 0.2s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
