/*
Theme Name: Wild Air
Theme URI: https://example.com/wild-air
Author: Wild Air
Description: A handcrafted, nature-inspired WordPress theme matching the exact Wild Air homepage mockup.
Version: 1.0.0
Text Domain: wild-air
*/

:root {
  --ink: #243126;
  --forest: #2f3b31;
  --sage: #6f7c6a;
  --cream: #f5f1e9;
  --paper: #fbf8f2;
  --sand: #d8cbb7;
  --clay: #a86d55;
  --line: #d8d0c4;
  --muted: #6f706b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', serif;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.container { width: min(1180px, calc(100% - 36px)); margin: auto; }
.topbar {
  background: var(--forest);
  color: #f7f3ea;
  text-align: center;
  padding: 8px 16px;
  font: 11px/1.3 Arial, sans-serif;
  letter-spacing: .22em;
  text-transform: uppercase;
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 242, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: 92px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}
.navlinks {
  display: flex;
  gap: 22px;
  font: 13px Arial, sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.navlinks.right { justify-content: flex-end; }
.logo { text-align: center; min-width: 260px; }
.logo svg { width: 260px; max-width: 100%; height: auto; }

.hero {
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  min-height: 620px;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  padding: 88px max(6vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}
.eyebrow {
  font: 12px Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .26em;
  color: var(--sage);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(54px, 7vw, 98px);
  line-height: .9;
  font-weight: 400;
  margin: 0;
}
.hero h1 em { font-weight: 400; color: var(--sage); }
.hero p {
  max-width: 520px;
  font: 18px/1.7 Arial, sans-serif;
  color: #4f554f;
  margin: 26px 0 30px;
}
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 14px 22px;
  border: 1px solid var(--forest);
  font: 12px Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.btn.primary { background: var(--forest); color: #fff; }
.hero-image { position: relative; min-height: 560px; }
.hero-image img { object-position: center 42%; }
.hero-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  background: rgba(245, 241, 233, .92);
  padding: 14px 18px;
  font: 12px Arial, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

section { padding: 78px 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 30px;
}
.section-head h2 { font-weight: 400; font-size: clamp(34px, 4vw, 54px); margin: 0; }
.section-head p { font: 15px/1.6 Arial, sans-serif; color: var(--muted); max-width: 560px; margin: 0; }

.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cat { position: relative; aspect-ratio: 3/4; overflow: hidden; background: #ddd; }
.cat:after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(transparent, rgba(20, 24, 20, .75));
}
.cat img { transition: .35s transform; }
.cat:hover img { transform: scale(1.025); }
.cat-text { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 18px; color: white; }
.cat-text h3 { margin: 0 0 5px; font-size: 25px; font-weight: 400; }
.cat-text span { font: 12px Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.story { padding: 0; background: #efe8dc; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; }
.story-image { min-height: 460px; }
.story-copy { padding: 70px; display: flex; flex-direction: column; justify-content: center; }
.script { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 42px; color: var(--sage); margin-bottom: 10px; }
.story-copy h2 { font-size: 44px; font-weight: 400; margin: 0 0 18px; }
.story-copy p { font: 16px/1.8 Arial, sans-serif; color: #535852; margin: 0 0 24px; }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-img { aspect-ratio: 4/5; background: #ddd; overflow: hidden; }
.product h3 { font-size: 20px; font-weight: 400; margin: 12px 0 3px; }
.product p { font: 13px Arial, sans-serif; color: var(--muted); margin: 0; }

.custom { background: var(--forest); color: #f6f2e9; }
.custom-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.custom h2 { font-size: 52px; font-weight: 400; margin: 0 0 18px; }
.custom p { font: 16px/1.75 Arial, sans-serif; color: #d7dbd3; max-width: 560px; }
.custom .btn { border-color: #f6f2e9; color: #f6f2e9; }

.mosaic { display: grid; grid-template-columns: 1.2fr .8fr .8fr; grid-template-rows: 250px 250px; gap: 12px; }
.mosaic .a { grid-row: 1/3; }
.mosaic div { overflow: hidden; }

footer { background: #1f2a22; color: #efebe2; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.footer-logo { font-size: 36px; letter-spacing: .12em; }
footer p, footer a { font: 13px/1.8 Arial, sans-serif; color: #c9cec7; }
.copy { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .16); font: 11px Arial, sans-serif; color: #aeb5ae; }

@media(max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .navlinks, .navlinks.right { display: none; }
  .logo { text-align: left; min-width: 0; }
  .logo svg { width: 220px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 64px 28px; }
  .hero-image { min-height: 520px; }
  .categories { grid-template-columns: 1fr 1fr; }
  .story-grid, .custom-grid { grid-template-columns: 1fr; }
  .story-copy { padding: 50px 28px; }
  .products { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 260px 260px; }
  .mosaic .a { grid-row: auto; grid-column: 1/3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media(max-width: 560px) {
  .container { width: min(100% - 24px, 1180px); }
  .topbar { font-size: 9px; }
  .nav { min-height: 76px; }
  .logo svg { width: 185px; }
  section { padding: 56px 0; }
  .hero h1 { font-size: 56px; }
  .hero-image { min-height: 410px; }
  .categories, .products { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: 12px; }
  .mosaic { display: block; }
  .mosaic div { height: 280px; margin-bottom: 10px; }
  .custom h2 { font-size: 42px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Custom Commissions Form Styles */
.custom-commissions-section {
    padding: 4rem 1.5rem;
    max-width: 680px;
    margin: 0 auto;
}

.custom-piece-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.custom-piece-form .form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.custom-piece-form label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.custom-piece-form input[type="text"],
.custom-piece-form input[type="email"],
.custom-piece-form select,
.custom-piece-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #dcdcdcom;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    box-sizing: border-box;
}

.custom-piece-form input:focus,
.custom-piece-form select:focus,
.custom-piece-form textarea:focus {
    outline: none;
    border-color: #4a5d4e;
}

.form-success-message {
    padding: 1rem;
    background-color: #e8f0e8;
    color: #2e4a32;
    border-radius: 4px;
    border: 1px solid #c5dbc5;
    margin-bottom: 1.5rem;
}

/* Custom Commissions - File Input Styling */
.custom-piece-form input[type="file"] {
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #4a5d4e;
    border: none;
    background: transparent;
}

.custom-piece-form .file-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #777777;
}

/* ==========================================================================
   Shop Page / WooCommerce Styling
   ========================================================================== */

.shop-header {
    padding: 4rem 1.5rem 2rem;
    text-align: center;
    background-color: var(--bg-alt, #f7f5f0);
    margin-bottom: 3rem;
}

.shop-header h1 {
    font-size: 2.8rem;
    margin: 0.5rem 0 1rem;
}

.shop-header p {
    max-width: 600px;
    margin: 0 auto;
    color: #555555;
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
}

.shop-toolbar select {
    padding: 0.5rem 1rem;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    font-family: inherit;
}

/* Products Grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem 2rem;
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
}

.product-img-wrap {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background-color: #eee;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img-wrap img {
    transform: scale(1.03);
}

.product-card-info h3 {
    font-size: 1.15rem;
    margin: 0 0 0.25rem 0;
}

.product-card-info .price {
    font-weight: 600;
    color: #2e4a32;
    display: block;
    margin-bottom: 1rem;
}

/* Add to Cart Button Override */
.product-card-action a.button {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.65rem 1rem;
    background-color: #2e4a32;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.product-card-action a.button:hover {
    background-color: #1e3222;
}

/* Pagination */
.shop-pagination {
    text-align: center;
    margin-top: 2rem;
}

.shop-pagination ul {
    display: inline-flex;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.shop-pagination a,
.shop-pagination span {
    padding: 0.5rem 0.85rem;
    border: 1px solid #dcdcdc;
    text-decoration: none;
    color: inherit;
    border-radius: 4px;
}

.shop-pagination span.current {
    background-color: #2e4a32;
    color: #ffffff;
    border-color: #2e4a32;
}

/* ==========================================================================
   Single Product Layout & Card Styling
   ========================================================================== */

.single-product-main {
    padding: 3rem 0 5rem;
    background-color: #faf8f5; /* Light organic background */
}

.shop-breadcrumbs {
    margin-bottom: 2rem;
}

.shop-breadcrumbs a {
    color: #2e4a32;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.shop-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Two Column Layout */
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .single-product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Left Image Box */
.product-media-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eae6df;
}

.product-featured-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 6px;
    background: #f4f0ea;
}

.product-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right Summary Card */
.product-summary-card {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eae6df;
}

.product-category-badge a {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: #7a827b;
    text-decoration: none;
    font-weight: 600;
}

.product-title {
    font-size: 2.2rem;
    margin: 0.5rem 0 1rem;
    color: #1a1a1a;
}

.product-price-wrap {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2e4a32;
    margin-bottom: 1.5rem;
}

.product-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: #555555;
    margin-bottom: 2rem;
    border-bottom: 1px solid #f0ece6;
    padding-bottom: 1.5rem;
}

/* Form & Add to Cart Button */
.product-add-to-cart-wrap form.cart {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.product-add-to-cart-wrap input.qty {
    width: 60px;
    padding: 0.75rem;
    border: 1px solid #dcdcdc;
    border-radius: 4px;
    text-align: center;
    font-size: 1rem;
}

.product-add-to-cart-wrap .single_add_to_cart_button {
    flex: 1;
    background-color: #2e4a32;
    color: #ffffff;
    border: none;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.product-add-to-cart-wrap .single_add_to_cart_button:hover {
    background-color: #1e3222;
}

/* Meta info (SKU, Categories) */
.product-meta-details {
    font-size: 0.85rem;
    color: #888888;
    line-height: 1.6;
}

/* Bottom Card Style Description */
.product-details-card {
    background: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #eae6df;
}

.product-details-card h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #2e4a32;
    border-bottom: 2px solid #e8f0e8;
    padding-bottom: 0.5rem;
}

.product-full-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444444;
}

.product-full-description ul {
    padding-left: 1.25rem;
    margin-top: 1rem;
}

.product-full-description li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   Stock Status & Category Badges Styling
   ========================================================================== */

.product-category-badge {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #6b7a6e;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-category-badge a {
    color: #6b7a6e;
    text-decoration: none;
}

.product-category-badge a:hover {
    color: #2e4a32;
}

/* Stock Status Pill Badge */
.product-stock-badge-wrap {
    margin-bottom: 1rem;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
}

.stock-badge.in-stock {
    background-color: #e8f2e8;
    color: #235429;
    border: 1px solid #c8e0c8;
}

.stock-badge.out-of-stock {
    background-color: #fce8e8;
    color: #a82a2a;
    border: 1px solid #f2c4c4;
}

/* Glowing Pulsing Green Indicator Dot */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Hide WooCommerce's default unstyled stock text */
.product-add-to-cart-wrap .stock {
    display: none !important;
}