/*
Theme Name: Lovix
Theme URI: https://lovix.pl
Author: Lovix
Author URI: https://lovix.pl
Description: A minimalist, romantic theme for Lovix.pl with WooCommerce support. Classic theme structure (No Gutenberg).
Version: 1.0.3
Text Domain: lovix
*/

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Base Styles from index.html */
body {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    color: #1f2937;
    background-color: #fdf2f8;
    /* BG Color fallback */
}

* {
    box-sizing: border-box;
}

/* Image Reset */
img {
    max-width: 100%;
    height: auto;
}

/* Sticky Footer Setup */
html,
body {
    height: 100%;
    margin: 0;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

#main-content {
    flex: 1;
}

/* Header Navigation */
#site-navigation {
    display: flex;
    gap: 32px;
    align-items: center;
}

header nav li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

header nav a {
    color: #4b5563 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
    font-size: 16px !important;
    display: block;
}

header nav a:hover {
    color: #ec4899 !important;
}

/* Footer & Lists Reset */
footer ul,
.footer-menu-list ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

footer li,
.footer-menu-list li {
    margin-left: 0 !important;
    margin-bottom: 8px !important;
    /* Unified spacing */
}

/* Unified Footer Links */
footer a,
.footer-menu-list a {
    color: #9ca3af !important;
    text-decoration: none !important;
    font-size: 14px !important;
    transition: color 0.3s ease !important;
    font-weight: 400 !important;
    /* Ensure regular weight */
}

footer a:hover,
.footer-menu-list a:hover {
    color: white !important;
    /* Distinct hover state */
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.3;
    margin-bottom: 0.5em;
    color: #1f2937;
    font-weight: 700;
}

h1 {
    font-size: 42px;
}

h2 {
    font-size: 32px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

h5 {
    font-size: 18px;
}

h6 {
    font-size: 16px;
}

/* Content Area Styles - Regulamin & Pages */
.entry-content h1 {
    font-size: 32px;
    margin-top: 32px;
    color: #be185d;
    /* Pinkish for consistency */
}

.entry-content h2 {
    font-size: 26px;
    margin-top: 28px;
    color: #be185d;
}

.entry-content h3 {
    font-size: 22px;
    margin-top: 24px;
}

.entry-content h4 {
    font-size: 19px;
    margin-top: 20px;
}

.entry-content h5 {
    font-size: 17px;
    margin-top: 16px;
}

.entry-content h6 {
    font-size: 15px;
    margin-top: 16px;
}

.entry-content p {
    margin-bottom: 16px;
    line-height: 1.6;
}

.entry-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.entry-content ol {
    list-style: decimal;
    padding-left: 24px;
    margin-bottom: 16px;
}

/* Animations */
.heart-float {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Gradients & Colors */
.gradient-romantic {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.badge-sale {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

/* Components */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

.btn-cart {
    transition: all 0.3s ease;
}

.btn-cart:hover {
    transform: scale(1.05);
}

.woocommerce-breadcrumb {
    color: #9333ea;
    display: block;
    margin-bottom: 20px;
    font-size: 14px;
}

.woocommerce-breadcrumb a {
    color: #9333ea;
    text-decoration: none;
}

/* =========================================
   WooCommerce Overrides - Lovix Style
   ========================================= */

/* Use generic container - FIX WIDTH ISSUES */
div.woocommerce,
.woocommerce-container,
.woocommerce-cart-wrapper,
.woocommerce-checkout-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px 24px !important;
    display: block !important;
    /* Ensure block display */
}

/* User Request: Remove padding/shadow from div.woocommerce on Account Page */
.woocommerce-account div.woocommerce {
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    /* Ensure no bg */
}

/* Ensure no flex parent is crushing them */
#main-content {
    display: block !important;
    width: 100% !important;
}

/* 1. Buttons (Gradient Pink) */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit.alt,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    color: white !important;
    padding: 12px 24px !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: transform 0.3s ease !important;
}

.woocommerce #respond input#submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: linear-gradient(135deg, #db2777, #9d174d) !important;
    transform: scale(1.02);
}

/* 2. Form Inputs (Rounded, Border) */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    padding: 12px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background-color: white;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus {
    border-color: #ec4899 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* 3. Shop Grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 32px !important;
    /* Increased gap for better breathing room inside card */
}

@media (max-width: 768px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
        gap: 16px !important;
    }
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    /* Remove float clearing pseudos that break grid */
}

.woocommerce ul.products li.product {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    /* Match .product-card */
    padding-bottom: 0px !important;
    /* Reset padding */
    transition: transform 0.3s ease;
    border: none !important;
    width: 100% !important;
    /* Override WC default widths */
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.2);
}

/* Sale Badge */
.woocommerce ul.products li.product .onsale {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    color: white !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    z-index: 10 !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* Image Container with 4:3 Aspect Ratio */
/* Image Container - handled by content-product.php inline styles mostly */
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    display: block !important;
    border-radius: 0 !important;
    /* Managed by container overflow */
}

/* Product Card Style Update (Reference Match) */
.woocommerce ul.products li.product {
    background: white !important;
    /* White background as requested */
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: none !important;
    /* Flat look from reference */
    padding-bottom: 20px !important;
    transition: transform 0.3s ease;
    border: none !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px !important;
    /* Smaller, cleaner font */
    font-weight: 500 !important;
    /* Regular/Medium weight */
    color: #1f2937 !important;
    padding: 8px 20px 4px !important;
    /* Spacing reduced */
    font-family: 'Montserrat', sans-serif !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    text-align: left !important;
}

.woocommerce ul.products li.product .price {
    color: #db2777 !important;
    /* Pinkish price */
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 0 20px !important;
    display: block !important;
    margin-bottom: 16px !important;
    text-align: left !important;
}

.woocommerce ul.products li.product .price del {
    color: #9ca3af !important;
    opacity: 0.7;
    font-weight: 400;
    font-size: 14px;
}

/* Full Width Button */
.woocommerce ul.products li.product .button {
    margin: 0 20px !important;
    width: calc(100% - 40px) !important;
    text-align: center !important;
    padding: 12px 0 !important;
    font-size: 14px !important;
    background: #be185d !important;
    /* Darker pink button */
    color: white !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
}

.woocommerce ul.products li.product .button:hover {
    background: #9d174d !important;
}

/* 4. Single Product */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #ec4899 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

.woocommerce div.product .product_title {
    font-family: 'Playfair Display', serif !important;
    color: #be185d !important;
    font-size: 32px !important;
}

/* 5. Cart/Checkout Tables */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.woocommerce table.shop_table {
    border: none !important;
    border-radius: 20px !important;
    background: white !important;
    box-shadow: none !important;
    /* Managed by container usually, but let's keep it clean */
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    width: 100% !important;
    margin-bottom: 24px !important;
}

.woocommerce table.shop_table th {
    background: #fce7f3 !important;
    /* Light pink header */
    color: #be185d !important;
    padding: 16px !important;
    border-bottom: 1px solid #fbcfe8 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
}

.woocommerce table.shop_table td {
    padding: 20px 16px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle !important;
}

/* Fix Quantity Inputs */
.woocommerce .quantity .qty {
    width: 60px !important;
    padding: 8px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: 600 !important;
    color: #1f2937 !important;
}

/* Fix Coupon Row */
.woocommerce table.shop_table td.actions {
    padding-top: 24px !important;
}

.woocommerce table.shop_table td.actions .coupon {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    float: left !important;
}

.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
    margin-top: 32px !important;
}

/* Shop Page Header Fix */
.woocommerce-products-header__title.page-title {
    font-size: 32px !important;
    color: #be185d !important;
    text-align: center !important;
    margin-bottom: 40px !important;
    font-family: 'Playfair Display', serif !important;
}

/* Adjust Product Buttons (Too tall fix) */
.woocommerce ul.products li.product .button {
    margin: 0 20px 20px !important;
    width: calc(100% - 40px) !important;
    text-align: center !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    line-height: normal !important;
    min-height: auto !important;
}

/* ---------------------------------------------------------
   FEATURE BUTTONS (Cart Proceed & Place Order)
   --------------------------------------------------------- */
.woocommerce .wc-proceed-to-checkout .checkout-button,
.woocommerce #place_order {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    color: white !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    padding: 20px 32px !important;
    border-radius: 50px !important;
    /* Pill shape for primary actions */
    width: 100% !important;
    display: block !important;
    text-align: center !important;
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3) !important;
    transition: all 0.3s ease !important;
    margin-top: 16px !important;
    text-decoration: none !important;
    border: none !important;
}

.woocommerce .wc-proceed-to-checkout .checkout-button:hover,
.woocommerce #place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.4) !important;
    background: linear-gradient(135deg, #db2777, #9d174d) !important;
}

/* 6. Messages / Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top: 3px solid #ec4899 !important;
    background-color: white !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    color: #1f2937 !important;
    margin-bottom: 24px !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: #ec4899 !important;
}

/* Store Notice (Top Bar Replacement) */
.woocommerce-store-notice,
p.demo_store {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    color: white !important;
    border: none !important;
    margin: 0 !important;
    padding: 10px !important;
    font-size: 14px !important;
    text-align: center !important;
    position: relative !important;
    /* Allow normal flow or fixed depending on preference, default WC is fixed usually but let's override if needed */
    width: 100% !important;
    top: 0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.woocommerce-store-notice a {
    color: white !important;
    text-decoration: underline !important;
}

/* 7. My Account */
.woocommerce-my-account-wrapper {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 40px !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 40px auto !important;
    padding: 0 24px !important;
    align-items: start !important;
}

@media (max-width: 768px) {
    .woocommerce-my-account-wrapper {
        grid-template-columns: 1fr !important;
    }
}

.woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}

/* Login / Register - Mobile Stack */
.woocommerce-login-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px;
}

.login-register-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .woocommerce-login-wrapper {
        padding: 24px 16px;
        /* Less wrapper padding */
    }

    .login-register-card {
        padding: 24px 20px;
        /* Less card padding */
    }
}

.u-columns,
.col2-set {
    width: 100% !important;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.u-column1,
.u-column2,
.col-1,
.col-2 {
    width: 48% !important;
    float: none !important;
    flex: 1 1 48%;
}

@media (max-width: 768px) {

    .u-columns,
    .col2-set {
        display: block !important;
        gap: 0 !important;
    }

    .u-column1,
    .u-column2,
    .col-1,
    .col-2 {
        width: 100% !important;
        flex: none !important;
        float: none !important;
        margin-bottom: 24px !important;
    }
}

.woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    background: transparent !important;
    /* No double background */
    box-shadow: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce-MyAccount-navigation ul li {
    margin-bottom: 8px;
    border: none !important;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    color: #6b7280;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
    font-weight: 500;
}

/* Navigation Active State */
.woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-MyAccount-navigation ul li a:hover {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    /* Pink Gradient Button */
    color: white !important;
    font-weight: 600 !important;
    padding-left: 20px !important;
    box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3) !important;
    /* Stronger Pink Shadow */
}

.woocommerce-MyAccount-content {
    background: white;
    padding: 32px !important;
    border-radius: 20px;
}

/* View Transitions - Removed for stability */

/* Result Count Left Alignment */
/* Result Count Hidden */
.woocommerce .woocommerce-result-count {
    display: none !important;
}

/* Pagination (Rounded & Pink) */
nav.woocommerce-pagination {
    margin-top: 40px !important;
}

nav.woocommerce-pagination ul {
    border: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
}

nav.woocommerce-pagination ul li {
    float: none !important;
    border: none !important;
    overflow: visible !important;
}

nav.woocommerce-pagination ul li a,
nav.woocommerce-pagination ul li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    /* Circle style */
    background: white !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    border: 1px solid #e5e7eb !important;
    text-decoration: none !important;
    padding: 0 !important;
    transition: all 0.3s ease !important;
}

nav.woocommerce-pagination ul li a:hover,
nav.woocommerce-pagination ul li a:focus {
    background: #fdf2f8 !important;
    /* Light Pink hover */
    color: #be185d !important;
    border-color: #fbcfe8 !important;
}

nav.woocommerce-pagination ul li span.current {
    background: linear-gradient(135deg, #ec4899, #be185d) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(236, 72, 153, 0.3) !important;
}

/* Sorting Dropdown (Clean & Modern) */
.woocommerce-ordering select {
    appearance: none;
    /* Remove default arrow if possible */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 10px 32px 10px 16px !important;
    font-size: 14px !important;
    color: #374151 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    font-family: 'Montserrat', sans-serif !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23be185d'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
}

/* Hide Google / Social Login */
.nsl-container,
.nsl-container-block,
.wc-social-login,
.woocommerce-form-login .nsl-container,
.woocommerce-form-register .nsl-container {
    display: none !important;
}

.woocommerce-ordering select:focus {
    border-color: #ec4899 !important;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1) !important;
}

/* ---------------------------------------------------------
   12. Responsive Header & Hamburger Menu
   --------------------------------------------------------- */
/* Default (Desktop) - Button Hidden, Nav Visible */
#mobile-menu-toggle {
    display: none !important;
}

/* Mobile Screens */
@media (max-width: 768px) {

    /* Show Hamburger */
    #mobile-menu-toggle {
        display: block !important;
        margin-left: 10px;
    }

    /* Hide Nav by Default on Mobile */
    #site-navigation {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 24px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 100;
        align-items: flex-start;
        gap: 16px;
    }

    /* Show Nav when Open */
    #site-navigation.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        /* Fixed to cover screen */
        top: 85px;
        /* Below header */
        left: 0;
        right: 0;
        bottom: 0;
        height: auto;
        background: white;
        z-index: 9999;
        overflow-y: auto;
        padding-top: 20px;
    }

    /* Mobile Menu Links */
    #site-navigation a {
        font-size: 18px !important;
        padding: 16px 20px;
        display: block;
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
        text-align: center;
    }

    /* Adjust Header Padding for Mobile */
    header>div {
        padding: 16px !important;
    }

    /* Adjust Logo Size for Mobile */
    h1#site-title {
        font-size: 24px !important;
    }

    #tagline {
        font-size: 11px !important;
    }
}