:root {
  --black: #2c1810;
  --charcoal: #5a3e2b;
  --primary: #8b5a2b;
  --primary-dark: #5b371b;
  --accent: #c97a34;
  --accent-dark: #9c5820;
  --accent-soft: #f6d7b8;
  --cream: #fef7f0;
  --bg: #fef7f0;
  --bg-alt: #fffaf4;
  --white: #ffffff;
  --border: rgba(110, 71, 38, 0.18);
  --shadow: 0 18px 38px rgba(91, 55, 27, 0.12);
  --transition: 0.35s ease;
  --radius: 22px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.8;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
body::before,
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0; }
body::before {
  background-image: linear-gradient(90deg, rgba(139, 90, 43, 0.025) 0, rgba(139, 90, 43, 0.025) 2px, transparent 2px, transparent 44px), linear-gradient(0deg, rgba(139, 90, 43, 0.02) 0, rgba(139, 90, 43, 0.02) 1px, transparent 1px, transparent 22px), radial-gradient(circle at 20% 20%, rgba(255,255,255,0.55), transparent 30%), radial-gradient(circle at 80% 0%, rgba(201, 122, 52, 0.08), transparent 26%);
}
body::after {
  background-image: radial-gradient(circle, rgba(201, 122, 52, 0.18) 0 1px, transparent 1px), radial-gradient(circle, rgba(139, 90, 43, 0.12) 0 1px, transparent 1px), radial-gradient(circle, rgba(255,255,255,0.35) 0 1px, transparent 1px);
  background-size: 140px 140px, 180px 180px, 220px 220px;
  animation: floatDust 18s linear infinite;
  opacity: 0.55;
}
@keyframes floatDust { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-10px, 14px, 0); } 100% { transform: translate3d(0, 0, 0); } }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(201, 122, 52, 0.45); outline-offset: 3px; }
main, footer { position: relative; z-index: 1; }
header { position: relative; z-index: 1200; }
.discount-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; background: linear-gradient(90deg, var(--primary-dark), var(--accent)); color: var(--white); padding: 8px 0; text-align: center; font-size: 0.9rem; font-weight: 700; }
.banner-scroll { white-space: nowrap; animation: scrollBanner 22s linear infinite; }
@keyframes scrollBanner { 0% { transform: translateX(0); } 50% { transform: translateX(-32px); } 100% { transform: translateX(0); } }
.site-header { position: relative; }
.navbar { position: fixed; inset: 0 0 auto 0; z-index: 1100; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 6vw; background: rgba(33, 18, 10, 0.42); border-bottom: 1px solid transparent; backdrop-filter: blur(14px); transition: background var(--transition), box-shadow var(--transition), border-color var(--transition), padding var(--transition); }
.navbar.scrolled { background: rgba(255, 250, 244, 0.96); border-color: rgba(91, 55, 27, 0.12); box-shadow: 0 8px 22px rgba(91, 55, 27, 0.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.3); object-fit: cover; background: rgba(255,255,255,0.2); }
.brand span, .hero h1, .category-hero h1, .section-heading h2, .about-card h2, .contact-box h2, .product-title { font-family: 'Playfair Display', serif; }
.brand span { color: var(--white); font-size: 1.6rem; letter-spacing: 0.08em; }
.navbar.scrolled .brand span { color: var(--primary-dark); }
.nav-links { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-links a { color: var(--white); font-weight: 600; padding-bottom: 3px; position: relative; }
.nav-links a[aria-current="page"] { font-weight: 800; }
.navbar.scrolled .nav-links a { color: var(--primary-dark); }
.nav-links a::after { content: ''; position: absolute; right: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent-soft); transform: scaleX(0); transform-origin: right; transition: transform var(--transition); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-wholesale-btn { border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.12); color: var(--white); padding: 10px 16px; min-height: 44px; border-radius: 999px; cursor: pointer; font-weight: 700; transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition); }
.nav-wholesale-btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.2); }
.navbar.scrolled .nav-wholesale-btn { color: var(--primary-dark); background: rgba(139, 90, 43, 0.08); border-color: rgba(139, 90, 43, 0.18); }
.nav-wholesale-btn.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: var(--white); border-color: transparent; }
.full-width { width: 100%; justify-content: center; }
.cart-icon { position: relative; width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: none; padding: 0; border-radius: 50%; background: rgba(255,255,255,0.12); color: var(--white); cursor: pointer; transition: transform var(--transition), background var(--transition), color var(--transition); }
.cart-icon.cart-bump { transform: scale(1.12); }
.navbar.scrolled .cart-icon { background: rgba(139, 90, 43, 0.08); color: var(--primary-dark); }
.cart-badge { position: absolute; top: -4px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #ef4444; color: var(--white); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; }
.mobile-menu-btn { display: none; min-width: 44px; min-height: 44px; border: none; background: transparent; color: var(--white); font-size: 1.6rem; cursor: pointer; }
.navbar.scrolled .mobile-menu-btn { color: var(--primary-dark); }
.mobile-menu { display: none; position: fixed; top: 78px; right: 16px; left: 16px; z-index: 1090; background: rgba(255, 250, 244, 0.98); border: 1px solid rgba(91, 55, 27, 0.12); border-radius: 24px; box-shadow: var(--shadow); padding: 14px; }
.mobile-menu.active { display: block; }
.mobile-menu a, .mobile-menu button { display: block; width: 100%; margin-bottom: 8px; text-align: center; }
.mobile-menu a { padding: 11px 16px; border-radius: 16px; background: rgba(139, 90, 43, 0.04); color: var(--primary-dark); font-weight: 700; }
.hero, .category-hero { min-height: 100vh; position: relative; display: grid; place-items: center; padding: 130px 6vw 72px; overflow: hidden; isolation: isolate; }
.hero { background: url('hero-bg.png') center center / cover no-repeat; }
.category-hero { min-height: 72vh; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15), transparent 30%), linear-gradient(135deg, rgba(44, 24, 16, 0.94), rgba(91, 55, 27, 0.92)); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(44, 24, 16, 0.28), rgba(32, 17, 9, 0.84)); z-index: -1; }
.hero-content, .category-hero-content { width: min(860px, 100%); text-align: center; color: var(--white); }
.hero-tool-wrap { display: flex; justify-content: center; gap: 20px; margin-bottom: 18px; }
.hero-tool-icon { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 18px; background: rgba(255,255,255,0.14); backdrop-filter: blur(8px); box-shadow: 0 12px 24px rgba(0,0,0,0.16); }
.hero-tool-icon.hammer { animation: hammerTap 2.8s ease-in-out infinite; }
.hero-tool-icon.saw { animation: sawMove 3.2s ease-in-out infinite; }
@keyframes hammerTap { 0%, 100% { transform: rotate(0deg); } 35% { transform: rotate(-18deg) translateY(-2px); } 55% { transform: rotate(6deg) translateY(1px); } }
@keyframes sawMove { 0%, 100% { transform: translateX(0) rotate(0deg); } 50% { transform: translateX(-6px) rotate(-6deg); } }
.eyebrow, .section-kicker { display: inline-block; color: var(--accent-soft); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; font-weight: 800; margin-bottom: 14px; }
.hero h1, .category-hero h1 { font-size: clamp(2.6rem, 5.3vw, 4.7rem); line-height: 1.18; margin-bottom: 16px; }
.hero p, .category-hero p { max-width: 720px; margin: 0 auto; color: rgba(255,255,255,0.9); font-size: 1.06rem; }
.hero-actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-status-bar { margin-top: 24px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-status-pill { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.18); color: var(--white); padding: 10px 14px; border-radius: 999px; font-size: 0.92rem; font-weight: 700; }
.breadcrumb { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,0.12); margin-bottom: 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-width: 170px; min-height: 44px; padding: 14px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 800; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); box-shadow: 0 12px 22px rgba(156, 88, 32, 0.24); }
.btn-secondary { color: var(--white); border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.06); }
.wood-sign-btn { position: relative; border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,0.12), transparent), linear-gradient(135deg, #a66a35, #7a4b24); }
.wood-sign-btn::before, .wood-sign-btn::after { content: ''; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: rgba(43, 24, 10, 0.55); box-shadow: inset 0 2px 3px rgba(255,255,255,0.16); }
.wood-sign-btn::before { right: 14px; }
.wood-sign-btn::after { left: 14px; }
.section { padding: 88px 6vw; position: relative; z-index: 1; }
.wood-section::before { content: ''; position: absolute; top: -1px; right: 0; left: 0; height: 26px; background: linear-gradient(-45deg, transparent 12px, rgba(139, 90, 43, 0.08) 0), linear-gradient(45deg, transparent 12px, rgba(139, 90, 43, 0.08) 0); background-size: 24px 24px; opacity: 0.4; }
.section-heading { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.section-heading.align-start { text-align: right; margin: 0 0 24px; }
.compact-heading { max-width: none; margin-bottom: 20px; }
.section-heading h2, .about-card h2, .contact-box h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); color: var(--primary-dark); margin-bottom: 10px; }
.section-heading p, .about-card p, .contact-box p { color: var(--charcoal); font-size: 1.02rem; }
.store-notice { max-width: 880px; margin: 0 auto 18px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,0.72); border: 1px solid rgba(91, 55, 27, 0.1); color: var(--primary-dark); text-align: center; }
.store-loading { text-align: center; padding: 40px 16px; color: var(--primary-dark); }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 3px solid rgba(139, 90, 43, 0.14); border-top-color: var(--accent); margin: 0 auto 14px; animation: spin 0.85s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.category-showcase-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.category-card, .about-card, .contact-box, .delivery-card, .wholesale-panel, .order-tracking-card, .product-card, .preview-card, .wholesale-strip, .checkout-card, .empty-checkout, .checkout-success-card { background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.82)), linear-gradient(90deg, rgba(139, 90, 43, 0.05) 0, transparent 100%); border: 1px solid rgba(91, 55, 27, 0.12); border-radius: var(--radius); box-shadow: var(--shadow); }
.category-card, .about-card, .contact-box, .wholesale-panel, .product-card { position: relative; overflow: hidden; }
.category-card::before, .product-card::before, .wholesale-panel::before, .about-card::before, .contact-box::before { content: ''; position: absolute; inset: 10px; border-radius: calc(var(--radius) - 10px); border: 1px solid rgba(139, 90, 43, 0.08); pointer-events: none; }
.category-card::after, .product-card::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(115deg, transparent 20%, rgba(139, 90, 43, 0.06) 21%, transparent 22%, transparent 38%, rgba(139, 90, 43, 0.04) 39%, transparent 40%); opacity: 0.55; pointer-events: none; }
.category-card { padding: 24px; }
.category-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.category-badge { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: rgba(139, 90, 43, 0.08); font-size: 1.8rem; }
.category-count { color: var(--charcoal); font-weight: 700; font-size: 0.92rem; }
.category-preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.preview-card { padding: 14px; transition: transform var(--transition), box-shadow var(--transition); cursor: pointer; }
.preview-card:hover, .category-card:hover, .product-card:hover, .delivery-card:hover, .wholesale-strip:hover { transform: translateY(-5px); box-shadow: 0 20px 35px rgba(91, 55, 27, 0.16); }
.preview-card h4 { font-size: 0.98rem; color: var(--primary-dark); margin-bottom: 4px; }
.preview-card p, .preview-card span { font-size: 0.88rem; color: var(--charcoal); }
.category-link-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wholesale-panel { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 26px; padding: 28px; align-items: center; }
.wholesale-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.wholesale-list { padding-right: 18px; color: var(--charcoal); }
.wholesale-list li { margin-bottom: 6px; }
.wholesale-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; }
.wholesale-strip strong { display: block; color: var(--primary-dark); margin-bottom: 4px; font-size: 1.1rem; }
.about-section, .contact-section { display: flex; justify-content: center; }
.about-card, .contact-box { width: min(1040px, 100%); padding: 30px; }
.about-features { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.feature { padding: 10px 14px; border-radius: 999px; background: rgba(139, 90, 43, 0.08); color: var(--primary-dark); font-weight: 700; }
.delivery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.delivery-card { padding: 26px 20px; text-align: center; }
.delivery-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.delivery-card h3 { color: var(--primary-dark); margin-bottom: 4px; }
.delivery-card p { color: var(--charcoal); }
.contact-links { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 20px; }
.contact-link { display: inline-flex; align-items: center; justify-content: center; min-width: 190px; padding: 14px 18px; border-radius: 999px; border: 1px solid rgba(139, 90, 43, 0.18); background: rgba(139, 90, 43, 0.08); color: var(--primary-dark); font-weight: 800; transition: transform var(--transition), background var(--transition), color var(--transition); }
.contact-link:hover { transform: translateY(-2px); background: var(--primary); color: var(--white); }
.contact-link.secondary { background: rgba(255,255,255,0.65); }
.order-tracking-card { max-width: 720px; margin: 0 auto; padding: 24px; }
.order-tracking-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.order-tracking-form input, .products-search input, .checkout-input, .checkout-textarea { width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(91, 55, 27, 0.14); background: rgba(255,255,255,0.86); color: var(--primary-dark); outline: none; }
.order-tracking-result { margin-top: 18px; }
.tracking-result-card { padding: 18px; border-radius: 20px; background: rgba(255,255,255,0.82); border: 1px solid rgba(91, 55, 27, 0.12); }
.tracking-result-head, .tracking-order-summary-row, .checkout-summary-row, .cart-total { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tracking-status { padding: 8px 12px; border-radius: 999px; background: rgba(139, 90, 43, 0.1); font-weight: 800; color: var(--primary-dark); }
.tracking-order-items { margin-top: 16px; display: grid; gap: 10px; }
.tracking-order-item { padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.78); border: 1px solid rgba(91, 55, 27, 0.1); }
.tracking-order-item-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 6px; }
.tracking-order-details { display: block; color: var(--charcoal); font-size: 0.92rem; }
.order-tracking-message { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,0.78); color: var(--primary-dark); }
.order-tracking-message.error { background: rgba(239, 68, 68, 0.12); color: #991b1b; }
.products-toolbar { max-width: 980px; margin: 0 auto 20px; }
.wide-search { max-width: 460px; margin: 0 auto; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.products-load-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 24px; }
.products-render-status { color: var(--charcoal); font-weight: 700; text-align: center; }
.product-card { padding: 0; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.product-image { position: relative; aspect-ratio: 1 / 0.9; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,0.65), rgba(139, 90, 43, 0.08)); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-open-area { cursor: pointer; }
.product-card:hover .product-image img { transform: scale(1.05); }
.product-body { padding: 18px; position: relative; z-index: 1; }
.product-brand { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(139, 90, 43, 0.08); color: var(--primary-dark); font-weight: 800; font-size: 0.82rem; margin-bottom: 8px; }
.product-title { font-size: 1.25rem; color: var(--primary-dark); margin-bottom: 8px; }
.product-meta, .product-description { color: var(--charcoal); font-size: 0.93rem; }
.product-description { min-height: 50px; }
.product-price { margin-top: 12px; font-size: 1.16rem; font-weight: 800; color: var(--accent-dark); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.original-price { text-decoration: line-through; color: #a78b75; font-size: 0.92rem; }
.wholesale-price { color: var(--primary-dark); font-size: 0.96rem; }
.card-size-selector, .card-size-single { margin-top: 14px; color: var(--charcoal); font-size: 0.92rem; }
.size-select { width: 100%; margin-top: 8px; padding: 11px 14px; border-radius: 14px; border: 1px solid rgba(91, 55, 27, 0.14); background: rgba(255,255,255,0.78); }
.product-card-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.qty-selector { display: inline-flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 999px; background: rgba(139, 90, 43, 0.08); border: 1px solid rgba(91, 55, 27, 0.08); }
.qty-selector button { width: 44px; height: 44px; border: none; border-radius: 50%; background: rgba(255,255,255,0.88); color: var(--primary-dark); cursor: pointer; font-weight: 800; }
.btn-add-cart { flex: 1; min-height: 44px; border: none; border-radius: 16px; padding: 12px 14px; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); font-weight: 800; cursor: pointer; }
.btn-add-cart:disabled { opacity: 0.5; cursor: not-allowed; }
.status-badge { position: absolute; top: 14px; right: 14px; padding: 7px 10px; border-radius: 999px; color: var(--white); font-size: 0.76rem; font-weight: 800; z-index: 2; }
.status-badge.bestseller { background: #b45309; }
.status-badge.special { background: #7c3aed; }
.status-badge.soldout { background: #64748b; }
.discount-badge { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border-radius: 999px; background: #dc2626; color: var(--white); font-size: 0.76rem; font-weight: 800; z-index: 2; }
.limited-qty-badge { position: absolute; top: 10px; right: 10px; background: #f59e0b; color: white; padding: 4px 10px; border-radius: 8px; font-size: 0.78rem; font-weight: 800; z-index: 2; }
.empty-products { grid-column: 1 / -1; padding: 30px; text-align: center; border-radius: 20px; background: rgba(255,255,255,0.7); color: var(--primary-dark); font-weight: 700; }
.cart-overlay { position: fixed; inset: 0; background: rgba(22, 12, 6, 0.42); z-index: 1200; display: none; }
.cart-overlay.active { display: block; }
.cart-sidebar { position: fixed; top: 0; left: 0; width: 390px; max-width: 100%; height: 100vh; z-index: 1210; background: rgba(255, 250, 244, 0.98); backdrop-filter: blur(12px); border-right: 1px solid rgba(91, 55, 27, 0.12); box-shadow: 8px 0 24px rgba(91, 55, 27, 0.18); transform: translateX(-102%); transition: transform var(--transition); display: flex; flex-direction: column; }
.cart-sidebar.active { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 18px; border-bottom: 1px solid rgba(91, 55, 27, 0.12); }
.cart-close { border: none; background: rgba(139, 90, 43, 0.08); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; }
.cart-items { overflow-y: auto; padding: 18px; display: block; flex: 1; }
.cart-empty { text-align: center; padding: 34px 16px; color: var(--charcoal); }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; align-items: flex-start; }
.cart-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { color: var(--primary-dark); font-size: 0.9rem; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-brand { display: block; color: var(--charcoal); font-size: 0.84rem; }
.cart-item-price { color: var(--accent-dark); font-weight: 800; margin-top: 6px; }
.cart-item-remove { border: none; background: rgba(239, 68, 68, 0.08); color: #b91c1c; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.cart-item-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-qty button { width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(139, 90, 43, 0.08); color: var(--primary-dark); cursor: pointer; }
.cart-footer { padding: 18px; border-top: 1px solid rgba(91, 55, 27, 0.12); margin-top: auto; }
.cart-total { font-size: 1.08rem; font-weight: 800; color: var(--primary-dark); margin-bottom: 14px; }
.btn-checkout, .btn-clear-cart { display: block; width: 100%; text-align: center; padding: 13px 14px; border-radius: 16px; font-weight: 800; }
.btn-checkout { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); margin-bottom: 10px; }
.btn-clear-cart { border: 1px solid rgba(185, 28, 28, 0.22); background: rgba(239, 68, 68, 0.08); color: #991b1b; }
.footer { padding: 28px 6vw 34px; text-align: center; color: var(--charcoal); border-top: 1px solid rgba(91, 55, 27, 0.08); }
.scroll-top { position: fixed; left: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%; border: none; background: linear-gradient(135deg, var(--primary), var(--accent-dark)); color: var(--white); font-size: 1.2rem; cursor: pointer; box-shadow: 0 14px 24px rgba(91, 55, 27, 0.24); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity var(--transition), visibility var(--transition), transform var(--transition); z-index: 1100; }
.scroll-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.reveal { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.45s ease, transform 0.45s ease; will-change: opacity, transform; }
.reveal.visible { opacity: 1; transform: translate3d(0, 0, 0); will-change: auto; }
.checkout-page { min-height: 100vh; padding: 120px 20px 60px; background: var(--bg); }
.checkout-container { max-width: 1080px; margin: 0 auto; }
.checkout-title { text-align: center; color: var(--primary-dark); font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 10px; }
.checkout-status { text-align: center; margin-bottom: 22px; color: var(--charcoal); font-weight: 700; }
.checkout-status.error { color: #991b1b; }
.checkout-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 18px; }
.checkout-card { padding: 24px; }
.checkout-card h3 { color: var(--primary-dark); margin-bottom: 16px; }
.checkout-items { display: grid; gap: 12px; }
.checkout-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(255,255,255,0.76); border: 1px solid rgba(91, 55, 27, 0.08); }
.checkout-item img { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; }
.checkout-item-info h4 { color: var(--primary-dark); margin-bottom: 4px; }
.checkout-item-meta { display: block; color: var(--charcoal); font-size: 0.86rem; }
.checkout-item-price { color: var(--accent-dark); font-weight: 800; }
.checkout-summary { display: grid; gap: 10px; }
.checkout-summary-row { padding-bottom: 10px; border-bottom: 1px solid rgba(91, 55, 27, 0.08); color: var(--charcoal); }
.checkout-summary-row.total { color: var(--primary-dark); font-size: 1.12rem; font-weight: 800; }
.checkout-form-grid { display: grid; gap: 14px; }
.checkout-manual-fields { display: grid; gap: 14px; }
.checkout-textarea { min-height: 96px; resize: vertical; }
.delivery-options, .region-options { display: grid; gap: 10px; }
.delivery-option, .region-option { min-height: 44px; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(91, 55, 27, 0.12); background: rgba(255,255,255,0.74); cursor: pointer; }
.delivery-option.selected, .region-option.selected { border-color: rgba(156, 88, 32, 0.42); box-shadow: 0 12px 22px rgba(91, 55, 27, 0.12); }
.checkout-submit { width: 100%; min-height: 44px; border: none; border-radius: 18px; padding: 14px 16px; background: #25d366; color: var(--white); font-weight: 800; cursor: pointer; }
.checkout-submit:disabled { opacity: 0.6; cursor: wait; }
.checkout-required-note { color: var(--charcoal); font-size: 0.92rem; margin-bottom: 8px; }
.checkout-field { display: grid; gap: 6px; }
.checkout-field label { color: var(--primary-dark); font-weight: 700; }
.checkout-field.required label::after { content: ' *'; color: #b91c1c; }
.checkout-field-error { color: #b91c1c; font-size: 0.84rem; min-height: 1.2em; }
.checkout-input.invalid, .checkout-textarea.invalid, .saved-location-select.invalid, .checkout-inline-input.invalid { border-color: rgba(185, 28, 28, 0.55); background: rgba(254, 226, 226, 0.4); }
.checkout-back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--primary-dark); font-weight: 700; }
.empty-checkout { padding: 40px 22px; text-align: center; }
.empty-checkout span { display: block; font-size: 3rem; margin-bottom: 10px; }
.empty-checkout p { color: var(--charcoal); margin-bottom: 16px; }
.checkout-note-box { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(139, 90, 43, 0.08); color: var(--primary-dark); font-size: 0.92rem; }
.checkout-success-card { padding: 34px 24px; text-align: center; }
.saved-location-group, .saved-location-note, .checkout-checkbox-row, .checkout-inline-grid { margin-top: 14px; }
.saved-location-group label, .checkout-checkbox-row label { display: block; margin-bottom: 6px; color: var(--primary-dark); font-weight: 700; }
.saved-location-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.saved-location-box { padding: 14px 16px; border-radius: 18px; border: 2px solid rgba(91, 55, 27, 0.12); background: rgba(255,255,255,0.74); cursor: pointer; transition: all 0.3s; position: relative; }
.saved-location-box:hover { border-color: rgba(156, 88, 32, 0.3); box-shadow: 0 4px 12px rgba(91, 55, 27, 0.1); }
.saved-location-box.selected { border-color: var(--primary); box-shadow: 0 8px 20px rgba(91, 55, 27, 0.15); background: rgba(255, 247, 237, 0.9); }
.saved-location-box strong { display: block; color: var(--primary-dark); font-size: 0.95rem; margin-bottom: 6px; }
.saved-location-box p { margin: 4px 0; color: var(--charcoal); font-size: 0.85rem; line-height: 1.4; }
.saved-location-box .default-badge { position: absolute; top: 8px; left: 8px; background: var(--primary); color: white; font-size: 0.7rem; padding: 2px 8px; border-radius: 999px; font-weight: 700; }
.saved-location-box.add-new-box { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-style: dashed; min-height: 100px; }
.saved-location-box.add-new-box .add-new-icon { font-size: 1.8rem; color: var(--primary); margin-bottom: 6px; }
.saved-location-select, .checkout-inline-input { width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(91, 55, 27, 0.14); background: rgba(255,255,255,0.86); color: var(--primary-dark); outline: none; }
.saved-location-note { padding: 12px 14px; border-radius: 16px; background: rgba(139, 90, 43, 0.06); color: var(--charcoal); font-size: 0.92rem; }
.checkout-inline-grid { display: grid; gap: 12px; }
.checkout-checkbox-row { display: flex; align-items: center; gap: 8px; color: var(--primary-dark); font-weight: 700; }
.checkout-checkbox-row input { width: 18px; height: 18px; }
.flying-product {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  z-index: 9999;
  pointer-events: none;
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
/* ===== PDP Modal ===== */
.pdp-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 2000; display: none; }
.pdp-overlay.active { display: block; }
.pdp-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); max-width: 900px; width: 92%; max-height: 90vh; overflow-y: auto; background: var(--white); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,0.2); z-index: 2001; padding: 2.5rem; display: none; opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; }
.pdp-modal.active { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pdp-close { position: absolute; top: 16px; left: 16px; width: 44px; height: 44px; border-radius: 50%; border: none; background: #f3f4f6; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; z-index: 1; }
.pdp-close:hover { background: #e5e7eb; }
.pdp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.pdp-image { border-radius: 12px; overflow: hidden; background: #fff7ed; aspect-ratio: 1/1; }
.pdp-image img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { display: flex; flex-direction: column; gap: 0.8rem; }
.pdp-brand { color: var(--accent); font-size: 0.85rem; font-weight: 700; }
.pdp-name { font-size: 1.6rem; font-weight: 800; color: var(--black); font-family: 'Playfair Display', serif; }
.pdp-description { color: var(--charcoal); font-size: 0.95rem; line-height: 1.7; }
.pdp-meta { color: #6b7280; font-size: 0.9rem; }
.pdp-price { font-size: 1.5rem; font-weight: 800; color: var(--accent-dark); }
.pdp-price .original-price { text-decoration: line-through; color: #9ca3af; font-size: 1rem; margin-right: 8px; }
.pdp-size-section { margin-top: 0.5rem; }
.pdp-size-section label { font-weight: 600; font-size: 0.9rem; color: var(--charcoal); display: block; margin-bottom: 6px; }
.pdp-size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-size-btn { padding: 8px 16px; border: 2px solid #e5e7eb; border-radius: 8px; background: white; cursor: pointer; font-family: 'Tajawal', sans-serif; font-size: 0.9rem; font-weight: 600; transition: all 0.2s; }
.pdp-size-btn.active, .pdp-size-btn:hover { border-color: var(--accent); background: #fff7ed; color: var(--accent-dark); }
.pdp-actions { display: flex; gap: 10px; align-items: center; margin-top: 1rem; }
.pdp-qty { display: flex; align-items: center; gap: 0; border: 2px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.pdp-qty button { width: 44px; height: 44px; border: none; background: #f9fafb; font-size: 1.1rem; cursor: pointer; transition: background 0.2s; }
.pdp-qty button:hover { background: #f3f4f6; }
.pdp-qty span { width: 44px; text-align: center; font-weight: 700; font-size: 1rem; }
.pdp-add-btn { flex: 1; min-height: 44px; padding: 12px 20px; background: var(--accent); color: white; border: none; border-radius: 8px; font-family: 'Tajawal', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.pdp-add-btn:hover { background: var(--accent-dark); }
.pdp-add-btn:disabled { background: #d1d5db; cursor: not-allowed; }
.pdp-related { margin-top: 2rem; border-top: 1px solid #f3f4f6; padding-top: 1.5rem; }
.pdp-related h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--black); }
.pdp-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pdp-related-item { cursor: pointer; border-radius: 10px; overflow: hidden; border: 1px solid #f3f4f6; transition: border-color 0.2s, transform 0.2s; }
.pdp-related-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.pdp-related-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.pdp-related-item p { padding: 6px 8px; font-size: 0.8rem; font-weight: 600; color: var(--charcoal); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) { .pdp-grid { grid-template-columns: 1fr; } .pdp-modal { padding: 1.5rem; width: 96%; } .pdp-related-grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== Wholesale Mode Theme Shift ===== */
body.wholesale-mode { background: #f0fdf4; }
body.wholesale-mode .navbar { background: rgba(5, 46, 22, 0.85); }
body.wholesale-mode .navbar.scrolled { background: rgba(255, 255, 255, 0.97); border-color: rgba(22, 163, 74, 0.2); }
body.wholesale-mode .navbar.scrolled .brand span,
body.wholesale-mode .navbar.scrolled .nav-links a { color: #166534; }
body.wholesale-mode .nav-wholesale-btn { background: #16a34a; border-color: #16a34a; }
body.wholesale-mode .nav-wholesale-btn:hover { background: #15803d; }
body.wholesale-mode .section-kicker { color: #16a34a; }
body.wholesale-mode .btn-primary, body.wholesale-mode .wood-sign-btn { background: #16a34a !important; border-color: #16a34a !important; }
body.wholesale-mode .btn-primary:hover, body.wholesale-mode .wood-sign-btn:hover { background: #15803d !important; }
body.wholesale-mode .btn-secondary { border-color: #16a34a !important; color: #16a34a !important; }
body.wholesale-mode .btn-secondary:hover { background: #16a34a !important; color: white !important; }
body.wholesale-mode .category-card { border-color: rgba(22, 163, 74, 0.2); }
body.wholesale-mode .category-card:hover { border-color: #16a34a; box-shadow: 0 12px 30px rgba(22, 163, 74, 0.1); }
body.wholesale-mode .category-badge { background: #f0fdf4; color: #16a34a; }
body.wholesale-mode .category-count { color: #16a34a; }
body.wholesale-mode .preview-card { background: #f0fdf4; border-color: rgba(22, 163, 74, 0.15); }
body.wholesale-mode .preview-card:hover { border-color: #16a34a; }
body.wholesale-mode .product-card { border-color: rgba(22, 163, 74, 0.15); }
body.wholesale-mode .product-card:hover { border-color: #16a34a; }
body.wholesale-mode .product-brand { color: #16a34a; }
body.wholesale-mode .btn-add-cart { background: #16a34a; }
body.wholesale-mode .btn-add-cart:hover { background: #15803d; }
body.wholesale-mode .filter-btn { border-color: #16a34a; color: #16a34a; }
body.wholesale-mode .filter-btn.active, body.wholesale-mode .filter-btn:hover { background: #16a34a; color: white; }
body.wholesale-mode .wholesale-panel { background: #f0fdf4; border-color: rgba(22, 163, 74, 0.25); }
body.wholesale-mode .about-card, body.wholesale-mode .contact-box { border-color: rgba(22, 163, 74, 0.2); }
body.wholesale-mode .contact-link { border-color: #16a34a; color: #16a34a; }
body.wholesale-mode .contact-link:hover { background: #16a34a; color: white; }
body.wholesale-mode .delivery-card { border-color: rgba(22, 163, 74, 0.2); }
body.wholesale-mode .delivery-card h3 { color: #16a34a; }
body.wholesale-mode .hero-status-pill { background: rgba(22, 163, 74, 0.15); border-color: rgba(22, 163, 74, 0.3); }
body.wholesale-mode .discount-banner { background: linear-gradient(90deg, #15803d, #16a34a); }
body.wholesale-mode .scroll-top { background: #16a34a; border-color: #16a34a; }
body.wholesale-mode .cart-sidebar .btn-checkout { background: #16a34a; }
body.wholesale-mode .spinner { border-top-color: #16a34a; }

.wholesale-auth-status { margin-top: 16px; }
.wholesale-auth-status-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-radius: 20px; background: rgba(255,255,255,0.88); border: 1px solid rgba(91, 55, 27, 0.12); color: var(--primary-dark); box-shadow: 0 12px 28px rgba(91, 55, 27, 0.08); }
.wholesale-auth-status-card.pending { border-color: rgba(201, 122, 52, 0.25); background: rgba(255, 247, 237, 0.94); }
.wholesale-auth-status-card.approved { border-color: rgba(22, 163, 74, 0.2); background: rgba(240, 253, 244, 0.95); }
.wholesale-auth-status-card strong { display: block; margin-bottom: 2px; }
.wholesale-auth-status-card p { margin: 0; color: var(--charcoal); font-size: 0.94rem; }
.wholesale-auth-status-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.wholesale-logout-btn { min-width: 120px; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(185, 28, 28, 0.18); background: rgba(239, 68, 68, 0.08); color: #991b1b; font-weight: 800; cursor: pointer; }
.wholesale-inline-btn { min-width: 140px; padding: 11px 18px; border-radius: 999px; border: none; background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: var(--white); font-weight: 800; cursor: pointer; }
.wholesale-inline-link { display: inline-flex; align-items: center; justify-content: center; min-width: 120px; padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(91, 55, 27, 0.14); background: rgba(255,255,255,0.88); color: var(--primary-dark); font-weight: 800; }
.wholesale-inline-note { margin-top: 16px; padding: 14px 18px; border-radius: 18px; background: rgba(255,255,255,0.82); border: 1px solid rgba(91, 55, 27, 0.1); color: var(--primary-dark); }
.wholesale-auth-overlay { position: fixed; inset: 0; background: rgba(32, 17, 9, 0.58); z-index: 2290; display: none; }
.wholesale-auth-overlay.active { display: block; }
.wholesale-auth-modal { position: fixed; top: 50%; left: 50%; width: min(720px, calc(100% - 28px)); max-height: 90vh; overflow-y: auto; transform: translate(-50%, -50%) scale(0.96); background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(254,247,240,0.98)); border: 1px solid rgba(91, 55, 27, 0.14); border-radius: 28px; box-shadow: 0 30px 70px rgba(32, 17, 9, 0.22); z-index: 2291; padding: 28px; display: none; opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease; }
.wholesale-auth-modal.active { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.wholesale-auth-close { position: absolute; top: 16px; left: 16px; width: 40px; height: 40px; border: none; border-radius: 50%; background: rgba(139, 90, 43, 0.08); color: var(--primary-dark); font-size: 1.2rem; cursor: pointer; }
.wholesale-auth-head h3 { color: var(--primary-dark); font-size: 1.8rem; margin-bottom: 8px; }
.wholesale-auth-head p { color: var(--charcoal); margin-bottom: 18px; }
.wholesale-auth-tabs { display: flex; gap: 10px; margin-bottom: 18px; }
.wholesale-tab-btn { flex: 1; padding: 13px 16px; border-radius: 18px; border: 1px solid rgba(139, 90, 43, 0.16); background: rgba(255,255,255,0.7); color: var(--primary-dark); font-weight: 800; cursor: pointer; transition: background var(--transition), color var(--transition), border-color var(--transition); }
.wholesale-tab-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); border-color: transparent; color: var(--white); }
.wholesale-auth-message { margin-bottom: 16px; padding: 14px 16px; border-radius: 18px; font-weight: 700; }
.wholesale-auth-message.info { background: rgba(249, 115, 22, 0.12); color: #9a3412; }
.wholesale-auth-message.success { background: rgba(22, 163, 74, 0.12); color: #166534; }
.wholesale-auth-message.error { background: rgba(239, 68, 68, 0.12); color: #991b1b; }
.wholesale-auth-form { display: none; }
.wholesale-auth-form.active { display: block; }
.wholesale-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.wholesale-form-group { margin-bottom: 14px; }
.wholesale-form-group label { display: block; margin-bottom: 6px; color: var(--primary-dark); font-weight: 700; }
.wholesale-form-group input { width: 100%; padding: 14px 16px; border-radius: 18px; border: 1px solid rgba(91, 55, 27, 0.14); background: rgba(255,255,255,0.94); color: var(--primary-dark); outline: none; }
.wholesale-form-group input:focus { border-color: rgba(201, 122, 52, 0.7); box-shadow: 0 0 0 3px rgba(201, 122, 52, 0.14); }
.wholesale-submit-btn { width: 100%; margin-top: 8px; }
body.wholesale-auth-open { overflow: hidden; }
body.wholesale-mode .wholesale-auth-status-card.approved { background: rgba(240, 253, 244, 0.98); border-color: rgba(22, 163, 74, 0.28); }
body.wholesale-mode .wholesale-inline-btn { background: #16a34a; }
.checkout-success-order-id { display: inline-flex; padding: 10px 16px; border-radius: 999px; background: rgba(139, 90, 43, 0.08); color: var(--primary-dark); font-weight: 800; margin-bottom: 14px; }
.checkout-success-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.btn-success-whatsapp, .btn-success-back { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; padding: 13px 18px; border-radius: 16px; border: none; font-weight: 800; cursor: pointer; }
.btn-success-whatsapp { background: #25d366; color: var(--white); }
.btn-success-back { background: var(--primary-dark); color: var(--white); }
.profile-hero { min-height: 52vh; position: relative; display: grid; place-items: center; padding: 140px 6vw 80px; background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16), transparent 32%), linear-gradient(135deg, rgba(44, 24, 16, 0.94), rgba(91, 55, 27, 0.92)); overflow: hidden; isolation: isolate; }
.profile-hero-content { width: min(860px, 100%); text-align: center; color: var(--white); }
.profile-page-section { padding-top: 48px; }
.profile-page-shell { max-width: 1100px; margin: 0 auto; display: grid; gap: 22px; }
.profile-message, .profile-auth-gate, .profile-summary-card, .profile-password-card, .profile-orders-card, .profile-addresses-card { background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(255,255,255,0.86)); border: 1px solid rgba(91, 55, 27, 0.12); border-radius: var(--radius); box-shadow: var(--shadow); }
.profile-message { padding: 14px 18px; font-weight: 700; color: var(--primary-dark); }
.profile-message.info { background: rgba(249, 115, 22, 0.12); color: #9a3412; }
.profile-message.success { background: rgba(22, 163, 74, 0.12); color: #166534; }
.profile-message.error { background: rgba(239, 68, 68, 0.12); color: #991b1b; }
.profile-auth-gate { padding: 28px; text-align: center; }
.profile-auth-gate h3 { color: var(--primary-dark); margin-bottom: 10px; font-size: 1.5rem; }
.profile-auth-gate p { color: var(--charcoal); margin-bottom: 18px; }
.profile-summary-card, .profile-password-card, .profile-orders-card, .profile-addresses-card { padding: 28px; }
.profile-addresses-list { display: grid; gap: 14px; }
.profile-address-card { padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.88); border: 1px solid rgba(91, 55, 27, 0.1); }
.profile-address-card.default { border-color: rgba(22, 163, 74, 0.3); background: rgba(240, 253, 244, 0.92); }
.profile-address-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.profile-address-head h4 { color: var(--primary-dark); margin-bottom: 4px; }
.profile-address-head p { color: var(--charcoal); font-size: 0.92rem; }
.profile-address-badge { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; background: rgba(22, 163, 74, 0.12); color: #166534; font-weight: 800; white-space: nowrap; }
.profile-address-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.profile-address-btn, .profile-address-delete { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(91, 55, 27, 0.14); background: rgba(255,255,255,0.9); color: var(--primary-dark); font-weight: 800; cursor: pointer; }
.profile-address-delete { border-color: rgba(185, 28, 28, 0.18); background: rgba(239, 68, 68, 0.08); color: #991b1b; }
.profile-summary-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.profile-summary-head h2 { color: var(--primary-dark); font-size: 1.9rem; margin-bottom: 8px; }
.profile-summary-head p { color: var(--charcoal); }
.profile-status { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 999px; font-weight: 800; }
.profile-status.approved { background: rgba(22, 163, 74, 0.12); color: #166534; }
.profile-status.pending { background: rgba(249, 115, 22, 0.12); color: #9a3412; }
.profile-details-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.profile-detail-card { padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.88); border: 1px solid rgba(91, 55, 27, 0.1); }
.profile-detail-card span { display: block; color: var(--charcoal); font-size: 0.92rem; margin-bottom: 6px; }
.profile-detail-card strong { color: var(--primary-dark); font-size: 1.05rem; }
.profile-pending-box { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: rgba(249, 115, 22, 0.1); color: #9a3412; }
.profile-pending-box strong { display: block; margin-bottom: 6px; }
.profile-summary-actions, .profile-edit-actions, .profile-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.profile-edit-form { display: none; margin-top: 18px; padding-top: 18px; border-top: 1px dashed rgba(91, 55, 27, 0.14); }
.profile-edit-form.active { display: block; }
.profile-cancel-btn { color: var(--primary-dark); border-color: rgba(91, 55, 27, 0.16); background: rgba(255,255,255,0.85); }
.profile-password-form { display: grid; gap: 14px; }
.profile-orders-list { display: grid; gap: 14px; }
.profile-tabs { display: flex; gap: 0; margin-bottom: 24px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(91, 55, 27, 0.15); }
.profile-tab-btn { flex: 1; padding: 14px 20px; border: none; background: rgba(255,255,255,0.7); color: var(--charcoal); font-family: 'Tajawal', sans-serif; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s; }
.profile-tab-btn.active { background: var(--primary); color: var(--white); }
.profile-tab-btn:hover:not(.active) { background: rgba(139, 90, 43, 0.08); }
.profile-orders-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.profile-orders-filters .filter-toggle-btn { padding: 8px 16px; border: 1px solid rgba(91, 55, 27, 0.2); border-radius: 999px; background: white; color: var(--charcoal); font-family: 'Tajawal', sans-serif; font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all 0.3s; }
.profile-orders-filters .filter-toggle-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.profile-order-card { padding: 18px; border-radius: 20px; background: rgba(255,255,255,0.88); border: 1px solid rgba(91, 55, 27, 0.1); }
.profile-order-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.profile-order-head h4 { color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 4px; }
.profile-order-head p { color: var(--charcoal); font-size: 0.92rem; }
.profile-order-status { display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; background: rgba(139, 90, 43, 0.1); color: var(--primary-dark); font-weight: 800; }
.profile-order-items { list-style: none; display: grid; gap: 10px; padding: 0; }
.profile-order-items li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.78); border: 1px solid rgba(91, 55, 27, 0.08); }
.profile-order-items li span { color: var(--charcoal); }
.profile-empty-state { padding: 20px; border-radius: 18px; text-align: center; background: rgba(255,255,255,0.82); color: var(--primary-dark); font-weight: 700; }
@media (max-width: 1100px) { .category-showcase-grid, .products-grid, .checkout-grid, .wholesale-panel { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .delivery-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .site-header .navbar { display: none; } .mobile-menu { display: none !important; } .hero, .category-hero { padding-top: 40px; } .hero-actions, .contact-links, .wholesale-auth-status-actions, .wholesale-auth-tabs, .profile-summary-actions, .profile-edit-actions, .profile-hero-actions { flex-direction: column; } .btn { width: 100%; } .cart-sidebar { width: 100%; } .product-card-actions { flex-direction: column; align-items: stretch; } .order-tracking-form { grid-template-columns: 1fr; } .wholesale-strip, .wholesale-auth-status-card, .profile-summary-head, .profile-order-head, .profile-order-items li { flex-direction: column; align-items: stretch; } .wholesale-form-grid, .profile-details-grid { grid-template-columns: 1fr; } .wholesale-auth-modal { padding: 22px 18px; } .profile-hero { padding-top: 100px; } }
@media (max-width: 640px) { .nav-wholesale-btn { display: none; } .category-showcase-grid, .products-grid, .category-preview-grid { grid-template-columns: 1fr; } .section { padding: 72px 5vw; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }
