/* ===== Control Tower brand: match cctv-ct.com ===== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;800&family=Tajawal:wght@400;500;700&display=swap');

:root {
  --ct-copper-50: #fbf7f3;
  --ct-copper-100: #f4e9df;
  --ct-copper-300: #d8aa83;
  --ct-copper-500: #a85d2a;
  --ct-copper-600: #8e481e;
  --ct-copper-700: #713719;
  --ct-ivory: #faf8f5;
  --ct-charcoal: #1d1e1f;
  --ct-gray-50: #f7f7f6;
  --ct-gray-200: #dededb;
  --ct-gray-500: #70706d;
  --ct-gray-700: #3d3d3a;

  --color-primary: #8e481e !important;
  --color-primary-dark: #713719 !important;
  --color-primary-light: #f4e9df !important;
  --color-primary-reverse: #ffffff !important;
  --main-text-color: #1d1e1f !important;
  --font-main: 'Tajawal' !important;
}

/* Typography */
body, button, input, select, textarea,
.s-product-card-entry, .main-menu a, footer {
  font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif !important;
}
h1, h2, h3, .s-block__title h2, .s-product-card-content-title,
.product-entry__title, footer h3 {
  font-family: 'Cairo', 'Tajawal', sans-serif !important;
  font-weight: 700 !important;
}

/* Page background */
body, .app-inner, main { background-color: var(--ct-ivory) !important; color: var(--ct-charcoal); }

/* Header: white, subtle border like the site */
.site-header__safe-area, .site-header__topnav {
  background-color: rgba(255, 255, 255, .95) !important;
}
.site-header__safe-area { border-bottom: 1px solid var(--ct-gray-200); }
.main-menu > li > a { color: var(--ct-gray-700) !important; font-weight: 600; border-radius: .625rem; }
.main-menu > li > a:hover { color: var(--ct-copper-600) !important; background: var(--ct-copper-50) !important; }

/* Section titles in copper */
.s-block__title h2 { color: var(--ct-charcoal) !important; }
.s-block__title h2::after {
  content: ""; display: block; width: 48px; height: 3px; margin-top: 8px;
  background: var(--ct-copper-600); border-radius: 3px;
}

/* Buttons */
.s-button-primary.s-button-solid, .s-button-solid.s-button-primary {
  background-color: var(--ct-copper-600) !important;
  border-color: var(--ct-copper-600) !important;
  color: #fff !important;
  border-radius: .625rem !important;
  font-weight: 600;
}
.s-button-primary.s-button-solid:hover { background-color: var(--ct-copper-700) !important; border-color: var(--ct-copper-700) !important; }
.s-button-primary.s-button-outline {
  color: var(--ct-copper-600) !important; border-color: var(--ct-copper-600) !important; border-radius: .625rem !important;
}

/* Product cards */
.s-product-card-entry {
  border: 1px solid var(--ct-gray-200) !important;
  border-radius: 1rem !important;
  box-shadow: none !important;
  transition: border-color .2s, transform .2s;
}
.s-product-card-entry:hover { border-color: var(--ct-copper-300) !important; transform: translateY(-2px); }
.s-product-card-sale-price, .s-product-card-price { color: var(--ct-copper-600) !important; font-weight: 700; }
.s-product-card-promotion-title { background-color: var(--ct-copper-600) !important; }

/* Footer: dark charcoal like the site */
footer.store-footer { background-color: var(--ct-charcoal) !important; color: rgba(255,255,255,.75) !important; }
footer.store-footer h3 { color: #fff !important; }
footer.store-footer a { color: rgba(255,255,255,.75) !important; }
footer.store-footer a:hover { color: var(--ct-copper-300) !important; }
footer.store-footer .store-footer__inner { border-color: rgba(255,255,255,.12) !important; }
footer.store-footer svg, footer.store-footer i { color: var(--ct-copper-300); fill: currentColor; }

/* Links & focus */
a:hover { color: var(--ct-copper-600); }
:focus-visible { outline-color: var(--ct-copper-600) !important; }
/* ===== Consistent product cards ===== */
.s-product-card-entry {
  display: flex !important; flex-direction: column !important;
  height: 100% !important; background: #fff !important; overflow: hidden;
}
.s-product-card-entry .s-product-card-image {
  aspect-ratio: 1 / 1; height: auto !important; flex: 0 0 auto;
  background: #fff !important; border-bottom: 1px solid var(--ct-gray-200);
}
.s-product-card-entry .s-product-card-image > a { display: block; width: 100%; height: 100%; }
.s-product-card-entry .s-product-card-image > a > div:not(.s-product-card-promotion-title) { display: block; width: 100%; height: 100%; }
.s-product-card-entry .s-product-card-image img {
  width: 100% !important; height: 100% !important;
  object-fit: contain !important; padding: 12px; background: #fff;
}
.s-product-card-entry .s-product-card-content {
  display: flex !important; flex-direction: column !important; flex: 1 1 auto;
  gap: 8px; padding: 14px !important;
}
.s-product-card-entry .s-product-card-content-title {
  font-size: 15px !important; line-height: 1.5 !important;
  min-height: 3em; max-height: 3em; overflow: hidden;
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.s-product-card-entry .s-product-card-content-title a { color: var(--ct-charcoal) !important; }
.s-product-card-entry .s-product-card-content-sub {
  min-height: 28px; display: flex !important; align-items: center; justify-content: space-between;
}
.s-product-card-entry .s-product-card-content-footer {
  margin-top: auto !important; display: flex !important; align-items: center; gap: 8px;
}
.s-product-card-entry .s-product-card-content-footer > div:first-child { flex: 1 1 auto; }
.s-product-card-entry .s-product-card-content-footer salla-add-product-button,
.s-product-card-entry .s-product-card-content-footer salla-add-product-button .s-button-wrap,
.s-product-card-entry .s-product-card-content-footer .s-button-primary { width: 100% !important; display: flex !important; }
.s-product-card-entry .s-product-card-content-footer .s-button-element { height: 40px !important; }
.s-product-card-entry .s-product-card-wishlist-btn { width: 40px !important; height: 40px !important; border-radius: .625rem !important; }
.s-product-card-promotion-title { border-radius: .375rem !important; font-weight: 600; }

.s-product-card-entry .s-product-card-content-title a {
  line-height: 1.5 !important; overflow: hidden;
  display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.s-product-card-entry .s-product-card-content-title,
.s-product-card-entry .s-product-card-content-title * { line-height: 22px !important; }
.s-product-card-entry .s-product-card-content-title { height: 44px !important; min-height: 44px !important; max-height: 44px !important; overflow: hidden !important; }

/* ===== Full-page polish ===== */
/* Home product rows: 4 columns on desktop so rows fill the width */
@media (min-width: 1024px) {
  .s-block--fixed-products .s-products-list-vertical-cards { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
/* All section titles share one style */
.s-reviews-header, .s-block__title h2, .s-slider-block__title h2 {
  font-family: 'Cairo', 'Tajawal', sans-serif !important; font-weight: 700 !important;
  font-size: 1.375rem !important; color: var(--ct-charcoal) !important;
}
.s-reviews-header::after {
  content: ""; display: block; width: 48px; height: 3px; margin-top: 8px;
  background: var(--ct-copper-600); border-radius: 3px;
}
.s-block__title a, .s-slider-block__title a { color: var(--ct-copper-600) !important; font-weight: 600; }
/* Testimonials */
.s-reviews-testimonial {
  border: 1px solid var(--ct-gray-200) !important; border-radius: 1rem !important;
  box-shadow: none !important; background: #fff !important;
}
.s-reviews-testimonial .sicon-star2 { color: var(--ct-copper-500) !important; }
.s-slider-nav-arrow { border: 1px solid var(--ct-gray-200) !important; background: #fff !important; color: var(--ct-copper-600) !important; }
.s-slider-nav-arrow:hover { background: var(--ct-copper-600) !important; color: #fff !important; }
/* Store features */
.s-block--features__item {
  border: 1px solid var(--ct-gray-200) !important; border-radius: 1rem !important;
  box-shadow: none !important; padding: 28px 20px !important; transition: border-color .2s;
}
.s-block--features__item:hover { border-color: var(--ct-copper-300) !important; }
.s-block--features__item h2 { font-family: 'Cairo', 'Tajawal', sans-serif !important; font-size: 1.05rem !important; color: var(--ct-charcoal) !important; margin-top: 12px; }
.s-block--features__item p { color: var(--ct-gray-500) !important; }
/* Banners and slider: same rounded corners as cards */
.s-block--fixed-banner img, .s-block--fixed-banner a, .s-block--photos-slider .swiper, .s-block--photos-slider img { border-radius: 1rem !important; }
@media (max-width: 767px) {
  .s-reviews-testimonial__inner { flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 10px; }
  .s-reviews-testimonial__text { width: 100% !important; }
  .s-reviews-testimonial__name_wrapper { justify-content: center !important; flex-wrap: wrap; }
  .s-block--store-features .grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .s-block--features__item { grid-column: auto !important; padding: 16px 6px !important; }
  .s-block--features__item .feature-icon { width: 48px !important; height: 48px !important; }
  .s-block--features__item h2 { font-size: .95rem !important; }
  .s-block--features__item p { font-size: .75rem !important; line-height: 1.4; }
}