/*
Theme Name: COD Landing Theme
Theme URI: https://example.com/cod-landing-theme
Author: Codex
Author URI: https://example.com
Description: A lightweight WooCommerce storefront with direct cash-on-delivery product pages.
Version: 1.4.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cod-landing-theme
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: ecommerce, woocommerce, landing-page
*/

:root {
    --codlt-ink: #171717;
    --codlt-muted: #676767;
    --codlt-line: #e8e8e8;
    --codlt-soft: #f7f7f5;
    --codlt-coral: #ef4b2f;
    --codlt-coral-dark: #c93420;
    --codlt-yellow: #ffd84d;
    --codlt-green: #16835f;
    --codlt-white: #fff;
}

html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

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

body {
    margin: 0;
    background: var(--codlt-white);
    color: var(--codlt-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
    line-height: 1.65;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.codlt-shell,
.codlt-header-inner,
.codlt-footer-inner,
.codlt-page-main {
    width: min(1180px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.codlt-announcement {
    background: var(--codlt-yellow);
    color: #2c2500;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.codlt-announcement .codlt-shell {
    padding-top: 6px;
    padding-bottom: 6px;
}

.codlt-site-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--codlt-line);
    background: rgba(255, 255, 255, 0.98);
}

.codlt-header-inner {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.codlt-brand-wrap {
    display: flex;
    flex: 0 1 auto;
    min-width: 0;
    align-items: center;
}

.codlt-brand,
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    color: var(--codlt-ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
}

.custom-logo {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 52px;
}

.codlt-nav-list,
.codlt-footer-menu {
    display: flex;
    padding: 0;
    margin: 0;
    gap: 30px;
    list-style: none;
}

.codlt-nav-list a {
    position: relative;
    display: block;
    padding: 22px 0;
    font-size: 15px;
    font-weight: 750;
    text-decoration: none;
}

.codlt-nav-list a::after {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    height: 2px;
    background: var(--codlt-coral);
    content: "";
    opacity: 0;
    transform: scaleX(0.4);
    transition: opacity 160ms ease, transform 160ms ease;
}

.codlt-nav-list a:hover::after,
.codlt-nav-list .current-menu-item a::after {
    opacity: 1;
    transform: scaleX(1);
}

.codlt-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--codlt-line);
    border-radius: 6px;
    background: var(--codlt-white);
    color: var(--codlt-ink);
    cursor: pointer;
}

.codlt-menu-icon {
    display: grid;
    width: 20px;
    gap: 4px;
}

.codlt-menu-icon span {
    display: block;
    height: 2px;
    background: currentColor;
}

.codlt-hero {
    position: relative;
    display: flex;
    min-height: 560px;
    align-items: center;
    overflow: hidden;
    background: #2b2926;
    color: var(--codlt-white);
}

.codlt-hero-image,
.codlt-hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.codlt-hero-image {
    object-fit: cover;
    object-position: center;
}

.codlt-hero-shade {
    background: rgba(22, 20, 18, 0.54);
}

.codlt-hero-content {
    position: relative;
    z-index: 1;
    padding-top: 68px;
    padding-bottom: 68px;
}

.codlt-hero-kicker,
.codlt-section-kicker {
    display: block;
    margin-bottom: 12px;
    color: var(--codlt-coral);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.codlt-hero-kicker {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--codlt-yellow);
    color: #2a2200;
}

.codlt-hero h1 {
    max-width: 680px;
    margin: 18px 0 14px;
    font-size: 56px;
    line-height: 1.08;
    letter-spacing: 0;
}

.codlt-hero p {
    max-width: 560px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
}

.codlt-primary-button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 11px 22px;
    border-radius: 6px;
    background: var(--codlt-coral);
    color: var(--codlt-white);
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(239, 75, 47, 0.25);
    transition: background 160ms ease, transform 160ms ease;
}

.codlt-primary-button:hover {
    background: var(--codlt-coral-dark);
    transform: translateY(-2px);
}

.codlt-benefits {
    border-bottom: 1px solid var(--codlt-line);
    background: var(--codlt-white);
}

.codlt-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.codlt-benefit-item {
    display: flex;
    min-height: 108px;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 22px;
    border-right: 1px solid var(--codlt-line);
}

.codlt-benefit-item:last-child {
    border-right: 0;
}

.codlt-benefit-mark {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 50%;
    background: #e5f4ee;
    color: var(--codlt-green);
    font-size: 14px;
    font-weight: 900;
}

.codlt-benefit-item strong,
.codlt-benefit-item span {
    display: block;
}

.codlt-benefit-item strong {
    font-size: 15px;
}

.codlt-benefit-item div > span {
    color: var(--codlt-muted);
    font-size: 13px;
}

.codlt-home-editor,
.codlt-products-section {
    padding-top: 76px;
    padding-bottom: 82px;
}

.codlt-home-editor + .codlt-products-section {
    padding-top: 18px;
}

.codlt-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 36px;
    margin-bottom: 28px;
}

.codlt-section-heading h2,
.codlt-promise h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: 0;
}

.codlt-section-heading p {
    max-width: 490px;
    margin: 0;
    color: var(--codlt-muted);
}

.codlt-product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.codlt-product-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--codlt-line);
    border-radius: 8px;
    background: var(--codlt-white);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.codlt-product-card:hover {
    border-color: #d6d6d6;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.codlt-product-card-link {
    display: block;
    text-decoration: none;
}

.codlt-product-media {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--codlt-soft);
}

.codlt-product-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 220ms ease;
}

.codlt-product-card:hover .codlt-product-media img {
    transform: scale(1.025);
}

.codlt-sale-badge {
    position: absolute;
    z-index: 1;
    top: 12px;
    left: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--codlt-yellow);
    color: #2a2200;
    font-size: 12px;
    font-weight: 900;
}

.codlt-product-copy {
    display: block;
    padding: 16px;
}

.codlt-product-name {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.codlt-product-meta {
    display: flex;
    min-width: 0;
    align-items: end;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
}

.codlt-product-price {
    min-width: 0;
    color: var(--codlt-coral-dark);
    font-size: 18px;
    font-weight: 900;
}

.codlt-product-price del {
    display: block;
    color: #999;
    font-size: 12px;
    font-weight: 500;
}

.codlt-product-price ins {
    text-decoration: none;
}

.codlt-product-action {
    flex: 0 0 auto;
    color: var(--codlt-green);
    font-size: 13px;
    font-weight: 850;
}

.codlt-empty-state {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 30px;
    border: 1px dashed #cfcfcf;
    border-radius: 8px;
    background: var(--codlt-soft);
    color: var(--codlt-muted);
    text-align: center;
}

.codlt-empty-state strong {
    color: var(--codlt-ink);
    font-size: 20px;
}

.codlt-promise {
    border-top: 1px solid var(--codlt-line);
    background: var(--codlt-soft);
}

.codlt-promise-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr auto;
    align-items: center;
    gap: 54px;
    padding-top: 56px;
    padding-bottom: 56px;
}

.codlt-promise p {
    margin: 0;
    color: var(--codlt-muted);
}

.codlt-text-link {
    color: var(--codlt-coral-dark);
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.codlt-page-main {
    max-width: 880px;
    padding-top: 62px;
    padding-bottom: 88px;
}

.codlt-page-content {
    min-width: 0;
}

.codlt-page-heading {
    padding-bottom: 26px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--codlt-line);
}

.codlt-page-heading h1,
.codlt-page-content > h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: 0;
}

.codlt-entry-content {
    color: #353535;
    font-size: 16px;
}

.codlt-entry-content h2,
.codlt-entry-content h3 {
    margin-top: 38px;
    color: var(--codlt-ink);
    letter-spacing: 0;
}

.codlt-entry-content a {
    color: var(--codlt-coral-dark);
}

.codlt-entry-content li + li {
    margin-top: 7px;
}

.codlt-order-lookup {
    margin-top: 10px;
}

.codlt-order-lookup-intro h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.codlt-order-lookup-intro p {
    margin: 0;
    color: var(--codlt-muted);
}

.codlt-order-lookup-form {
    padding: 24px;
    margin-top: 24px;
    border: 1px solid var(--codlt-line);
    border-radius: 8px;
    background: var(--codlt-soft);
}

.codlt-order-lookup-form label {
    display: block;
    margin-bottom: 7px;
    font-weight: 800;
}

.codlt-order-lookup-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 132px;
    align-items: end;
    gap: 10px;
}

.codlt-order-lookup-controls label {
    min-width: 0;
    margin: 0;
}

.codlt-order-lookup-controls label span {
    display: block;
    margin-bottom: 7px;
}

.codlt-order-lookup-controls input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #cfcfcf;
    border-radius: 6px;
    background: var(--codlt-white);
    outline: none;
}

.codlt-order-lookup-controls input:focus {
    border-color: var(--codlt-coral);
    box-shadow: 0 0 0 3px rgba(239, 75, 47, 0.12);
}

.codlt-order-lookup-controls button {
    min-height: 48px;
    border: 0;
    border-radius: 6px;
    background: var(--codlt-coral);
    color: var(--codlt-white);
    font-weight: 850;
    cursor: pointer;
}

.codlt-order-lookup-controls button:hover {
    background: var(--codlt-coral-dark);
}

.codlt-order-lookup-controls button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.codlt-field-help {
    margin: 8px 0 0;
    color: var(--codlt-muted);
    font-size: 13px;
}

.codlt-order-message {
    display: none;
    margin-top: 12px;
    font-size: 14px;
}

.codlt-order-message.is-visible {
    display: block;
}

.codlt-order-message.is-error {
    color: #a32919;
}

.codlt-order-results {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.codlt-order-result {
    padding: 20px;
    border: 1px solid var(--codlt-line);
    border-radius: 8px;
    background: var(--codlt-white);
}

.codlt-order-result-heading,
.codlt-order-result-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.codlt-order-label {
    display: block;
    color: var(--codlt-muted);
    font-size: 12px;
}

.codlt-order-status {
    padding: 4px 9px;
    border-radius: 999px;
    background: #e5f4ee;
    color: var(--codlt-green);
    font-size: 13px;
    font-weight: 850;
}

.codlt-order-result-meta {
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid var(--codlt-line);
    color: var(--codlt-muted);
    font-size: 14px;
}

.codlt-order-result-meta strong {
    color: var(--codlt-coral-dark);
    font-size: 17px;
}

.codlt-order-items {
    padding-left: 20px;
    margin: 12px 0 0;
    color: #444;
    font-size: 14px;
}

.codlt-order-empty {
    padding: 20px;
    border-radius: 8px;
    background: #fff7d8;
    color: #5a4a0c;
}

.codlt-site-footer {
    background: #20201f;
    color: rgba(255, 255, 255, 0.76);
}

.codlt-footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr;
    gap: 64px;
    padding-top: 52px;
    padding-bottom: 46px;
}

.codlt-site-footer .codlt-brand {
    color: var(--codlt-white);
}

.codlt-footer-brand p {
    max-width: 380px;
    margin: 13px 0 0;
}

.codlt-footer-links strong,
.codlt-footer-service strong {
    display: block;
    margin-bottom: 13px;
    color: var(--codlt-white);
    font-size: 14px;
}

.codlt-footer-menu {
    display: grid;
    gap: 8px;
}

.codlt-footer-menu a,
.codlt-footer-service a {
    text-decoration: none;
}

.codlt-footer-menu a:hover,
.codlt-footer-service a:hover {
    color: var(--codlt-yellow);
}

.codlt-footer-service {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.codlt-footer-service strong {
    margin-bottom: 5px;
}

.codlt-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 12px;
}

.codlt-footer-bottom .codlt-shell {
    padding-top: 15px;
    padding-bottom: 15px;
}

@media (max-width: 900px) {
    .codlt-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .codlt-promise-inner {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .codlt-footer-inner {
        gap: 36px;
    }
}

@media (max-width: 760px) {
    .codlt-shell,
    .codlt-header-inner,
    .codlt-footer-inner,
    .codlt-page-main {
        width: min(100% - 32px, 1180px);
    }

    .codlt-header-inner {
        min-height: 64px;
    }

    .codlt-brand,
    .custom-logo-link {
        font-size: 19px;
    }

    .custom-logo {
        max-width: 170px;
        max-height: 44px;
    }

    .codlt-menu-toggle {
        display: inline-flex;
    }

    .codlt-primary-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        border-top: 1px solid var(--codlt-line);
        border-bottom: 1px solid var(--codlt-line);
        background: var(--codlt-white);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    }

    .codlt-primary-nav.is-open {
        display: block;
    }

    .codlt-nav-list {
        display: block;
        width: min(100% - 32px, 1180px);
        margin: 0 auto;
    }

    .codlt-nav-list li + li {
        border-top: 1px solid var(--codlt-line);
    }

    .codlt-nav-list a {
        padding: 14px 0;
    }

    .codlt-nav-list a::after {
        display: none;
    }

    .codlt-hero {
        min-height: 460px;
    }

    .codlt-hero-shade {
        background: rgba(20, 18, 16, 0.6);
    }

    .codlt-hero-content {
        padding-top: 54px;
        padding-bottom: 54px;
    }

    .codlt-hero h1 {
        font-size: 40px;
    }

    .codlt-hero p {
        font-size: 17px;
    }

    .codlt-benefit-grid {
        grid-template-columns: 1fr;
    }

    .codlt-benefit-item {
        min-height: 0;
        justify-content: flex-start;
        padding: 16px 4px;
        border-right: 0;
        border-bottom: 1px solid var(--codlt-line);
    }

    .codlt-benefit-item:last-child {
        border-bottom: 0;
    }

    .codlt-home-editor,
    .codlt-products-section {
        padding-top: 50px;
        padding-bottom: 56px;
    }

    .codlt-section-heading {
        display: block;
    }

    .codlt-section-heading h2,
    .codlt-promise h2 {
        font-size: 28px;
    }

    .codlt-section-heading p {
        margin-top: 12px;
    }

    .codlt-promise-inner {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .codlt-page-main {
        padding-top: 42px;
        padding-bottom: 60px;
    }

    .codlt-page-heading h1,
    .codlt-page-content > h1 {
        font-size: 32px;
    }

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

    .codlt-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .codlt-product-grid {
        gap: 12px;
    }

    .codlt-product-copy {
        padding: 12px;
    }

    .codlt-product-name {
        min-height: 42px;
        font-size: 14px;
    }

    .codlt-product-meta {
        display: block;
    }

    .codlt-product-price {
        display: block;
        font-size: 16px;
    }

    .codlt-product-action {
        display: block;
        margin-top: 5px;
    }

    .codlt-order-lookup-form {
        padding: 18px;
    }

    .codlt-order-lookup-controls {
        grid-template-columns: 1fr;
    }

    .codlt-order-lookup-controls button {
        min-height: 48px;
    }

    .codlt-order-result-heading,
    .codlt-order-result-meta {
        align-items: flex-start;
    }

    .codlt-footer-inner {
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

    .codlt-footer-brand {
        grid-column: auto;
    }
}
