@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap");

[hidden] { display: none !important; }

* { box-sizing: border-box; }

:root {
  --bg: #f6f1eb;
  --surface: #fffdfb;
  --surface-soft: #f9efe3;
  --text: #2a1f18;
  --muted: #7a695b;
  --line: #eadfce;
  --brand: #b05024;
  --brand-strong: #833a17;
  --accent: #bf2f42;
  --panel-shadow: 0 14px 30px rgba(74, 41, 21, 0.1);
  --card-shadow: 0 10px 22px rgba(77, 46, 24, 0.11);
  --radius-lg: 18px;
  /* added accents for side-menu active state */
  --beige: #f5e8dd;
  --honey: #f2d9b8;
  --gold: #d6b07a;
  --gold-r: rgba(214,176,122,0.9);
  --active-green: #9fcc84;
}


body {
  margin: 0;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  background: radial-gradient(circle at 85% -10%, #fff2dc 0, var(--bg) 36%, #f3ece4 100%);
  color: var(--text);
}

.container {
  width: min(1280px, 94vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 253, 250, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
}

.menu-toggle {
  border: 1px solid #dbcdbf;
  background: #fff;
  color: #584739;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 20px;
  font-weight: 800;
  cursor: pointer;
}

.brand {
  text-decoration: none;
  color: var(--brand-strong);
  font-weight: 800;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-logo {
  width: 24px;
  height: 24px;
}

.search-form {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
}

.search-form input {
  flex: 1;
  border: 1px solid #dbcdbf;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.search-form button {
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
}

.cart-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 11px;
  background: #fff;
}

.user-badge {
  text-decoration: none;
  color: var(--brand-strong);
  border: 1px solid #e5d8ca;
  background: #fff;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 18px;
  padding: 0 0 10px;
}

.nav-links a {
  color: #5f5148;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--brand-strong);
}

.side-menu {
  position: fixed;
  inset: 0;
  background: rgba(20, 13, 8, 0.58);
  z-index: 130;
  display: flex;
  justify-content: center;
  align-items: center;
}

.side-menu-panel {
  position: relative;
  width: min(360px, 92vw);
  height: auto;
  max-height: 90vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #f7e8d7 0%, #efd6bf 48%, #e8c9ad 100%);
  border: 4px solid #b98a67;
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(25, 15, 10, 0.4);
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: sideMenuPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes sideMenuPop {
  from { transform: scale(0.9) translateY(20px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.side-menu-panel a {
  text-decoration: none;
  color: #4a2b18;
  border: 1px solid #cfa98a;
  border-radius: 12px;
  padding: 12px 13px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff8f0, #f6e4d0);
  transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.side-menu-panel a:hover {
  transform: translateX(-2px);
  border-color: #b98a67;
  box-shadow: 0 10px 16px rgba(70, 39, 20, 0.14);
}

/* active state for current page in side-menu (beige -> green with gold border) */
.side-menu-panel a.active {
  background: linear-gradient(135deg, var(--beige), var(--active-green));
  border-color: var(--gold);
  color: var(--text);
  box-shadow: 0 10px 20px rgba(77, 46, 24, 0.08);
  transform: none;
}

/* push first menu item carefully */
.side-menu-panel > a:first-of-type {
  margin-top: 14px;
}

.menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid #bb8e6f;
  background: linear-gradient(135deg, #b05024, #833a17);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  font-size: 24px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}

.hero-section {
  padding: 16px 0 24px;
  background: linear-gradient(to bottom, #f8fafc, #fff);
}

.hero-carousel {
  position: relative;
  height: 440px;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--beige), #f0e4d7);
  border: 1px solid #e3cfba;
  box-shadow: var(--panel-shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.55s ease;
}

.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(25,15,10,0.48), rgba(255,255,255,0.02));
}

.hero-content {
  position: absolute;
  right: 28px;
  bottom: 28px;
  color: #fff;
  max-width: 640px;
}

.hero-content h2 {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.2;
}

.hero-content p {
  margin: 0 0 14px;
  font-size: 18px;
}

.hero-content a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
}

.hero-content a:hover,
.hero-content a:focus {
  text-decoration: none;
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: none;
  background: rgba(25,15,10,0.28);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
}

.hero-nav.prev { right: 14px; }
.hero-nav.next { left: 14px; }

.hero-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
}

.hero-dots button.active {
  width: 24px;
  background: var(--gold);
}

.home-shortcuts-wrap {
  padding-bottom: 22px;
}

.home-shortcuts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--panel-shadow);
}

.shortcut-pill {
  min-width: 148px;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.shortcut-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(74, 41, 21, 0.18);
  text-decoration: none;
}

.shortcut-pill:focus,
.shortcut-pill:visited,
.shortcut-pill:active {
  text-decoration: none;
}

.products-pill {
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
}

.offers-pill {
  background: linear-gradient(135deg, #c06a33, var(--brand));
}

.features {
  background: linear-gradient(120deg, var(--beige), var(--honey));
  color: var(--text);
  padding: 34px 0;
  border-top: 1px solid #ead7c4;
  border-bottom: 1px solid #ead7c4;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.features-grid > div {
  text-align: center;
  background: linear-gradient(180deg, #fffdfb, var(--beige));
  border: 1px solid rgba(214,176,122,0.12);
  border-radius: 14px;
  padding: 12px 8px;
}

.features-grid > div > div {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--gold);
}

.features-grid h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.features-grid p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.section {
  padding: 40px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
  gap: 12px;
}

.section-head.one-line {
  align-items: center;
}

.section-head h2 {
  margin: 6px 0;
  font-size: 34px;
  color: #352719;
}

.section-head p {
  margin: 0;
  color: #756558;
}

.badge {
  background: #ffe6d5;
  color: var(--brand-strong);
  font-weight: 700;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  display: inline-block;
  border: 1px solid #efccaf;
}

.cta {
  text-decoration: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  white-space: nowrap;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  border: 1px solid #e4d8ca;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fffdfb;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(74, 41, 21, 0.14);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
}

.product-card .box {
  padding: 12px;
}

.product-card h3 {
  margin: 6px 0;
  font-size: 14px;
  min-height: 40px;
  line-height: 1.45;
}

.product-card .meta {
  font-size: 12px;
  color: #7a695b;
  margin-bottom: 8px;
}

.product-card .price {
  color: var(--brand-strong);
  font-weight: 800;
}

.product-card button {
  width: 100%;
  margin-top: 8px;
  border: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-strong));
  color: #fff;
  border-radius: 10px;
  padding: 9px;
  cursor: pointer;
  font-weight: 700;
}

.categories {
  background: linear-gradient(135deg, #b05024, #833a17);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}

.categories h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.categories p {
  margin: 0 0 20px;
  color: #ffe2c8;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.categories-grid a {
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  padding: 18px 10px;
}

/* --- Offers Carousel (Swiper) --- */
.offersCarousel, .productsCarousel {
    padding: 2rem 0 3rem;
    overflow: hidden;
}

.offersCarousel .swiper-slide, .productsCarousel .swiper-slide {
    height: auto;
    padding: 10px;
}

.offer-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: inherit;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 69, 19, 0.15);
}

.offer-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.offer-card:hover img {
    transform: scale(1.08);
}

.offer-card .content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.offer-card h3 {
    font-size: 1.2rem;
    color: #4a3424;
    margin: 0 0 0.6rem;
    font-weight: 800;
    line-height: 1.4;
}

.offer-card .desc {
    font-size: 0.9rem;
    color: #6d6d6d;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.offer-card .timer-wrap {
    background: #fdf5e6;
    border-radius: 12px;
    padding: 0.8rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    border: 1px solid #faebd7;
}

.offer-card .timer-item {
    text-align: center;
    min-width: 45px;
}

.offer-card .timer-val {
    display: block;
    font-size: 1.1rem;
    font-weight: 900;
    color: #8b4513;
}

.offer-card .timer-label {
    display: block;
    font-size: 0.6rem;
    color: #a0522d;
    text-transform: uppercase;
    font-weight: bold;
}

.offer-card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f5eee6;
}

.offer-card .price-info {
    display: flex;
    flex-direction: column;
}

.offer-card .current-price {
    font-size: 1.3rem;
    font-weight: 900;
    color: #27ae60;
}

.offer-card .old-price {
    font-size: 0.85rem;
    color: #b2b2b2;
    text-decoration: line-through;
}

.offer-card .cta-btn {
    background: linear-gradient(135deg, #8b4513, #5d2e0d);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}

.offer-card .discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.offer-type-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 0.85rem;
    z-index: 5;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.type-daily {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.type-limited {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

/* Swiper Nav */
.offersCarousel .swiper-button-next,
.offersCarousel .swiper-button-prev,
.productsCarousel .swiper-button-next,
.productsCarousel .swiper-button-prev {
    color: #8b4513;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 10;
}

.offersCarousel .swiper-button-next:after,
.offersCarousel .swiper-button-prev:after,
.productsCarousel .swiper-button-next:after,
.productsCarousel .swiper-button-prev:after {
    font-size: 1rem;
    font-weight: bold;
}

.offersCarousel .swiper-pagination-bullet-active,
.productsCarousel .swiper-pagination-bullet-active {
    background: #8b4513;
}

.testimonials {
  padding: 44px 0;
  background: linear-gradient(135deg, #fff8ef, #fff2e5);
}

.testimonials h2 {
  margin: 10px 0 18px;
  font-size: 34px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.testimonial {
  background: #fffdfb;
  border: 1px solid #e6d9cb;
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--card-shadow);
}

.testimonial .stars {
  color: #f59e0b;
  margin-bottom: 8px;
}

.testimonial p {
  margin: 0 0 8px;
  color: #4b3f35;
}

.testimonial strong {
  color: var(--brand-strong);
}

.site-footer {
  margin-top: 40px;
  background: #14213a;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  padding: 28px 0;
}

.footer-grid h3,
.footer-grid h4 {
  margin-top: 0;
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: #d8dfed;
  text-decoration: none;
}

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 0;
  text-align: center;
  color: #a8b4cd;
  font-size: 13px;
}

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .topbar { grid-template-columns: auto 1fr auto auto; }
  .search-form { grid-column: 1 / -1; width: 100%; }
  .user-badge { max-width: 100px; }
  .nav-links { display: none; }
  .side-menu-panel { width: min(320px, 90vw); }
  .hero-carousel { height: 360px; }
  .hero-content h2 { font-size: 30px; }
  .home-shortcuts { gap: 8px; padding: 10px; }
  .shortcut-pill { min-width: 130px; padding: 9px 11px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
}
