/* ===== نقاء - التصميم المشترك ===== */
:root {
  --bg: #FDF1F3;
  --accent: #E60039;
  --text-dark: #5A0016;
  --muted: #A32942;
  --white: #FFFFFF;
  --footer-bg: #4A0010;
  --green: #8CC63F;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; }
body { background: var(--bg); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 70px 0; }

.badge { display: inline-flex; align-items: center; background: #fff; color: var(--accent); padding: 8px 25px; border-radius: 50px; font-weight: 700; font-size: 16px; margin-bottom: 18px; box-shadow: 0 5px 15px rgba(230,0,57,0.1); border: 1px solid rgba(230,0,57,0.1); }
.section-title { text-align: center; font-size: 40px; font-weight: 900; margin-bottom: 12px; }
.section-title span { color: var(--accent); }
.section-subtitle { text-align: center; font-size: 19px; color: var(--muted); margin-bottom: 45px; font-weight: 500; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--accent); color: #fff; padding: 15px 35px; font-size: 19px; font-weight: 800; border-radius: 50px; border: none; cursor: pointer; box-shadow: 0 10px 20px rgba(230,0,57,0.3); transition: 0.3s; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(230,0,57,0.4); }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--accent); padding: 14px 32px; font-size: 18px; font-weight: 800; border-radius: 50px; border: 2px solid var(--accent); cursor: pointer; transition: 0.3s; }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ===== HEADER ===== */
.sticky-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,235,235,0.95); backdrop-filter: blur(10px); padding: 12px 0; box-shadow: 0 5px 20px rgba(0,0,0,0.04); }
.header-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.logo-text { font-size: 26px; font-weight: 900; color: var(--accent); line-height: 1; }
.logo-text small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 2px; }
.main-nav { display: flex; gap: 25px; align-items: center; }
.main-nav a { font-weight: 700; font-size: 16px; color: var(--text-dark); transition: 0.2s; }
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn { position: relative; background: #fff; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 18px; box-shadow: 0 3px 10px rgba(0,0,0,0.08); transition: 0.3s; }
.cart-btn:hover { transform: scale(1.08); }
.cart-count { position: absolute; top: -5px; left: -5px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.menu-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--accent); cursor: pointer; }

/* ===== PRODUCT GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 1000px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
@media (max-width: 540px) { .products-grid { grid-template-columns: 1fr; } }
.product-card { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); transition: 0.3s; position: relative; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(230,0,57,0.12); }
.product-card .card-badge { position: absolute; top: 15px; right: 15px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; padding: 5px 14px; border-radius: 50px; z-index: 5; }
.product-card .card-img { height: 240px; overflow: hidden; background: #FAFAFA; position: relative; display: block; }
.product-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.4s; }
.product-card:hover .card-img img { transform: scale(1.06); }
.product-card .card-img .img-hover { position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s ease, transform 0.4s; }
.product-card:hover .card-img .img-hover { opacity: 1; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 5px; }
.card-body .tagline { font-size: 14px; color: var(--muted); margin-bottom: 12px; min-height: 42px; }
.price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.price { font-size: 22px; font-weight: 900; color: var(--accent); }
.old-price { font-size: 16px; color: #aaa; text-decoration: line-through; }
.card-actions { display: flex; gap: 10px; margin-top: auto; }
.card-actions .btn-add { flex: 1; background: var(--accent); color: #fff; border: none; padding: 12px; border-radius: 12px; font-size: 15px; font-weight: 800; cursor: pointer; transition: 0.3s; font-family: 'Tajawal'; }
.card-actions .btn-add:hover { background: #c40031; }
.card-actions .btn-view { background: var(--bg); color: var(--accent); padding: 12px 16px; border-radius: 12px; font-size: 15px; font-weight: 800; transition: 0.3s; }
.card-actions .btn-view:hover { background: var(--accent); color: #fff; }

/* ===== FOOTER ===== */
footer { background: var(--footer-bg); color: #fff; text-align: center; padding: 55px 20px 25px; margin-top: 80px; }
.footer-grid { max-width: 1000px; margin: 0 auto 35px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; text-align: right; }
.footer-col h4 { font-size: 18px; font-weight: 800; margin-bottom: 15px; color: #fff; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 9px; transition: 0.2s; }
.footer-col a:hover { color: #fff; }
.social-icons { display: flex; justify-content: center; gap: 15px; margin: 25px 0; }
.social-icons a { width: 45px; height: 45px; background: rgba(255,255,255,0.1); color: #fff; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 20px; transition: 0.3s; }
.social-icons a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 22px; font-size: 13px; color: rgba(255,255,255,0.45); line-height: 2; }
.footer-dedication { color: rgba(255,255,255,0.85); font-size: 15px; font-weight: 600; margin-bottom: 5px; }

/* ===== FLOATING WA ===== */
.floating-wa { position: fixed; bottom: 28px; right: 28px; background: #25D366; color: #fff; width: 62px; height: 62px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 33px; box-shadow: 0 10px 25px rgba(37,211,102,0.4); z-index: 1000; transition: 0.3s; border: 4px solid rgba(255,255,255,0.8); }
.floating-wa:hover { transform: scale(1.1); }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 110px; right: 28px; background: var(--text-dark); color: #fff; padding: 14px 25px; border-radius: 12px; font-weight: 700; font-size: 15px; z-index: 2000; opacity: 0; transform: translateY(20px); transition: 0.3s; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.toast.show { opacity: 1; transform: translateY(0); }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
@keyframes floating { 0% { transform: translateY(0); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0); } }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* ===== FORMS ===== */
.input-group { text-align: right; margin-bottom: 18px; }
.input-group label { display: block; font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.input-group label span { color: var(--accent); }
.input-group input, .input-group select, .input-group textarea { width: 100%; padding: 15px 18px; font-size: 16px; border: 2px solid #F0F0F0; border-radius: 14px; background: #FAFAFA; transition: 0.3s; font-family: 'Tajawal'; }
.input-group input:focus, .input-group select:focus, .input-group textarea:focus { border-color: var(--accent); outline: none; background: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; flex-direction: column; padding: 20px; gap: 18px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .section-title { font-size: 30px; }
}
