/* ================================
   Identity Variables (OFFICIAL BRAND)
================================ */
:root{
  --primary: #521d20;
  --secondary: #ba676c;
  --dark: #381416;
  --light: #dbc6c7;

  --primary-rgb: 82, 29, 32;
  --secondary-rgb: 186, 103, 108;
  --dark-rgb: 56, 20, 22;
  --light-rgb: 219, 198, 199;

  --text-dark: #2b2b2b;
  --muted: #6b7280;
  --white: #ffffff;

  --radius: 16px;
  --shadow: 0 12px 30px rgba(0,0,0,.10);
  --shadow-soft: 0 10px 22px rgba(var(--primary-rgb), .18);
  --stroke: 1px solid rgba(var(--light-rgb), .9);
}

/* ================================
   1) Add to Cart Button Styling
================================ */
button.s-button-primary,
a.s-button-primary,
.s-product-actions button,
.s-product-actions a,
.s-product-buy button,
.s-product-buy a,
button[aria-label*="السلة"],
button[aria-label*="Add to cart"],
button[class*="add-to-cart"],
a[class*="add-to-cart"]{
  background: linear-gradient(135deg, var(--primary), var(--dark)) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  box-shadow: var(--shadow-soft) !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease !important;
}

button.s-button-primary:hover,
a.s-button-primary:hover,
.s-product-actions button:hover,
.s-product-actions a:hover,
.s-product-buy button:hover,
.s-product-buy a:hover,
button[class*="add-to-cart"]:hover,
a[class*="add-to-cart"]:hover{
  transform: translateY(-2px) !important;
  filter: brightness(1.03) !important;
  box-shadow: 0 16px 34px rgba(var(--primary-rgb), .26) !important;
}

button.s-button-primary:active,
a.s-button-primary:active{
  transform: translateY(0) scale(.99) !important;
}

/* Secondary button */
button.s-button-outline,
a.s-button-outline,
button.s-button-secondary,
a.s-button-secondary{
  background: rgba(var(--light-rgb), .25) !important;
  color: var(--dark) !important;
  border: 1px solid rgba(var(--secondary-rgb), .35) !important;
  border-radius: var(--radius) !important;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease !important;
}

button.s-button-outline:hover,
a.s-button-outline:hover,
button.s-button-secondary:hover,
a.s-button-secondary:hover{
  background: rgba(var(--light-rgb), .35) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 24px rgba(var(--primary-rgb), .14) !important;
}

/* ================================
   2) Fancy Hover Effect for Product Cards
================================ */
.s-product-card-entry,
.s-product-card,
.product-card,
[class*="product-card"]{
  border: var(--stroke) !important;
  border-radius: calc(var(--radius) + 4px) !important;
  overflow: hidden !important;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease !important;
  background: var(--white) !important;
}

.s-product-card-entry:hover,
.s-product-card:hover,
.product-card:hover,
[class*="product-card"]:hover{
  transform: translateY(-6px) !important;
  box-shadow: var(--shadow) !important;
  border-color: rgba(var(--secondary-rgb), .55) !important;
}

.s-product-card-image img,
.s-product-card img,
.product-card img{
  transition: transform .35s ease, filter .35s ease !important;
}

.s-product-card-entry:hover .s-product-card-image img,
.s-product-card:hover img,
.product-card:hover img{
  transform: scale(1.04) !important;
  filter: contrast(1.02) saturate(1.02) !important;
}

.s-product-card-promotion-title,
[class*="promotion"],
[class*="badge"]{
  border-radius: 999px !important;
  padding: 6px 10px !important;
  background: rgba(var(--primary-rgb), .78) !important;
  color: var(--white) !important;
}

/* ================================
   3) Product Page Styling
================================ */
.s-product-title,
.product-title,
h1,
h1.s-title,
[class*="product-title"]{
  color: var(--text-dark) !important;
}

.s-product-price,
.product-price,
[class*="price"]{
  color: var(--dark) !important;
}

[class*="sale"]{
  color: var(--primary) !important;
}

.s-product-description,
.product-description,
[class*="description"]{
  color: #404040 !important;
  line-height: 1.9 !important;
}

.s-product-options button,
.product-options button,
[class*="option"] button{
  border: 1px solid rgba(var(--light-rgb), .85) !important;
  border-radius: 12px !important;
  background: rgba(var(--light-rgb), .15) !important;
  transition: all .18s ease !important;
}

.s-product-options button:hover,
.product-options button:hover,
[class*="option"] button:hover{
  background: rgba(var(--light-rgb), .30) !important;
  border-color: rgba(var(--secondary-rgb), .45) !important;
  transform: translateY(-1px) !important;
}

.s-product-options button.is-selected,
.product-options button.is-selected{
  background: rgba(var(--secondary-rgb), .18) !important;
  border-color: rgba(var(--dark-rgb), .75) !important;
  box-shadow: 0 10px 18px rgba(var(--primary-rgb), .18) !important;
}

/* ================================
   4) Dark Section + Footer
================================ */
.dark-section{
  background: #1b0b0d !important;
  color: rgba(255,255,255,.88) !important;
  border-radius: calc(var(--radius) + 6px) !important;
  padding: 18px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.22) !important;
  border: 1px solid rgba(var(--light-rgb), .18) !important;
}

.store-footer{
  background: linear-gradient(180deg, #1b0b0d, #120709) !important;
  color: rgba(255,255,255,.88) !important;
  border-top: 1px solid rgba(var(--light-rgb), .22) !important;
}

.store-footer a{
  color: rgba(var(--light-rgb), .92) !important;
}

.store-footer a:hover{
  opacity: .85 !important;
}

/* ================================
   Small polish
================================ */
input:focus,
select:focus,
textarea:focus{
  outline: none !important;
  box-shadow: 0 0 0 4px rgba(var(--light-rgb), .35) !important;
  border-color: rgba(var(--secondary-rgb), .55) !important;
  border-radius: 12px !important;
}
/* ================================
   Footer Text Contrast Fix
================================ */

/* نصوص الفوتر */
.store-footer,
.store-footer p,
.store-footer span,
.store-footer li,
.store-footer a{
  color: #3a1a1c !important; /* غامق من نفس الهوية */
}

/* عناوين الفوتر */
.store-footer h1,
.store-footer h2,
.store-footer h3,
.store-footer h4{
  color: #521d20 !important;
  font-weight: 600 !important;
}

/* أيقونات التواصل */
.store-footer svg,
.store-footer [class*="icon"]{
  fill: #521d20 !important;
  opacity: .95 !important;
}

/* خط فاصل علوي أنعم */
.store-footer{
  border-top: 1px solid rgba(82,29,32,.15) !important;
}

/* روابط عند المرور */
.store-footer a:hover{
  color: #7a2d31 !important;
  opacity: 1 !important;
}