/* =========================================================
   MOLody / مولودي — Salla starter theme
   Palette inspired by the Molody logo: turquoise, pink, yellow.
   Paste into: Store Design > Customize Theme > CSS
   ========================================================= */

:root {
  --molody-turquoise: #12aabd;
  --molody-turquoise-dark: #07899b;
  --molody-pink: #e91e83;
  --molody-pink-dark: #c9146d;
  --molody-yellow: #ffd84d;
  --molody-ink: #344054;
  --molody-muted: #7b8794;
  --molody-page: #fff9fc;
  --molody-surface: #ffffff;
  --molody-border: #f3dce8;
  --molody-shadow: 0 8px 24px rgba(49, 55, 80, 0.07);
  --molody-radius: 18px;
}

/* General page appearance */
html { scroll-behavior: smooth; }
body {
  background: var(--molody-page);
  color: var(--molody-ink);
  font-family: "Tajawal", "Cairo", Tahoma, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--molody-ink);
  font-weight: 800;
  line-height: 1.45;
}

p { line-height: 1.9; }
a { transition: color .2s ease, background-color .2s ease; }
a:hover { color: var(--molody-pink); }

/* Header and navigation — selectors vary by Salla theme */
header,
.store-header,
.salla-header,
.main-nav-container {
  background: var(--molody-surface);
  border-bottom: 1px solid var(--molody-border);
}

.navbar a,
.main-nav a,
.main-menu a,
.store-header a {
  color: var(--molody-ink);
  font-weight: 700;
}

.navbar a:hover,
.main-nav a:hover,
.main-menu a:hover,
.store-header a:hover {
  color: var(--molody-pink);
}

/* Main buttons and purchase actions */
.s-button-element--primary,
.s-button-primary,
.btn-primary,
button[type="submit"],
.s-product-card-add-to-cart .s-button-element,
.s-add-product-button {
  background: var(--molody-pink) !important;
  border: 1px solid var(--molody-pink) !important;
  border-radius: 999px !important;
  color: #fff !important;
  font-weight: 800 !important;
  box-shadow: 0 5px 14px rgba(233, 30, 131, .16);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.s-button-element--primary:hover,
.s-button-primary:hover,
.btn-primary:hover,
button[type="submit"]:hover,
.s-product-card-add-to-cart .s-button-element:hover,
.s-add-product-button:hover {
  background: var(--molody-pink-dark) !important;
  border-color: var(--molody-pink-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(233, 30, 131, .22);
}

/* Secondary buttons */
.s-button-element--secondary,
.btn-secondary {
  background: #e9f9fb !important;
  border: 1px solid #bcebf0 !important;
  border-radius: 999px !important;
  color: var(--molody-turquoise-dark) !important;
  font-weight: 700 !important;
}

/* Product cards */
.s-product-card,
.product-card,
.product-item {
  background: var(--molody-surface);
  border: 1px solid var(--molody-border);
  border-radius: var(--molody-radius);
  box-shadow: var(--molody-shadow);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.s-product-card:hover,
.product-card:hover,
.product-item:hover {
  border-color: #efb6d2;
  box-shadow: 0 13px 30px rgba(49, 55, 80, .11);
  transform: translateY(-3px);
}

.s-product-card-image img,
.product-card img,
.product-item img {
  border-radius: 14px;
}

.s-product-card h3,
.s-product-card-title,
.product-card h3,
.product-title {
  color: var(--molody-ink);
  font-weight: 800;
}

/* Prices and discount labels */
.s-product-card-price,
.product-price,
.price {
  color: var(--molody-turquoise-dark);
  font-weight: 900;
}

.s-product-card-sale-price,
.sale-price,
.price--sale {
  color: var(--molody-pink) !important;
  font-weight: 900;
}

.s-product-card-badge,
.product-badge,
.badge--sale {
  background: var(--molody-yellow);
  border-radius: 999px;
  color: #5b4b16;
  font-weight: 800;
}

/* Search and form fields */
input:not([type="checkbox"]):not([type="radio"]),
select,
textarea,
.s-form-control {
  border: 1px solid var(--molody-border);
  border-radius: 12px;
  color: var(--molody-ink);
}

input:focus,
select:focus,
textarea:focus,
.s-form-control:focus {
  border-color: var(--molody-turquoise) !important;
  box-shadow: 0 0 0 3px rgba(18, 170, 189, .12) !important;
  outline: none;
}

/* Section headings and content blocks */
.section-title,
.s-block__title,
.home-section-title {
  color: var(--molody-ink);
  font-weight: 900;
}

/* Footer */
footer,
.store-footer,
.salla-footer {
  background: #eaf9fa;
  border-top: 3px solid var(--molody-yellow);
  color: var(--molody-ink);
}

footer a,
.store-footer a,
.salla-footer a {
  color: var(--molody-ink);
}

footer a:hover,
.store-footer a:hover,
.salla-footer a:hover {
  color: var(--molody-pink);
}

/* Keyboard accessibility */
:focus-visible {
  outline: 3px solid rgba(18, 170, 189, .45);
  outline-offset: 2px;
}

/* Mobile spacing and card sizing */
@media (max-width: 767px) {
  .s-product-card,
  .product-card,
  .product-item {
    border-radius: 14px;
  }

  h1 { font-size: clamp(1.35rem, 5vw, 1.8rem); }
  h2 { font-size: clamp(1.15rem, 4.5vw, 1.5rem); }

  .s-button-element--primary,
  .s-button-primary,
  .btn-primary,
  .s-add-product-button {
    min-height: 42px;
  }
}