:root {
    --primary-orange: #ff6600;
    --orange-hover: #e65c00;
    --white: #ffffff;
    --text-dark: #111111;
    --text-gray: #666666;
    --border-light: #eaeaea;
    --bg-light: #f9f9f9;
    --star-color: #ffc107;
    --muted-star: #eaeaea;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Tajawal', sans-serif; }
body { background-color: var(--white); color: var(--text-dark); font-size: 16px; line-height: 1.5; overflow-x: hidden; }
a { color: inherit; }
svg { display: inline-block; vertical-align: middle; }
.site-container { width: 100%; max-width: 1400px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.top-bar { background: linear-gradient(to left, #0b7a3e, #f2c94c); color: var(--white); font-size: 13px; font-weight: 500; }
.top-bar-inner { min-height: 40px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.top-bar-text a { color: var(--white); text-decoration: underline; }
.top-bar-links { display: flex; align-items: center; gap: 20px; }
.top-bar-links a { text-decoration: none; font-weight: 700; transition: 0.3s; }
.top-bar-links a:hover { color: #111111; }
header { background-color: var(--white); border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 15px rgba(0,0,0,0.03); }
.header-main { display: grid; grid-template-columns: 220px 1fr 220px; align-items: center; gap: 24px; padding: 14px 0 10px; }
.logo { font-size: 36px; font-weight: 800; color: var(--primary-orange); text-decoration: none; display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-width: 220px; }
.search-container { width: 100%; height: 52px; display: flex; border: 2px solid var(--primary-orange); border-radius: 28px; overflow: hidden; background: var(--white); box-shadow: 0 4px 10px rgba(255, 102, 0, 0.05); }
.search-category { background-color: #f5f5f5; border: none; border-left: 1px solid #ddd; padding: 0 20px; color: var(--text-dark); outline: none; cursor: pointer; font-weight: 700; font-size: 14px; }
.search-input { flex-grow: 1; padding: 0 20px; border: none; outline: none; font-size: 16px; }
.search-btn { background-color: var(--primary-orange); color: var(--white); border: none; padding: 0 30px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; }
.search-btn:hover { background-color: var(--orange-hover); }
.header-actions { display: flex; justify-content: center; align-items: center; gap: 28px; min-width: 220px; }
.action-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--text-dark); font-size: 14px; font-weight: 700; transition: 0.3s; position: relative; text-align: center; }
.action-item:hover, .action-item.is-active { color: var(--primary-orange); }
.action-icon { margin-bottom: 6px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 26px; height: 26px; }
.cart-icon-wrap { position: relative; }
.cart-badge { position: absolute; top: -6px; right: -10px; background-color: var(--primary-orange); color: var(--white); font-size: 12px; font-weight: 700; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--white); }
.navbar { border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background-color: var(--white); }
.navbar-inner { display: flex; justify-content: flex-start; align-items: center; gap: 36px; min-height: 58px; width: 100%; }
.nav-item { padding: 16px 0; cursor: pointer; font-weight: 700; font-size: 16px; color: var(--text-dark); border-bottom: 3px solid transparent; transition: 0.3s; display: flex; align-items: center; gap: 6px; position: relative; white-space: nowrap; text-decoration: none; }
.nav-item:hover { color: var(--primary-orange); border-bottom-color: var(--primary-orange); }
.nav-highlight { color: var(--primary-orange); }
.nav-item svg { width: 14px; height: 14px; fill: currentColor; transition: transform 0.3s; }
.mega-menu-container { position: relative; }
.mega-menu-container:hover .nav-item svg { transform: rotate(180deg); }
.mega-menu { display: none; position: absolute; top: 100%; right: 0; width: 900px; background-color: var(--white); box-shadow: 0 15px 40px rgba(0,0,0,0.1); border: 1px solid var(--border-light); border-top: 3px solid var(--primary-orange); border-radius: 0 0 12px 12px; z-index: 1001; }
.mega-menu-container:hover .mega-menu { display: flex; }
.mega-sidebar { width: 30%; background-color: var(--bg-light); border-left: 1px solid var(--border-light); padding: 15px 0; }
.mega-sidebar ul { list-style: none; }
.mega-sidebar li { padding: 15px 25px; cursor: pointer; font-weight: 700; transition: 0.3s; display: flex; justify-content: space-between; align-items: center; }
.mega-sidebar li:hover, .mega-sidebar li.active { background-color: var(--white); color: var(--primary-orange); border-right: 4px solid var(--primary-orange); }
.mega-content { width: 70%; padding: 30px; }
.sub-cat-group { display: none; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.sub-cat-group.active { display: grid; }
.sub-cat-item { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--text-dark); text-align: center; }
.sub-cat-item img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-light); transition: 0.3s; margin-bottom: 12px; }
.sub-cat-item:hover img { border-color: var(--primary-orange); box-shadow: 0 6px 15px rgba(255, 102, 0, 0.15); transform: translateY(-4px); }
.sub-cat-item:hover span { color: var(--primary-orange); font-weight: 700; }
.hero-slider { position: relative; margin-top: 30px; margin-bottom: 50px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.slides-container { display: flex; transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); width: 300%; }
.slide { position: relative; width: 33.333333%; height: 500px; display: flex; align-items: center; padding: 0 8%; overflow: hidden; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to left, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.1) 100%); z-index: 1; }
.slide-content { position: relative; z-index: 2; max-width: 550px; }
.slide h2 { font-size: 48px; color: var(--primary-orange); margin-bottom: 20px; line-height: 1.2; font-weight: 800; }
.slide p { font-size: 20px; color: var(--text-dark); margin-bottom: 30px; line-height: 1.6; }
.btn-primary { background-color: var(--primary-orange); color: var(--white); padding: 15px 35px; text-decoration: none; border-radius: 30px; font-size: 18px; font-weight: 700; display: inline-block; transition: 0.3s; border: none; cursor: pointer; box-shadow: 0 4px 15px rgba(255,102,0,0.3); }
.btn-primary:hover { background-color: var(--orange-hover); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(255,102,0,0.4); }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); background-color: rgba(255, 255, 255, 0.95); border: none; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; color: var(--text-dark); z-index: 10; transition: 0.3s; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.slider-btn:hover { background-color: var(--primary-orange); color: var(--white); }
.slider-btn svg { width: 24px; height: 24px; }
.prev-btn { right: 20px; }
.next-btn { left: 20px; }
.slider-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }
.dot { width: 12px; height: 12px; border-radius: 50%; background-color: rgba(0,0,0,0.2); cursor: pointer; transition: 0.3s; border: none; }
.dot.active { background-color: var(--primary-orange); }
.notices { margin-top: -15px; margin-bottom: 25px; }
.notice { padding: 14px 18px; border-radius: 10px; font-weight: 700; margin-bottom: 10px; }
.notice.success { background: #ecfff2; color: #126a35; border: 1px solid #b7efc5; }
.notice.error { background: #fff3f1; color: #a43e2c; border: 1px solid #ffd1ca; }
.products-section { margin-bottom: 70px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.section-title { font-size: 28px; font-weight: 800; display: inline-block; border-bottom: 4px solid var(--primary-orange); padding-bottom: 8px; }
.view-all { color: var(--primary-orange); text-decoration: none; font-weight: 700; font-size: 16px; }
.view-all:hover { text-decoration: underline; }
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.product-card { border: 1px solid var(--border-light); border-radius: 12px; padding: 20px; transition: all 0.3s ease; position: relative; background: var(--white); display: flex; flex-direction: column; }
.product-card:hover { border-color: var(--primary-orange); box-shadow: 0 12px 30px rgba(255, 102, 0, 0.1); transform: translateY(-5px); }
.discount-badge { position: absolute; top: 15px; right: 15px; background-color: #ff3b30; color: var(--white); padding: 5px 12px; border-radius: 6px; font-size: 14px; font-weight: 800; z-index: 2; }
.product-img-wrapper { position: relative; overflow: hidden; border-radius: 8px; margin-bottom: 20px; }
.product-img { width: 100%; height: 240px; object-fit: contain; transition: transform 0.5s ease; }
.product-card:hover .product-img { transform: scale(1.08); }
.vendor-name { font-size: 14px; color: var(--text-gray); margin-bottom: 8px; display: block; font-weight: 500; }
.product-title { font-size: 17px; margin-bottom: 12px; color: var(--text-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 44px; font-weight: 700; line-height: 1.4; }
.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 15px; font-size: 14px; color: var(--text-gray); }
.product-rating svg { width: 16px; height: 16px; fill: var(--star-color); }
.product-rating .star-muted { fill: var(--muted-star); }
.product-price-row { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.price-col { display: flex; flex-direction: column; }
.old-price { font-size: 15px; color: var(--text-gray); text-decoration: line-through; margin-bottom: 2px; }
.current-price { font-size: 24px; font-weight: 800; color: var(--primary-orange); }
.currency { font-size: 15px; font-weight: normal; }
.inline-form { margin: 0; }
.add-to-cart-btn { background-color: var(--bg-light); border: 1px solid var(--border-light); width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: 0.3s; color: var(--text-dark); }
.add-to-cart-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.product-card:hover .add-to-cart-btn { background-color: var(--primary-orange); border-color: var(--primary-orange); color: var(--white); transform: scale(1.1); }
.simple-page { margin-top: 32px; margin-bottom: 70px; }
.page-card { background: var(--white); border: 1px solid var(--border-light); border-radius: 18px; padding: 28px; box-shadow: 0 8px 25px rgba(17,17,17,0.04); }
.narrow-card { max-width: 620px; margin: 0 auto; }
.page-title { font-size: 30px; font-weight: 800; margin-bottom: 15px; }
.page-text { font-size: 17px; color: var(--text-gray); margin-bottom: 12px; }
.results-list { display: grid; gap: 16px; margin-top: 18px; }
.result-item { border: 1px solid var(--border-light); border-radius: 14px; padding: 18px; }
.result-item h3 { margin-bottom: 6px; font-size: 20px; }
.result-item p { color: var(--text-gray); }
.auth-form { display: grid; gap: 12px; }
.auth-form label { font-weight: 700; }
.auth-form input { height: 50px; border: 1px solid #ddd; border-radius: 12px; padding: 0 14px; font-size: 16px; outline: none; }
.auth-form input:focus { border-color: var(--primary-orange); box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12); }
.auth-checklist { display: grid; gap: 10px; }
.auth-check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--text-dark); }
.auth-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary-orange); }
.auth-check a { color: var(--primary-orange); font-weight: 700; text-decoration: none; }
.auth-check a:hover { text-decoration: underline; }
.full-width { width: 100%; text-align: center; }
footer { background-color: var(--white); margin-top: 50px; border-top: 2px solid var(--primary-orange); }
.footer-newsletter { padding: 50px 0; display: flex; justify-content: space-between; align-items: center; gap: 30px; border-bottom: 1px solid #f1d7c4; }
.newsletter-text h3 { font-size: 28px; margin-bottom: 8px; font-weight: 800; color: var(--text-dark); }
.newsletter-text p { font-size: 16px; color: var(--text-gray); }
.newsletter-form { display: flex; width: 45%; max-width: 600px; border: 1px solid #ffd7bf; border-radius: 40px; overflow: hidden; background: var(--white); }
.newsletter-form input { flex-grow: 1; padding: 15px 25px; border: none; outline: none; font-size: 16px; background: var(--white); color: var(--text-dark); }
.newsletter-form button { background-color: var(--primary-orange); color: var(--white); border: none; padding: 0 35px; cursor: pointer; font-weight: 800; font-size: 16px; transition: 0.3s; }
.newsletter-form button:hover { background-color: var(--orange-hover); }
.footer-main { padding: 60px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h4 { color: var(--text-dark); font-size: 20px; margin-bottom: 25px; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 50px; height: 3px; background-color: var(--primary-orange); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 15px; }
.footer-col ul li a { color: var(--text-gray); text-decoration: none; transition: 0.3s; font-size: 15px; }
.footer-col ul li a:hover { color: var(--primary-orange); padding-right: 8px; }
.footer-contact-text { margin-bottom: 10px; color: var(--text-gray); }
.social-icons { display: flex; gap: 15px; margin-top: 25px; }
.social-icons a { width: 45px; height: 45px; border-radius: 50%; background: var(--white); border: 1px solid #ffd7bf; display: flex; align-items: center; justify-content: center; color: var(--primary-orange); transition: 0.3s; text-decoration: none; }
.social-icons a:hover { background: var(--primary-orange); color: var(--white); transform: translateY(-4px); }
.social-icons svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { border-top: 1px solid #f1d7c4; padding: 22px 0; text-align: center; font-size: 15px; color: var(--text-gray); }
@media (max-width: 1200px) {
  .header-main { grid-template-columns: 1fr; text-align: center; }
  .logo, .header-actions { justify-content: center; margin: 0 auto; }
  .navbar-inner { flex-wrap: wrap; gap: 24px; }
  .mega-menu { width: 95vw; }
  .newsletter-form { width: 100%; max-width: 100%; }
}
@media (max-width: 992px) {
  .top-bar-inner, .footer-newsletter { flex-direction: column; text-align: center; }
  .footer-main { grid-template-columns: repeat(2, 1fr); }
  .slide h2 { font-size: 36px; }
  .slide p { font-size: 18px; }
}
@media (max-width: 768px) {
  .site-container { padding-left: 16px; padding-right: 16px; }
  .products-grid, .footer-main { grid-template-columns: 1fr; }
  .navbar-inner { gap: 18px; }
  .nav-item { font-size: 14px; }
  .hero-slider { border-radius: 0; }
  .slide { height: 380px; }
  .slide h2 { font-size: 28px; }
  .slide p { font-size: 16px; }
  .mega-menu { position: static; width: 100%; flex-direction: column; }
  .mega-sidebar, .mega-content { width: 100%; }
  .sub-cat-group { grid-template-columns: repeat(2, 1fr); }
}

.hero-slider.site-container, .products-section.site-container { max-width: 1400px; }
.notice { padding: 14px 18px; border-radius: 14px; margin: 12px 0; font-weight: 700; }
.notice.success { background: #edf9f0; color: #146c2e; border: 1px solid #c7ebd0; }
.notice.error { background: #fff1f1; color: #a32020; border: 1px solid #f3caca; }
.notices { margin-bottom: 20px; }
.header-actions { justify-content: flex-end; }
.account-menu { position: relative; }
.account-trigger { background: transparent; border: none; cursor: pointer; }
.account-dropdown { position: absolute; top: calc(100% + 12px); left: 0; min-width: 230px; background: #fff; border: 1px solid var(--border-light); border-radius: 16px; box-shadow: 0 18px 50px rgba(17,17,17,0.12); padding: 10px; display: none; z-index: 1200; }
.account-menu.is-open .account-dropdown { display: block; }
.account-dropdown a, .dropdown-link, .dropdown-danger { width: 100%; display: block; text-align: right; border: none; background: transparent; padding: 12px 14px; border-radius: 12px; text-decoration: none; font-size: 15px; color: var(--text-dark); cursor: pointer; }
.account-dropdown a:hover, .dropdown-link:hover, .dropdown-danger:hover { background: #fff4ec; color: var(--primary-orange); }
.dropdown-danger { color: #b42318; }
.dropdown-form { margin: 0; }
.account-summary { padding: 10px 14px 14px; border-bottom: 1px solid #f1f1f1; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; }
.account-summary small { color: var(--text-gray); }
.vendor-link { border: none; background: transparent; }
.modal-open { overflow: hidden; }
.auth-modal { position: fixed; inset: 0; display: none; z-index: 3000; align-items: center; justify-content: center; padding: 20px; }
.auth-modal.is-open { display: flex; }
.auth-overlay { position: absolute; inset: 0; background: rgba(17, 17, 17, 0.48); backdrop-filter: blur(3px); }
.auth-dialog { position: relative; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; margin: 0 auto; background: #fff; border-radius: 24px; padding: 26px; box-shadow: 0 20px 80px rgba(17,17,17,0.2); }
.auth-close { position: absolute; top: 14px; left: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-light); background: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.auth-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; padding-left: 46px; }
.auth-header h2 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.auth-header p { color: var(--text-gray); }
.auth-tabs { display: flex; gap: 10px; background: #fff4ec; border-radius: 999px; padding: 6px; flex-shrink: 0; }
.auth-tab { border: none; background: transparent; padding: 10px 18px; border-radius: 999px; font-weight: 800; cursor: pointer; color: var(--text-gray); }
.auth-tab.is-active { background: var(--primary-orange); color: #fff; }
.auth-panel { display: none; }
.auth-panel.is-active { display: block; }
.auth-panel.is-hidden { display: none; }
.auth-inline-messages { margin-bottom: 14px; }
.enhanced-auth-form { gap: 14px; }
.auth-form input { height: 52px; border: 1px solid #ddd; border-radius: 14px; padding: 0 16px; font-size: 16px; outline: none; }
.auth-form input:focus { border-color: var(--primary-orange); box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.12); }
.auth-meta-box { padding: 14px 16px; background: #fff8f3; border: 1px solid #ffd7bf; border-radius: 14px; color: #9a4d00; font-size: 14px; }
.auth-step-otp { display: grid; gap: 16px; }
.otp-intro h3 { font-size: 24px; margin-bottom: 6px; }
.otp-intro p { color: var(--text-gray); }
.otp-boxes { display: flex; gap: 12px; justify-content: center; direction: ltr; }
.otp-input { width: 58px; height: 64px; text-align: center; font-size: 28px; font-weight: 800; border-radius: 16px; border: 1px solid #ddd; }
.otp-resend-form { gap: 10px; }
.btn-secondary { background: #fff; color: var(--primary-orange); border: 1px solid #ffd7bf; padding: 14px 18px; border-radius: 16px; font-size: 16px; font-weight: 800; cursor: pointer; }
.btn-secondary:disabled { opacity: 0.55; cursor: not-allowed; }
.resend-note { text-align: center; color: var(--text-gray); }
@media (max-width: 1200px) { .account-dropdown { left: 50%; transform: translateX(-50%); } }
@media (max-width: 992px) { .auth-header { flex-direction: column; padding-left: 0; } .auth-tabs { width: 100%; justify-content: center; } }
@media (max-width: 768px) { .account-dropdown { left: 0; transform: none; min-width: 210px; } .auth-dialog { padding: 22px 16px; } .otp-input { width: 48px; height: 56px; font-size: 24px; } }
.auth-step.is-hidden { display: none; }
.auth-step.is-active { display: grid; gap: 16px; }
.auth-link-btn { background: transparent; border: none; color: var(--primary-orange); font-weight: 800; cursor: pointer; text-align: center; padding: 4px 0; }
.auth-link-btn:hover { text-decoration: underline; }
