/* ARTORA — Main stylesheet (مستخرج من index.html الأصلي) */

html { scroll-behavior: smooth; }
body { font-family: 'Tajawal', sans-serif; background:#fdfcf9; color:#1a1a1a; }
.font-display { font-family: 'Cormorant Garamond', serif; letter-spacing: .01em; }

/* Gold gradient text */
.text-gold-gradient {
  background: linear-gradient(120deg, #b8923a 0%, #dcba53 35%, #967428 60%, #b8923a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto;
  animation: artora-shine 8s linear infinite;
}
@keyframes artora-shine { 0%{background-position:-200% 0} 100%{background-position:200% 0} }

/* Card lift */
.card-lift { transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(61,40,23,.25); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background:#faf7f0; }
::-webkit-scrollbar-thumb { background: linear-gradient(#dcba53,#967428); border-radius: 10px; }

/* Marquee */
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(50%)} }
.marquee-track { animation: marquee 35s linear infinite; }

/* Pattern */
.pattern-dots {
  background-image: radial-gradient(rgba(184,146,58,.18) 1px, transparent 1px);
  background-size: 24px 24px;
}
.pattern-grid {
  background-image:
    linear-gradient(rgba(184,146,58,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,146,58,.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

.ratio-product { aspect-ratio: 4/5; }

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg,#dcba53 0%, #b8923a 50%, #705620 100%);
  color:#fff; font-weight:700; letter-spacing:.02em;
  box-shadow: 0 12px 30px -10px rgba(184,146,58,.55), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-ghost {
  border:1.5px solid #b8923a; color:#705620; background:#fff;
}
.btn-ghost:hover { background:#fbf6e7; }

/* Heart active */
.heart-active { color:#dc2626 !important; fill:#dc2626; }

/* Inputs */
.input {
  background:#fff; border:1.5px solid #ebe2cc; border-radius:14px;
  padding:.85rem 1rem; width:100%; color:#1a1a1a; outline:none; transition:.2s;
}
.input:focus { border-color:#b8923a; box-shadow:0 0 0 4px rgba(184,146,58,.12); }
.label { font-size:.8rem; font-weight:600; color:#3d2817; margin-bottom:.4rem; display:block; }

/* عناصر مخفية بـ Alpine قبل التحميل */
[x-cloak] { display: none !important; }

/* Responsive polish */
img { max-width: 100%; height: auto; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }

@media (min-width: 1024px) {
  #home .shadow-soft { min-height: 680px; }
  #products .grid { align-items: stretch; }
}

@media (max-width: 1023px) {
  .card-lift:hover { transform: none; }
}

@media (max-width: 767px) {
  body { overflow-x: hidden; }

  header .h-20 { height: 64px; }
  header .w-12.h-12 { width: 44px; height: 44px; border-radius: 1rem; }
  header .font-display.text-2xl { font-size: 1.35rem; }
  header .tracking-\[\.45em\] { letter-spacing: .28em; font-size: 8px; }

  section { scroll-margin-top: 74px; }
  #home .max-w-7xl { padding-left: .875rem; padding-right: .875rem; }
  #home .shadow-soft { border-radius: 1.25rem; }
  #home h1 { font-size: clamp(2rem, 10vw, 3.1rem) !important; }
  #home p { font-size: .92rem; line-height: 1.8; }
  #home .btn-gold,
  #home .btn-ghost { width: 100%; justify-content: center; }

  #products { padding-top: 3.5rem; padding-bottom: 3.5rem; }
  #products h2 { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.15; }
  #products .flex.flex-wrap.gap-2 { gap: .5rem; overflow-x: auto; flex-wrap: nowrap; padding-bottom: .25rem; scrollbar-width: none; }
  #products .flex.flex-wrap.gap-2::-webkit-scrollbar { display: none; }
  #products .flex.flex-wrap.gap-2 button { white-space: nowrap; flex: 0 0 auto; }
  #products .grid.grid-cols-2 { gap: .75rem; }
  #products .rounded-2xl { border-radius: 1rem; }
  #products .p-4 { padding: .75rem; }
  #products h3 { min-height: 2.5rem; line-height: 1.35; }
  #products .text-lg { font-size: 1rem; }
  #products .md\:hidden.mt-3 { margin-top: .65rem; }
  #products .md\:hidden button { min-height: 40px; }

  .fixed.inset-0.z-\[80\] { padding: 0 !important; }
  .fixed.inset-0.z-\[80\] > div[x-show] {
    max-height: 92dvh;
    border-radius: 1.25rem 1.25rem 0 0;
  }
  .fixed.inset-0.z-\[80\] .p-5,
  .fixed.inset-0.z-\[80\] .p-6 { padding: 1rem; }
  .fixed.inset-0.z-\[80\] .md\:p-7 { padding: 1rem; }

  .input {
    min-height: 46px;
    font-size: 16px;
    border-radius: 12px;
  }
  .label { font-size: .82rem; }

  [x-show="orderOpen"] .grid.md\:grid-cols-2 > .bg-cream-50 {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: .75rem;
    align-items: start;
  }
  [x-show="orderOpen"] .grid.md\:grid-cols-2 > .bg-cream-50 .rounded-2xl { margin-bottom: 0; }
  [x-show="orderOpen"] .grid.md\:grid-cols-2 > .bg-cream-50 img { aspect-ratio: 1 / 1; }
  [x-show="orderOpen"] .grid.md\:grid-cols-2 > .bg-cream-50 > .flex,
  [x-show="orderOpen"] .grid.md\:grid-cols-2 > .bg-cream-50 > .mt-5 { grid-column: 1 / -1; }
  [x-show="orderOpen"] form .grid.grid-cols-2 { grid-template-columns: 1fr; }
  [x-show="orderOpen"] form button[type="button"] { min-height: 58px; }
  [x-show="orderOpen"] button[type="submit"] {
    position: sticky;
    bottom: .75rem;
    z-index: 15;
    box-shadow: 0 18px 45px -18px rgba(112,86,32,.45);
  }

  [x-show="quickViewOpen"] .aspect-square { aspect-ratio: 4 / 3; }
  [x-show="quickViewOpen"] h3 { font-size: 1.6rem; }
  [x-show="quickViewOpen"] .text-3xl { font-size: 1.65rem; }
  [x-show="quickViewOpen"] .justify-between { gap: 1rem; }
  [x-show="quickViewOpen"] .justify-between > span:last-child { text-align: left; }

  [x-show="searchOpen"] { padding-top: 5rem !important; align-items: flex-start; }
  [x-show="searchOpen"] .max-w-2xl { max-width: none; }

  [x-show="mobileNav"] nav { align-items: stretch; padding: 0 1.25rem; margin-top: 2rem; }
  [x-show="mobileNav"] nav a {
    display: block;
    width: 100%;
    border: 1px solid #ebe2cc;
    border-radius: 1rem;
    padding: 1rem;
    text-align: center;
    background: #faf7f0;
  }
}

@media (max-width: 380px) {
  #products .grid.grid-cols-2 { grid-template-columns: 1fr; }
  #products .ratio-product { aspect-ratio: 5 / 4; }
}
