/* =========================================
   NOKHBA | نخبة
   PREMIUM SHOPPING PLATFORM
   STYLE VERSION 3.1
   Compatible with index.html
   ========================================= */

:root {
  --dark: #15191e;
  --dark-soft: #1d242c;
  --dark-card: #222a33;

  --gold: #d6b36a;
  --gold-light: #f0d99e;
  --gold-dark: #a98743;

  --cream: #f5efe3;
  --white: #ffffff;
  --text: #f1f1ed;
  --muted: #a8adb4;

  --border: rgba(214,179,106,0.22);
  --success: #75c99a;

  --radius: 16px;
  --shadow: 0 12px 35px rgba(0,0,0,0.22);

  --max-width: 1180px;
}

/* RESET */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: Tahoma, Arial, sans-serif;
  direction: rtl;
  background: var(--dark);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

img {
  max-width: 100%;
}

/* CONTAINER */

.container {
  width: min(100% - 40px, var(--max-width));
  margin-inline: auto;
}

/* HEADER */

.site-header {
  width: 100%;
  min-height: 78px;
  padding: 12px 5%;

  display: flex;
  align-items: center;

  background: rgba(21,25,30,0.97);
  border-bottom: 1px solid var(--border);

  position: sticky;
  top: 0;
  z-index: 1000;

  backdrop-filter: blur(12px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;

  color: var(--white);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 2px;
}

.logo-main {
  color: var(--gold);
}

.logo-sub {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 3px;
  direction: ltr;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: #d7d9dc;
  font-size: 14px;
  transition: color .25s;
}

.main-nav a:hover {
  color: var(--gold);
}

.menu-btn {
  display: none;

  background: transparent;
  border: 1px solid var(--border);
  color: var(--gold);

  padding: 6px 12px;
  border-radius: 8px;
  font-size: 23px;
  cursor: pointer;
}

/* HERO */

.hero {
  width: 100%;
  max-width: var(--max-width);
  min-height: 500px;
  margin: auto;
  padding: 55px 25px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 48%, rgba(214,179,106,.17), transparent 38%),
    linear-gradient(115deg, #101317 0%, #171b20 55%, #101317 100%);
}

.hero-content {
  width: 100%;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  align-items: center;
  gap: 20px;
}

.hero-text {
  max-width: 720px;
  position: relative;
  z-index: 2;
}

.hero-art {
  width: 100%;
  max-width: 510px;
  justify-self: center;
  filter: drop-shadow(0 18px 35px rgba(0,0,0,.4));
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-label,
.section-label {
  display: inline-block;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(36px,5vw,58px);
  line-height: 1.4;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--gold);
}

.hero-text p {
  max-width: 590px;
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 30px;
}

.hero-btn {
  display: inline-block;

  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--gold-dark)
  );

  color: #17191c;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;

  transition: transform .25s, box-shadow .25s;
}

.hero-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(214,179,106,.25);
}

/* TRUST SECTION */

.trust-section {
  padding: 45px 0;

  background: var(--dark-soft);

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.trust-item {
  text-align: center;
  padding: 15px;
}

.trust-icon {
  display: block;
  color: var(--gold);
  font-size: 32px;
  margin-bottom: 8px;
}

.trust-item h3 {
  color: var(--gold-light);
  font-size: 17px;
  margin-bottom: 5px;
}

.trust-item p {
  color: var(--muted);
  font-size: 13px;
}

/* SECTION HEADINGS */

.section-heading {
  text-align: center;
  margin-bottom: 35px;
}

.section-heading h2 {
  font-size: clamp(25px,4vw,34px);
  margin-bottom: 8px;
}

.section-heading p {
  color: var(--muted);
  font-size: 14px;
}

/* CATEGORIES */

.categories-section {
  padding: 75px 0;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
}

.category-card {
  min-width: 0;

  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  padding: 28px 15px;
  text-align: center;

  transition:
    transform .3s,
    border-color .3s,
    background .3s;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background: #29323c;
}

.category-icon {
  display: block;
  font-size: 38px;
  margin-bottom: 12px;
}

.category-card h3 {
  color: var(--gold-light);
  font-size: 16px;
}

/* PRODUCTS SECTION */

.products-section {
  padding: 75px 0;

  background: var(--dark-soft);

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* PRODUCTS TOOLBAR */

.products-toolbar {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 15px;

  padding: 20px;
  margin-bottom: 22px;

  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.search-box input,
.filters select {
  width: 100%;
  min-width: 0;

  padding: 12px 14px;

  color: var(--white);
  background: var(--dark);

  border: 1px solid #414a54;
  border-radius: 8px;

  outline: none;
}

.search-box input::placeholder {
  color: #858d97;
}

.search-box input:focus,
.filters select:focus {
  border-color: var(--gold);
}

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

.filters select option {
  background: var(--dark);
  color: var(--white);
}

/* RESULTS */

.products-info {
  color: var(--gold-light);
  font-size: 14px;
  margin-bottom: 18px;
  padding: 0 5px;
}

/* PRODUCTS GRID */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 23px;
}

.product-card {
  min-width: 0;
  overflow: hidden;

  display: flex;
  flex-direction: column;

  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);

  box-shadow: var(--shadow);

  transition: transform .3s, border-color .3s;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
}

/* PRODUCT IMAGES */

.product-image {
  width: 100%;
  height: 230px;

  object-fit: contain;
  object-position: center;

  padding: 15px;

  background: #f8f8f6;
  display: block;
}

.product-image-fallback {
  width: 100%;
  min-height: 220px;

  display: grid;
  place-items: center;

  color: var(--gold-dark);
  font-size: 24px;
  font-weight: bold;

  background: var(--cream);
}

/* PRODUCT INFORMATION */

.product-info {
  padding: 19px;

  display: flex;
  flex-direction: column;
  align-items: stretch;

  flex: 1;
}

.product-info h3 {
  color: var(--gold-light);
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.product-info p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.product-price {
  color: var(--gold-light);
  font-size: 20px;
  font-weight: bold;
  margin: 12px 0;
}

.product-date {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin: 5px 0 12px;
}

.product-category {
  display: inline-block;
  color: var(--gold);
  font-size: 12px;
  margin-top: 5px;
}

/* PRODUCT BUTTONS */

.product-btn,
.product-button {
  display: block;
  width: 100%;

  text-align: center;

  margin-top: auto;
  padding: 11px 15px;

  color: #17191c;

  background: linear-gradient(
    135deg,
    var(--gold-light),
    var(--gold-dark)
  );

  border-radius: 8px;
  font-weight: bold;
  font-size: 14px;

  transition: opacity .25s, transform .25s;
}

.product-btn:hover,
.product-button:hover {
  opacity: .9;
  transform: translateY(-2px);
}

.product-store-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 16px;
}

.product-button {
  margin-top: 0;
  padding: 10px 12px;
  font-size: 13px;
}

/* EMPTY MESSAGE */

.empty-message,
.empty-state {
  grid-column: 1 / -1;

  padding: 40px 20px;
  text-align: center;

  background: var(--dark-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.empty-message p,
.empty-state p {
  color: var(--text);
  margin-bottom: 15px;
}

.empty-message button {
  padding: 10px 22px;

  color: #17191c;
  background: var(--gold);

  border: 0;
  border-radius: 8px;

  font-weight: bold;
  cursor: pointer;
}

.empty-state span {
  display: block;
  color: var(--gold);
  font-size: 38px;
  margin-bottom: 10px;
}

.empty-state small {
  color: var(--muted);
}

/* LOADING */

.loading-message {
  grid-column: 1 / -1;
  padding: 35px;
  text-align: center;
  color: var(--gold);
}

/* PRODUCT NOTE */

.product-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;

  text-align: center;

  margin-top: 30px;
  padding: 15px;

  background: var(--dark-soft);
  border-radius: 10px;
}

/* ABOUT */

.about-section {
  padding: 75px 0;

  text-align: center;

  background: var(--dark);

  border-bottom: 1px solid var(--border);
}

.about-content {
  max-width: 760px;
  margin: auto;
}

.about-content h2 {
  font-size: clamp(25px,4vw,35px);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--muted);
  font-size: 15px;
  margin: 12px auto;
}

/* DISCLOSURE */

.disclosure-section {
  padding: 40px 20px;
  text-align: center;

  background: var(--dark-soft);

  border-bottom: 1px solid var(--border);
}

.disclosure-section h2 {
  color: var(--gold-light);
  font-size: 23px;
  margin-bottom: 12px;
}

.disclosure-section p {
  max-width: 750px;
  margin: 0 auto 15px;

  color: var(--muted);
  font-size: 14px;
}

.disclosure-section a {
  display: inline-block;
  color: var(--gold);
  font-weight: bold;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* FOOTER */

.site-footer {
  padding: 45px 0 20px;
  text-align: center;
  background: #101317;
}

.footer-brand h2 {
  color: var(--gold);
  font-size: 23px;
  margin-bottom: 5px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;

  margin: 25px 0;
}

.footer-links a {
  color: #c4c7cb;
  font-size: 13px;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0;
}

/* TABLET */

@media (max-width: 900px) {

  .categories-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .products-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .products-toolbar {
    grid-template-columns: 1fr;
  }
}

/* MOBILE */

@media (max-width: 600px) {

  .container {
    width: min(100% - 30px, var(--max-width));
  }

  .site-header {
    min-height: 68px;
    padding: 10px 15px;
  }

  .logo {
    font-size: 21px;
  }

  .menu-btn {
    display: block;
  }

  .main-nav {
    display: none;

    position: absolute;
    top: 100%;
    right: 0;
    left: 0;

    padding: 15px 20px;

    background: var(--dark-soft);
    border-bottom: 1px solid var(--border);

    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    min-height: auto;
    padding: 38px 15px 30px;
    text-align: center;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .hero-art {
    width: min(100%, 360px);
    grid-row: 2;
    margin: 0 auto;
  }

  .hero-text {
    margin: auto;
  }

  .hero-text p {
    font-size: 15px;
    margin-right: auto;
    margin-left: auto;
  }

  .hero h1 {
    font-size: 36px;
  }

  .trust-section {
    padding: 30px 0;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .trust-item {
    padding: 10px;
  }

  .categories-section,
  .products-section {
    padding: 55px 0;
  }

  .categories-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }

  .category-card {
    padding: 20px 9px;
  }

  .category-card h3 {
    font-size: 13px;
  }

  .products-toolbar {
    padding: 15px;
    gap: 12px;
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-image {
    height: 230px;
  }

  .product-info {
    padding: 17px;
  }

  .product-store-buttons {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 55px 0;
  }

  .disclosure-section {
    padding: 35px 15px;
  }

  .footer-links {
    gap: 13px 20px;
  }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
