/*
Theme Name: Qute Puppies
Theme URI: https://qutepuppies.com
Author: Mijanur Rahman
Description: A premium WordPress theme for Qute Puppies, featuring full WooCommerce integration and AJAX add-to-cart.
Version: 1.5.0
Text Domain: qute-puppies
*/

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

:root {
    --primary: #C69460; /* Puppy Fur Mid Golden */
    --primary-hover: #8B623E; /* Puppy Fur Shadow */
    --secondary: #2C1E16; /* Deep Puppy Nose/Eye Brown */
    --bg-light: #F7F1EA; /* Creamy Background */
    --bg-white: #FFFFFF;
    --bg-button: #DBC8B6; /* Warm Fur Beige */
    --text-main: #5D4B3E; /* Soft Fur Brown */
    --text-heading: #1A110D; /* Deep Espresso Brown */
    --border-color: #DBC8B6;
    --transition: all 0.3s ease;

    /* Breakpoints */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white) !important;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-heading);
    font-weight: 500;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ================== LAYOUT UTILS ================== */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 20px; /* Reduced default padding for mobile */
}

/* Responsive Container Widths */
@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}
@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

.site-main-full {
    width: 100%;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ================== GLOBAL BUTTONS ================== */
.btn-primary {
    display: inline-block;
    padding: 12px 35px;
    background-color: var(--bg-button);
    color: #000;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid #000;
    cursor: pointer;
    box-shadow: none;
    transition: var(--transition);
}
.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    color: #000;
}

/* ================== HEADER NAV ================== */
.site-header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    width: 100% !important;
    max-width: 100% !important;
}
.site-header, .site-main, .site-footer, .main-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
}

.logo-container a {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: var(--secondary);
    display: flex;
    align-items: center;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.logo-container .custom-logo-link {
    display: inline-block;
}

.logo-container .custom-logo {
    display: block;
    max-width: 250px;
    height: auto;
    margin: 0 auto;
}

.nav-menu {
    display: flex !important;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap !important;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
}

@media (min-width: 1200px) {
    .nav-menu {
        gap: 22px;
    }
}

.nav-item {
    font-family: 'Inter', sans-serif;
    font-size: 12px; /* Slightly smaller font to fit more items */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    position: relative;
    color: #444;
    white-space: nowrap;
}
@media (min-width: 1400px) {
    .nav-item {
        font-size: 13px;
        letter-spacing: 1.5px;
    }
}

.nav-item:hover, 
.nav-item.active,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a,
.nav-menu .current-menu-ancestor > a,
.nav-menu .current-page-ancestor > a {
    color: var(--primary) !important;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: var(--transition);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 8px 25px;
}

.dropdown-menu li a {
    color: var(--text-main);
    display: block;
    font-size: 14px;
}
.dropdown-menu li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

/* User Actions */
.nav-actions {
    position: absolute;
    top: 30px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.nav-actions a {
    color: var(--secondary);
    font-size: 20px;
    position: relative;
}
.nav-actions a:hover {
    color: var(--primary);
}

.hamburger {
    display: none;
    font-size: 24px;
    color: var(--secondary);
    cursor: pointer;
}

/* ================== FOOTER ================== */
.site-footer {
    background-color: var(--secondary);
    color: #fff;
    padding-top: 60px;
}
.footer-container {
    padding: 0;
}

/* Footer Widgets */
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: left;
}

.footer-widgets .widget-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widgets ul {
    list-style: none;
    padding: 0;
}

.footer-widgets ul li {
    margin-bottom: 10px;
}

.footer-widgets ul li a {
    color: var(--text-main);
    transition: var(--transition);
}

.footer-widgets ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 40px;
}

/* Row 1: Nav & Social */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    flex: 1;
}
.footer-nav a {
    color: #ccc;
    font-size: 15px;
}
.footer-nav a:hover {
    color: var(--primary);
}
.footer-social {
    display: flex;
    gap: 15px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: var(--transition);
}
.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

/* Row 2: Partners */
.footer-partners {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}
.partner-logo {
    color: #888;
    font-size: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}
.partner-logo:hover {
    color: var(--bg-light);
}

/* Row 3: Contact Info */
.footer-contact {
    display: flex;
    justify-content: space-around;
    padding: 40px 0;
    flex-wrap: wrap;
    gap: 20px;
}
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ccc;
}
.contact-item i {
    font-size: 24px;
    color: var(--primary);
}
.contact-text h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 3px;
}

/* Bottom Copy */
.footer-bottom {
    background-color: #1a1a1a;
    padding: 20px 0;
    text-align: center;
    color: #888;
    font-size: 14px;
}

/* ================== MAIN CONTENT UTILS ================== */
.main-wrapper {
    min-height: 60vh;
}
.page-hero {
    background: #fff;
    padding: 80px 20px;
    text-align: center;
}
.page-hero h1 {
    color: var(--text-heading);
    font-size: 48px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

/* Welcome Section */
.welcome-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background-color: var(--bg-white);
    gap: 60px;
    margin: 0 auto;
}
.welcome-image {
    flex: 1;
    max-width: 550px;
}
.welcome-image img {
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.welcome-text {
    flex: 1;
    max-width: 500px;
}
.welcome-text h1 {
    font-size: 52px;
    margin-bottom: 5px;
    letter-spacing: 2px;
    line-height: 1.1;
}
.welcome-text h3 {
    font-family: 'Inter', sans-serif; /* Standardized Font */
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-weight: 500;
}
.welcome-text h4 {
    font-size: 22px;
    font-style: italic;
    color: var(--primary);
    margin-bottom: 25px;
    font-weight: 400;
}
.welcome-text p {
    font-size: 15px;
    margin-bottom: 40px;
    color: var(--text-main);
    line-height: 1.8;
}

/* Award Section */
.award-section {
    background-color: var(--bg-light);
    padding: 100px 0;
    text-align: center;
}
.award-section h2 {
    font-size: 42px;
    margin-bottom: 25px;
}
.award-section p {
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.award-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* ================== E-COMMERCE & FORM UTILS ================== */
.btn-outline {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #000;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
}
.btn-outline:hover {
    background-color: #000;
    color: #fff;
}

.btn-solid-black {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background-color: #000;
    color: #fff;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.btn-solid-black:hover {
    background-color: #333;
}

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
    width: 100%;
    padding: 15px;
    background-color: #F2F2F2;
    border: 1px solid #EAEAEA;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #333;
    outline: none;
    transition: var(--transition);
    margin-bottom: 20px;
}
input:focus, textarea:focus {
    border-color: #000;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #000;
}

/* Product Cards & Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}
.product-card {
    text-align: center;
}
.product-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin-bottom: 15px;
}
.product-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 5px;
}
.product-card .price {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 15px;
}

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}
.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background: #fff;
    z-index: 2001;
    transition: right 0.4s ease;
    padding: 30px;
    display: flex;
    flex-direction: column;
}
.cart-drawer.active {
    right: 0;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #EEE;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.cart-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
}
.cart-close {
    font-size: 24px;
    cursor: pointer;
}
.cart-items {
    flex: 1;
    overflow-y: auto;
}
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}
.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}
.cart-item-details h4 {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin-bottom: 5px;
}
.qty-adjuster {
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid #CCC;
    padding: 5px 10px;
    width: fit-content;
    margin-top: 10px;
}
.qty-adjuster button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}
.cart-footer {
    border-top: 1px solid #EEE;
    padding-top: 20px;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
}

/* ================== RESPONSIVENESS ================== */
@media (max-width: 991px) { /* Updated from 1150px to 992px threshold */
    .site-header {
        position: relative;
    }
    .nav-container {
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .nav-actions {
        top: 25px;
        right: 20px;
    }
    .nav-menu {
        display: none;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
    }
    .nav-menu.active {
        display: flex;
    }
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 10px 0 0 20px;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
    .hamburger {
        display: block;
    }
    .nav-actions {
        margin-right: 15px;
    }

    /* Welcome Section Responsiveness */
    .welcome-section {
        flex-direction: column;
        padding: 60px 0;
        gap: 40px;
        text-align: center;
    }
    .welcome-image, .welcome-text {
        max-width: 100%;
        width: 100%;
    }
    .welcome-text h1 {
        font-size: 38px;
    }
}

@media (max-width: 767px) { /* Updated from 768px for standard mobile-up approach */
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .footer-nav {
        justify-content: center;
    }
    .footer-contact {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .contact-item {
        flex-direction: column;
    }
}

/* WordPress WooCommerce Fixes */
.woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce-cart-form { margin-top: 30px; }
.woocommerce-checkout { margin-top: 30px; }

/* ================== WOOCOMMERCE LOOP FIXES ================== */
/* 1. Fix Image Clipping and Remove Blue Glow/Shadow from Loop Grid */
.elementor-loop-container, 
.elementor-grid,
.woocommerce ul.products {
    overflow: visible !important;
    box-shadow: none !important;
}

/* 2. Equal Height Loop Items and Bottom-Aligned Buttons */
.elementor-loop-container,
.elementor-grid,
.woocommerce ul.products {
    display: grid !important;
    grid-auto-rows: 1fr !important; /* Force all rows to have equal height */
    overflow: visible !important;
}

/* Ensure columns are maintained despite forcing display: grid */
@media (min-width: 992px) {
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .woocommerce ul.products.columns-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}
@media (max-width: 991px) and (min-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 767px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

.elementor-loop-item, 
.woocommerce ul.products li.product {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    background: transparent !important;
}

/* Push Add to Cart buttons to the bottom regardless of title height */
.elementor-loop-item .add_to_cart_button,
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    margin-top: auto !important;
    align-self: center;
}

/* 3. Handle clipping on the product link or loop item wrapper */
.woocommerce-loop-product__link,
.elementor-loop-item a {
    overflow: visible !important;
    display: flex !important; /* Changed to flex to allow inner elements to grow */
    flex-direction: column !important;
    flex: 1 !important; /* Crucial: Grow to fill the li.product height */
}

/* Ensure images maintain aspect ratio and are fully visible */
.elementor-loop-item img,
.woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important; /* Changed to cover for better filling, can be contain if users prefer no cropping */
}
