/*
 * Pushamfana Food Delivery Theme
 * Custom CSS — loaded on every page after the parent theme styles
 *
 * WHERE THIS FILE LIVES:
 * child_classic/assets/css/custom.css
 *
 * PrestaShop loads this file LAST, so everything here
 * overrides the parent Classic theme's default styles.
 */


/* ---------------------------------------------------------
   1. FONTS & VARIABLES
   --------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

:root {
  --pm-burgundy:      #8A1235;
  --pm-burgundy-dark: #650D27;
  --pm-orange:        #F28C28;
  --pm-orange-dark:   #D96F0B;
  --pm-dark:          #222222;
  --pm-text:          #444444;
  --pm-muted:         #777777;
  --pm-cream:         #FFF8F3;
  --pm-white:         #FFFFFF;
  --pm-border:        #EAEAEA;
}


/* ---------------------------------------------------------
   2. GLOBAL
   --------------------------------------------------------- */

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  color: var(--pm-text);
  background-color: var(--pm-cream);
}

a {
  color: var(--pm-burgundy);
}

a:hover {
  color: var(--pm-orange);
}


/* ---------------------------------------------------------
   3. HEADER
   --------------------------------------------------------- */

#header {
  background-color: var(--pm-white) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#header .header-nav {
  background-color: var(--pm-dark) !important;
  border: none;
}

#header .header-nav a,
#header .header-nav span {
  color: var(--pm-white) !important;
}

#header .header-top {
  background-color: var(--pm-white) !important;
  padding: 12px 0;
}

#header .logo {
  max-height: 65px;
}

/* Top menu links */
#header .top-menu > li > a {
  color: var(--pm-dark) !important;
  font-weight: 600;
  font-size: 15px;
}

#header .top-menu > li > a:hover {
  color: var(--pm-burgundy) !important;
}

/* Search bar */
#header #search_widget input {
  border: 2px solid var(--pm-border);
  border-radius: 30px;
  padding: 8px 20px;
  font-family: 'Inter', Arial, sans-serif;
}

#header #search_widget input:focus {
  border-color: var(--pm-burgundy);
  outline: none;
}

#header #search_widget button {
  background-color: var(--pm-burgundy);
  border-radius: 0 30px 30px 0;
}

/* Cart icon */
#header .blockcart .header {
  color: var(--pm-dark);
}

#header .blockcart .cart-products-count {
  background-color: var(--pm-orange);
  color: var(--pm-white);
}


/* ---------------------------------------------------------
   4. BUTTONS
   --------------------------------------------------------- */

.btn-primary,
a.btn.btn-primary {
  background-color: var(--pm-burgundy) !important;
  border-color: var(--pm-burgundy) !important;
  border-radius: 30px !important;
  font-weight: 700;
  font-family: 'Inter', Arial, sans-serif;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover,
a.btn.btn-primary:hover {
  background-color: var(--pm-orange) !important;
  border-color: var(--pm-orange) !important;
  transform: translateY(-1px);
}

.btn-secondary {
  border-radius: 30px !important;
  font-weight: 600;
}


/* ---------------------------------------------------------
   5. PRICES
   --------------------------------------------------------- */

.product-price,
.current-price span,
span.price {
  color: var(--pm-burgundy) !important;
  font-weight: 800;
}


/* ---------------------------------------------------------
   6. PRODUCT CARDS (listing pages like Jefferson Store)
   --------------------------------------------------------- */

.product-miniature {
  background: var(--pm-white);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-miniature:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-miniature .thumbnail-container {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.product-miniature .product-title a {
  color: var(--pm-dark);
  font-weight: 700;
}

.product-miniature .product-title a:hover {
  color: var(--pm-burgundy);
}


/* ---------------------------------------------------------
   7. PRODUCT FLAGS (sale badges, new badges)
   --------------------------------------------------------- */

.product-flags .on-sale,
.product-flags .new {
  background-color: var(--pm-orange);
  border-radius: 6px;
  font-weight: 700;
}

.product-flags .online-only {
  background-color: var(--pm-burgundy);
  border-radius: 6px;
}


/* ---------------------------------------------------------
   8. CATEGORY PAGES (store pages like Jefferson Store)
   --------------------------------------------------------- */

#category #category-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--pm-text);
}

.block-category {
  background: var(--pm-white);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.block-category h1 {
  color: var(--pm-dark);
  font-weight: 800;
}


/* ---------------------------------------------------------
   9. PRODUCT DETAIL PAGE
   --------------------------------------------------------- */

#product h1.product-detail-name {
  color: var(--pm-dark);
  font-weight: 800;
}

.product-add-to-cart .add-to-cart {
  background-color: var(--pm-burgundy) !important;
  border-color: var(--pm-burgundy) !important;
  border-radius: 30px !important;
  font-weight: 700;
  padding: 12px 30px;
  font-size: 16px;
}

.product-add-to-cart .add-to-cart:hover {
  background-color: var(--pm-orange) !important;
  border-color: var(--pm-orange) !important;
}

.product-quantity .qty input {
  border-radius: 8px;
  border: 2px solid var(--pm-border);
}

.tabs .nav-tabs .nav-link.active {
  color: var(--pm-burgundy);
  border-bottom-color: var(--pm-burgundy);
}


/* ---------------------------------------------------------
   10. CART PAGE
   --------------------------------------------------------- */

.cart-grid .cart-items .cart-item {
  background: var(--pm-white);
  border-radius: 12px;
  margin-bottom: 12px;
}

.cart-grid .cart-summary {
  background: var(--pm-white);
  border-radius: 16px;
  padding: 20px;
}


/* ---------------------------------------------------------
   11. CHECKOUT
   --------------------------------------------------------- */

.checkout-step .step-title {
  color: var(--pm-dark);
  font-weight: 700;
}

.checkout-step.-current .step-title {
  color: var(--pm-burgundy);
}


/* ---------------------------------------------------------
   12. HOMEPAGE — WhatsApp + Stores block
       (pasted as HTML into the Custom text module)
   --------------------------------------------------------- */

.pm-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 30px 15px 10px;
  text-align: center;
}

.pm-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #fff !important;
  padding: 14px 26px;
  border-radius: 40px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 12px;
}

.pm-whatsapp-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  color: #fff !important;
}

.pm-delivery-note {
  color: var(--pm-muted);
  font-size: 14px;
  margin: 0 0 40px;
}

.pm-stores-wrap h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--pm-dark);
  margin-bottom: 8px;
}

.pm-stores-wrap p.pm-sub {
  color: var(--pm-muted);
  margin-bottom: 28px;
  font-size: 15px;
}

.pm-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pm-store-card {
  background: var(--pm-white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  text-decoration: none !important;
  color: var(--pm-dark) !important;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pm-store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.pm-store-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #eee;
}

.pm-store-card .pm-store-name {
  padding: 14px 12px 6px;
  font-weight: 700;
  font-size: 16px;
}

.pm-store-card .pm-store-cta {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 18px;
  background: var(--pm-burgundy);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}


/* ---------------------------------------------------------
   13. HOMEPAGE — Category cards
   --------------------------------------------------------- */

.pm-categories {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 15px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.pm-category {
  min-height: 100px;
  background: var(--pm-white);
  border: 1px solid var(--pm-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--pm-dark) !important;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pm-category i {
  font-size: 28px;
  color: var(--pm-burgundy);
}

.pm-category:hover {
  transform: translateY(-5px);
  border-color: var(--pm-orange);
  color: var(--pm-burgundy) !important;
}


/* ---------------------------------------------------------
   14. HERO SECTION
   --------------------------------------------------------- */

.pm-hero {
  background-color: var(--pm-burgundy);
  color: var(--pm-white);
  text-align: center;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
}

.pm-hero::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  background: var(--pm-orange);
  border-radius: 50%;
  right: -160px;
  top: -120px;
  opacity: 0.12;
}

.pm-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 16px;
  position: relative;
  z-index: 2;
}

.pm-hero h1 span {
  color: var(--pm-orange);
}

.pm-hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}


/* ---------------------------------------------------------
   15. FOOTER
   --------------------------------------------------------- */

#footer {
  background-color: var(--pm-dark) !important;
  border-top: 4px solid var(--pm-orange);
  color: var(--pm-white);
}

#footer a {
  color: rgba(255, 255, 255, 0.8);
}

#footer a:hover {
  color: var(--pm-orange);
}

#footer h4,
#footer .h4 {
  color: var(--pm-white);
  font-weight: 700;
}


/* ---------------------------------------------------------
   16. FLOATING WHATSAPP BUTTON (appears on every page)
   --------------------------------------------------------- */

.pm-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.pm-whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff !important;
}


/* ---------------------------------------------------------
   17. RESPONSIVE — TABLET
   --------------------------------------------------------- */

@media (max-width: 900px) {

  .pm-categories {
    grid-template-columns: repeat(2, 1fr);
  }

  .pm-stores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* ---------------------------------------------------------
   18. RESPONSIVE — MOBILE
   --------------------------------------------------------- */

@media (max-width: 650px) {

  .pm-hero {
    padding: 50px 15px;
  }

  .pm-hero h1 {
    font-size: 36px;
  }

  .pm-categories {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 15px;
    gap: 12px;
  }

  .pm-category {
    min-height: 80px;
    font-size: 14px;
  }

  .pm-stores-grid {
    grid-template-columns: 1fr;
  }

  .pm-store-card img {
    height: 180px;
  }

  .pm-whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    font-size: 24px;
  }

}
