/*
Theme Name: Saleh Electronics
Theme URI: https://salehelectronics.com
Author: Saleh Electronics
Description: Professional WooCommerce storefront for Saleh Electronics.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: saleh-electronics
*/

:root {
  --se-ink: #081526;
  --se-navy: #102a4c;
  --se-blue: #0c7dd6;
  --se-blue-dark: #085ea3;
  --se-amber: #e2a116;
  --se-amber-dark: #c7890c;
  --se-paper: #f3f6fb;
  --se-surface: #ffffff;
  --se-muted: #5b6b82;
  --se-line: #d7e0ee;
  --se-shadow: 0 18px 50px rgba(8, 21, 38, 0.12);
  --se-radius: 18px;
  --se-container: 1180px;
  --se-font-display: "Space Grotesk", sans-serif;
  --se-font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--se-ink);
  background:
    radial-gradient(circle at top left, rgba(12, 125, 214, 0.08), transparent 28%),
    linear-gradient(180deg, #eef3f9 0%, var(--se-paper) 45%, #e8eef7 100%);
  font-family: var(--se-font-body);
  line-height: 1.6;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--se-font-display);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

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

.site-topbar {
  background: var(--se-ink);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
}

.site-topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(243, 246, 251, 0.9);
  border-bottom: 1px solid rgba(215, 224, 238, 0.9);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.site-brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-brand__name {
  font-family: var(--se-font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--se-navy);
}

.site-brand__tag {
  color: var(--se-muted);
  font-size: 0.84rem;
}

.header-actions,
.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.se-button,
.button,
button.button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--se-blue);
  color: #fff !important;
  font-family: var(--se-font-body);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(12, 125, 214, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.se-button:hover,
.button:hover,
button.button:hover,
input[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--se-blue-dark);
  transform: translateY(-1px);
}

.se-button--ghost {
  background: #fff;
  color: var(--se-ink) !important;
  border: 1px solid var(--se-line);
  box-shadow: none;
}

.se-button--amber {
  background: var(--se-amber);
  box-shadow: 0 10px 24px rgba(226, 161, 22, 0.28);
}

.se-button--amber:hover {
  background: var(--se-amber-dark);
}

.se-main {
  padding: 0 0 80px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(115deg, rgba(8, 21, 38, 0.92) 0%, rgba(16, 42, 76, 0.78) 42%, rgba(12, 125, 214, 0.35) 100%),
    url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.05'%3E%3Cpath d='M0 80h160M80 0v160'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at 80% 20%, #1d5f9b 0%, #081526 55%);
  color: #fff;
}

.hero__inner {
  width: min(calc(100% - 32px), var(--se-container));
  margin: 0 auto;
  padding: 88px 0 72px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: end;
}

.hero__eyebrow {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.6rem, 6vw, 5rem);
  max-width: 12ch;
}

.hero p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
}

.hero__panel {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.hero__stat {
  padding: 16px;
  border-radius: 16px;
  background: rgba(8, 21, 38, 0.28);
}

.hero__stat strong {
  display: block;
  font-family: var(--se-font-display);
  font-size: 1.8rem;
}

.section {
  margin-top: 64px;
}

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

.section-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--se-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

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

.features-grid,
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card,
.service-card,
.category-card,
.product-card {
  background: var(--se-surface);
  border: 1px solid var(--se-line);
  border-radius: var(--se-radius);
  box-shadow: var(--se-shadow);
}

.feature-card,
.service-card {
  padding: 24px;
}

.feature-card h3,
.service-card h3,
.category-card h3,
.product-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

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

.category-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(8, 21, 38, 0.14);
}

.category-card__meta,
.product-card__meta {
  color: var(--se-muted);
  font-size: 0.9rem;
}

.category-card__link,
.product-card__link {
  margin-top: 18px;
  font-weight: 800;
  color: var(--se-blue);
}

.product-card {
  overflow: hidden;
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(180deg, #edf3fb 0%, #d9e5f5 100%);
}

.product-card__body {
  padding: 18px;
}

.product-card__badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(226, 161, 22, 0.16);
  color: #8a5d00;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.se-inquiry-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--se-line);
  background: #f8fbff;
}

.cta-band {
  margin-top: 72px;
  padding: 42px;
  border-radius: 28px;
  background:
    linear-gradient(120deg, #081526 0%, #12345f 55%, #0c7dd6 100%);
  color: #fff;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.cta-band h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--se-line);
  background: #081526;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.site-footer strong {
  display: block;
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--se-font-display);
  font-size: 1.2rem;
}

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

.site-footer__copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0 28px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

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

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

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0;
  background: #fff;
  border: 1px solid var(--se-line);
  border-radius: var(--se-radius);
  box-shadow: var(--se-shadow);
  overflow: hidden;
}

.woocommerce ul.products li.product img {
  margin: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .button {
  margin-left: 16px;
  margin-right: 16px;
}

.woocommerce ul.products li.product .button {
  margin-bottom: 16px;
}

.woocommerce div.product {
  background: #fff;
  border: 1px solid var(--se-line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--se-shadow);
}

.woocommerce div.product .product_title {
  font-family: var(--se-font-display);
}

.page-hero {
  padding: 42px 0 10px;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--se-blue);
}

.promo-section {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
  margin-top: -26px;
}

.promo-banner {
  min-height: 210px;
  padding: 25px;
  border-radius: 22px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  box-shadow: var(--se-shadow);
  transition: transform 0.2s ease;
}

.promo-banner:hover {
  transform: translateY(-4px);
}

.promo-banner strong {
  max-width: 14ch;
  font-family: var(--se-font-display);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.05;
}

.promo-banner__tag {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promo-banner--sale {
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 207, 92, 0.45), transparent 26%),
    linear-gradient(135deg, #8f2d0f, #dd6b20);
}

.promo-banner--installment {
  background:
    radial-gradient(circle at 80% 20%, rgba(88, 178, 255, 0.45), transparent 30%),
    linear-gradient(135deg, #0b3562, #0c7dd6);
}

.promo-banner--support {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(135deg, #0f5132, #1d8a58);
}

.inner-hero {
  padding: 88px 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(8, 21, 38, 0.97), rgba(16, 57, 103, 0.88)),
    radial-gradient(circle at 80% 20%, #2582c8, #081526 60%);
}

.inner-hero--installments {
  background:
    linear-gradient(120deg, rgba(8, 21, 38, 0.96), rgba(123, 76, 8, 0.68)),
    radial-gradient(circle at 80% 20%, #d99a17, #081526 60%);
}

.inner-hero--contact {
  background:
    linear-gradient(120deg, rgba(8, 21, 38, 0.96), rgba(11, 97, 70, 0.68)),
    radial-gradient(circle at 80% 20%, #2aa979, #081526 60%);
}

.inner-hero__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 52px;
}

.inner-hero h1 {
  max-width: 13ch;
  margin: 18px 0;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}

.inner-hero p {
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.8);
}

.inner-hero__card,
.installment-highlight {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.inner-hero__card strong,
.installment-highlight strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--se-font-display);
  font-size: 1.5rem;
}

.installment-highlight > span {
  display: block;
  margin-bottom: 12px;
  color: #ffd77a;
  font-weight: 800;
  text-transform: uppercase;
}

.card-number {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--se-blue);
  font-family: var(--se-font-display);
  font-size: 1.6rem;
  font-weight: 700;
}

.story-panel,
.info-split,
.contact-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  margin-top: 64px;
  padding: 42px;
  border: 1px solid var(--se-line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--se-shadow);
}

.story-panel h2,
.info-panel h2,
.contact-layout h2 {
  margin: 0 0 16px;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

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

.step-card {
  padding: 24px;
  border: 1px solid var(--se-line);
  border-radius: var(--se-radius);
  background: #fff;
  box-shadow: var(--se-shadow);
}

.step-card > span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin-bottom: 24px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--se-blue);
  color: #fff;
  font-weight: 800;
}

.step-card h3 {
  margin: 0 0 8px;
}

.info-split {
  padding: 0;
  overflow: hidden;
  grid-template-columns: 1fr 1fr;
}

.info-panel {
  padding: 42px;
}

.info-panel--dark {
  background: var(--se-ink);
  color: #fff;
}

.info-panel--dark p {
  color: rgba(255, 255, 255, 0.76);
}

.check-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 34px;
  border-bottom: 1px solid var(--se-line);
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--se-blue);
  font-weight: 800;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--se-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--se-shadow);
}

.contact-card__icon {
  display: inline-flex;
  min-width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(12, 125, 214, 0.1);
  color: var(--se-blue);
  font-size: 0.75rem;
  font-weight: 800;
}

.contact-card strong,
.contact-card span {
  display: block;
}

.contact-card div > span {
  color: var(--se-muted);
  font-size: 0.9rem;
}

.contact-layout {
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-weight: 700;
}

.contact-form label:nth-of-type(4) {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--se-line);
  border-radius: 12px;
  background: #f9fbff;
  color: var(--se-ink);
  font: inherit;
}

.form-notice {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 12px;
}

.form-notice--success {
  background: #e8f8ef;
  color: #17643b;
}

.form-notice--error {
  background: #fff0ed;
  color: #8b2c1d;
}

.map-panel {
  padding: 30px;
  border-radius: 20px;
  background: #eef4fb;
}

.map-visual {
  min-height: 230px;
  margin: 24px 0;
  padding: 30px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(8, 21, 38, 0.55), rgba(8, 21, 38, 0.75)),
    radial-gradient(circle at 40% 40%, #5db58b, #1f5d79 48%, #17334e);
  color: #fff;
}

.map-visual span,
.map-visual small {
  color: rgba(255, 255, 255, 0.75);
}

.map-visual strong {
  font-family: var(--se-font-display);
  font-size: 2rem;
}

@media (max-width: 1100px) {
  .site-nav {
    display: none;
  }

  .promo-section {
    grid-template-columns: 1fr 1fr;
  }

  .category-grid,
  .products-grid,
  .woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .hero__inner,
  .inner-hero__grid,
  .features-grid,
  .services-grid,
  .category-grid,
  .products-grid,
  .woocommerce ul.products,
  .cta-band,
  .site-footer__inner,
  .story-panel,
  .info-split,
  .contact-layout,
  .contact-cards,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding: 72px 0 56px;
  }

  .section-heading,
  .site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .promo-section {
    margin-top: 18px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form label:nth-of-type(4) {
    grid-column: auto;
  }
}

@media (max-width: 560px) {
  .features-grid,
  .services-grid,
  .category-grid,
  .products-grid,
  .woocommerce ul.products,
  .hero__stats {
    grid-template-columns: 1fr;
  }
}
