/*
Theme Name: Dubali Commerce
Theme URI: https://dubali.ae
Author: Dubali
Description: A clean WooCommerce storefront theme for dubali.ae.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: dubali-commerce
*/

:root {
  --ink: #2c1d17;
  --muted: #7b675f;
  --line: #ead9cf;
  --paper: #fbf5ef;
  --panel: #ffffff;
  --brand: #b86a43;
  --brand-dark: #8f462d;
  --accent: #d8aa78;
  --danger: #b3261e;
  --shadow: 0 18px 50px rgba(87, 46, 31, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

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

img {
  max-width: 100%;
  height: auto;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-strip {
  background: #3b241c;
  color: #fff;
  font-size: 13px;
}

.top-strip .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 251, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: min(292px, 46vw);
  max-height: 86px;
  height: auto;
  object-fit: contain;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.main-nav ul,
.footer-nav ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.main-nav ul {
  display: flex;
  justify-content: center;
  gap: 26px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-link,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
}

.button.secondary {
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}

.icon-link {
  width: 44px;
  padding: 0;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
}

.hero {
  min-height: 560px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(44, 29, 23, 0.88), rgba(143, 70, 45, 0.46)),
    url("assets/dubai-storefront.svg") center / cover no-repeat;
  color: #fff;
}

.hero-content {
  width: min(650px, 100%);
  padding: 84px 0 110px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #f4d1a8;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p {
  width: min(540px, 100%);
  margin: 22px 0 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

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

.trust-row {
  margin-top: -48px;
  position: relative;
  z-index: 2;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trust-item {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item strong {
  display: block;
  font-size: 15px;
}

.trust-item span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}

.section {
  padding: 80px 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.category-tile {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 8px;
}

.category-tile:nth-child(1) {
  background: linear-gradient(135deg, #f7e6d8, #ffffff);
}

.category-tile:nth-child(2) {
  background: linear-gradient(135deg, #f1ddd0, #ffffff);
}

.category-tile:nth-child(3) {
  background: linear-gradient(135deg, #efe1d8, #ffffff);
}

.category-tile:nth-child(4) {
  background: linear-gradient(135deg, #f5eadc, #ffffff);
}

.category-tile h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.category-tile span {
  color: var(--muted);
}

.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.product-card {
  width: auto;
  margin: 0;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.woocommerce ul.products li.product a img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #eef2ee;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  min-height: 48px;
  margin: 12px 0 6px;
  padding: 0;
  color: var(--ink);
  font-size: 16px;
}

.woocommerce ul.products li.product .price {
  color: var(--brand-dark);
  font-weight: 850;
}

.banner {
  background: #3b241c;
  color: #fff;
}

.banner-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.banner h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.03;
}

.banner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.site-main {
  flex: 1;
}

.content-area {
  padding: 52px 0 80px;
}

.page-title {
  margin: 0 0 24px;
  font-size: clamp(34px, 5vw, 58px);
}

.site-footer {
  background: #2c1d17;
  color: #fff;
  padding: 46px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 1fr);
  gap: 28px;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 15px;
  color: #fff;
}

.footer-nav li {
  margin: 8px 0;
}

.copyright {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    overflow-x: auto;
    padding-bottom: 14px;
  }

  .main-nav ul {
    justify-content: start;
    min-width: max-content;
  }

  .trust-grid,
  .category-grid,
  .woocommerce ul.products,
  .banner-inner,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .top-strip .container,
  .section-heading,
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 620px;
  }

  .brand-logo {
    width: min(228px, 58vw);
  }

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

  .trust-grid,
  .category-grid,
  .woocommerce ul.products,
  .banner-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }
}
