/*
Theme Name: Detox Foot Pads
Theme URI: http://modernayurlife.com/
Version: 1.0
Description: Custom theme for Detox Foot Pads WooCommerce store
Author: Modern Ayurveda Life
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: detox-foot-pads
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

:root {
    --brand-green: #5B8D37;
    --brand-green-dark: #4A7330;
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F5;
    --bg-earthy: #EEF1EA;
    --bg-blue: #E1EDF5;
    --text-primary: rgba(0, 0, 0, 0.81);
    --text-heading: #000000;
    --border-subtle: #DFDFDF;
    --muted-price: #8C8C8C;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
}

.pre-header {
    background: #1C1C1C;
    overflow: hidden;
    padding: 10px 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.pre-header-content {
    display: flex;
    justify-content: flex-start;
    animation: scroll 25s linear infinite;
    white-space: nowrap;
    gap: 0;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.pre-header-content {
    display: flex;
    animation: scroll 20s linear infinite;
    white-space: nowrap;
}

.pre-header-content span {
    color: white;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    padding: 0 30px;
}

.pre-header-content span::after {
    content: '◆';
    margin-left: 30px;
    font-size: 0.5rem;
    vertical-align: middle;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 100px !important;
    width: auto !important;
}

@media (max-width: 768px) {
.logo-img {
    height: 70px !important;
    width: auto !important;
}

.logo-link {
    display: inline-block;
}
}

.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.offcanvas {
    max-width: 280px;
}

.offcanvas-header {
    background: var(--brand-green);
}

.offcanvas-title {
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bg-green {
    background: var(--brand-green);
}

.offcanvas-body.bg-green .nav-link {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.125s ease-in-out;
}

.offcanvas-body.bg-green .nav-link:hover {
    color: white;
}

.search-dropdown {
    background: var(--brand-green);
    padding: 12px 0;
}

.search-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.search-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.search-submit {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
}

.search-submit:hover {
    color: #fff;
}

.search-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.search-close:hover {
    color: #fff;
}

.header-icons {
    display: flex;
    gap: 16px;
    font-size: 1.25rem;
}

@media (max-width: 576px) {
    .header-icons {
        gap: 10px;
        font-size: 1.1rem;
    }
}

.header-icons .icon-btn {
    color: var(--text-heading);
    text-decoration: none;
    position: relative;
}

.header-icons .cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: #000;
    color: white;
    font-size: 0.6rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-nav {
    background: var(--brand-green);
    padding: 14px 0;
}

.main-nav .nav {
    justify-content: center;
    gap: 40px;
}

.main-nav .nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    padding: 0;
    transition: color 0.125s ease-in-out;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active,
.main-nav .current-menu-item > a {
    color: white;
}

.hero-section {
    padding: 0;
}

.hero-section img {
    width: 100%;
    height: auto;
    display: block;
}

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

.products-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.product-card {
    background: white;
}

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

.product-card-link:hover {
    color: inherit;
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    height: auto;
    display: block;
}

.sale-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    color: var(--text-heading);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.product-info {
    padding: 12px 0;
}

.product-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current {
    font-weight: 700;
    font-size: 12px;
    color: var(--text-heading);
}

.price-compare {
    font-size: 11px;
    color: var(--muted-price);
    text-decoration: line-through;
}

.btn-primary-green {
    background: var(--brand-green);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.btn-primary-green:hover {
    background: var(--brand-green-dark);
    color: white;
}

.why-section {
    padding: 60px 0;
    background: var(--bg-blue);
}

.why-section .row {
    align-items: flex-start;
}

.why-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.why-content p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.comparison-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.comparison-table {
    margin: 0;
}

.comparison-table th {
    font-weight: 600;
    font-size: 0.75rem;
    padding: 10px 12px;
    border-bottom: 2px solid var(--border-subtle);
}

.comparison-table th:first-child {
    color: var(--muted-price);
}

.comparison-table th:nth-child(2) {
    background: #7B5AAB;
    color: white;
    border-radius: 6px 6px 0 0;
}

.comparison-table th:nth-child(3) {
    color: var(--muted-price);
}

.comparison-table td {
    padding: 10px 12px;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
}

.check { color: var(--brand-green); }
.cross { color: #C8C8C8; }

.newsletter-section {
    padding: 80px 0;
    background: var(--brand-green);
}

.newsletter-section h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 90%;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    color: white;
    font-size: 0.9rem;
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-form button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    background: #1C1C1C;
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.125s ease-in-out;
}

.newsletter-form button:hover {
    background: #333;
}

.main-footer {
    background: var(--brand-green);
    padding: 60px 0 30px;
    color: white;
}

.home .main-footer {
    margin-top: 0;
}

.footer-links h5 {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    color: white;
}

.footer-links > h5 {
    font-size: 2rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.125s ease-in-out;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    font-size: 1rem;
    color: white;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .why-content h2 {
        font-size: 1.6rem;
    }

    .why-section {
        padding: 60px 0;
    }

    .products-section {
        padding: 50px 0;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        justify-content: center;
    }
}

.page-content-section {
    padding: 60px 0;
    background: var(--bg-white);
}

.page-content-section .entry-title {
    font-size: clamp(3.0rem, 5.6vw, 3.5rem);
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 30px;
    line-height: 1.1;
}

.page-content-section .entry-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

.page-content-section .entry-content p {
    margin-bottom: 1rem;
}

.page-content-section .entry-content h2,
.page-content-section .entry-content h3,
.page-content-section .entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}