:root {
  --bg: #f8f5f1;
  --card: #ffffff;
  --text: #211e1b;
  --muted: #746e68;
  --accent: #9a6b4d;
  --line: #e7dfd7;
  --dark: #211e1b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: "DM Sans", sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.header {
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; background: rgba(248,245,241,.94); backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line);
}
.logo { font-family: "Playfair Display", serif; font-size: 28px; font-weight: 700; letter-spacing: 2px; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 32px; }
.nav a { font-size: 14px; color: var(--muted); transition: .2s; }
.nav a:hover { color: var(--text); }
.cart-btn { border: 0; background: var(--dark); color: white; border-radius: 30px; padding: 10px 15px; }
#cartCount { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; background: white; color: var(--dark); border-radius: 50%; font-size: 11px; margin-left: 4px; }

.hero { min-height: 650px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 70px 9%; gap: 50px; }
.eyebrow { font-size: 11px; letter-spacing: 3px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
.hero h1, h2 { font-family: "Playfair Display", serif; line-height: 1.05; }
.hero h1 { font-size: clamp(60px, 8vw, 110px); font-weight: 600; }
.hero h1 em { color: var(--accent); font-weight: 500; }
.hero-text { color: var(--muted); max-width: 450px; margin: 25px 0 32px; font-size: 17px; }
.primary-btn { display: inline-flex; justify-content: center; align-items: center; border: 0; background: var(--dark); color: white; padding: 14px 25px; border-radius: 4px; transition: .2s; }
.primary-btn:hover { transform: translateY(-2px); opacity: .9; }
.hero-visual { display: flex; justify-content: center; }
.hero-card {
  width: min(390px, 80vw); height: 470px; border-radius: 220px 220px 12px 12px;
  background: linear-gradient(145deg, #dbc7b6, #a87b5b); display: grid; place-items: center;
  box-shadow: 25px 25px 0 rgba(154,107,77,.10);
}
.bag-shape {
  width: 215px; height: 170px; background: #6d4937; border-radius: 18px 18px 30px 30px;
  color: #e8d7ca; display: grid; place-items: center; font-family: "Playfair Display", serif;
  font-size: 24px; position: relative; box-shadow: 0 25px 35px rgba(0,0,0,.16);
}
.bag-shape:before { content: ""; position: absolute; width: 105px; height: 70px; border: 9px solid #6d4937; border-bottom: 0; border-radius: 70px 70px 0 0; top: -62px; }

.categories { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 15px 6% 60px; }
.category { background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 9px 17px; border-radius: 30px; }
.category.active, .category:hover { background: var(--dark); color: white; border-color: var(--dark); }

.section { padding: 80px 8%; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 35px; }
.section-heading h2, .about h2, .contact h2 { font-size: clamp(40px, 5vw, 64px); }
#productCount { color: var(--muted); font-size: 14px; }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: .25s; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(40,30,20,.08); }
.product-image { height: 300px; display: grid; place-items: center; position: relative; background: #eee6df; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }

/* === تنسيقات السلايدر بالأسهم لصور المنتجات === */
.product-slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: rgba(33, 30, 27, 0.65) !important;
  color: white !important;
  border: none !important;
  border-radius: 50% !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
  font-size: 13px !important;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.slider-btn:hover {
  background: var(--dark) !important;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 8px !important; }
.next-btn { right: 8px !important; }

.placeholder-bag { width: 130px; height: 105px; background: var(--bag-color, #9b7157); border-radius: 15px 15px 24px 24px; display: grid; place-items: center; color: #fff; font-family: "Playfair Display"; font-size: 15px; position: relative; }
.placeholder-bag:before { content: ""; position: absolute; width: 65px; height: 42px; border: 6px solid var(--bag-color, #9b7157); border-bottom: 0; border-radius: 50px 50px 0 0; top: -38px; }
.badge { position: absolute; left: 12px; top: 12px; background: white; padding: 5px 9px; font-size: 10px; letter-spacing: 1px; border-radius: 3px; z-index: 6; }
.product-info { padding: 17px; }
.product-info h3 { font-family: "Playfair Display"; font-size: 20px; }
.category-name { color: var(--muted); font-size: 12px; margin: 3px 0 10px; }
.price { font-weight: 700; margin-bottom: 13px; }
.product-actions { display: flex; gap: 8px; }
.product-actions button { flex: 1; padding: 10px; border: 1px solid var(--line); background: white; border-radius: 3px; }
.product-actions .add { background: var(--dark); color: white; border-color: var(--dark); }

.about { background: #eee7e0; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about > p { color: var(--muted); font-size: 18px; max-width: 540px; }
.contact { text-align: center; }
.contact p { color: var(--muted); margin: 10px auto 25px; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 30; display: none; }
.overlay.show { display: block; }
.cart-drawer { position: fixed; right: 0; top: 0; height: 100%; width: min(430px, 100%); background: white; z-index: 40; transform: translateX(100%); transition: .3s; display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-header { padding: 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.icon-btn, .modal-close { border: 0; background: transparent; font-size: 30px; }
.cart-items { flex: 1; overflow-y: auto; padding: 18px; }
.empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.cart-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mini-image { width: 70px; height: 70px; background: #eee6df; display: grid; place-items: center; overflow: hidden; }
.mini-image img { width: 100%; height: 100%; object-fit: cover; }
.mini-image .placeholder-bag { width: 48px; height: 40px; font-size: 7px; }
.mini-image .placeholder-bag:before { width: 25px; height: 16px; border-width: 3px; top: -15px; }
.cart-item h4 { font-family: "Playfair Display"; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 5px; }
.qty button { border: 1px solid var(--line); background: white; width: 23px; height: 23px; }
.remove { border: 0; background: transparent; color: #a33; font-size: 12px; }
.cart-footer { padding: 20px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; font-size: 18px; margin-bottom: 15px; }
.full { width: 100%; }

.modal { position: fixed; z-index: 50; left: 50%; top: 50%; transform: translate(-50%, -45%); width: min(850px, 92vw); max-height: 90vh; overflow-y: auto; background: white; display: none; padding: 30px; }
.modal.show { display: block; }
.modal-close { position: absolute; right: 15px; top: 8px; }
.modal-product { display: grid; grid-template-columns: 1fr 1fr; gap: 35px; align-items: center; }
.modal-image { height: 430px; background: #eee6df; display: grid; place-items: center; overflow: hidden; position: relative; }
.modal-image img { width: 100%; height: 100%; object-fit: cover; }
.modal-product h2 { font-size: 45px; margin-bottom: 8px; }
.modal-product .price { font-size: 22px; margin: 15px 0; }

@media (max-width: 950px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { grid-template-columns: 1fr; padding-top: 45px; }
  .hero-visual { order: -1; }
  .hero-card { height: 350px; }
}
@media (max-width: 600px) {
  .header { padding: 0 5%; }
  .nav { display: none; }
  .hero { min-height: auto; padding: 55px 7%; }
  .hero h1 { font-size: 64px; }
  .section { padding: 55px 6%; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-image { height: 210px; }
  .product-info { padding: 12px; }
  .product-info h3 { font-size: 17px; }
  .product-actions { flex-direction: column; }
  .about { grid-template-columns: 1fr; gap: 25px; }
  .modal-product { grid-template-columns: 1fr; }
  .modal-image { height: 300px; }
  .slider-btn { width: 26px !important; height: 26px !important; font-size: 11px !important; }
}