/*
Theme Name: CheasyStore Child
Theme URI: https://store.cheasy.finance
Description: Child theme for Cheasy Store
Author: Hamdan
Version: 1.0.0
Template: elgrecowoo
Text Domain: cheasystore-child
*/

/* =========================
   CHEASY BRAND FOUNDATION
========================= */

:root {
    --cheasy-red: #D62828;
    --cheasy-red-hover: #B91F1F;
    --cheasy-orange: #FF8A00;
    --cheasy-ink: #111111;
    --cheasy-text: #1F2937;
    --cheasy-white: #FFFFFF;
    --cheasy-bg: #F5F5F7;
    --cheasy-border: #D9D9DE;
    --cheasy-success: #16A34A;

    --cheasy-radius-sm: 8px;
    --cheasy-radius-md: 12px;
    --cheasy-radius-lg: 18px;

    --cheasy-shadow-sm: 0 2px 10px rgba(17,17,17,.06);
    --cheasy-shadow-md: 0 10px 30px rgba(17,17,17,.10);

    --cheasy-font-heading: "Poppins", "Inter", sans-serif;
    --cheasy-font-body: "Inter", sans-serif;
}

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    color: var(--cheasy-text);
    background: var(--cheasy-white);
    font-family: var(--cheasy-font-body);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--cheasy-ink);
    font-family: var(--cheasy-font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: .6em;
}

a {
    color: var(--cheasy-ink);
    text-decoration: none;
    transition: color .25s ease, opacity .25s ease;
}

a:hover {
    color: var(--cheasy-red);
}

/* Layout helpers */
.site,
.site-main,
.content-area {
    background: var(--cheasy-white);
}

.woocommerce-page .site-main,
.archive .site-main,
.home .site-main {
    padding-top: 0;
}

/* Header */
.site-header,
.top-bar,
.header-wrapper {
    background: var(--cheasy-white) !important;
    border-bottom: 1px solid var(--cheasy-border);
    box-shadow: 0 1px 0 rgba(17,17,17,.03);
}

.main-navigation ul li a,
.site-header a,
.header-cart a,
.header-account a {
    color: var(--cheasy-ink) !important;
    font-weight: 600;
}

.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current-menu-parent > a {
    color: var(--cheasy-red) !important;
}

/* Mobile nav */
.menu-toggle,
.mobile-toggle,
.mobile-menu-active {
    color: var(--cheasy-ink) !important;
}

#mobile-menu,
.mobile-navigation,
.offcanvas-menu {
    background: var(--cheasy-white) !important;
    border-left: 1px solid var(--cheasy-border);
}

#mobile-menu a,
.mobile-navigation a,
.offcanvas-menu a {
    color: var(--cheasy-ink) !important;
    font-weight: 600;
}

#mobile-menu a:hover,
.mobile-navigation a:hover {
    color: var(--cheasy-red) !important;
}

/* Search */
input[type="search"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 1px solid var(--cheasy-border);
    border-radius: var(--cheasy-radius-md);
    color: var(--cheasy-text);
    background: var(--cheasy-white);
    padding: 12px 14px;
    transition: border-color .25s ease, box-shadow .25s ease;
}

input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: var(--cheasy-red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(214,40,40,.12);
}

/* Buttons */
button,
input[type="submit"],
.button,
button.button,
a.button,
.wp-element-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce .checkout-button,
.woocommerce .single_add_to_cart_button,
.woocommerce .button.alt {
    background: var(--cheasy-red) !important;
    color: var(--cheasy-white) !important;
    border: 0 !important;
    border-radius: var(--cheasy-radius-md) !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0;
    padding: 12px 18px;
    box-shadow: none;
    transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
}

button:hover,
input[type="submit"]:hover,
.button:hover,
.wp-element-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .checkout-button:hover,
.woocommerce .single_add_to_cart_button:hover,
.woocommerce .button.alt:hover {
    background: var(--cheasy-red-hover) !important;
    color: var(--cheasy-white) !important;
    transform: translateY(-1px);
    box-shadow: var(--cheasy-shadow-sm);
}

/* Secondary button */
.button.secondary,
.btn-secondary,
.woocommerce .continue-shopping a,
.woocommerce .return-to-shop .button {
    background: var(--cheasy-white) !important;
    color: var(--cheasy-ink) !important;
    border: 1px solid var(--cheasy-border) !important;
}

.button.secondary:hover,
.btn-secondary:hover,
.woocommerce .continue-shopping a:hover,
.woocommerce .return-to-shop .button:hover {
    border-color: var(--cheasy-red) !important;
    color: var(--cheasy-red) !important;
    background: var(--cheasy-white) !important;
}

/* Product cards */
.woocommerce ul.products li.product,
.product,
.products .product {
    background: var(--cheasy-white);
    border: 1px solid var(--cheasy-border);
    border-radius: var(--cheasy-radius-lg);
    box-shadow: var(--cheasy-shadow-sm);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.woocommerce ul.products li.product:hover,
.products .product:hover {
    transform: translateY(-4px);
    box-shadow: var(--cheasy-shadow-md);
    border-color: rgba(214,40,40,.18);
}

/* Product titles */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title {
    color: var(--cheasy-ink);
    font-family: var(--cheasy-font-heading);
    font-weight: 700;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title:hover,
.products .product .woocommerce-loop-product__title:hover {
    color: var(--cheasy-red);
}

/* Prices */
.price,
.woocommerce-Price-amount,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--cheasy-red) !important;
    font-weight: 800;
}

.price del,
.woocommerce div.product p.price del,
.woocommerce ul.products li.product .price del {
    color: #6B7280 !important;
    opacity: .8;
}

.price ins,
.woocommerce div.product p.price ins,
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

/* Sale badge */
.onsale {
    background: var(--cheasy-orange) !important;
    color: var(--cheasy-white) !important;
    border-radius: 999px !important;
    font-size: 12px;
    font-weight: 800;
    padding: 6px 10px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.2;
    box-shadow: none;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: var(--cheasy-radius-md);
    border: 1px solid var(--cheasy-border);
    box-shadow: none;
}

.woocommerce-message {
    border-left: 4px solid var(--cheasy-success);
}

.woocommerce-info {
    border-left: 4px solid var(--cheasy-orange);
}

.woocommerce-error {
    border-left: 4px solid var(--cheasy-red);
}

/* Breadcrumbs */
.woocommerce-breadcrumb,
.breadcrumb,
.rank-math-breadcrumb {
    color: #6B7280;
    font-size: 14px;
}

.woocommerce-breadcrumb a,
.breadcrumb a,
.rank-math-breadcrumb a {
    color: #6B7280 !important;
}

.woocommerce-breadcrumb a:hover,
.breadcrumb a:hover,
.rank-math-breadcrumb a:hover {
    color: var(--cheasy-red) !important;
}

/* Category / archive headings */
.tax-product_cat .page-title,
.post-type-archive-product .page-title,
.woocommerce-products-header__title {
    color: var(--cheasy-ink);
    margin-bottom: 12px;
}

/* Footer */
.site-footer,
.footer-wrapper,
footer.site-footer {
    background: var(--cheasy-ink) !important;
    color: rgba(255,255,255,.88) !important;
}

.site-footer a,
.footer-wrapper a,
footer.site-footer a {
    color: rgba(255,255,255,.9) !important;
}

.site-footer a:hover,
.footer-wrapper a:hover,
footer.site-footer a:hover {
    color: var(--cheasy-orange) !important;
}

.site-footer .widget-title,
.footer-widgets .widget-title {
    color: var(--cheasy-white) !important;
    font-family: var(--cheasy-font-heading);
    font-weight: 700;
    border-bottom: 0;
    margin-bottom: 16px;
}

/* Utility */
.cheasy-section {
    padding: 48px 0;
}

.cheasy-card {
    background: var(--cheasy-white);
    border: 1px solid var(--cheasy-border);
    border-radius: var(--cheasy-radius-lg);
    box-shadow: var(--cheasy-shadow-sm);
}

/* Mobile */
@media (max-width: 767px) {
    body {
        font-size: 15px;
    }

    .site-header,
    .top-bar {
        border-bottom: 1px solid var(--cheasy-border);
    }

    .woocommerce ul.products li.product,
    .products .product {
        border-radius: var(--cheasy-radius-md);
    }

    .button,
    .woocommerce a.button,
    .woocommerce button.button,
    .woocommerce .checkout-button,
    .woocommerce .single_add_to_cart_button {
        width: 100%;
        text-align: center;
    }
}