/*
Theme Name: Twenty Twenty-Five Child
Theme URI: https://pennedbypat.ca
Description: Custom child theme for Penned by Pat with custom header, footer, and WooCommerce integration
Author: Clive Vallis
Author URI: https://pennedbypat.ca
Template: twentytwentyfive
Version: 7.5.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: twentytwentyfive-child
*/

/* ========================================
   GOOGLE FONTS
   ======================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Lato:wght@300;400&family=Playfair+Display:wght@400;600;700&family=Lora:wght@400;500;600&family=Open+Sans:wght@400;600&family=Montserrat:wght@400;500;600&display=swap');

/* ========================================
   COLOR VARIABLES
   ======================================== */
:root {
    --primary-color: #8B4F5C;
    --secondary-color: #F5F1E8;
    --text-color: #2C2C2C;
    --accent-color: #C89F7E;
    --custom-burgundy: #8B4F5C;
    --custom-cream: #F5F1E8;
    --custom-gold: #C89F7E;
    --custom-dark-gray: #2C2C2C;
}

/* ========================================
   GLOBAL TYPOGRAPHY
   ======================================== */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 600;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    line-height: 1.3;
}

h3 {
    font-family: 'Lora', serif;
    font-size: 1.75rem;
}

/* ========================================
   LINKS & BUTTONS
   ======================================== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

.wp-block-button__link,
button,
input[type="submit"] {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
    background-color: var(--accent-color);
}

/* ========================================
   CUSTOM HEADER STYLES (BLOCK TEMPLATE)
   ======================================== */

/* Elegant Header Container */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(139, 79, 92, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1000;
}

/* Header Content Wrapper */
.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 30px 0;
}

/* Site Branding - Centered and Elegant */
.site-branding {
    text-align: center;
    padding-bottom: 35px;
}

.site-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 400;
    color: #8B4F5C;
    margin: 0 0 8px 0;
    letter-spacing: 3px;
    line-height: 1.2;
}

.site-title a {
    color: #8B4F5C;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-title a:hover {
    color: #8B4F5C;
}

.site-tagline {
    font-size: 13px;
    color: #C89F7E;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 300;
    margin: 0;
}

/* Navigation - Clean and Minimal */
.main-navigation {
    border-top: 1px solid rgba(200, 159, 126, 0.2);
    background-color: #ffffff;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    list-style: none;
    padding: 0;
}

.nav-container li {
    position: relative;
}

.nav-link,
.wp-block-navigation .wp-block-navigation-item a {
    font-size: 13px;
    letter-spacing: 1.5px;
    color: #2C2C2C;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 400;
    padding: 20px 30px;
    position: relative;
    transition: color 0.3s ease;
    display: inline-block;
}

/* Elegant underline effect on hover */
.nav-link::before,
.wp-block-navigation .wp-block-navigation-item a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #8B4F5C;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover,
.wp-block-navigation .wp-block-navigation-item a:hover {
    color: #8B4F5C;
}

.nav-link:hover::before,
.wp-block-navigation .wp-block-navigation-item a:hover::before {
    transform: scaleX(1);
}

.nav-container li.current-menu-item .nav-link,
.nav-container li.current_page_item .nav-link,
.wp-block-navigation .current-menu-item a {
    color: #8B4F5C;
}

.nav-container li.current-menu-item .nav-link::before,
.nav-container li.current_page_item .nav-link::before,
.wp-block-navigation .current-menu-item a::before {
    transform: scaleX(1);
}

/* Subtle separator between nav items */
.nav-container li:not(:last-child)::after,
.wp-block-navigation .wp-block-navigation-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    width: 1px;
    background-color: rgba(200, 159, 126, 0.25);
}

/* Mobile menu toggle */
.menu-toggle,
.wp-block-navigation__responsive-container-open {
    display: none;
    background: #8B4F5C;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    margin: 15px auto;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.menu-toggle:hover,
.wp-block-navigation__responsive-container-open:hover {
    background: #6d3d48;
}

/* ========================================
   CUSTOM FOOTER STYLES (BLOCK TEMPLATE)
   ======================================== */

/* Elegant Footer Styling */
.site-footer {
    background-color: #2C2C2C;
    color: #F5F1E8;
    margin-top: 0px;
    padding: 60px 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 40px;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(245, 241, 232, 0.2);
}

/* Footer Branding */
.footer-branding {
    text-align: center;
    padding-left: 20px;
}

.footer-branding h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: #F5F1E8;
    margin: 0 0 12px 0;
    letter-spacing: 2px;
}

.footer-branding p {
    font-size: 13px;
    color: #C89F7E;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0;
    font-weight: 300;
}

/* Footer Navigation */
.footer-navigation {
    padding-top: 10px;
}

.footer-navigation h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: #F5F1E8;
    margin: 0 0 25px 0;
    padding-left: 180px;
    letter-spacing: 1px;
}

.footer-nav-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 30px;
    list-style: none;
    padding: 0;
    padding-left: 130px;
    margin: 0;
    margin-top: 15px;
}

.footer-nav-links li {
    margin: 0;
}

.footer-nav-links a,
.footer-navigation .wp-block-navigation a {
    color: #C89F7E;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease, padding-left 0.3s ease;
    opacity: 0.9;
    display: block;
    padding: 3px 0;
}

.footer-nav-links a:hover,
.footer-navigation .wp-block-navigation a:hover {
    color: #F5F1E8;
    opacity: 1;
    padding-left: 5px;
}

/* Footer Social */
.footer-social {
    padding-top: 10px;
}

.footer-social h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 500;
    color: #F5F1E8;
    margin: 0 0 25px 0;
    padding-left: 160px;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-left: 170px;
    margin-top: 15px;
}

.social-link,
.wp-block-social-links .wp-social-link {
    display: flex;
    align-items: center;
    color: #C89F7E;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    opacity: 0.9;
    padding: 3px 0;
}

.social-link:hover,
.wp-block-social-links .wp-social-link:hover {
    color: #F5F1E8;
    opacity: 1;
    transform: translateX(5px);
}

/* Larger Icons */
.social-icon,
.wp-block-social-links .wp-social-link svg {
    width: 26px;
    height: 26px;
    margin-right: 12px;
    fill: currentColor;
    flex-shrink: 0;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 35px;
    font-size: 13px;
    color: rgba(245, 241, 232, 0.7);
}

.footer-bottom a {
    color: #C89F7E;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #F5F1E8;
}

/* ========================================
   LEGACY HEADER STYLING (KEEP FOR COMPATIBILITY)
   ======================================== */
.wp-block-group.header-nav-styled,
header.wp-block-template-part {
    background-color: var(--secondary-color) !important;
    padding: 20px 40px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    margin-bottom: 0 !important;
}

.header-nav-styled .wp-block-navigation-item__content,
.wp-block-navigation .wp-block-navigation-item__content {
    color: var(--text-color) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
    font-size: 16px !important;
}

.header-nav-styled .wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation-item__content:hover {
    color: var(--primary-color) !important;
}

.wp-block-navigation__container {
    gap: 2rem !important;
}

/* ========================================
   SPACING - ALL IN ONE PLACE
   ======================================== */

/* Main content area - space below header */
main {
    padding-top: 25px !important;
}

/* Page titles */
.wp-block-post-title {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-top: 0 !important;
}

/* Homepage specific - tight spacing between title and subtitle */
body.home .entry-content > h2:first-of-type {
    margin-top: 20px !important;
}

/* All H2 headings */
.entry-content h2 {
    margin-top: 40px !important;
    margin-bottom: 20px !important;
}

/* H3 headings */
.entry-content h3 {
    margin-top: 30px !important;
    margin-bottom: 15px !important;
}

/* Paragraphs */
.entry-content p {
    margin-bottom: 20px !important;
}

/* First paragraph after title - no extra space */
.entry-content > p:first-of-type {
    margin-top: 0 !important;
}

/* Space before headings that follow paragraphs */
.entry-content p + h2,
.entry-content p + h3 {
    margin-top: 40px !important;
}

/* Remove extra padding from theme containers */
.wp-block-group.has-global-padding.is-layout-constrained {
    padding-top: 0 !important;
}

.wp-site-blocks {
    padding-top: 0 !important;
}

article {
    padding-top: 0 !important;
}

/* ========================================
   FOOTER NAVIGATION - FORCE VISIBLE
   ======================================== */

/* Make everything visible */
footer nav,
footer .wp-block-navigation,
footer .wp-block-navigation__container,
footer .wp-block-navigation-item,
footer .wp-block-navigation-item a,
footer .wp-block-navigation-item__content,
footer .wp-block-navigation-item__label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #C89F7E !important;
}

/* Stack vertically */
footer .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

/* Link styling */
footer .wp-block-navigation-item__content {
    color: #C89F7E !important;
    text-decoration: none !important;
    font-size: 16px !important;
}

footer .wp-block-navigation-item__content:hover {
    color: #F5F1E8 !important;
}

/* ========================================
   MOBILE HAMBURGER MENU FIX
   ======================================== */

/* Hamburger menu button */
.wp-block-navigation__responsive-container-open,
button.wp-block-navigation__responsive-container-open {
    color: var(--primary-color) !important;
}

/* Hamburger menu icon bars */
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-open svg path {
    fill: var(--primary-color) !important;
    stroke: var(--primary-color) !important;
}

/* Close button when menu is open */
.wp-block-navigation__responsive-container-close {
    color: var(--text-color) !important;
}

/* ========================================
   STICKY FOOTER FIX
   ======================================== */

/* Only apply flex to non-Elementor pages */
body:not(.elementor-page) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:not(.elementor-page) .wp-site-blocks {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body:not(.elementor-page) main {
    flex: 1;
}

/* For Elementor pages, use a different approach */
body.elementor-page {
    min-height: 100vh;
}

body.elementor-page footer {
    margin-top: 50px;
}

/* ========================================
   FIX ELEMENTOR TEXT OVERLAP
   ======================================== */

.elementor-widget-text-editor {
    line-height: 1.8 !important;
}

.elementor-widget-text-editor p {
    margin-bottom: 20px !important;
    line-height: 1.8 !important;
    display: block !important;
    overflow: visible !important;
}

.elementor-text-editor {
    line-height: 1.8 !important;
}

/* ========================================
   BOOKS PAGE - WIDE LAYOUT
   ======================================== */

/* Force centering at every level */
.page-id-46 .elementor,
.page-id-46 .elementor-inner,
.page-id-46 .elementor-section-wrap,
.page-id-46 .e-con,
.page-id-46 .elementor-container {
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Make book cover bigger */
.page-id-46 .elementor-widget-image img {
    width: 100% !important;
    max-width: 500px !important;
}

/* Remove any default Elementor padding that might offset things */
.page-id-46 .elementor-top-section {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Hide default page title on Other Creations page */
.page-id-113 .wp-block-post-title,
.page-id-113 .entry-title {
    display: none !important;
}

/* ========================================
   OTHER CREATIONS PAGE - FULL WIDTH
   ======================================== */

/* Make page use full viewport height and push footer down */
.page-id-113 body {
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Hide default page title */
.page-id-113 .wp-block-post-title,
.page-id-113 .entry-title {
    display: none !important;
}

/* Main content area - consistent top spacing, no side/bottom spacing */
.page-id-113 main {
    padding-top: 25px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
    flex: 1 !important;
}

/* Remove spacing from content wrappers */
.page-id-113 article,
.page-id-113 .entry-content {
    padding: 0 !important;
    margin: 0 !important;
}

/* Full-width Elementor containers */
.page-id-113 .elementor,
.page-id-113 .elementor-inner,
.page-id-113 .elementor-section-wrap {
    max-width: 100% !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Container fills width and grows to fill space */
.page-id-113 .e-con {
    max-width: 100% !important;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 !important;
}

/* Kill WordPress block group padding */
.page-id-113 main .wp-block-group {
    padding: 0 !important;
    margin: 0 !important;
}

/* Remove bottom spacing */
.page-id-113 .wp-site-blocks {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Footer touches container */
.page-id-113 footer {
    margin-top: 0 !important;
}

/* ========================================
   RESPONSIVE DESIGN - HEADER/FOOTER
   ======================================== */

@media (max-width: 968px) {
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-link,
    .wp-block-navigation .wp-block-navigation-item a {
        padding: 18px 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .footer-navigation h4,
    .footer-social h4 {
        padding-left: 0;
    }

    .footer-nav-links {
        grid-template-columns: repeat(3, 1fr);
        padding-left: 0;
    }

    .social-links {
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 30px 20px 0;
    }

    .site-title {
        font-size: 42px;
        letter-spacing: 2px;
    }

    .site-tagline {
        font-size: 11px;
        letter-spacing: 2px;
    }

    .menu-toggle,
    .wp-block-navigation__responsive-container-open {
        display: block;
    }

    .nav-container {
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-container.active {
        max-height: 500px;
    }

    .nav-link,
    .wp-block-navigation .wp-block-navigation-item a {
        padding: 16px 20px;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(200, 159, 126, 0.1);
    }

    .nav-container li:not(:last-child)::after,
    .wp-block-navigation .wp-block-navigation-item:not(:last-child)::after {
        display: none;
    }

    .site-footer {
        margin-top: 0px;
        padding: 45px 0 0;
    }

    .footer-content {
        padding: 0 25px 30px;
    }

    .footer-nav-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .social-links {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 34px;
    }

    .nav-link,
    .wp-block-navigation .wp-block-navigation-item a {
        font-size: 12px;
        padding: 14px 15px;
    }

    .footer-branding h3 {
        font-size: 26px;
    }

    .footer-nav-links {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 15px;
        padding-left: 0;
    }
}

/* ========================================
   WOOCOMMERCE CART & CHECKOUT - TARGETED
   ======================================== */

/* ----------------------------------------
   PAGE BACKGROUND
   ---------------------------------------- */
.woocommerce-cart,
.woocommerce-checkout {
    background-color: #f7f6f4 !important;
}

.woocommerce-cart main,
.woocommerce-checkout main {
    background-color: #f7f6f4 !important;
}

/* Content wrapper */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    background-color: #ffffff;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    margin: 25px auto;
    max-width: 1100px;
}

/* ----------------------------------------
   CART TABLE
   ---------------------------------------- */
table.shop_table {
    border: 1px solid #e5e2de !important;
    border-radius: 8px !important;
    border-collapse: separate !important;
    overflow: hidden;
}

table.shop_table th {
    background-color: #8B4F5C !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 14px 18px !important;
    border: none !important;
}

table.shop_table td {
    padding: 18px !important;
    border-bottom: 1px solid #eee !important;
    vertical-align: middle !important;
    background-color: #ffffff !important;
}

table.shop_table tr:last-child td {
    border-bottom: none !important;
}

/* Product name link */
.woocommerce-cart-form .product-name a,
td.product-name a {
    color: #8B4F5C !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
}

.woocommerce-cart-form .product-name a:hover,
td.product-name a:hover {
    color: #6d3d48 !important;
}

/* Product thumbnail */
td.product-thumbnail img {
    border-radius: 6px !important;
    border: 1px solid #eee !important;
}

/* Remove button */
a.remove {
    color: #8B4F5C !important;
    font-size: 22px !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

a.remove:hover {
    background-color: #8B4F5C !important;
    color: #ffffff !important;
}

/* Quantity input */
.quantity input.qty {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 8px !important;
    width: 60px !important;
    text-align: center !important;
}

.quantity input.qty:focus {
    border-color: #8B4F5C !important;
    outline: none !important;
}

/* ----------------------------------------
   CART TOTALS SECTION
   ---------------------------------------- */
.cart_totals {
    background-color: #fafaf9 !important;
    border: 1px solid #e5e2de !important;
    border-radius: 8px !important;
    padding: 25px !important;
}

.cart_totals h2 {
    color: #8B4F5C !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #C89F7E !important;
}

.cart_totals table {
    border: none !important;
}

.cart_totals th,
.cart_totals td {
    padding: 12px 8px !important;
    border-top: 1px solid #eee !important;
    background: transparent !important;
}

.cart_totals th {
    font-weight: 600 !important;
    color: #444 !important;
}

/* Order total row */
.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #8B4F5C !important;
    border-top: 2px solid #e5e2de !important;
}

/* ----------------------------------------
   BUTTONS - MAIN TARGETS
   ---------------------------------------- */

/* Proceed to checkout button - EXACT targeting */
.wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout .wp-element-button,
a.checkout-button.button.alt.wc-forward,
.checkout-button.wp-element-button {
    background-color: #8B4F5C !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    padding: 16px 32px !important;
    border: none !important;
    border-radius: 5px !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 3px 12px rgba(139, 79, 92, 0.3) !important;
}

.wc-proceed-to-checkout a.checkout-button:hover,
.wc-proceed-to-checkout .wp-element-button:hover,
a.checkout-button.button.alt.wc-forward:hover,
.checkout-button.wp-element-button:hover {
    background-color: #6d3d48 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 18px rgba(139, 79, 92, 0.4) !important;
}

/* Generic WooCommerce buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.woocommerce .wp-element-button {
    background-color: #8B4F5C !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
    text-decoration: none !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button:hover,
.woocommerce .wp-element-button:hover {
    background-color: #6d3d48 !important;
    color: #ffffff !important;
}

/* Update cart button - outline style */
button[name="update_cart"],
.woocommerce button[name="update_cart"] {
    background-color: transparent !important;
    color: #8B4F5C !important;
    border: 2px solid #8B4F5C !important;
    box-shadow: none !important;
}

button[name="update_cart"]:hover,
.woocommerce button[name="update_cart"]:hover {
    background-color: #8B4F5C !important;
    color: #ffffff !important;
}

/* Apply coupon button - gold accent */
.coupon button,
.woocommerce .coupon button {
    background-color: #C89F7E !important;
    color: #ffffff !important;
}

.coupon button:hover,
.woocommerce .coupon button:hover {
    background-color: #b8906f !important;
}

/* ----------------------------------------
   COUPON SECTION
   ---------------------------------------- */
.coupon {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.coupon input.input-text {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 10px 14px !important;
    min-width: 180px !important;
}

.coupon input.input-text:focus {
    border-color: #8B4F5C !important;
    outline: none !important;
}

/* ----------------------------------------
   CHECKOUT PAGE FORM FIELDS
   ---------------------------------------- */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    border: 1px solid #d0d0d0 !important;
    border-radius: 5px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    width: 100% !important;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #8B4F5C !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(139, 79, 92, 0.1) !important;
}

.woocommerce-checkout .form-row label {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #444 !important;
    margin-bottom: 6px !important;
}

.woocommerce-checkout .form-row label .required {
    color: #8B4F5C !important;
}

/* Checkout section headings - exclude footer */
.woocommerce-checkout main h3,
.woocommerce-checkout .woocommerce h3,
#order_review_heading {
    color: #8B4F5C !important;
    font-size: 22px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #C89F7E !important;
}

/* Order review section */
.woocommerce-checkout-review-order {
    background-color: #fafaf9 !important;
    border: 1px solid #e5e2de !important;
    border-radius: 8px !important;
    padding: 25px !important;
}

/* Payment section */
#payment {
    background-color: #fafaf9 !important;
    border-radius: 8px !important;
    padding: 20px !important;
    border: 1px solid #e5e2de !important;
}

#payment ul.payment_methods {
    border-bottom: 1px solid #eee !important;
    padding-bottom: 15px !important;
    margin-bottom: 15px !important;
}

#payment div.payment_box {
    background-color: #ffffff !important;
    border-radius: 5px !important;
    padding: 15px !important;
    border: 1px solid #eee !important;
}

/* Place order button */
#place_order {
    width: 100% !important;
    padding: 18px 30px !important;
    font-size: 15px !important;
    margin-top: 15px !important;
}

/* ----------------------------------------
   NOTICES & MESSAGES
   ---------------------------------------- */
.woocommerce-message {
    border-top-color: #C89F7E !important;
    background-color: #f9f7f5 !important;
    border-radius: 5px !important;
}

.woocommerce-info {
    border-top-color: #C89F7E !important;
    background-color: #f9f7f5 !important;
    border-radius: 5px !important;
}

.woocommerce-error {
    border-top-color: #8B4F5C !important;
    background-color: #fdf5f5 !important;
    border-radius: 5px !important;
}

/* SOFTEN THE BRIGHT WHITE AREAS */
body.woocommerce-cart,
body.woocommerce-checkout {
    background-color: #eae7e2 !important;
}

body.woocommerce-cart main,
body.woocommerce-checkout main {
    background-color: #eae7e2 !important;
}

body.woocommerce-cart .entry-content,
body.woocommerce-checkout .entry-content,
body.woocommerce-cart article,
body.woocommerce-checkout article {
    background-color: #eae7e2 !important;
}

/* Keep the actual cart/form area white for contrast */
.woocommerce-cart-form,
.cart_totals,
table.shop_table {
    background-color: #ffffff !important;
}

/* SOFTEN BURGUNDY INTENSITY */
table.shop_table th,
.cart_totals table th,
.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table tfoot th {
    background-color: #9B6068 !important;
}

.wc-proceed-to-checkout a.checkout-button,
#place_order,
button.button.alt {
    background-color: #9B6068 !important;
}

.wc-proceed-to-checkout a.checkout-button:hover,
#place_order:hover,
button.button.alt:hover {
    background-color: #8B4F5C !important;
}

/* FIX TOTAL ROW CONTRAST */
.cart_totals table tr.order-total th,
.cart_totals table tr.order-total td {
    background-color: #8B4F5C !important;
    color: #ffffff !important;
}

.cart_totals table tr.order-total td .amount {
    color: #ffffff !important;
}

/* ==========================================
   OTHER CREATIONS - PRODUCT CARDS
   ========================================== */

/* Product grid */
.products-container ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 30px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 30px auto !important;
    max-width: 1000px !important;
}

/* Individual product card */
.products-container ul.products li.product {
    background: #ffffff !important;
    border-radius: 12px !important;
    padding: 25px !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(200, 159, 126, 0.25) !important;
    box-shadow: 0 3px 15px rgba(139, 79, 92, 0.08) !important;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

.products-container ul.products li.product:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 12px 35px rgba(139, 79, 92, 0.18) !important;
    border-color: rgba(200, 159, 126, 0.5) !important;
}

/* Product image */
.products-container ul.products li.product a img {
    border-radius: 10px !important;
    margin-bottom: 18px !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Product title */
.products-container ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 22px !important;
    font-weight: 500 !important;
    color: #8B4F5C !important;
    margin: 0 0 12px 0 !important;
    line-height: 1.3 !important;
}

/* Product price */
.products-container ul.products li.product .price {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #C89F7E !important;
    margin-bottom: 18px !important;
    display: block !important;
}

/* Add to cart button */
.products-container ul.products li.product .add_to_cart_button {
    background: linear-gradient(135deg, #8B4F5C 0%, #7a4350 100%) !important;
    color: #ffffff !important;
    padding: 14px 30px !important;
    border-radius: 6px !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(139, 79, 92, 0.3) !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.products-container ul.products li.product .add_to_cart_button:hover {
    background: linear-gradient(135deg, #7a4350 0%, #6d3d48 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(139, 79, 92, 0.4) !important;
}

/* View cart link */
.products-container ul.products li.product .added_to_cart {
    display: block !important;
    margin-top: 12px !important;
    font-family: 'Lora', Georgia, serif !important;
    font-size: 14px !important;
    color: #8B4F5C !important;
    text-decoration: none !important;
}

.products-container ul.products li.product .added_to_cart:hover {
    color: #C89F7E !important;
}

/* Shop Handcrafted Items section */
.shop-products-section .products-section-title,
.products-container h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 36px !important;
    color: #8B4F5C !important;
    text-align: center !important;
    margin-bottom: 10px !important;
    position: relative !important;
    padding-bottom: 15px !important;
}

.shop-products-section .products-section-title::after,
.products-container h2::after {
    content: '' !important;
    display: block !important;
    width: 80px !important;
    height: 2px !important;
    background: #C89F7E !important;
    margin: 15px auto 0 !important;
}

.shop-products-section .products-section-description,
.products-container > p {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 16px !important;
    font-style: italic !important;
    color: #666 !important;
    text-align: center !important;
    margin-bottom: 30px !important;
}

/* ==========================================
   MY ACCOUNT PAGE
   ========================================== */

/* Force page background */
body.woocommerce-account,
body.woocommerce-account #page,
body.woocommerce-account .site {
    background-color: #eae7e2 !important;
}

/* Target the main content area */
body.woocommerce-account > div[style*="padding"],
body.woocommerce-account main,
body.woocommerce-account .entry-content {
    background-color: #eae7e2 !important;
}

/* The form container */
body.woocommerce-account .woocommerce {
    max-width: 480px !important;
    margin: 0 auto !important;
    padding: 45px 50px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 25px rgba(139, 79, 92, 0.1) !important;
    border: 1px solid rgba(200, 159, 126, 0.2) !important;
}

/* Login Title */
body.woocommerce-account .woocommerce h2 {
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 32px !important;
    color: #8B4F5C !important;
    text-align: center !important;
    margin-bottom: 30px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid #C89F7E !important;
}

/* Form labels */
body.woocommerce-account .woocommerce label {
    font-family: 'Lato', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #555 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

/* Form inputs */
body.woocommerce-account .woocommerce input[type="text"],
body.woocommerce-account .woocommerce input[type="email"],
body.woocommerce-account .woocommerce input[type="password"] {
    width: 100% !important;
    padding: 14px 16px !important;
    font-family: 'Lora', Georgia, serif !important;
    font-size: 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    margin-bottom: 20px !important;
    background: #fff !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

body.woocommerce-account .woocommerce input[type="text"]:focus,
body.woocommerce-account .woocommerce input[type="email"]:focus,
body.woocommerce-account .woocommerce input[type="password"]:focus {
    outline: none !important;
    border-color: #8B4F5C !important;
    box-shadow: 0 0 0 3px rgba(139, 79, 92, 0.1) !important;
}

/* Login button */
body.woocommerce-account .woocommerce button[type="submit"] {
    background: linear-gradient(135deg, #8B4F5C 0%, #7a4350 100%) !important;
    color: #ffffff !important;
    padding: 15px 35px !important;
    border: none !important;
    border-radius: 6px !important;
    font-family: 'Lato', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(139, 79, 92, 0.3) !important;
}

body.woocommerce-account .woocommerce button[type="submit"]:hover {
    background: linear-gradient(135deg, #7a4350 0%, #6d3d48 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(139, 79, 92, 0.4) !important;
}

/* Remember me */
body.woocommerce-account .woocommerce-form-login__rememberme {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 14px !important;
    color: #666 !important;
}

/* Lost password link */
body.woocommerce-account .woocommerce-LostPassword a {
    color: #8B4F5C !important;
    font-family: 'Lora', Georgia, serif !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

body.woocommerce-account .woocommerce-LostPassword a:hover {
    color: #C89F7E !important;
}

/* Required asterisk */
body.woocommerce-account .required {
    color: #c0392b !important;
}

/* Dashboard layout - side by side */
.woo-pages-container .woocommerce {
    display: flex !important;
    gap: 30px;
}

.woo-pages-container .woocommerce-MyAccount-navigation {
    flex: 0 0 30%;
}

.woo-pages-container .woocommerce-MyAccount-content {
    flex: 1;
}

/* ========================================
   CHECKOUT PAGE FOOTER FIX
   ======================================== */
.site-footer .footer-branding h3 {
    font-family: 'Cormorant Garamond', serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    color: #F5F1E8 !important;
    text-decoration: none !important;
    letter-spacing: 2px !important;
    border-bottom: none !important;
}

.site-footer .footer-branding p {
    color: #C89F7E !important;
}

.site-footer .footer-navigation h4,
.site-footer .footer-social h4 {
    color: #F5F1E8 !important;
}

.site-footer .footer-nav-links a {
    color: #C89F7E !important;
    text-decoration: none !important;
}

.site-footer .footer-nav-links a:hover {
    color: #F5F1E8 !important;
}

.site-footer .social-link {
    color: #C89F7E !important;
    text-decoration: none !important;
}

.site-footer .social-link:hover {
    color: #F5F1E8 !important;
}

.site-footer .footer-bottom p {
    color: rgba(245, 241, 232, 0.7) !important;
}

.site-footer .footer-bottom a {
    color: #C89F7E !important;
}

/* ==========================================
   WOOCOMMERCE RESPONSIVE - MOBILE & TABLET
   Version 7.5 - Comprehensive Mobile Fixes
   ========================================== */

/* ----------------------------------------
   TABLET BREAKPOINT (968px)
   ---------------------------------------- */
@media (max-width: 968px) {
    /* WooCommerce container */
    .woocommerce-cart .woocommerce,
    .woocommerce-checkout .woocommerce {
        padding: 25px;
        margin: 20px 15px;
        max-width: calc(100% - 30px);
    }

    /* Cart totals */
    .cart_totals {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        margin-top: 25px !important;
    }

    /* Checkout columns */
    .woocommerce-checkout .col2-set {
        width: 100% !important;
        float: none !important;
    }

    .woocommerce-checkout .col2-set .col-1,
    .woocommerce-checkout .col2-set .col-2 {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
    }

    /* Order review */
    .woocommerce-checkout-review-order {
        width: 100% !important;
        float: none !important;
    }

    /* Product cards responsive */
    .products-container ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
        padding: 0 15px !important;
    }
}

/* ----------------------------------------
   MOBILE BREAKPOINT (768px)
   ---------------------------------------- */
@media (max-width: 768px) {
    /* === GLOBAL MOBILE FIXES === */
    
    /* Prevent horizontal overflow on all WooCommerce pages */
    .woocommerce-cart,
    .woocommerce-checkout,
    .woocommerce-account {
        overflow-x: hidden !important;
    }

    .woocommerce-cart main,
    .woocommerce-checkout main,
    .woocommerce-account main {
        overflow-x: hidden !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Main WooCommerce container - CRITICAL FIX */
    .woocommerce-cart .woocommerce,
    .woocommerce-checkout .woocommerce {
        padding: 20px 15px !important;
        margin: 15px 10px !important;
        max-width: calc(100% - 20px) !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Entry content fix */
    .woocommerce-cart .entry-content,
    .woocommerce-checkout .entry-content {
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: hidden !important;
    }

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

    /* Cart table - make responsive */
    .woocommerce-cart table.shop_table {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .woocommerce-cart table.shop_table thead {
        display: none !important;
    }

    .woocommerce-cart table.shop_table tbody {
        display: block !important;
        width: 100% !important;
    }

    .woocommerce-cart table.shop_table tr {
        display: block !important;
        width: 100% !important;
        margin-bottom: 20px !important;
        border: 1px solid #e5e2de !important;
        border-radius: 8px !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
    }

    .woocommerce-cart table.shop_table td {
        display: block !important;
        width: 100% !important;
        text-align: left !important;
        padding: 10px 0 !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
        box-sizing: border-box !important;
    }

    .woocommerce-cart table.shop_table td:last-child {
        border-bottom: none !important;
    }

    /* Add labels before content on mobile */
    .woocommerce-cart table.shop_table td::before {
        content: attr(data-title) !important;
        display: block !important;
        font-weight: 600 !important;
        color: #8B4F5C !important;
        font-size: 12px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        margin-bottom: 5px !important;
    }

    /* Hide thumbnail label */
    .woocommerce-cart table.shop_table td.product-thumbnail::before {
        display: none !important;
    }

    /* Product thumbnail centered */
    .woocommerce-cart table.shop_table td.product-thumbnail {
        text-align: center !important;
        padding-bottom: 15px !important;
    }

    .woocommerce-cart table.shop_table td.product-thumbnail img {
        max-width: 120px !important;
        height: auto !important;
    }

    /* Remove button positioning */
    .woocommerce-cart table.shop_table td.product-remove {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        padding: 0 !important;
        border: none !important;
    }

    .woocommerce-cart table.shop_table tr {
        position: relative !important;
    }

    /* Quantity input */
    .woocommerce-cart .quantity input.qty {
        width: 70px !important;
        padding: 10px !important;
    }

    /* === CART TOTALS MOBILE - CRITICAL FIX === */
    .cart_totals {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 15px !important;
        margin: 20px 0 !important;
        box-sizing: border-box !important;
        float: none !important;
        overflow-x: hidden !important;
    }

    .cart_totals h2 {
        font-size: 20px !important;
        text-align: center !important;
    }

    .cart_totals table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    .cart_totals table th,
    .cart_totals table td {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 10px 5px !important;
        box-sizing: border-box !important;
    }

    .cart_totals table tr {
        display: block !important;
        margin-bottom: 10px !important;
        border-bottom: 1px solid #eee !important;
        padding-bottom: 10px !important;
    }

    .cart_totals table tr:last-child {
        border-bottom: none !important;
    }

    /* Shipping row fix */
    .cart_totals .shipping td {
        text-align: center !important;
    }

    .cart_totals .shipping ul {
        padding-left: 0 !important;
        list-style: none !important;
    }

    /* Order total row */
    .cart_totals table tr.order-total th,
    .cart_totals table tr.order-total td {
        font-size: 16px !important;
        padding: 12px 5px !important;
    }

    /* Proceed to checkout button */
    .wc-proceed-to-checkout {
        padding: 0 !important;
    }

    .wc-proceed-to-checkout a.checkout-button,
    .wc-proceed-to-checkout .wp-element-button {
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: 13px !important;
        letter-spacing: 1px !important;
        box-sizing: border-box !important;
    }

    /* PayPal button */
    .wc-proceed-to-checkout .paypal-button-container,
    .wc-proceed-to-checkout iframe {
        max-width: 100% !important;
    }

    /* Coupon section */
    .coupon {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    .coupon input.input-text {
        width: 100% !important;
        min-width: unset !important;
        box-sizing: border-box !important;
    }

    .coupon button {
        width: 100% !important;
    }

    /* Update cart button */
    button[name="update_cart"] {
        width: 100% !important;
        margin-top: 10px !important;
    }

    /* Cart actions */
    .woocommerce-cart .actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    /* === CHECKOUT PAGE MOBILE - CRITICAL FIX === */
    
    /* Billing details container fix */
    .woocommerce-checkout .woocommerce-billing-fields,
    .woocommerce-checkout .woocommerce-shipping-fields,
    .woocommerce-checkout .woocommerce-additional-fields {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Form rows */
    .woocommerce-checkout .form-row {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin-bottom: 15px !important;
        box-sizing: border-box !important;
    }

    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100% !important;
        float: none !important;
    }

    .woocommerce-checkout .form-row-wide {
        width: 100% !important;
    }

    /* Input fields */
    .woocommerce-checkout .form-row input.input-text,
    .woocommerce-checkout .form-row textarea,
    .woocommerce-checkout .form-row select,
    .woocommerce-checkout .select2-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Select2 dropdown fix */
    .woocommerce-checkout .select2-container--default .select2-selection--single {
        height: 45px !important;
        padding: 8px 12px !important;
    }

    /* Checkout heading */
    .woocommerce-checkout h3 {
        font-size: 20px !important;
        padding-bottom: 8px !important;
        margin-bottom: 15px !important;
    }

    /* Order review section */
    .woocommerce-checkout-review-order {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* Order review table */
    .woocommerce-checkout-review-order-table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }

    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        padding: 10px 8px !important;
        font-size: 14px !important;
        word-wrap: break-word !important;
    }

    .woocommerce-checkout-review-order-table .product-name {
        width: 60% !important;
    }

    .woocommerce-checkout-review-order-table .product-total {
        width: 40% !important;
        text-align: right !important;
    }

    /* Payment section */
    #payment {
        padding: 15px !important;
        margin-top: 20px !important;
    }

    #payment ul.payment_methods {
        padding-left: 0 !important;
    }

    #payment ul.payment_methods li {
        padding: 10px 0 !important;
    }

    #payment div.payment_box {
        padding: 12px !important;
        margin-top: 10px !important;
    }

    /* Place order button */
    #place_order {
        width: 100% !important;
        padding: 16px 20px !important;
        font-size: 14px !important;
        box-sizing: border-box !important;
    }

    /* Privacy policy text */
    .woocommerce-checkout .woocommerce-privacy-policy-text {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    /* === MY ACCOUNT PAGE MOBILE === */
    body.woocommerce-account .woocommerce {
        max-width: calc(100% - 20px) !important;
        margin: 15px 10px !important;
        padding: 25px 20px !important;
        box-sizing: border-box !important;
    }

    body.woocommerce-account .woocommerce h2 {
        font-size: 26px !important;
    }

    /* Dashboard layout - stack on mobile */
    .woo-pages-container .woocommerce {
        flex-direction: column !important;
    }

    .woo-pages-container .woocommerce-MyAccount-navigation {
        flex: none !important;
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    .woo-pages-container .woocommerce-MyAccount-content {
        width: 100% !important;
    }

    /* === PRODUCT CARDS MOBILE === */
    .products-container ul.products {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 10px !important;
        max-width: 100% !important;
    }

    .products-container ul.products li.product {
        padding: 20px !important;
    }

    .products-container ul.products li.product .woocommerce-loop-product__title {
        font-size: 20px !important;
    }

    .products-container ul.products li.product .price {
        font-size: 18px !important;
    }

    .products-container ul.products li.product .add_to_cart_button {
        padding: 12px 25px !important;
        font-size: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* === NOTICES MOBILE === */
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: 15px !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
    }

    .woocommerce-message a.button,
    .woocommerce-info a.button {
        display: block !important;
        margin-top: 10px !important;
        text-align: center !important;
    }
}

/* ----------------------------------------
   SMALL MOBILE BREAKPOINT (480px)
   ---------------------------------------- */
@media (max-width: 480px) {
    /* Even tighter padding */
    .woocommerce-cart .woocommerce,
    .woocommerce-checkout .woocommerce {
        padding: 15px 10px !important;
        margin: 10px 5px !important;
        max-width: calc(100% - 10px) !important;
    }

    /* Cart totals extra small */
    .cart_totals {
        padding: 15px 10px !important;
    }

    .cart_totals h2 {
        font-size: 18px !important;
    }

    /* Checkout fields */
    .woocommerce-checkout .form-row label {
        font-size: 12px !important;
    }

    .woocommerce-checkout .form-row input.input-text,
    .woocommerce-checkout .form-row select {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }

    /* Order review */
    .woocommerce-checkout-review-order-table th,
    .woocommerce-checkout-review-order-table td {
        padding: 8px 5px !important;
        font-size: 13px !important;
    }

    /* Buttons smaller */
    .wc-proceed-to-checkout a.checkout-button,
    #place_order {
        padding: 14px 15px !important;
        font-size: 12px !important;
    }

    /* Product cards */
    .products-container ul.products li.product {
        padding: 15px !important;
    }

    .products-container ul.products li.product .woocommerce-loop-product__title {
        font-size: 18px !important;
    }

    .products-container ul.products li.product .price {
        font-size: 16px !important;
    }

    /* My Account */
    body.woocommerce-account .woocommerce {
        padding: 20px 15px !important;
    }

    body.woocommerce-account .woocommerce h2 {
        font-size: 22px !important;
    }
}

/* ----------------------------------------
   WOOCOMMERCE BLOCKS COMPATIBILITY
   ---------------------------------------- */
@media (max-width: 768px) {
    /* WooCommerce Blocks cart */
    .wc-block-cart {
        padding: 15px !important;
    }

    .wc-block-cart__main,
    .wc-block-cart__sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .wc-block-cart-items {
        width: 100% !important;
    }

    .wc-block-cart-items__row {
        flex-wrap: wrap !important;
        padding: 15px 0 !important;
    }

    /* WooCommerce Blocks checkout */
    .wc-block-checkout {
        padding: 15px !important;
    }

    .wc-block-checkout__main,
    .wc-block-checkout__sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }

    .wc-block-components-text-input input,
    .wc-block-components-select select {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* ----------------------------------------
   OTHER CREATIONS / PRODUCT GRID MOBILE FIX
   Version 7.5.1
   ---------------------------------------- */
@media (max-width: 768px) {
    /* WooCommerce product listings overflow fix */
    .woocommerce ul.products,
    ul.products,
    .wp-block-woocommerce-product-collection,
    .wc-block-grid__products {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .woocommerce ul.products li.product,
    ul.products li.product {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Other Creations page specific */
    .page-id-113 .woocommerce,
    .page-id-113 .entry-content,
    .page-id-113 main {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }

    .page-id-113 ul.products {
        padding: 0 15px !important;
    }

    .page-id-113 ul.products li.product {
        width: 100% !important;
        max-width: calc(100% - 30px) !important;
        margin: 0 auto 20px !important;
    }
}

/* ----------------------------------------
   SINGLE POST NAV FIX - COMPLETE
   Version 7.5.4
   ---------------------------------------- */

/* Reset nav styles on single posts to match blog listing page */
.single-post .nav-link,
.single-post a.nav-link,
.single-post .nav-container a,
.single-post .nav-container li a,
body.single-post .nav-link,
body.single .nav-link {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    color: #2C2C2C !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
    padding: 20px 30px !important;
    text-transform: uppercase !important;
    font-family: inherit !important;
}

/* Nav container padding */
.single-post .nav-container,
body.single-post .nav-container {
    padding: 0 !important;
    margin: 0 auto !important;
}

/* Main navigation wrapper */
.single-post .main-navigation,
body.single-post .main-navigation {
    padding: 0 !important;
}

/* Current/active page (Blog) */
.single-post .nav-container li.current-menu-item a,
.single-post .nav-container li.current_page_parent a,
body.single-post .current-menu-item .nav-link,
body.single-post .current_page_parent .nav-link {
    color: #8B4F5C !important;
}

/* Hover state - match blog listing page */
.single-post .nav-link:hover,
.single-post .nav-container a:hover,
.single-post .nav-container li a:hover,
body.single-post .nav-link:hover {
    color: #8B4F5C !important;
    opacity: 1 !important;
}

/* Remove border from li wrapper */
.single-post .nav-container li,
body.single-post .nav-container li {
    border: none !important;
}
/* Mobile nav fix for single posts */
@media (max-width: 768px) {
    .single-post .nav-link,
    .single-post .nav-container a,
    .single-post .nav-container li a,
    body.single-post .nav-link {
        padding: 16px 20px !important;
        text-align: center !important;
        width: 100% !important;
    }

    .single-post .nav-container,
    body.single-post .nav-container {
        text-align: center !important;
        width: 100% !important;
    }

    .single-post .nav-container li,
    body.single-post .nav-container li {
        text-align: center !important;
        width: 100% !important;
    }
}