/*
Theme Name: Landing
Theme URI:
Author: Developer
Description: Simple one-page landing theme with WooCommerce support
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: landing
*/

/* === Reset & Base === */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f6f9;
    --color-border: #e5e7eb;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --max-width: 1200px;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

/* === Layout === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==============================
   HEADER
   ============================== */
.site-header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-logo a {
    display: flex;
    align-items: center;
}

.header-logo .custom-logo {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.5px;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-text);
    transition: background 0.2s, color 0.2s;
}

.cart-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--color-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cart-btn:hover .cart-count {
    background: #fff;
    color: var(--color-primary);
}

/* ==============================
   HERO
   ============================== */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 80px 24px;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero h3 {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 620px;
}

/* ==============================
   SECTIONS
   ============================== */
.section {
    padding: 100px 0;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
    letter-spacing: -0.5px;
}

/* ==============================
   PRODUCTS
   ============================== */
.products-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.product-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.25s;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.product-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 220px;
    min-height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-alt);
}

.product-info {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.product-name {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 14px;
    line-height: 1.6;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 18px;
}

.product-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-align: center;
}

.btn-add-cart {
    background: var(--color-bg-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-add-cart:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-buy-now {
    background: var(--color-primary);
    color: #fff;
}

.btn-buy-now:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

/* ==============================
   ABOUT
   ============================== */
.about-section {
    text-align: center;
}

.about-image {
    max-width: 700px;
    margin: 0 auto 40px;
    border-radius: var(--radius);
    overflow: hidden;
}

.about-image img {
    width: 100%;
}

.about-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 48px;
    letter-spacing: -0.5px;
}

.about-points {
    list-style: none;
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.about-points li {
    display: flex;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

.about-points li:last-child {
    border-bottom: none;
}

.point-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    min-width: 40px;
    line-height: 1.4;
}

.about-points strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.about-points p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==============================
   FAQ
   ============================== */
.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-item:first-child {
    border-top: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: left;
    gap: 16px;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--color-primary);
}

.faq-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 0 24px;
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ==============================
   FOOTER
   ============================== */
.site-footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
}

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

.footer-logo a {
    display: flex;
    align-items: center;
}

.footer-logo .custom-logo {
    height: 32px;
    width: auto;
}

.footer-copy {
    color: var(--color-text-light);
    font-size: 0.875rem;
}

/* ==============================
   WOOCOMMERCE PAGES
   ============================== */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.woocommerce ul.products li.product {
    text-align: center;
    padding: 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    background: var(--color-primary) !important;
    color: #fff !important;
    border-radius: 8px;
    padding: 10px 24px;
    font-weight: 600;
    border: none;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--color-primary-dark) !important;
    color: #fff !important;
}

/* Checkout — block-based (React) inputs, payment, and classic fallback */
.wc-block-checkout input,
.wc-block-checkout select,
.wc-block-checkout textarea,
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-textarea,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control input,
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input,
.woocommerce input,
.woocommerce select,
.woocommerce textarea,
.woocommerce-page input,
.woocommerce-page select,
.woocommerce-page textarea,
.woocommerce .select2-container--default .select2-selection--single,
.woocommerce .input-text {
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent) !important;
}

.wc-block-checkout input:focus,
.wc-block-checkout select:focus,
.wc-block-checkout textarea:focus,
.wc-block-checkout .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-textarea:focus,
.wc-block-checkout .wc-block-components-combobox .components-combobox-control input:focus,
.woocommerce input:focus,
.woocommerce select:focus,
.woocommerce textarea:focus,
.woocommerce-page input:focus,
.woocommerce-page select:focus,
.woocommerce-page textarea:focus,
.woocommerce .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce .select2-container--default.select2-container--open .select2-selection--single {
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent) !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Block checkout — payment methods box */
.wc-block-checkout .wc-block-components-payment-method-icons,
.wc-block-checkout .wc-block-components-radio-control,
.wc-block-checkout .wc-block-components-radio-control__option,
.wc-block-checkout .wc-block-checkout__payment-method,
.wc-block-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option,
.wc-block-checkout .wc-block-components-radio-control-accordion-option {
    border-color: color-mix(in srgb, currentColor 20%, transparent) !important;
}

.wc-block-checkout .wc-block-components-radio-control__option::after,
.wc-block-checkout .wc-block-components-radio-control-accordion-option::after {
    border-color: color-mix(in srgb, currentColor 20%, transparent) !important;
}

/* Payment — checked option uses inset box-shadow, not border */
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 20%, transparent) !important;
}

/* Textarea & text input focus box-shadow */
.wc-block-components-textarea:focus,
.wc-block-components-form .wc-block-components-text-input input:focus,
.wc-block-components-text-input input:focus {
    border-color: color-mix(in srgb, currentColor 20%, transparent) !important;
    box-shadow: none !important;
}

/* Payment section panel borders */
.wp-block-woocommerce-checkout-payment-block,
.wc-block-checkout__payment-method,
.wc-block-components-express-payment,
.wc-block-checkout .wc-block-components-totals-wrapper {
    border-color: color-mix(in srgb, currentColor 20%, transparent) !important;
}


/* Cart — match Proceed to Checkout to Place Order */
.wc-block-cart__submit-button.wc-block-components-button {
    padding: 18px 30px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #E5E5E5 !important;
    color: #000 !important;
    border: 1px solid #797979 !important;
    margin-top: 20px !important;
    border-radius: 3px !important;
}

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
    .hero {
        min-height: 420px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

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

    .hero-content {
        padding: 60px 24px;
    }

    .product-card {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        min-height: 180px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 40px;
    }

    .about-title {
        font-size: 1.6rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-content {
        padding: 40px 24px;
    }

    .faq-question {
        font-size: 0.95rem;
    }
}
