/*
Theme Name: Ecom Theme
Theme URI: https://wordpress.org/themes/
Author: 47labz
Author URI: https://47labz.com
Description: A starter custom WordPress theme for local development.
Version: 2.0.9
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Text Domain: ecom-theme
*/

/* -------------------------------------------------------
 * CSS Custom Properties (Global Theme Color)
 * ----------------------------------------------------- */
:root {
  --color-primary: #1a3264;
  --color-primary-hover: #0f2149;
  --color-gold: #d4a844;
  --color-text: #121722;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f5f7;
  --color-border: #e5e7eb;
  --font-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1280px;
  --px-desktop: 24px;
  --px-mobile: 16px;
  /* Featured product “View Details” + combo cards “Shop Now” share this */
  --home-primary-cta-font-size: 16px;
  --home-primary-cta-font-weight: 600;
  --home-primary-cta-letter-spacing: 0.02em;
  --home-primary-cta-line-height: 1.2;
  --home-primary-cta-padding-y: 16px;
  --home-primary-cta-padding-x: 36px;
  --home-primary-cta-min-height: 52px;
  --home-primary-cta-gap: 8px;
  /* About + Contact (and similar inner pages) — shared heading / sub / body scale */
  --page-section-fs-heading: clamp(26px, 3vw, 40px);
  --page-section-fs-sub: 15px;
  --page-section-fs-body: 15px;
}

/* -------------------------------------------------------
 * Base / Global Styles
 * ----------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

button {
  cursor: pointer;
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--px-desktop);
}

@media (max-width: 600px) {
  .container {
    padding: 0 var(--px-mobile);
  }
}

/* -------------------------------------------------------
 * Generic pages (Cart, Checkout, legal, etc.)
 * ----------------------------------------------------- */
.site-main--page {
  padding-top: 24px;
  padding-bottom: 48px;
}

.page-article__header {
  padding-top: 24px;
  padding-bottom: 8px;
}

.page-article__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
}