/*
Theme Name: EZ Sellers Custom
Theme URI: https://ezsellers.co.za
Author: EZ Sellers
Author URI: https://ezsellers.co.za
Description: Custom theme for EZ Sellers website
Version: 1.0
*/

/* =========================
   RESET
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================
   BODY
   ========================= */
body {
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f7f7f7;
  color: #222;
  line-height: 1.6;
}

/* =========================
   HEADER
   ========================= */
header {
  background: orange;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: white;
  font-weight: 600;
}

nav a:hover {
  color: #cc7a00;
}

/* =========================
   HERO
   ========================= */
.hero {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero.hero-image {
  background-image: url("/wp-content/uploads/hero/wa.jpg");
  background-size: cover;
  background-position: center 80%;
  background-repeat: no-repeat;
  color: white;
}

.hero-overlay {
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 40px 50px;
  border-radius: 8px;
  max-width: 900px;
}

.hero h1 {
  font-size: 38px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f1f1f1;
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  background-color: orange;
  color: white;
  padding: 14px 22px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 4px;
  display: inline-block;
}

.btn:hover {
  background-color: #e69500;
}

.btn-outline {
  background: transparent;
  border: 2px solid orange;
  color: orange;
}

.btn-outline:hover {
  background: orange;
  color: white;
}

/* =========================
   CONTAINER
   ========================= */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 60px 20px;
}

/* =========================
   PRODUCT GRID
   ========================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.product-card {
  background: white;
  color: #222;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.product-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.product-card h3 {
  padding: 20px 22px 8px;
}

.product-card p {
  padding: 0 22px 22px;
  color: #444;
}

.product-card .price {
  font-size: 18px;
  font-weight: bold;
  color: orange;
  margin: 8px 22px 14px;
}

/* =========================
   SHOP PAGE – FINAL (CLEAN)
   ========================= */

.shop-page {
  padding-top: 50px;
}

/* Header STACKED (title above text) */
.shop-header {
  max-width: 900px;
  margin-bottom: 45px;
  display: block;
}

.shop-header h1 {
  font-size: 34px;
  margin-bottom: 12px;
}

.shop-header p {
  max-width: 720px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 22px;
}

/* Filter buttons */
.shop-filters {
  display: flex;
  gap: 14px;
}

/* Sections */
.shop-section {
  margin-bottom: 90px;
}

.shop-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
}

/* BIG cards like reference */
.shop-section .product-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.shop-section .product-card img {
  height: 360px;
}

/* =========================
   HAPPY CUSTOMERS
   ========================= */
   .happy-customers h2,
.happy-customers p {
  text-align: center;
}

.slider {
  position: relative;
  max-width: 900px;
  margin: auto;
  height: 420px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: #222;
  color: white;
  text-align: center;
  padding: 40px 20px;
  margin-top: 60px;
}

.social-links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.social-links a[aria-label="Facebook"] { background: #1877f2; }
.social-links a[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 30%,
    #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.social-links a[aria-label="YouTube"] { background: #ff0000; }

.social-links a:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 12px;
    padding: 15px 20px;
  }

  nav a {
    margin: 0 8px;
  }

  .product-grid,
  .shop-section .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card img,
  .shop-section .product-card img {
    height: 240px;
  }

  .slider {
    height: 260px;
  }

  .shop-filters {
    flex-wrap: wrap;
  }
}
/* =========================
   SHOP – REMOVE ORANGE HEADER BACKGROUND
   ========================= */

.shop-page .shop-header {
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.shop-page .shop-header h1,
.shop-page .shop-header p {
  color: #222;
}
/* =========================
   SHOP – SPACE AFTER FILTER BUTTONS
   ========================= */

.shop-filters {
  margin-bottom: 50px; /* ≈ two paragraph spaces */
}
/* =========================
   SHOP – SPACE BETWEEN BUTTONS AND SECTION HEADING
   ========================= */

/* Space after filter buttons */
.shop-filters {
  margin-bottom: 60px;
}

/* Extra space before section headings */
.shop-section h2 {
  margin-top: 40px;
}
/* =========================
   HOMEPAGE DARK WRAPPER
   ========================= */
.home-dark {
  background: #2b2b2b;
  padding: 80px 0;
}

.home-dark h2,
.home-dark p {
  color: #f1f1f1;
}

/* =========================
   SINGLE LISTING GALLERY
   ========================= */

.single-listing {
  max-width: 900px;
}

.listing-title {
  margin-bottom: 25px;
}

.listing-main-image img {
  width: 100%;
  border-radius: 14px;
  cursor: pointer;
  margin-bottom: 35px;
}

.listing-gallery {
  margin-bottom: 40px;
}

.listing-gallery .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.listing-gallery img {
  width: 100%;
  border-radius: 10px;
  cursor: pointer;
}

.listing-whatsapp {
  display: inline-block;
}
.single-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
@media (max-width: 768px) {
  .single-listing {
    padding: 15px;
  }
}
/* Hide gallery thumbnails but keep images for lightbox */
.listing-description .wp-block-gallery,
.listing-description .gallery {
  display: none;
}
/* Lightbox close button */
.mfp-close {
  color: #fff !important;
  font-size: 36px !important;
  opacity: 1 !important;
  right: 10px;
  top: 10px;
}
.mfp-close {
  color: #fff !important;
  font-size: 36px !important;
  opacity: 1 !important;
}
/* FORCE Magnific close button to show */
.mfp-close {
  color: #fff !important;
  font-size: 32px !important;
  opacity: 1 !important;
  right: 15px !important;
  top: 15px !important;
}

.mfp-bg {
  background: rgba(0,0,0,0.9) !important;
}
/* LIGHTBOX */
#ez-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

#ez-lightbox img {
  max-width: 90%;
  max-height: 90%;
}

#ez-lightbox.active {
  display: flex;
}

.ez-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

/* EZ Sellers header full width fix */
header {
  max-width: 100%;
  width: 100%;
}

header > div {
  max-width: 100%;
}body > header {
  width: 100vw;
  margin: 0;
}

/* =========================
   FINAL FIX – SINGLE LISTING HEADER WIDTH
   ========================= */

/* Remove width constraint from BODY on single listings */
body.single-listing {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Constrain ONLY the listing content */
body.single-listing .single-listing {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Ensure header stays full width */
body.single-listing header {
  width: 100%;
  max-width: 100%;
}
/* Listing price under title */
.listing-price {
  font-size: 26px;
  font-weight: 700;
  color: orange;
  margin-bottom: 25px;
}
/* Home page cards – force readable text */

}
/* =========================
   SHOP LISTING CARD – PROFESSIONAL DEALER LOOK
   ========================= */

/* Hide description text on shop cards */
.shop-page .product-card p {
  display: none;
}

/* Price styling (first paragraph only) */
.shop-page .product-card p:first-of-type {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: orange;
  margin: 6px 22px 16px;
}

/* Improve title spacing */
.shop-page .product-card h3 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 6px;
}

/* Card polish */
.shop-page .product-card {
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Image consistency */
.shop-page .product-card img {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}
/* =========================
   SHOP LISTING CARD – PRICE ONLY
   ========================= */

/* Hide description text on shop cards */
.shop-page .product-card p {
  display: none;
}

/* Style price (first line of content) */
.shop-page .product-card .price,
.shop-page .product-card strong:first-child {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: orange;
  margin: 12px 22px 18px;
}

/* Clean professional spacing */
.shop-page .product-card h3 {
  padding-bottom: 0px;
}
/* Homepage – What We Sell card description text */
.what-we-sell p {
    color: #222;
}
/* FIX: readable text inside homepage cards on dark section */
.home-dark .product-card p {
  color: #222;
}

}

/* Center price under title on shop cards */
.shop-page .listing-price {
  display: block;
  text-align: center;
  margin-top: 6px;
  text-decoration: none;
}
.shop-page .listing-price {
  display: block;
  text-align: center;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: orange;
}
