/* assets/css/main.css */
:root {
    --primary-color: #C88C82;
    /* Flaminko Rose Gold */
    --primary-dark: #b87a70;
    --secondary-color: #F8EFEA;
    /* Light warm background */
    --text-dark: #2A2525;
    --text-light: #666161;
    --bg-light: #FDFDFD;
    --white: #ffffff;
    --transition: all 0.3s ease;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 600;
}

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

a:hover {
    color: var(--primary-dark);
}

.container {
    max-width: 1280px !important;
    margin: 0 auto;
    padding: 0 24px;
}

/* TOP BAR */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Integrated Text Scroll Styles (Right to Left) */
.top-bar .scroll-container {
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
}

.top-bar .scroll-text {
    display: inline-block;
    animation: moveLeft 15s linear infinite; /* Changed animation name */
    margin: 0;
}

@keyframes moveLeft {
    from { 
        transform: translateX(100vw); /* Starts off-screen on the right side */
    }
    to { 
        transform: translateX(-100%); /* Ends off-screen on the left side */
    }
}

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

.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand-logo,
.custom-logo {
    max-height: 55px !important;
    width: auto !important;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    display: block;
}

.site-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* NAVIGATION TOGGLE */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px;
}

.menu-toggle:hover {
    color: var(--primary-color);
}

/* NAVIGATION */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 32px;
    padding-top:20px;
}

.main-navigation a {
    color: var(--text-dark);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 4px;
    
}

.main-navigation a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

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

/* DROPDOWN MENU STYLES */
.main-navigation ul li {
    position: relative;
}

.main-navigation ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    gap: 0;
    z-index: 100;
}

.main-navigation ul li:hover>ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.main-navigation ul ul li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.main-navigation ul ul a {
    padding: 12px 20px;
    display: block;
    font-size: 0.85rem;
    text-transform: none;
    font-weight: 500;
}

.main-navigation ul ul a::after {
    display: none;
}

.main-navigation ul ul a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* FIX: Multi-Level Sub-Menu (3rd Tier) Flyout Logic */
.main-navigation ul ul ul {
    top: 0;
    left: 100%; /* Push it perfectly out to the right side of the first menu */
    margin-left: 0;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.06);
    border-radius: 0 8px 8px 8px;
}

/* Add a tiny arrow to sub-menus that have further subcategories inside it */
.main-navigation ul ul li.menu-item-has-children > a {
    position: relative;
    padding-right: 40px; /* Ensure text doesn't overlap the arrow */
}

.main-navigation ul ul li.menu-item-has-children > a::after {
    content: " \25B8"; /* Right pointing triangle for sub levels */
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--text-light);
}

/* HEADER ACTIONS */
.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    paddin-top:25px;
}

.btn-login {
    display: inline-block;
    background-color: transparent;
    color: var(--text-dark);
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    transition: var(--transition);
    margin-left:10px;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 140, 130, 0.2);
}

.action-icon {
    color: var(--text-dark);
    position: relative;
    display: flex;
}

.action-icon:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* SEARCH MODAL */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.search-modal.active {
    opacity: 0.5;
    visibility: visible;
}

.search-modal-content {
    width: 50%;
    max-width: 800px;
    position: relative;
    padding: 0 24px;
    transform: translateY(-20px);
    transition: all 0.4s ease;
}

.search-modal.active .search-modal-content {
    transform: translateY(0);
}

.close-search {
    position: absolute;
    top: -60px;
    right: 24px;
    background: none;
    border: none;
    font-size: 3rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-search:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-search-form {
    display: flex;
    align-items: center;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 10px;
}

.modal-search-form .search-field {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--text-dark);
    outline: none;
}

.modal-search-form .search-field::placeholder {
    color: #ccc;
}

.modal-search-form .search-submit {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.modal-search-form .search-submit:hover {
    color: var(--primary-color);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 550px;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1612817288484-6f916006741a?auto=format&fit=crop&q=80&w=1920');
/*    background-image: url('https://flaminko.pk/wp-content/uploads/2026/03/hero-section-e1776261797458.avif');*/
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
    animation: fadeInDown 0.8s ease backwards;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-dark);
    animation: fadeInUp 0.8s ease backwards 0.2s;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease backwards 0.4s;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    box-shadow: 0 10px 20px rgba(200, 140, 130, 0.3);
    animation: fadeInUp 0.8s ease backwards 0.6s;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(200, 140, 130, 0.4);
    color: var(--white);
}

/* CATEGORIES */
.categories-section {
    padding: 100px 24px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.view-all {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--primary-color);
    padding-bottom: 2px;
}

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

.category-card {
    position: relative;
    height: 350px;
    border-radius: 16px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.1));
    transition: var(--transition);
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2));
}

.cat-card-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 10;
    color: var(--white);
    transition: var(--transition);
}

.category-card:hover .cat-card-content {
    transform: translateY(-10px);
}

.cat-card-content h3 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 8px;
    font-weight: 400;
}

.shop-now-link {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease;
    display: inline-block;
}

.category-card:hover .shop-now-link {
    opacity: 1;
    transform: translateX(0);
}

/* TOP BRANDS */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    align-items: center;
}

.brand-item {
    background-color: var(--white);
    border: 1px solid #eaeaea;
    border-radius: 8px;
    height: relative;
    width: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-light);
    transition: var(--transition);
    cursor: pointer;
}

.brand-item:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(200, 140, 130, 0.1);
    transform: translateY(-3px);
}

.brand-logo-img {
    max-width: 80%;
    max-height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.brand-item:hover .brand-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

/* BRAND VALUES */
.brand-values {
    background-color: var(--secondary-color);
    padding: 80px 0;
    margin-top: 60px;
}

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

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.value-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.value-item p {
    color: var(--text-light);
    max-width: 250px;
    margin: 0 auto;
}

/* WOOCOMMERCE ESSENTIAL OVERRIDES */
.woocommerce ul.products li.product {
    text-align: center;
    transition: var(--transition);
    border-radius: 12px;
    padding-bottom: 20px;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.woocommerce ul.products li.product img {
    border-radius: 12px 12px 0 0;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.03);
}

.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.woocommerce ul.products li.product .price {
    color: var(--primary-color) !important;
    font-weight: 600;
    font-size: 1.2rem;
}

.woocommerce ul.products li.product .button {
    background-color: transparent !important;
    color: var(--text-dark) !important;
    border: 1px solid var(--text-dark) !important;
    border-radius: 30px !important;
    padding: 10px 24px !important;
    transition: var(--transition) !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color) !important;
}
/*Changes by Aftab and AG start

/* WOOCOMMERCE BLOCK CHECKOUT FIXES */
.woocommerce-checkout .wc-block-components-order-summary-item__description {
    font-size: 0 !important;
    color: transparent !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name,
.woocommerce-checkout .wc-block-components-order-summary-item__name {
    font-size: 1rem !important;
    color: var(--text-dark) !important;
    line-height: 1.3 !important;
    display: block !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

.woocommerce-checkout .wc-block-components-order-summary-item__description div,
.woocommerce-checkout .wc-block-components-order-summary-item__description span:not(.wc-block-components-product-name):not(.wc-block-components-order-summary-item__name) {
    display: none !important;
}

/* 2. CHUNK LAYOUT FIX (Expands the columns into empty space) */
.woocommerce-checkout .container,
.woocommerce-checkout .page-content {
    max-width: 1300px;
}

.wp-block-woocommerce-checkout {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 4% !important;
}

.wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-fields-block {
    flex: 1 1 55% !important;
    max-width: 58% !important;
    min-width: 320px;
}

.wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
    flex: 1 1 35% !important;
    max-width: 38% !important;
    min-width: 350px;
    width: 100% !important;
}

/* Ensure the sidebar inner component actually expands */
.wc-block-components-sidebar-layout {
    width: 100% !important;
}

/* Protect the product thumbnails so badges do not overlap text */
.wc-block-components-order-summary-item__image {
    flex-shrink: 0 !important;
    max-width: 60px !important;
    margin-right: 18px !important;
}

@media (max-width: 992px) {
    .wp-block-woocommerce-checkout {
        flex-direction: column !important;
    }
    .wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-fields-block,
    .wp-block-woocommerce-checkout .wp-block-woocommerce-checkout-order-summary-block {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

/*Changes by Aftab and AG end

/* SHOP LAYOUT & FILTER SIDEBAR */
.shop-layout {
    display: block;
    padding: 60px 24px;
    align-items: flex-start;
    transition: padding-left 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@media (min-width: 993px) {
    body.filter-open .shop-layout.push-layout {
        padding-left: 340px; /* Shifts the products to the right on desktop */
    }
}

body.filter-open {
    overflow-x: hidden;
}

.shop-sidebar.offcanvas-sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background-color: var(--white);
    z-index: 10000;
    overflow-y: auto;
    padding: 60px 30px;
    box-shadow: 2px 0 20px rgba(0,0,0,0.08);
    transition: left 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

body.filter-open .shop-sidebar.offcanvas-sidebar {
    left: 0;
}

.close-filter-sidebar {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.close-filter-sidebar:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.btn-filter-toggle {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid #ccc;
    color: var(--text-dark);
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-filter-toggle:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(2px);
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

body.filter-open .filter-overlay {
    opacity: 1;
    visibility: visible;
}

.shop-products-main {
    flex: 1;
    min-width: 0;
}
.shop-products-main.full-width {
    width: 100%;
}

/* FOOTER */
.site-footer {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 80px 0 20px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h3 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 24px;
    position: relative;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column p {
    color: #a0a0a0;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 15px;
}

.footer-column ul a {
    color: #a0a0a0;
    transition: var(--transition);
}

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

.site-info {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #666;
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {

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

    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .shop-layout {
        flex-direction: column;
        padding: 40px 15px;
        gap: 30px;
    }
    .shop-sidebar {
        flex: none;
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
    .header-main {
        height: 80px;
        padding: 15px 0;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        order: 2;
        margin-left: auto;
    }

    .header-actions {
        order: 1;
        display: flex;
        margin-left: auto;
    }
    
    .main-navigation {
        order: 3;
        width: 50%;
        padding-top: 0;
        margin-left:auto;
        border-top: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
    }

    .main-navigation.toggled {
        height: auto;
        max-height: 400px;
        opacity:0.8;
        padding-top: 0x;
        border: 1px solid var(--primary-color);
        background-color: var(--white);
        border-radius: 10px;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .hero-desc {
        font-size: 1rem;
    }

    .categories-grid,
    .values-grid,
    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 350px;
    }

    .footer-widgets {
        gap: 40px;
    }
}