/*
Theme Name: Kitchenaire
Theme URI: https://kitchenaire.com
Author: Faizan Idrishi
Author URI: https://kitchenaire.com
Description: Kitchenaire – Kitchenware & Cooking Utensils Store. A fully Elementor-editable WordPress theme with WooCommerce support, designed for kitchenware and cooking utensil stores.
Version: 1.2.0
Requires at least: 5.9
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kitchenaire
Tags: e-commerce, elementor, woocommerce, full-site-editing, custom-header, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
    --kitchenaire-primary: #DB5735;
    --kitchenaire-secondary: #11232A;
    --kitchenaire-text: #7A7A7A;
    --kitchenaire-accent: #294D5C;
    --kitchenaire-white: #FFFFFF;
    --kitchenaire-light-bg: #FBFBFB;
    --kitchenaire-border: #E5E5E5;
    --kitchenaire-content-width: 1385px;
    --kitchenaire-font-heading: 'Lato', sans-serif;
    --kitchenaire-font-body: 'Open Sans', sans-serif;
}

/* === Reset & Base === */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--kitchenaire-font-body);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--kitchenaire-text);
    background-color: var(--kitchenaire-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--kitchenaire-font-heading);
    color: var(--kitchenaire-secondary);
    margin-top: 0;
    line-height: 1.2;
}

h1 {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.2;
}

h2 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.1;
}

h3 {
    font-size: 28px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
}

h4 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

h5 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
}

h6 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

p {
    margin-top: 0;
    margin-bottom: 1em;
}

a {
    color: var(--kitchenaire-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover,
a:focus {
    color: var(--kitchenaire-secondary);
}

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

/* === Layout === */

.kitchenaire-container {
    width: 100%;
    max-width: var(--kitchenaire-content-width);
    margin: 0 auto;
    padding: 0 15px;
}

.site-content {
    overflow: hidden;
}

.content-area {
    width: 100%;
}

/* === Header === */

#masthead.site-header {
    background: #FFFFFF;
    position: relative;
    z-index: 100;
}

/* --- Top Bar --- */

#masthead .header-top-bar {
    background: #294D5C;
    padding: 5px 0;
}

#masthead .header-top-bar-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

#masthead ul.header-top-list {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
}

#masthead ul.header-top-list li {
    list-style: none !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.2;
    margin: 0;
    padding: 0;
}

#masthead ul.header-top-list li + li::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 15px;
    vertical-align: middle;
}

/* --- Main Header Row --- */

#masthead .header-main {
    padding: 0;
    background: #FFFFFF;
}

#masthead .header-main-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    max-width: 1385px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 3-column layout: 25% / 50% / 25% */

#masthead .header-col-logo {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
    display: flex !important;
    align-items: center !important;
    padding: 0;
}

#masthead .header-col-nav {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0;
}

#masthead .header-col-actions {
    flex: 0 0 25% !important;
    max-width: 25% !important;
    width: 25% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 0;
}

/* --- Logo --- */

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

#masthead .custom-logo-link img {
    max-width: 60%;
    height: auto;
}

#masthead .site-logo-link {
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px;
}

#masthead .site-logo-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#masthead .site-logo-text {
    font-family: 'Lato', sans-serif;
    font-size: 24px;
    font-weight: 800;
    font-style: italic;
    color: #DB5735;
    white-space: nowrap;
    line-height: 1;
}

/* --- Main Navigation --- */

#masthead .main-navigation {
    width: 100%;
    text-align: center;
    position: relative;
}

#masthead .main-navigation ul {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#masthead .main-navigation > ul {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 0;
}

#masthead .main-navigation > ul > li {
    position: relative;
}

#masthead .main-navigation > ul > li > a {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #11232A;
    text-decoration: none;
    line-height: 1.2;
    padding: 20px 20px;
    display: block;
    transition: color 0.3s ease;
}

#masthead .main-navigation > ul > li > a:hover,
#masthead .main-navigation > ul > li.current-menu-item > a,
#masthead .main-navigation > ul > li.current-menu-ancestor > a {
    color: #DB5735;
}

/* Dropdown arrow */
#masthead .main-navigation .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

/* --- Sub-menu Dropdowns --- */

#masthead .main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #FFFFFF;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    z-index: 999;
    display: block !important;
}

#masthead .main-navigation > ul > li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
}

#masthead .main-navigation .sub-menu li {
    position: relative;
}

#masthead .main-navigation .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #11232A;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
    transition: all 0.2s ease;
}

#masthead .main-navigation .sub-menu a:hover,
#masthead .main-navigation .sub-menu .current-menu-item > a {
    background: #DB5735;
    color: #FFFFFF;
}

#masthead .main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
}

/* --- Header Actions (search + cart) --- */

#masthead .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 20px;
}

#masthead button.header-search-toggle,
#masthead button.header-search-toggle:hover,
#masthead button.header-search-toggle:focus {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    color: #DB5735;
    display: flex !important;
    align-items: center;
    line-height: 1;
    transition: color 0.3s ease;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

#masthead button.header-search-toggle:hover {
    color: #11232A;
}

#masthead .header-cart {
    position: relative;
    color: #11232A;
    display: flex;
    align-items: center;
    line-height: 1;
    transition: color 0.3s ease;
    text-decoration: none !important;
}

#masthead .header-cart:hover {
    color: #DB5735;
}

#masthead .cart-count {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #DB5735;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* --- Mobile Menu Toggle --- */

#masthead button.menu-toggle {
    display: none !important;
    background: none !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    box-shadow: none !important;
    color: #11232A;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
}

#masthead .hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #11232A;
}

/* --- Search Dropdown Bar --- */

#masthead .header-search-dropdown {
    background: #FBFBFB;
    border-top: 1px solid #E5E5E5;
    padding: 15px 0;
}

#masthead .header-search-dropdown .header-main-inner {
    display: flex !important;
    align-items: center !important;
    gap: 10px;
}

#masthead .header-search-form {
    display: flex !important;
    flex: 1;
}

#masthead .header-search-form input[type="search"] {
    flex: 1;
    border: 1px solid #E5E5E5;
    border-right: 0;
    padding: 12px 18px;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    border-radius: 0;
    background: #FFFFFF;
}

#masthead .header-search-form input[type="search"]:focus {
    outline: none;
    border-color: #DB5735;
}

#masthead button.header-search-submit,
#masthead button.header-search-submit:hover {
    background: #DB5735 !important;
    border: 1px solid #DB5735 !important;
    color: #FFFFFF !important;
    padding: 12px 18px !important;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    box-shadow: none !important;
}

#masthead button.header-search-submit:hover {
    background: #11232A !important;
    border-color: #11232A !important;
}

#masthead button.header-search-close,
#masthead button.header-search-close:hover {
    background: none !important;
    border: none !important;
    padding: 0 5px !important;
    font-size: 28px;
    color: #7A7A7A;
    cursor: pointer;
    line-height: 1;
    box-shadow: none !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
}

#masthead button.header-search-close:hover {
    color: #DB5735;
}

/* === Buttons === */

.btn,
input[type="submit"],
input[type="button"] {
    display: inline-block;
    font-family: var(--kitchenaire-font-body);
    font-size: 16px;
    font-weight: 500;
    padding: 20px 38px;
    border: 1px solid var(--kitchenaire-accent);
    border-radius: 0;
    background: var(--kitchenaire-accent);
    color: var(--kitchenaire-white);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    line-height: 1;
}

.btn:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--kitchenaire-primary);
    border-color: var(--kitchenaire-primary);
    color: var(--kitchenaire-white);
}

.btn-primary {
    background: var(--kitchenaire-primary);
    border-color: var(--kitchenaire-primary);
}

.btn-primary:hover {
    background: var(--kitchenaire-secondary);
    border-color: var(--kitchenaire-secondary);
}

.btn-outline {
    background: transparent;
    color: var(--kitchenaire-accent);
}

.btn-outline:hover {
    background: var(--kitchenaire-accent);
    color: var(--kitchenaire-white);
}

/* === Forms === */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    font-family: var(--kitchenaire-font-body);
    font-size: 16px;
    color: var(--kitchenaire-secondary);
    border: 1px solid var(--kitchenaire-border);
    border-radius: 0;
    padding: 12px 15px;
    width: 100%;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--kitchenaire-primary);
    outline: none;
}

label {
    font-family: var(--kitchenaire-font-heading);
    font-size: 17px;
    font-weight: 700;
    color: var(--kitchenaire-secondary);
    display: block;
    margin-bottom: 5px;
}

/* === Footer === */

#colophon.site-footer {
    background: none;
    padding: 0;
    margin: 0;
}

.footer-container {
    max-width: 1385px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Footer Top: Subscribe Section --- */

#colophon .footer-top {
    background: #F6F6F6;
    padding: 60px 0;
}

#colophon .footer-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

#colophon .footer-subscribe-title {
    font-family: 'Lato', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #11232A;
    margin: 0 0 5px;
    line-height: 1.1;
}

#colophon .footer-subscribe-title span {
    color: #DB5735;
}

#colophon .footer-subscribe-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #7A7A7A;
    margin: 0;
}

#colophon .footer-subscribe-right {
    flex-shrink: 0;
}

#colophon .footer-subscribe-form {
    display: flex;
}

#colophon .footer-subscribe-form input[type="email"] {
    padding: 15px 20px;
    border: 1px solid #E5E5E5;
    border-right: 0;
    font-size: 14px;
    font-family: 'Open Sans', sans-serif;
    min-width: 280px;
    border-radius: 0;
    background: #FFFFFF;
}

#colophon .footer-subscribe-form button {
    padding: 15px 30px !important;
    background: #294D5C !important;
    border: 1px solid #294D5C !important;
    color: #FFFFFF !important;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

#colophon .footer-subscribe-form button:hover {
    background: #DB5735 !important;
    border-color: #DB5735 !important;
}

/* --- Footer Main: 4-Column Links --- */

#colophon .footer-main {
    background: #F6F6F6;
    padding: 0 0 60px;
}

#colophon .footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

#colophon .footer-heading {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #11232A;
    margin: 0 0 20px;
    line-height: 1.1;
}

#colophon ul.footer-links,
#colophon ul.footer-contact-list,
#colophon ul.footer-hours {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

#colophon .footer-links li,
#colophon .footer-hours li {
    margin-bottom: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #7A7A7A;
    line-height: 1.6;
}

#colophon .footer-links a {
    color: #7A7A7A;
    text-decoration: none;
    transition: color 0.3s ease;
}

#colophon .footer-links a:hover {
    color: #DB5735;
}

#colophon .footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #7A7A7A;
    line-height: 1.6;
}

#colophon .footer-contact-list li svg {
    flex-shrink: 0;
    margin-top: 3px;
    color: #DB5735;
}

/* --- Footer Bottom: Copyright --- */

#colophon .footer-bottom {
    background: #11232A;
    padding: 20px 0;
}

#colophon .footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#colophon .footer-brand {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    color: #FFFFFF;
    margin: 0;
}

#colophon .footer-copyright {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* === Elementor Overrides === */

.elementor-page .site-header,
.elementor-page .site-footer {
    display: block;
}

.elementor-page .site-content {
    padding: 0;
}

body.elementor-template-canvas .site-header,
body.elementor-template-canvas .site-footer {
    display: none;
}

body.elementor-template-full-width .site-content {
    max-width: 100%;
    padding: 0;
}

/* === WordPress Core === */

.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img {
    display: block;
    margin: 0 auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 14px;
    color: var(--kitchenaire-text);
    padding-top: 8px;
}

.gallery-caption {
    display: block;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: var(--kitchenaire-light-bg);
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: var(--kitchenaire-secondary);
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* === Responsive === */

@media (max-width: 1024px) {
    h1 { font-size: 54px; }
    h2 { font-size: 42px; }
    h3 { font-size: 26px; }
    h4 { font-size: 26px; }
    h5 { font-size: 22px; }
    h6 { font-size: 22px; }
    body { font-size: 14px; }

    #colophon .footer-top-inner {
        flex-direction: column;
        text-align: center;
    }

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

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

@media (max-width: 1024px) {
    #masthead .header-main-inner {
        padding: 15px 15px;
    }

    #masthead .header-col-logo {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    #masthead .header-col-nav {
        display: none !important;
    }

    #masthead .header-col-nav.nav-open {
        display: block !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        order: 10;
    }

    #masthead .header-col-actions {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }

    #masthead button.menu-toggle {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 48px; }
    h2 { font-size: 40px; }
    h5 { font-size: 22px; }
    h6 { font-size: 20px; }

    #masthead .header-main-inner {
        flex-wrap: wrap !important;
        padding: 10px 10px;
    }

    #masthead .header-col-logo .custom-logo-link img {
        max-width: 80%;
    }

    #masthead .main-navigation > ul {
        flex-direction: column !important;
        gap: 0;
        padding: 10px 0;
        border-top: 1px solid #E5E5E5;
    }

    #masthead .main-navigation > ul > li > a {
        padding: 12px 0;
        text-align: left;
    }

    #masthead .main-navigation .sub-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        box-shadow: none !important;
        min-width: 0 !important;
        padding: 0 0 0 20px !important;
        display: none !important;
    }

    #masthead .main-navigation .sub-menu.toggled {
        display: block !important;
    }

    #masthead .main-navigation .sub-menu a:hover {
        background: transparent;
        color: #DB5735;
    }

    #colophon .footer-columns {
        grid-template-columns: 1fr;
    }

    #colophon .footer-subscribe-form input[type="email"] {
        min-width: 200px;
    }

    #colophon .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

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