⁸/* ============================================
   ENC — GLOBAL SITE STYLES (Unified Theme)
   Modern, lightweight, responsive template
   Accent Color: #0b6b39
============================================ */
/* GLOBAL STABILITY FIX */
*, *::before, *::after {
  box-sizing: border-box;
}

/* FLEX & GRID FALLBACK */
.product-grid {
  display: flex;
  flex-wrap: wrap;
}

.product-grid > * {
  flex: 1 1 240px;
  max-width: 100%;
}

@supports (display: grid) {
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* ROOT VARIABLES */
:root {
    --accent: #0b6b39;
    --accent-light: #12a65c;
    --text: #0a0a0a;
    --muted: #6b7280;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --radius: 12px;
    --shadow: 0 6px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 12px 28px rgba(0,0,0,0.12);
    --transition: .25s ease;
    scroll-behavior: smooth;
}


/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    overflow-x: hidden;
}

/* --------------------------------------------
   LAYOUT
--------------------------------------------- */
.container {
    width: 100%;
    max-width: 1150px;
    margin: auto;
    padding: 24px;
}

/* --------------------------------------------
   HEADER
--------------------------------------------- */
.header {
    background: #ffffff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
}

.nav a {
    text-decoration: none;
    color: var(--text);
    margin-left: 20px;
    font-weight: 600;
    transition: .3s ease;
}

.nav a:hover,
.nav .active {
    color: var(--accent);
}

/* CART BUTTON */
.nav .btn {
    background: var(--accent);
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

/* --------------------------------------------
   HERO SECTIONS
--------------------------------------------- */

.hero-split {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 40px;
    align-items: center;
}

.hero-left h1 {
    font-size: 46px;
    font-weight: 800;
    color: #06331c;
    line-height: 1.1;
}

.hero-left p {
    font-size: 18px;
    max-width: 60ch;
    color: var(--muted);
    margin-top: 10px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

/* Hero Buttons */
.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}
.btn-primary:hover {
    background: var(--accent-light);
}

.btn-ghost {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 11px 18px;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.btn-ghost:hover {
    background: var(--accent);
    color: #fff;
}

/* Hero Image */
.hero-right {
    background: rgba(11,107,57,0.08);
    padding: 18px;
    border-radius: 18px;
    height: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    border-radius: 14px;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

/* --------------------------------------------
   BRANDS
--------------------------------------------- */
.brands {
    display: flex;
    gap: 16px;
    align-items: center;
    overflow-x: auto;
    padding: 20px 0;
}

.brand {
    min-width: 120px;
    background: var(--card-bg);
    padding: 12px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 72px;
    transition: var(--transition);
}
.brand:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.brand img {
    max-height: 55px;
    object-fit: contain;
}

/* --------------------------------------------
   SERVICES GRID
--------------------------------------------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 22px;
    margin-top: 20px;
}

.service-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-card h3 {
    margin: 10px 0 6px;
    color: var(--accent);
    font-size: 20px;
}

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

/* --------------------------------------------
   FEATURED PRODUCTS
--------------------------------------------- */
.home-products {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
    gap: 18px;
    margin-top: 10px;
    transition: opacity .6s ease;
}

.product-card {
    background: #fff;
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.product-card img {
    width: 100%;
    height: 180px;
    border-radius: var(--radius);
    object-fit: cover;
}

.product-card h4 {
    margin-top: 8px;
    font-size: 17px;
    font-weight: 700;
}
.product-card .price {
    color: var(--accent);
    font-weight: 800;
}

/* --------------------------------------------
   STORE PAGE GRID
--------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 22px;
}

.card-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.card-qty {
    width: 70px;
    padding: 6px;
    border-radius: var(--radius);
    border: 1px solid #ccc;
}

/* Add + Buy buttons */
.add, .buy {
    background: var(--accent);
    border: none;
    padding: 8px 12px;
    border-radius: var(--radius);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}
.add:hover, .buy:hover {
    background: var(--accent-light);
}

/* --------------------------------------------
   CART MODAL
--------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 22px;
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.cart-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

/* --------------------------------------------
   FOOTER
--------------------------------------------- */
.footer {
    background: var(--accent);
    color: #ffffff;
    padding :40px;
    margin-top :40px;
}
.foot-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 20px;
}

/* --------------------------------------------
   RESPONSIVE
--------------------------------------------- */

@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-ctas {
        justify-content: center;
    }
}
/* ============================================
   PATCH: STORE & PRODUCT PAGE FIXES
   (Safe additions – no existing styles removed)
============================================ */

/* --- Ensure links are always visible inside cards --- */
.product-card a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
}

/* --- Card action buttons visibility fix --- */
.card-actions {
    display: flex !important;
    gap: 10px;
    margin-top: 12px;
}

.card-actions a,
.card-actions button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: var(--radius);
    font-weight: 700;
    cursor: pointer;
}

/* View button */
.card-actions .btn-primary {
    background: var(--accent);
    color: #fff;
}
.card-actions .btn-primary:hover {
    background: var(--accent-light);
}

/* --- Make entire product card clickable-friendly --- */
.product-card h3 a,
.product-card h4 a {
    color: var(--text);
}
.product-card h3 a:hover,
.product-card h4 a:hover {
    color: var(--accent);
}

/* --------------------------------------------
   PRODUCT PAGE (product.php)
--------------------------------------------- */

.product-view {
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-info h1 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 22px;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 14px;
}

.product-info .description {
    color: var(--muted);
    margin-bottom: 18px;
}

/* Product buttons */
.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.product-actions button,
.product-actions a {
    padding: 12px 18px;
    border-radius: var(--radius);
    font-weight: 700;
}

/* --------------------------------------------
   PRODUCT IMAGE GALLERY
--------------------------------------------- */

.product-image {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-image img.main-img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.product-image .thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.product-image .thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.product-image .thumbs img:hover {
    border-color: var(--accent);
}

/* --------------------------------------------
   MOBILE OPTIMIZATION
--------------------------------------------- */
@media (max-width: 768px) {
    .product-view-grid {
        grid-template-columns: 1fr;
    }

    .product-image img.main-img {
        height: 260px;
    }

    .card-actions {
        flex-direction: column;
    }

    .card-actions a,
    .card-actions button {
        width: 100%;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions a,
    .product-actions button {
        width: 100%;
    }
}
/* =====================================
   PRODUCT PAGE — CLEAN UI FIX
===================================== */

.product-view {
  background: #fff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.product-view-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: start;
}

/* IMAGE */
.product-image img.main-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

/* INFO */
.product-info h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #06331c;
}

.product-info .price {
  font-size: 22px;
  font-weight: 900;
  color: var(--accent);
  margin-bottom: 14px;
}

.product-info .meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* VARIANTS */
.variants {
  margin: 16px 0;
}
.variants ul {
  display: flex;
  gap: 10px;
  list-style: none;
  padding: 0;
}
.variants li {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(11,107,57,0.1);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
}

/* ACTION BUTTONS */
.product-actions {
  display: flex;
  gap: 14px;
  margin-top: 20px;
}

.product-actions button,
.product-actions a {
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .product-view-grid {
    grid-template-columns: 1fr;
  }

  .product-image img.main-img {
    height: 260px;
  }

  .product-actions {
    flex-direction: column;
  }

  .product-actions button,
  .product-actions a {
    width: 100%;
    text-align: center;
  }
}
/* ===============================
   STORE VARIANT + QTY CONTROLS
================================ */

.variant-select {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-top: 8px;
  font-size: 14px;
}

.card-qty {
  width: 70px;
  padding: 7px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

