/*
Theme Name: Fresh Meat Theme
Author: Wisers Blimp
Version: 1.0
Description: Editable WooCommerce Butchery Theme
*/

/* =========================================================
   RESET & BASE
========================================================= */

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

body {
    font-family: 'Playfair Display', Georgia, serif;
    background: #fff;
    color: #1a1a1a;
    line-height: 1.6;
}

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

/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =========================================================
   MAIN HEADER
   Identical appearance on home, shop, cart, checkout,
   account — every page.  The header.php outputs .main-header
   once; this block is the only place that styles it.
========================================================= */

.main-header {
    width: 100%;
    background: #fdf6ec;   /* cream — identical on every page */
    position: sticky;
    top: 0;
    left: 0;
    z-index: 9999;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

/* Force cream on WooCommerce & block-editor page wrappers so the
   header is never overridden by theme or plugin injected styles   */
.woocommerce-page .main-header,
.woocommerce      .main-header,
body.woocommerce  .main-header,
body.woocommerce-page .main-header,
body.woocommerce-shop .main-header,
body.woocommerce-cart .main-header,
body.woocommerce-checkout .main-header {
    background: #fdf6ec !important;
}

/* Also lock the header-container so no child inherits a different bg */
.header-container {
    background: #fdf6ec;
}

/* =========================================================
   HEADER INNER CONTAINER
========================================================= */

.header-container {
    max-width: 1300px;
    margin: auto;
    padding: 8px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fdf6ec;
}

/* =========================================================
   LOGO
========================================================= */

.header-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.custom-logo {
    width: 85px !important;
    height: auto !important;
    display: block;
    object-fit: contain;
    max-width: 100%;
}

/* =========================================================
   NAVIGATION  (centred absolutely inside header-container)
========================================================= */

.main-navigation {
    /* Flex-based centre — no absolute positioning that can bleed
       into the phone number / header-actions area              */
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;   /* allow shrink */
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 28px;       /* was 40px; tighter gap prevents overflow at mid widths */
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

.main-menu li { position: relative; }

.main-menu li a {
    text-decoration: none;
    color: #2c1a12;
    font-size: 17px;
    font-weight: 600;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: inline-block;
    white-space: nowrap;   /* "Checkout" must never break to a new line */
}

.main-menu li a:hover { color: #d96c1b; }

.main-menu li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: #d96c1b;
    transition: width 0.3s ease;
}

.main-menu li a:hover::after { width: 100%; }

/* =========================================================
   HEADER ACTIONS
========================================================= */

.header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.header-phone {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #2c1a12;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;   /* prevents number wrapping into nav */
}

.header-phone i { color: #d96c1b; }

.header-btn {
    background: #a81111;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s ease, transform 0.3s ease;
}

.header-btn:hover {
    background: #851010;
    transform: translateY(-2px);
}

/* =========================================================
   CART ICON  (in header)
========================================================= */

.cart-icon {
    position: relative;
    font-size: 22px;
    color: #111;
    text-decoration: none;
    line-height: 1;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -12px;
    background: #b30000;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #2c1a12;
    cursor: pointer;
}

@media (max-width: 900px) {
	.mobile-menu-btn {
		display: block;
	}
}

/* =========================================================
   MOBILE MENU DRAWER
========================================================= */

.mobile-menu-drawer {
    display: none;
    background: #fff;
    width: 100%;
    padding: 16px 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9998;
}

.mobile-menu-drawer.is-open { display: block; }

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-menu li a {
    display: block;
    padding: 14px 0;
    color: #2c1a12;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #f0ebe5;
    transition: color 0.2s ease;
}

.mobile-menu li a:hover { color: #d96c1b; }

/* =========================================================
   HEADER RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
    .header-phone { display: none; }
}

@media (max-width: 900px) {
    .main-navigation { display: none; }
    .mobile-menu-btn { display: block; }
    .header-btn      { display: none; }
    .custom-logo     { width: 110px !important; }
}

@media (max-width: 600px) {
    .header-container { padding: 15px; }
    .custom-logo      { width: 95px !important; }
}

/* =========================================================
   SUPPRESS ALL STRAY / DUPLICATE NAV MENUS
   The production header uses .mb-desktop / .mb-desktop-nav /
   .mob-drawer — NOT .main-header. All restore rules below
   reference the correct production classes.
========================================================= */

/* ── Hide every nav outside our two known header containers ── */
nav:not(.mb-desktop-nav):not(.main-navigation) {
    display: none !important;
    visibility: hidden !important;
}

/* ── Bare ul / nav dumped into any WP page wrapper ── */
#page    > ul,  #page    > nav:not(.mb-desktop-nav),
#wrapper > ul,  #wrapper > nav:not(.mb-desktop-nav),
.site    > ul,  .site    > nav:not(.mb-desktop-nav),
body     > ul,  body     > nav:not(.mb-desktop-nav),
.site-content   > ul,  .site-content   > nav,
.page-content   > ul,  .page-content   > nav,
.main-content   > ul,  .main-content   > nav,
.woocommerce-page .site-main > ul,
.woocommerce      .site-main > ul,
.woocommerce-page #primary   > ul,
.woocommerce      #primary   > ul,
/* WP & theme nav IDs / classes */
#site-navigation, #primary-navigation, #secondary-navigation,
.primary-navigation, .secondary-navigation, .site-navigation,
.nav-primary, .nav-secondary,
.storefront-primary-navigation, .storefront-navigation,
.storefront-handheld-footer-bar,
.wp-block-navigation:not(.mb-desktop-nav .wp-block-navigation) {
    display: none !important;
    visibility: hidden !important;
}

/* ── Restore production desktop header ── */
.main-header                { display: block  !important; visibility: visible !important; }
.mb-desktop                 { display: flex   !important; visibility: visible !important; }
.mb-desktop-nav             { display: flex   !important; visibility: visible !important; }
.mb-desktop-nav ul.main-menu{ display: flex   !important; visibility: visible !important; }
.mb-actions                 { display: flex   !important; visibility: visible !important; }
.mb-logo-link               { display: flex   !important; visibility: visible !important; }
.mb-phone-link              { display: inline-flex !important; visibility: visible !important; }
.mb-cart-btn                { display: inline-flex !important; visibility: visible !important; }
.mb-divider                 { display: block  !important; visibility: visible !important; }

/* ── Restore production mobile header ── */
.mb-mobile                  { display: none   !important; } /* shown only by media query below */
@media (max-width: 768px) {
    .mb-mobile              { display: flex   !important; visibility: visible !important; }
    .mb-desktop             { display: none   !important; }
}

/* ── Restore mobile drawer (hidden until JS adds .is-open) ── */
.mob-drawer                 { visibility: hidden !important; }
.mob-drawer.is-open         { visibility: visible !important; }
@media (min-width: 769px) {
    .mob-drawer             { display: none   !important; }
}

/* ── Keep all header children visible ── */
.main-header *,
.mob-drawer  * { visibility: inherit; }






.hero-swiper,
.hero-swiper .swiper-slide {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slide-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-media video,
.slide-media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.slide-media iframe { position: absolute; inset: 0; }

.slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px;
    color: #fff;
}

.slide-content h1  { font-size: 60px; margin-bottom: 20px; color: #fff; }
.slide-description { max-width: 700px; font-size: 18px; line-height: 1.7; }
.swiper-pagination-bullet { background: #fff; }

@media (max-width: 768px) {
    .slide-content h1  { font-size: 36px; }
    .slide-description { font-size: 16px; }
}

/* =========================================================
   MEAT CATEGORY GRID
========================================================= */

.meat-categories {
    padding: 80px 0;
    background: #f5d5a4;
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: #000;
}

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

.category-card {
    position: relative;
    display: block;
    border-radius: 15px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: #1a1a1a;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.category-card.show { opacity: 1; transform: scale(1); }

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}

.category-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image { transform: scale(1.15); }

.category-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.category-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    text-align: center;
    z-index: 2;
}

.category-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.shop-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #ff3c3c;
    color: #fff;
    border-radius: 25px;
    font-size: 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.category-card:hover .shop-btn { background: #fff; color: #000; }

@media (max-width: 768px) {
    .section-title  { font-size: 28px; }
    .category-image { height: 180px; }
}

/* =========================================================
   HIGHLIGHTS SECTION
========================================================= */

.highlights-section {
    background: #FFEDED;
    padding: 30px 7%;
}

.highlights-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    flex: 1;
    min-width: 220px;
}

.highlight-icon i { font-size: 38px; color: #c58b63; }

.highlight-content h3 { color: #000; font-size: 15px; margin-bottom: 8px; }
.highlight-content p  { color: #333; line-height: 1.7; font-size: 15px; }

@media (max-width: 768px) {
    .highlights-container { flex-direction: column; }
    .highlight-box        { width: 100%; }
}

/* =========================================================
   STORY BLOCK
========================================================= */

.story-section {
    background: #f5f1eb;
    padding: 100px 7%;
}

.story-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.story-image { width: 48%; }

.story-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
    border-radius: 28px;
    display: block;
}

.story-content { width: 52%; }

.story-small-title {
    display: inline-block;
    margin-bottom: 22px;
    color: #b77b57;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.story-content h2 {
    font-size: 64px;
    line-height: 1.08;
    color: #2c120d;
    margin-bottom: 28px;
    font-weight: 700;
}

.story-content p {
    font-size: 18px;
    line-height: 1.9;
    color: #5f5b57;
    margin-bottom: 35px;
}

.story-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #8d3f24;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.story-btn::after { content: "›"; font-size: 24px; }
.story-btn:hover  { color: #000; }

@media (max-width: 991px) {
    .story-container  { flex-direction: column; }
    .story-image,
    .story-content    { width: 100%; }
    .story-image img  { height: auto; }
    .story-content h2 { font-size: 42px; }
}

@media (max-width: 600px) {
    .story-section    { padding: 70px 5%; }
    .story-content h2 { font-size: 34px; }
    .story-content p  { font-size: 16px; }
}

/* =========================================================
   DELIVERY STEPS
========================================================= */

.delivery-steps-section {
    background: #f7efe4;
    padding: 80px 20px;
    overflow: hidden;
}

.delivery-container {
    max-width: 1300px;
    margin: auto;
    text-align: center;
}

.delivery-small-title {
    display: block;
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #d9681a;
    font-weight: 700;
    margin-bottom: 20px;
}

.delivery-main-title {
    font-size: 40px;
    line-height: 1.1;
    margin: 0;
    color: #1d0f08;
    font-family: Georgia, serif;
    font-weight: 800;
}

.delivery-sub-title {
    font-size: 17px;
    color: #756a64;
    margin-top: 18px;
    margin-bottom: 70px;
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.delivery-card {
    background: #f8f3ed;
    border: 1px solid #d9cec2;
    border-radius: 30px;
    padding: 40px 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.delivery-card:nth-child(1) { animation-delay: 0.2s; }
.delivery-card:nth-child(2) { animation-delay: 0.4s; }
.delivery-card:nth-child(3) { animation-delay: 0.6s; }

.delivery-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.08);
}

.delivery-icon {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: #d96c1b;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    transition: transform 0.4s ease;
}

.delivery-card:hover .delivery-icon { transform: scale(1.1) rotate(8deg); }

.delivery-step-label {
    display: block;
    margin-bottom: 18px;
    color: #b72014;
    letter-spacing: 3px;
    font-size: 14px;
    font-weight: 700;
}

.delivery-card h3 {
    font-size: 20px;
    line-height: 1.2;
    color: #1d0f08;
    margin-bottom: 18px;
    font-family: Georgia, serif;
}

.delivery-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #756a64;
}

.delivery-buttons {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.delivery-btn-primary,
.delivery-btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 60px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.4s ease, transform 0.4s ease;
}

.delivery-btn-primary       { background: #a80f0f; color: #fff; }
.delivery-btn-primary:hover { background: #850808; transform: translateY(-4px); }

.delivery-btn-whatsapp       { border: 2px solid #35c95c; color: #35c95c; background: #fff; }
.delivery-btn-whatsapp:hover { background: #35c95c; color: #fff; transform: translateY(-4px); }

@media (max-width: 1100px) {
    .delivery-grid       { grid-template-columns: 1fr; }
    .delivery-main-title { font-size: 36px; }
}

@media (max-width: 768px) {
    .delivery-steps-section    { padding: 80px 15px; }
    .delivery-main-title       { font-size: 32px; }
    .delivery-btn-primary,
    .delivery-btn-whatsapp     { width: 100%; justify-content: center; }
}

/* =========================================================
   TESTIMONIALS
========================================================= */

.testimonial-section {
    background: #f7efe4;
    padding: 100px 20px;
    overflow: hidden;
}

.testimonial-container {
    max-width: 1300px;
    margin: auto;
    text-align: center;
}

.testimonial-small-title {
    display: block;
    font-size: 13px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: #d9681a;
    font-weight: 700;
    margin-bottom: 20px;
}

.testimonial-main-title {
    font-size: 40px;
    line-height: 1.1;
    margin-bottom: 70px;
    color: #1d0f08;
    font-family: Georgia, serif;
    font-weight: 800;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    position: relative;
    background: #f9f4ee;
    border-radius: 28px;
    padding: 50px 35px 35px;
    text-align: left;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border: 1px solid #eadfd4;
    animation: fadeUp 1s ease forwards;
    opacity: 0;
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.08);
}

.testimonial-quote-icon {
    position: absolute;
    top: -18px;
    left: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #a81111;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.testimonial-stars { margin-bottom: 25px; color: #e2b143; font-size: 18px; }

.testimonial-text {
    font-size: 14px;
    line-height: 1.7;
    color: #1d0f08;
    font-family: Georgia, serif;
    margin-bottom: 35px;
    font-weight: 600;
}

.testimonial-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.testimonial-name {
    font-size: 14px;
    color: #7d6f68;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.testimonial-tag {
    background: #f7dfcf;
    color: #d9681a;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .testimonial-grid       { grid-template-columns: 1fr; }
    .testimonial-main-title { font-size: 36px; }
}

@media (max-width: 768px) {
    .testimonial-section    { padding: 80px 15px; }
    .testimonial-main-title { font-size: 32px; }
    .testimonial-card       { padding: 50px 25px 30px; }
    .testimonial-bottom     { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   CUSTOM FOOTER
========================================================= */

.custom-footer {
    background: #5a2412;
    padding: 60px 20px;
    color: #fff;
}

.custom-footer-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 60px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #b51414;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.footer-brand h3   { margin: 0; font-size: 36px; font-family: Georgia, serif; line-height: 1; }
.footer-brand span { font-size: 12px; letter-spacing: 2px; color: #d9b6a8; font-weight: 700; }

.footer-description { font-size: 15px; line-height: 1.7; color: #f0d7ca; margin-bottom: 30px; }

.footer-socials { display: flex; gap: 15px; }

.footer-socials a {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: background 0.4s ease, transform 0.4s ease;
}

.footer-socials a:hover { background: #d96c1b; transform: translateY(-4px); }

.footer-column h4 { font-size: 18px; margin-bottom: 28px; color: #d8b5a5; letter-spacing: 1px; }

.footer-column ul    { list-style: none; padding: 0; margin: 0; }
.footer-column ul li { margin-bottom: 11px; }

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-column ul li a:hover { color: #f1b25d; padding-left: 6px; }

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
    margin-bottom: 11px;
}

.footer-contact i { color: #f27b21; margin-top: 5px; }

.footer-paybill {
    display: inline-block;
    margin-top: 25px;
    background: #7b3b23;
    color: #ffcf78;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

@media (max-width: 1100px) {
    .custom-footer-container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .custom-footer            { padding: 50px 20px; }
    .custom-footer-container  { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand h3          { font-size: 28px; }
}

/* =========================================================
   STICKY CART  (fixed bottom-right on all pages)
========================================================= */

.sticky-cart {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
}

.sticky-cart a {
    background: #b30000;
    color: #fff;
    padding: 18px 25px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    gap: 10px;
    align-items: center;
    transition: background 0.3s ease;
}

.sticky-cart a:hover { background: #7f0000; }

/* =========================================================
   SHARED ANIMATION
========================================================= */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   WOOCOMMERCE — PAGE BACKGROUND
   NOTE: .woocommerce and .woocommerce-page are added to
   <body> by WooCommerce.  We set background ONLY on body
   here so the header — which sits inside <body> — is never
   wrapped in a padded/coloured WooCommerce block.
========================================================= */

body.woocommerce,
body.woocommerce-page,
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-account {
    background: #f8f5f2;
}

/* =========================================================
   WOOCOMMERCE — CONTENT WRAPPER
   Padding is applied to the main content area, NOT to body,
   so the sticky header is never displaced or double-shown.
========================================================= */

body.woocommerce     .woocommerce,
body.woocommerce-page .woocommerce,
body.woocommerce-page .woocommerce-page {
    padding: 60px 5%;
}

/* =========================================================
   WOOCOMMERCE — SHARED BUTTONS
========================================================= */

.woocommerce button.button,
.woocommerce a.checkout-button,
.woocommerce input.button {
    background: #b30000 !important;
    color: #fff !important;
    border-radius: 50px !important;
    padding: 14px 28px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: background 0.3s ease !important;
    cursor: pointer;
}

.woocommerce button.button:hover,
.woocommerce a.checkout-button:hover,
.woocommerce input.button:hover {
    background: #7f0000 !important;
}

/* Sale badge */
.woocommerce span.onsale {
    background: #c1121f !important;
    color: #fff;
    border-radius: 50px;
    padding: 8px 14px;
    min-height: auto;
    min-width: auto;
    line-height: normal;
    top: 15px !important;
    left: 15px !important;
}

/* WooCommerce notices — keep below header */
.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    position: relative;
    z-index: 1;
}

/* =========================================================
   SHOP PAGE — HEADING & SORTING
========================================================= */

.woocommerce-products-header h1 {
    font-size: 48px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 700;
}

.woocommerce-result-count,
.woocommerce-ordering { margin-bottom: 40px; }

.woocommerce-ordering select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-size: 15px;
}

/* =========================================================
   PRODUCT GRID
   Single authoritative block — no duplicates.
========================================================= */

.woocommerce ul.products,
.woocommerce-page ul.products,
.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    gap: 30px !important;
    padding: 0 !important;
    margin: 0 0 40px !important;
    list-style: none !important;
    grid-auto-flow: row;
}

/* Remove WooCommerce float clearfix pseudo-elements */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after {
    display: none !important;
    content: none !important;
}

/* Product card */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.wc-block-grid__product {
    float: none !important;
    clear: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 20px !important;
    background: #fff !important;
    border-radius: 20px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 460px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Product image */
.woocommerce ul.products li.product img,
.wc-block-grid__product img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 20px !important;
}

/* Product title */
.woocommerce ul.products li.product h2,
.woocommerce-loop-product__title,
.wc-block-grid__product-title {
    font-size: 20px !important;
    color: #222;
    font-weight: 600;
    line-height: 1.4 !important;
    min-height: 56px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin-bottom: 12px !important;
    width: 100% !important;
}

/* Price */
.woocommerce ul.products li.product .price,
.wc-block-grid__product-price {
    font-size: 20px;
    color: #c1121f;
    font-weight: bold;
    margin-bottom: 18px;
    display: block;
    text-align: center;
    width: 100%;
}

.woocommerce ul.products li.product .price del { color: #999; margin-right: 8px; }

/* Add to cart button */
.woocommerce ul.products li.product .button,
.wc-block-grid__product-add-to-cart .wp-block-button__link {
    background: #c1121f !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: auto !important;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination ul    { border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    padding: 12px 18px;
    border-radius: 8px;
    margin: 0 5px;
    background: #fff;
}

/* Category filter buttons */
.shop-filters { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 40px; }

.filter-btn {
    padding: 12px 22px;
    background: #fff;
    border-radius: 50px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    transition: background 0.3s ease, color 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.filter-btn:hover { background: #b30000; color: #fff; }

/* Sidebar — hidden sitewide */
aside,
.sidebar,
.widget-area { display: none !important; }

/* Quantity hidden on single product (weight select replaces it) */
.single-product .quantity { display: none !important; }

/* Meat weight/cooking selects */
.meat-options { margin: 20px 0; }
.meat-options label  { display: block; margin-bottom: 6px; font-weight: 600; }
.meat-options select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 15px; }

@media (max-width: 768px) {
    body.woocommerce     .woocommerce,
    body.woocommerce-page .woocommerce { padding: 40px 20px; }
    .woocommerce-products-header h1    { font-size: 34px; }
}

/* =========================================================
   CART PAGE
========================================================= */

.woocommerce-cart table.shop_table {
    border: none !important;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    width: 100%;
}

.woocommerce-cart table.shop_table th {
    background: #111;
    color: #fff;
    padding: 20px;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce-cart table.shop_table td {
    padding: 25px 20px;
    vertical-align: middle;
    border-color: #f2f2f2;
}

.woocommerce-cart table.shop_table img { width: 90px; border-radius: 12px; }

.woocommerce-cart .product-name a {
    color: #111;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal { font-size: 18px; font-weight: bold; color: #b30000; }

.woocommerce-cart input.qty {
    width: 70px;
    height: 45px;
    border-radius: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.woocommerce-cart a.remove { color: #b30000 !important; font-size: 24px; }

.coupon { display: flex; gap: 10px; }
.coupon input { height: 50px; border-radius: 10px; border: 1px solid #ddd; padding: 0 15px; }

.cart-collaterals { margin-top: 40px; }

.cart_totals {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
}

.cart_totals h2 { margin-bottom: 25px; font-size: 28px; color: #111; }

.wc-proceed-to-checkout a { width: 100%; text-align: center; display: block; }

.floating-checkout { position: fixed; bottom: 20px; right: 20px; z-index: 999; }

.floating-checkout a {
    background: #b30000;
    color: #fff;
    padding: 18px 28px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: background 0.3s ease;
    display: inline-block;
}

.floating-checkout a:hover { background: #7f0000; }

@media (max-width: 768px) {
    .woocommerce-cart table.shop_table th { display: none; }
    .woocommerce-cart table.shop_table td { display: block; width: 100%; text-align: center; }
    .woocommerce-cart table.shop_table tr { margin-bottom: 20px; display: block; border-bottom: 1px solid #eee; }
}

/* =========================================================
   CHECKOUT PAGE
========================================================= */

/* Suppress page title on checkout */
.woocommerce-checkout .entry-title,
.woocommerce-checkout h1.page-title,
.woocommerce-checkout .page-title { display: none !important; }

/* Remove extra top gaps */
.woocommerce-checkout main,
.woocommerce-checkout .site-main,
.woocommerce-checkout .content-area { padding-top: 0 !important; margin-top: 0 !important; }

.woocommerce-form-coupon-toggle { margin-top: 0 !important; margin-bottom: 20px !important; }

form.checkout.woocommerce-checkout { margin-top: 0 !important; padding-top: 0 !important; }

/* Two-column layout */
.custom-checkout-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 420px !important;
    gap: 40px;
    align-items: start;
    width: 100%;
    margin-top: 10px !important;
}

.checkout-right {
    position: sticky;
    top: 90px; /* clears the sticky header */
    width: 100%;
}

.checkout-box,
.checkout-right {
    background: #fff;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
}

.checkout-box { margin-bottom: 30px; }

/* Remove WooCommerce col floats */
.woocommerce .col2-set,
.woocommerce-page .col2-set { width: 100% !important; float: none !important; }

.woocommerce .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-1,
.woocommerce-page .col2-set .col-2 { width: 100% !important; float: none !important; }

/* Form inputs */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    border: 1px solid #ddd;
    padding: 0 18px;
    font-size: 15px;
    background: #fff;
    box-sizing: border-box;
}

.woocommerce form .form-row textarea { height: 120px; padding-top: 15px; }
.woocommerce form .form-row label    { font-weight: 600; margin-bottom: 10px; display: block; }

.checkout-box h3,
.checkout-right h3 { font-size: 20px; margin-bottom: 20px; color: #111; font-weight: 700; }

/* Order review table */
.shop_table            { border: none !important; }

.shop_table th {
    background: transparent !important;
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    border-bottom: 1px solid #eee !important;
    padding-bottom: 15px;
}

.shop_table td { padding: 18px 0; border-color: #f2f2f2 !important; }

.order-total strong,
.product-total,
.cart-subtotal span { color: #c1121f; }

/* Payment section */
.woocommerce-checkout-payment {
    background: #fafafa !important;
    border-radius: 16px;
    padding: 20px !important;
    margin-top: 25px;
}

/* Place Order button */
#place_order {
    width: 100% !important;
    height: 58px;
    border-radius: 60px !important;
    background: #c1121f !important;
    color: #fff !important;
    font-size: 16px;
    font-weight: 700;
    border: none !important;
    cursor: pointer;
    transition: background 0.3s ease;
}

#place_order:hover { background: #8f0d16 !important; }

/* Delivery map */
#delivery-map  { height: 380px; border-radius: 20px; overflow: hidden; margin-top: 20px; }
.location-text { color: #666; margin-bottom: 15px; }

/* MPesa instruction box */
.mpesa-box {
    margin-top: 30px;
    background: #fafafa;
    padding: 25px;
    border-radius: 16px;
    border-left: 5px solid #c1121f;
}

.mpesa-box h4 { margin-bottom: 20px; font-size: 22px; }
.mpesa-box ol { padding-left: 20px; line-height: 1.9; }

/* Hidden until payment method selected */
.mpesa-field,
.payment-mpesa-box { display: none; }

#order_review { margin: 0 !important; }

@media (max-width: 992px) {
    .custom-checkout-layout { grid-template-columns: 1fr !important; }
    .checkout-right         { position: relative; top: 0; }
}