/*
Theme Name: LemonTechPro Shop
Theme URI: https://lemontechpro.com/
Author: LemonTechPro
Description: Custom black, yellow and lemon-texture WooCommerce storefront.
Version: 6.0.0
Text Domain: lemontechpro
Requires at least: 6.4
Requires PHP: 7.4
*/

/* =========================================================
   LEMONTECHPRO — GLOBAL VARIABLES
   ========================================================= */

:root {
    --yellow: #ffd400;
    --yellow2: #ffe55c;
    --black: #050505;
    --white: #fff;
    --ink: #101010;
    --line: rgba(0, 0, 0, .16);
    --radius: 12px;
    --shadow: 0 12px 30px rgba(0, 0, 0, .14);
}


/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    color: var(--ink);
    background-color: #ffd400;
    background-image: url('assets/images/lemon-skin-v6.png');
    background-size: 1100px auto;
    background-position: center top;
    background-repeat: repeat;
    background-attachment: fixed;
}

.container {
    width: min(1380px, 92%);
    margin: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.screen-reader-text {
    position: absolute;
    left: -9999px;
}


/* =========================================================
   TOP BAR
   ========================================================= */

.topbar {
    background: var(--yellow);
    font-size: 13px;
    padding: 8px 0;
}

.topbar .container,
.header-main .container,
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}


/* =========================================================
   HEADER
   ========================================================= */

.header-main {
    background: #050505;
    color: #fff;
    padding: 14px 0;
}

.brand img {
    height: 58px;
    width: auto;
}


/* =========================================================
   HEADER SEARCH
   IMPORTANT: scoped to .header-main so it does NOT interfere
   with WordPress body.search on search-result pages.
   ========================================================= */

.header-main .search {
    flex: 1;
    max-width: 610px;
    display: flex;
}

.header-main .search input {
    width: 100%;
    background: #171717;
    color: #fff;
    border: 1px solid #292929;
    border-radius: 8px 0 0 8px;
    padding: 14px;
}

.header-main .search button {
    border: 0;
    background: var(--yellow);
    width: 56px;
    border-radius: 0 8px 8px 0;
    font-size: 20px;
    cursor: pointer;
}

.header-tools {
    display: flex;
    gap: 20px;
    font-size: 14px;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
    background: #070707;
    color: #fff;
    border-top: 1px solid #191919;
}

.nav .container {
    justify-content: flex-start;
}

.nav a {
    padding: 16px 18px;
    display: block;
    font-weight: 700;
    font-size: 14px;
}

.nav a:hover,
.nav a.active {
    color: var(--yellow);
}

.all-cats {
    background: var(--yellow);
    color: #000 !important;
    border-radius: 7px;
    margin: 7px 20px 7px 0;
    padding: 12px 22px !important;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 520px;
    position: relative;
    overflow: hidden;

    background-image:
        linear-gradient(
            90deg,
            rgba(255, 220, 0, .99) 0%,
            rgba(255, 220, 0, .92) 32%,
            rgba(255, 212, 0, .22) 59%,
            rgba(0, 0, 0, .05) 100%
        ),
        var(--ltp-hero-image),
        url('assets/images/lemon-texture.png');

    background-size: auto, cover, 520px;
    background-position: center, right center, center;
    background-repeat: no-repeat, no-repeat, repeat;

    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 180px;

    background-image:
        linear-gradient(
            90deg,
            rgba(255, 212, 0, .88),
            transparent
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0 28px,
            rgba(0, 0, 0, .22) 29px 31px
        );

    opacity: .35;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 560px;
    padding: 70px 0;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: clamp(48px, 5vw, 82px);
    line-height: .98;
    letter-spacing: -2px;
    text-transform: uppercase;
}

.hero h1 span {
    display: block;
    font-size: .72em;
    text-transform: none;
    margin-top: 16px;
}

.hero h1 strong {
    color: #fff;
    text-shadow: 0 2px 0 rgba(0, 0, 0, .12);
}

.hero p {
    font-size: 19px;
    line-height: 1.5;
    max-width: 460px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #060606;
    color: #fff;
    font-weight: 800;
    padding: 15px 24px;
    border-radius: 7px;
    margin-top: 12px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section {
    padding: 34px 0;
    background: transparent;
}

.section-title {
    font-size: 28px;
    margin: 0 0 22px;
    text-transform: uppercase;
}


/* =========================================================
   CATEGORY CARDS — 8 CATEGORIES
   ========================================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
}

.category-card {
    background: linear-gradient(
        180deg,
        rgba(255, 238, 95, .96),
        rgba(255, 212, 0, .96)
    );

    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(126, 91, 0, .12);
    transition: .2s;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card-media {
    height: 150px;
    background: #ffd400;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.category-card img {
    height: 150px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    padding: 0;

    mix-blend-mode: normal !important;
    filter: none !important;
    opacity: 1 !important;
    background: transparent !important;
}

.category-card .content {
    padding: 0 15px 16px;
}

.category-card h3 {
    margin: 3px 0 6px;
    font-size: 15px;
    text-transform: uppercase;
}

.category-card p {
    font-size: 12px;
    min-height: 30px;
    margin: 0 0 12px;
}

.shop-link {
    font-size: 12px;
    font-weight: 900;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.products-wrap {
    display: grid;
    grid-template-columns: 1fr 225px;
    gap: 24px;
}

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

.product-card {
    background: #fffdf5;
    border: 1px solid rgba(0, 0, 0, .13);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .08);
    position: relative;
}

.product-card img {
    height: 190px;
    width: 100%;
    object-fit: contain;
}

.product-card h3 {
    font-size: 15px;
    line-height: 1.35;
    min-height: 42px;
}

.price {
    font-size: 19px;
    font-weight: 900;
    margin: 8px 0;
}

.rating {
    color: #e5a900;
    font-size: 14px;
}


/* =========================================================
   BENEFITS PANEL
   ========================================================= */

.benefits {
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 10px;
    background: rgba(255, 225, 43, .86);
    padding: 20px;
    height: max-content;
}

.benefit {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    padding: 12px 0;
}

.benefit strong {
    display: block;
    font-size: 13px;
}

.benefit span {
    font-size: 12px;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    background: #050505;
    color: #ddd;
    padding: 45px 0 24px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 35px;
}

.site-footer h4 {
    color: #fff;
}

.site-footer a:hover {
    color: var(--yellow);
}

.copyright {
    border-top: 1px solid #242424;
    margin-top: 28px;
    padding-top: 18px;
    font-size: 13px;
}

.site-footer .footer-contact span {
    display: block;
    margin: 4px 0;
}

.site-footer .footer-contact a {
    text-decoration: none;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-toggle {
    display: none;
    background: var(--yellow);
    border: 0;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 20px;
}


/* =========================================================
   WOOCOMMERCE
   ========================================================= */

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    background: transparent;
    border-radius: 10px;
    padding: 14px;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: var(--yellow);
    color: #000;
    border-radius: 6px;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #111;
}

.woocommerce-message {
    border-top-color: var(--yellow);
}

.woocommerce ul.products li.product img {
    background: transparent;
    object-fit: contain;
    filter: none !important;
    mix-blend-mode: normal !important;
}

.woocommerce div.product div.images img {
    background: #fff;
    object-fit: contain;
}


/* =========================================================
   SEARCH RESULTS PAGE FIX
   ========================================================= */

/*
WordPress adds class="search" to the BODY on search-result pages.
Never use a global .search layout selector for the header search box.
*/

body.search main,
body.search .section {
    width: 100%;
}

body.search .container {
    width: min(1380px, 92%);
    margin-left: auto;
    margin-right: auto;
}

body.search .woocommerce,
body.search ul.products {
    width: 100%;
}

body.search .woocommerce ul.products,
body.search ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

body.search .woocommerce ul.products li.product,
body.search ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    clear: none !important;
}

body.search .woocommerce ul.products li.product img,
body.search ul.products li.product img {
    width: 100%;
    height: 240px;
    object-fit: contain;
}


/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr);
    gap: 32px;
    align-items: start;
}

.contact-panel,
.contact-form-panel {
    background: #fffdf5;
    border: 1px solid rgba(0, 0, 0, .14);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.contact-panel h1,
.contact-form-panel h2 {
    margin-top: 0;
}

.contact-details {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.contact-detail {
    background: #ffe33d;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 10px;
    padding: 16px;
}

.contact-detail strong {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.contact-detail a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-note {
    margin-top: 24px;
}

.contact-page {
    min-height: 480px;
}

.contact-intro {
    font-size: 17px;
    line-height: 1.6;
}

.contact-detail span {
    display: block;
}

.contact-layout--single {
    grid-template-columns: minmax(0, 900px);
    justify-content: center;
}

.contact-layout--single .contact-panel {
    width: 100%;
}


/* =========================================================
   NORMAL WORDPRESS PAGES
   ========================================================= */

.page-template-default main.section {
    min-height: 420px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }

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

    body.search .woocommerce ul.products,
    body.search ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: 470px;
    }

    .header-tools {
        display: none;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .topbar .container {
        font-size: 11px;
    }

    .brand img {
        height: 44px;
    }

    /* IMPORTANT — only hide the HEADER search bar */
    .header-main .search {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav .container {
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
    }

    .nav.open .container {
        display: flex;
    }

    .nav a {
        padding: 12px;
    }

    .all-cats {
        margin: 0;
    }

    .hero {
        min-height: 620px;

        background-image:
            linear-gradient(
                180deg,
                rgba(255, 220, 0, .96) 0%,
                rgba(255, 220, 0, .86) 54%,
                rgba(255, 220, 0, .18) 100%
            ),
            var(--ltp-hero-image);

        background-position: center, bottom right;
        background-size: auto, cover;
        align-items: flex-start;
    }

    .hero-copy {
        padding: 58px 0;
    }

    .hero h1 {
        font-size: 48px;
    }

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

    .products-wrap {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    body.search .woocommerce ul.products,
    body.search ul.products {
        grid-template-columns: 1fr;
    }

    body.search .woocommerce ul.products li.product img,
    body.search ul.products li.product img {
        height: auto;
        max-height: 320px;
    }

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

    .benefits {
        order: -1;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}