:root {
  --teal-900: #063f3b;
  --teal-700: #007f73;
  --teal-600: #009688;
  --teal-100: #dff6ef;
  --cream: #fff8e8;
  --cream-2: #fffdf6;
  --gold: #f4c95d;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e6e8df;
  --surface: #ffffff;
  --shadow: 0 22px 60px rgba(31, 41, 55, 0.1);
  --soft-shadow: 0 12px 34px rgba(0, 127, 115, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream-2);
  color: var(--ink);
  font-family: Tahoma, "Noto Kufi Arabic", "Noto Sans Arabic", Arial, sans-serif;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.store-nav {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(31, 41, 55, 0.1);
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.06);
  backdrop-filter: blur(14px);
}

.store-nav .container {
  gap: 18px;
}

.navbar-brand {
  align-items: center;
  display: flex;
  margin-inline-end: 0;
  padding: 8px 0;
}

.brand-logo {
  display: block;
  height: 42px;
  object-fit: contain;
  object-position: right center;
  width: 154px;
}

.navbar-collapse {
  gap: 18px;
}

.navbar-toggler {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.nav-search,
.search-panel {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
}

.nav-search {
  flex: 0 1 420px;
}

.nav-search i,
.search-panel i {
  color: var(--teal-700);
  font-size: 1.05rem;
}

.nav-search input,
.search-panel input {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1;
  min-width: 0;
  outline: 0;
}

.nav-search input::placeholder,
.search-panel input::placeholder {
  color: #9aa4b2;
}

.nav-link {
  align-items: center;
  border-radius: 8px;
  color: #374151;
  display: inline-flex;
  font-weight: 800;
  gap: 7px;
  padding: 10px 12px !important;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus {
  background: var(--teal-100);
  color: var(--teal-900);
}

.category-menu {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  padding: 8px;
  text-align: right;
}

.category-menu .dropdown-item {
  align-items: center;
  border-radius: 8px;
  color: #374151;
  display: flex;
  font-weight: 800;
  gap: 8px;
  padding: 10px 12px;
}

.category-menu .dropdown-item:hover,
.category-menu .dropdown-item:focus {
  background: var(--teal-100);
  color: var(--teal-900);
}

.category-menu .dropdown-item i {
  color: var(--teal-700);
}

.btn {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 44px;
}

.btn-primary {
  background: var(--teal-600);
  border-color: var(--teal-600);
  box-shadow: 0 14px 28px rgba(0, 150, 136, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--teal-900);
  border-color: var(--teal-900);
}

.btn-outline-success {
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--teal-600);
  color: var(--teal-700);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  background: var(--teal-600);
  border-color: var(--teal-600);
  color: #fff;
}

.btn-whatsapp {
  background: #20d466;
  border-color: #20d466;
  color: #063d1d;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(32, 212, 102, 0.2);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
  background: #0fb957;
  border-color: #0fb957;
  color: #052c16;
}

.hero-section {
  background:
    linear-gradient(115deg, rgba(255, 248, 232, 0.98) 0%, rgba(255, 253, 246, 0.9) 48%, rgba(229, 249, 241, 0.98) 100%),
    repeating-linear-gradient(135deg, rgba(0, 127, 115, 0.05) 0 1px, transparent 1px 18px);
  border-bottom: 1px solid rgba(0, 127, 115, 0.1);
  overflow: hidden;
  padding: clamp(44px, 7vw, 92px) 0 clamp(34px, 5vw, 70px);
}

.hero-kicker,
.section-heading span,
.admin-title span,
.page-title-band span {
  align-items: center;
  color: var(--teal-700);
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-section h1 {
  color: var(--teal-900);
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 20px;
}

.hero-copy {
  color: #435064;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 2;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-mini-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  max-width: 610px;
}

.hero-mini-stats div {
  align-items: center;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 127, 115, 0.14);
  border-radius: 8px;
  color: var(--teal-900);
  display: flex;
  font-size: 0.92rem;
  font-weight: 900;
  gap: 8px;
  min-height: 54px;
  padding: 10px 12px;
}

.hero-mini-stats i {
  color: var(--teal-600);
  font-size: 1.15rem;
}

.hero-display {
  background: #fff;
  border: 3px solid rgba(0, 150, 136, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-height: 360px;
  overflow: hidden;
  padding: clamp(18px, 3vw, 30px);
  position: relative;
}

.hero-display::after {
  background: linear-gradient(90deg, rgba(0, 150, 136, 0.08), rgba(244, 201, 93, 0.16));
  content: "";
  inset: auto 0 0;
  height: 28%;
  position: absolute;
}

.hero-display img,
.product-image img,
.main-product-image img,
.image-admin-card img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero-display img {
  border-radius: 8px;
  min-height: 320px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.hero-badge {
  align-items: center;
  background: var(--teal-600);
  border: 4px solid #fff;
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  position: absolute;
  z-index: 2;
}

.hero-badge-top {
  inset-block-start: 22px;
  inset-inline-end: 22px;
  padding: 12px 16px;
}

.hero-badge-bottom {
  flex-direction: column;
  gap: 0;
  inset-block-end: 26px;
  inset-inline-start: -18px;
  min-height: 110px;
  min-width: 110px;
  justify-content: center;
}

.hero-badge-bottom strong {
  font-size: 2rem;
  line-height: 1;
}

.hero-badge-bottom span {
  font-size: 0.86rem;
}

.section-pad {
  padding: clamp(42px, 6vw, 76px) 0;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.page-title-band h1,
.admin-title h1 {
  color: var(--teal-900);
  font-weight: 900;
  margin: 0;
}

.category-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.category-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
  min-height: 172px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.category-card > i {
  align-items: center;
  background: var(--teal-100);
  border-radius: 8px;
  color: var(--teal-700);
  display: inline-flex;
  font-size: 1.35rem;
  height: 44px;
  justify-content: center;
  margin-bottom: 18px;
  width: 44px;
}

.category-card:hover,
.product-card:hover {
  border-color: rgba(0, 150, 136, 0.35);
  box-shadow: var(--soft-shadow);
  transform: translateY(-4px);
}

.category-card span {
  color: var(--teal-900);
  display: block;
  font-size: 1.05rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-card small {
  color: var(--muted);
  line-height: 1.7;
}

.featured-band {
  background: #fff;
  border-top: 1px solid var(--line);
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 100%;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-image {
  background: linear-gradient(145deg, #f1fbf7, var(--cream));
  display: block;
  height: 238px;
  overflow: hidden;
  position: relative;
}

.product-image img {
  transition: transform 0.22s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-image-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 127, 115, 0.16);
  border-radius: 8px;
  color: var(--teal-700);
  display: inline-flex;
  height: 38px;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  justify-content: center;
  position: absolute;
  width: 38px;
}

.product-body {
  padding: 17px;
}

.product-category,
.breadcrumb-link {
  align-items: center;
  color: var(--teal-700);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 6px;
}

.product-body h3 {
  font-size: 1.07rem;
  font-weight: 900;
  line-height: 1.6;
  margin: 8px 0;
}

.product-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
  min-height: 50px;
}

.product-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.product-meta strong,
.price-line {
  color: var(--teal-700);
  font-size: 1.35rem;
  font-weight: 900;
}

.product-meta span,
.code-pill {
  align-items: center;
  background: var(--teal-100);
  border-radius: 8px;
  color: var(--teal-900);
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  padding: 7px 10px;
}

.product-action {
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--teal-700);
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 14px;
}

.product-action i {
  font-size: 1.35rem;
}

.page-title-band {
  background: linear-gradient(115deg, #fff, var(--cream) 54%, #e9fbf6);
  border-bottom: 1px solid var(--line);
  padding: clamp(38px, 6vw, 64px) 0;
}

.page-title-band p {
  color: var(--muted);
  margin: 12px 0 0;
}

.gallery-shell,
.product-info-panel,
.login-card,
.admin-form,
.admin-table-wrap,
.stat-card,
.image-admin-card,
.search-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(31, 41, 55, 0.08);
}

.gallery-shell {
  padding: 16px;
}

.main-product-image {
  background: linear-gradient(145deg, #f1fbf7, var(--cream));
  border-radius: 8px;
  height: min(560px, 72vw);
  overflow: hidden;
}

.thumb-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 12px;
}

.thumb {
  background: var(--teal-100);
  border: 2px solid transparent;
  border-radius: 8px;
  height: 92px;
  overflow: hidden;
  padding: 0;
}

.thumb.active {
  border-color: var(--teal-700);
}

.product-info-panel {
  padding: clamp(22px, 4vw, 42px);
}

.product-info-panel h1 {
  color: var(--teal-900);
  font-weight: 900;
  line-height: 1.35;
  margin: 14px 0 16px;
}

.code-pill {
  margin-bottom: 14px;
}

.description {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 2;
  margin: 22px 0;
  padding: 22px 0;
}

.search-panel {
  margin-bottom: 28px;
  padding: 10px 14px;
}

.search-panel .btn {
  min-width: 96px;
}

.empty-state {
  background: #fff;
  border: 1px dashed rgba(0, 150, 136, 0.45);
  border-radius: 8px;
  color: var(--teal-900);
  font-weight: 900;
  padding: 28px;
  text-align: center;
}

.floating-whatsapp {
  align-items: center;
  background: #20d466;
  border: 4px solid #fff;
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 18px 36px rgba(32, 212, 102, 0.26);
  color: #fff;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  left: 22px;
  min-height: 62px;
  padding: 0 18px;
  position: fixed;
  z-index: 1050;
}

.floating-whatsapp i {
  font-size: 1.65rem;
}

.floating-whatsapp span {
  font-weight: 900;
}

.floating-whatsapp:hover,
.floating-whatsapp:focus {
  color: #fff;
  transform: translateY(-2px);
}

.store-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 14px;
}

.footer-brand img {
  height: 34px;
  object-fit: contain;
  width: 124px;
}

.footer-brand span {
  color: var(--muted);
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  align-items: center;
  color: var(--teal-700);
  display: inline-flex;
  font-weight: 900;
  gap: 6px;
}

.admin-body {
  background: #f7fbf8;
}

.admin-main {
  padding: 34px 0 70px;
}

.admin-title {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.login-card {
  margin-top: 48px;
  max-width: 430px;
  padding: 28px;
}

.login-card h1 {
  color: var(--teal-900);
  font-weight: 900;
}

.login-card p {
  color: var(--muted);
}

.stat-card {
  padding: 22px;
}

.stat-card strong {
  color: var(--teal-700);
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.admin-actions {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-actions a {
  background: var(--teal-900);
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
  padding: 22px;
}

.admin-form {
  padding: 24px;
}

.admin-table-wrap {
  padding: 8px;
}

.admin-thumb {
  border-radius: 8px;
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.image-manager {
  margin-top: 28px;
}

.image-manager h2 {
  color: var(--teal-900);
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.image-admin-card {
  padding: 12px;
}

.image-admin-card img {
  border-radius: 8px;
  height: 150px;
}

@media (max-width: 1199px) {
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-search {
    flex-basis: 300px;
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--soft-shadow);
    flex-direction: column;
    margin-top: 12px;
    padding: 14px;
  }

  .nav-search {
    flex: 1 1 auto;
    width: 100%;
  }

  .navbar-nav {
    align-items: stretch !important;
    gap: 4px;
  }

  .nav-link {
    width: 100%;
  }

  .nav-whatsapp {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .brand-logo {
    height: 36px;
    width: 128px;
  }

  .hero-section {
    padding-top: 36px;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-mini-stats,
  .category-grid,
  .admin-actions {
    grid-template-columns: 1fr;
  }

  .hero-display {
    min-height: 290px;
  }

  .hero-display img {
    min-height: 250px;
  }

  .hero-badge-top {
    inset-block-start: 14px;
    inset-inline-end: 14px;
  }

  .hero-badge-bottom {
    inset-block-end: 16px;
    inset-inline-start: 12px;
    min-height: 88px;
    min-width: 88px;
  }

  .product-image {
    height: 220px;
  }

  .product-body {
    padding: 14px;
  }

  .product-body h3 {
    font-size: 1rem;
  }

  .thumb-strip {
    grid-template-columns: repeat(4, 1fr);
  }

  .thumb {
    height: 74px;
  }

  .admin-title,
  .footer-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .search-panel input {
    min-height: 42px;
    width: 100%;
  }

  .floating-whatsapp {
    bottom: 18px;
    left: 16px;
    min-height: 56px;
    padding: 0 15px;
  }
}

@media (max-width: 420px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
  }
}
