/*
Theme Name: АгроГрядка
Theme URI: http://agro.local/
Author: AgroGryadka
Author URI: http://agro.local/
Description: Custom WooCommerce theme for AgroGryadka seed shop. Migrated from static HTML.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
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: agrogryadka
Tags: woocommerce, e-commerce, custom-logo
WC requires at least: 8.0
WC tested up to: 10.4
*/

/* ================================================================
   CSS VARIABLES (Design System)
=================================================================== */

:root {
    --bg: #f5fff3;
    --bg-dark: #e9f7ed;
    --bg-card: #ffffff;
    --bg-card-dark: #eef8e9;
    --text: #1c1c1c;
    --text-light: #666;
    --text-invert: #fff;
    --brand: #197b04;
    --brand-dark: #0f5700;
    --accent: #ffb703;
    --accent-dark: #ff9b00;
    --discount: #ff416c;
    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 5px 20px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.16);
    --transition-fast: 0.25s;
}

/* ================================================================
   GLOBAL RESET & BASE
=================================================================== */

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

html {
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.45;
    padding-bottom: 80px;
}

h1, h2, h3, h4 {
    margin: 0 0 0.6em;
    line-height: 1.2;
    font-weight: 700;
    color: var(--brand-dark);
}

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

a {
    color: var(--brand-dark);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand);
}

#catalog,
#perevaga,
#how-to-order {
    scroll-margin-top: 80px;
}

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

.site-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    align-items: center;
    padding: 8px 20px;
    background: linear-gradient(270deg, var(--brand-dark), #396730, #ffffff);
    position: sticky;
    top: 0;
    z-index: 2001;
    color: var(--text-invert);
}

.site-header img {
    display: block;
    height: auto;
    max-height: 56px;
    width: auto;
}

.logo {
    font-family: "Comfortaa", "Montserrat", sans-serif;
    font-weight: 700;
    font-size: clamp(1.75rem, 2vw + 1rem, 2.75rem);
    margin: 0;
    line-height: 1;
    letter-spacing: 0.5px;
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    text-decoration: none;
}

.logo:hover {
    color: #fff;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ================================================================
   CART BUTTON (Header)
=================================================================== */

#openCartBtn,
.cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto !important;
    margin: 0 !important;
    padding: 0.65rem 1.1rem;
    font-size: clamp(0.9rem, 3.2vw, 1.05rem);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: #95d484;
    color: #000;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
    white-space: nowrap;
    text-decoration: none;
}

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

#openCartBtn:active,
.cart-btn:active {
    transform: scale(0.94);
}

.cart-counter {
    background: #fff;
    color: #4a8f2d;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.8rem;
    line-height: 1;
}

/* ================================================================
   SEARCH / BURGER BUTTON
=================================================================== */

.search-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 65px;
    height: 65px;
    gap: 2px;
    cursor: pointer;
    border-radius: 16px;
    border: 2px solid #939393;
    background: transparent;
    box-shadow: 0 4px 0 #777, 0 8px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.2s ease;
}

.search-box:hover {
    background-color: #95d484;
}

.search-box:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #777, 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-box .btn-text {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    transition: color 0.2s;
}

.search-box .icon-close { display: none; }
.search-box .icon-search { display: block; }
.search-box.open .icon-search { display: none; }
.search-box.open .icon-close { display: block; }
.search-box.open .btn-text { color: #ff4d4d !important; }

/* ================================================================
   FILTER NAVIGATION PANEL
=================================================================== */

#nav {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    z-index: 1000;
    display: none;
    background: rgb(195 217 193 / 98%);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(76, 175, 80, 0.15);
    border: 1px solid rgba(76, 175, 80, 0.1);
    text-align: center;
}

#nav.show {
    display: block !important;
    animation: fadeInScale 0.3s ease-out;
}

#nav p {
    color: #2d3436;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 25px 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#nav p::before,
#nav p::after {
    content: "";
    height: 1px;
    width: 40px;
    background: linear-gradient(to right, transparent, #4CAF50);
    margin: 0 15px;
}

#nav p::after {
    background: linear-gradient(to left, transparent, #4CAF50);
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.catalog-filters button {
    padding: 10px 22px;
    border-radius: 50px;
    border: 1px solid #eef2f0;
    background: #f0f7f2;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #4a5d51;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.catalog-filters button:hover {
    background: #e1f0e5;
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.catalog-filters button.active {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%) !important;
    color: #fff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 15px rgba(76, 175, 80, 0.3);
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95) translateY(-10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (min-width: 769px) {
    #nav {
        position: absolute;
        top: 90px;
        right: 20px;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 768px) {
    #nav {
        position: absolute;
        top: 75px;
        left: 10px;
        right: 10px;
    }

    .catalog-filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* ================================================================
   BOTTOM NAVIGATION BAR
=================================================================== */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    height: 65px;
    display: flex;
    padding: 8px;
    background: #fff;
    gap: 8px;
    overflow: hidden;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1), 0 50px 0 0 #e1ffda;
}

.nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #000;
    text-decoration: none;
    text-align: center;
    background: transparent;
    border-radius: 12px;
    padding: 10px 6px;
    min-height: 60px;
    line-height: 1.2;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
    border: 2px solid #939393;
    box-shadow: 0 0 0 3px color-mix(in srgb, #000 10%, transparent);
    transform: translateY(-6px);
}

.nav-item .icon {
    font-size: 25px;
    margin-bottom: 3px;
    transition: transform 0.2s ease;
}

.nav-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.nav-item:active {
    transform: scale(0.92);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
}

.nav-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -4px;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(0, 0, 0, 0.15);
}

.nav-item.active {
    background-color: #0f5700;
    color: #fff;
    pointer-events: none;
    opacity: 0.95;
    padding: 14px 8px;
    min-height: 60px;
}

.nav-item.active .icon {
    transform: scale(1.2);
}

.nav-item.active:hover,
.nav-item.active:active {
    transform: none;
    box-shadow: none;
}

/* ================================================================
   CATALOG GRID
=================================================================== */

.catalog,
.products .products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
}

@media (min-width: 600px) {
    .catalog,
    .products .products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .catalog,
    .products .products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .catalog,
    .products .products {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ================================================================
   SECTION HEADERS
=================================================================== */

.utp,
.woocommerce-products-header__title {
    background-color: var(--brand-dark);
    text-align: center;
    color: #fff;
    padding: 4px;
    font-size: 30px;
}

/* ================================================================
   PRODUCT CARDS
=================================================================== */

.card,
.wc-block-grid__product,
.product-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    color: var(--text);
    text-align: left;
    position: relative;
}

.card:hover,
.wc-block-grid__product:hover,
.product-card:hover {
    box-shadow: var(--shadow-card-hover);
}

.card img,
.product-card img {
    width: 100%;
    object-fit: cover;
}

.card-content,
.product-card-content {
    padding: 10px;
}

.card .title,
.product-card .title {
    margin-bottom: 10px;
    color: var(--brand-dark);
}

.card .desc {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-light);
}

/* ================================================================
   PRICES
=================================================================== */

.price {
    font-size: 0;
}

.cina {
    margin-right: 10px;
    color: var(--brand-dark);
}

.price .old-price,
.price .new-price,
.price .cina {
    font-size: 1rem;
    display: inline-block;
    vertical-align: middle;
}

.old-price,
del {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.new-price,
ins {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--brand-dark);
    text-decoration: none;
}

/* ================================================================
   DISCOUNT BADGE
=================================================================== */

.discount,
.onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: #000;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    z-index: 5;
    display: inline-block;
}

/* ================================================================
   BUY BUTTON
=================================================================== */

.order-btn,
button[type="submit"],
.buy-btn,
.buy-button,
.single_add_to_cart_button,
.add_to_cart_button {
    background: var(--brand);
    color: #fff;
    border: 2px solid var(--brand);
    padding: 12px 25px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.order-btn:hover,
.buy-btn:hover,
.buy-button:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.order-btn:active,
.buy-btn:active,
.buy-button:active,
.single_add_to_cart_button:active,
.add_to_cart_button:active {
    transform: scale(0.95);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
}

.buy-btn,
.add_to_cart_button {
    margin-top: 15px;
    width: 100%;
    display: inline-block;
    text-align: center;
}

/* Added to cart state */
.buy-btn.is-added,
.add_to_cart_button.added {
    background-color: #fff !important;
    color: #000 !important;
    border-color: #000;
    cursor: default;
    transform: none;
    box-shadow: 0 0 0 2px #000;
}

.buy-btn.is-added:hover,
.buy-btn.is-added:active,
.add_to_cart_button.added:hover,
.add_to_cart_button.added:active {
    background-color: #fff !important;
    color: #000 !important;
    transform: none;
    box-shadow: 0 0 0 2px #000;
}

button[disabled] {
    opacity: 0.55;
    pointer-events: none;
}

/* ================================================================
   CART MODAL
=================================================================== */

#cartModal {
    justify-content: center !important;
    align-items: center !important;
    padding: 0 3vw;
}

#cartModal > div {
    width: clamp(260px, 90vw, 420px) !important;
    background: #eef7e7 !important;
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    overflow-y: auto;
    max-height: calc(90dvh - 160px);
    transition: max-height 0.3s ease;
    z-index: 9999;
    overflow-x: hidden;
}

#cartModal h2 {
    margin-top: 0;
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    text-align: center;
    color: #000;
}

#cartModal h3 {
    margin: 0.6rem 0;
    font-size: 1rem;
    color: #000;
}

/* Cart form buttons */
#showFormBtn,
#order_form button[type="submit"] {
    font-family: "Comfortaa", "Montserrat", sans-serif;
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: clamp(0.95rem, 3.5vw, 1.15rem);
    font-weight: 600;
    border: none;
    border-radius: 10px;
    background: #6cbf3f;
    color: #fff;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

#showFormBtn:hover,
#order_form button[type="submit"]:hover {
    background: #213b13;
}

#showFormBtn:active,
#order_form button[type="submit"]:active {
    transform: scale(0.96);
}

/* Cart form inputs */
#order_form {
    display: flex;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

#order_form input[type="text"],
#order_form input[type="tel"] {
    width: 100%;
    margin-bottom: 0.8rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
}

/* Close cart button */
#closeCart {
    position: absolute;
    top: 10px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: #ff6600;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}

#closeCart:hover {
    background: #e05500;
}

#closeCart:active {
    transform: scale(0.9);
}

/* ================================================================
   HOW TO ORDER SECTION
=================================================================== */

#how-to-order,
.how-to-order {
    background: var(--brand-dark);
    padding: 50px 20px;
    border-radius: var(--radius-lg);
    margin: 20px;
    color: #fff;
    text-align: center;
}

#how-to-order h2,
.how-to-order h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
    color: #fff;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    flex: 1 1 200px;
    text-align: center;
}

.step-item img {
    width: 60px;
    margin: 0 auto 20px;
}

.step-item h3 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.step-item p {
    color: #d6f5d2;
    margin: 0;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .steps-container {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ================================================================
   MODAL (Quick Order)
=================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.75);
}

.modal.is-open {
    display: flex;
}

.modal-content {
    background: var(--bg-card-dark);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 100%;
    position: relative;
    color: var(--text);
    box-shadow: var(--shadow-card);
}

.modal-content h3,
.modal-content h4 {
    color: var(--brand-dark);
    margin-bottom: 12px;
    text-align: center;
}

.modal-content input {
    width: 100%;
    margin-top: 15px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid #cddcc9;
    font-size: 1rem;
    background: #fff;
    color: var(--text);
    box-sizing: border-box;
}

.modal-content input::placeholder {
    color: #999;
}

.modal-content button {
    margin-top: 18px;
    width: 94%;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--brand-dark);
}

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

.site-footer {
    text-align: center;
    padding: 30px 10px;
    font-size: 1rem;
    color: var(--text-light);
    border-top: 1px solid #dfe8db;
    background: var(--bg-dark);
}

.site-footer p {
    margin: 0;
    color: var(--text-light);
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--text);
    gap: 4px;
    font-size: large;
    margin-bottom: 15px;
}

.footer-links a {
    color: var(--brand-dark);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--brand);
}

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

/* Remove default WooCommerce styles that conflict */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    list-style: none;
    margin: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

@media (min-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(4, 1fr);
    }
}

.woocommerce ul.products li.product {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    color: var(--text);
    text-align: left;
    position: relative;
    width: 100% !important;
    margin: 0 !important;
    padding: 0;
    float: none !important;
}

.woocommerce ul.products li.product:hover {
    box-shadow: var(--shadow-card-hover);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    margin: 0;
    border-radius: 0;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--brand-dark);
    padding: 0 10px;
    font-size: 1rem;
}

.woocommerce ul.products li.product .price {
    padding: 0 10px;
    color: var(--brand-dark);
    font-size: 0;
}

.woocommerce ul.products li.product .price del {
    font-size: 1rem;
}

.woocommerce ul.products li.product .price ins {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.woocommerce ul.products li.product .button {
    margin: 10px !important;
    width: calc(100% - 20px);
    text-align: center;
}

/* Sale badge */
.woocommerce span.onsale {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    background: var(--accent);
    color: #000;
    padding: 5px 10px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    z-index: 5;
    min-width: auto;
    min-height: auto;
    line-height: normal;
}

/* WooCommerce notices */
.woocommerce-message {
    border-top-color: var(--brand);
}

.woocommerce-message::before {
    color: var(--brand);
}

/* WooCommerce breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Single product page — layout */
.woocommerce div.product {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.woocommerce div.product div.images {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    position: relative;
}

.woocommerce div.product div.images img {
    width: 100%;
    height: auto;
    display: block;
}

.woocommerce div.product div.images .woocommerce-product-gallery__trigger {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(255,255,255,0.85);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
}

.woocommerce div.product div.summary {
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* Sale badge on single product */
.woocommerce div.product > .onsale {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    justify-self: start;
    z-index: 5;
    background: var(--accent);
    color: #000;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    margin: 12px;
}

/* Title */
.woocommerce div.product .product_title {
    color: var(--brand-dark);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

/* Price */
.woocommerce div.product p.price {
    color: var(--brand-dark);
    font-size: 0;
    margin-bottom: 20px;
}

.woocommerce div.product p.price del {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-right: 10px;
}

.woocommerce div.product p.price ins {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--brand-dark);
}

/* Quantity + Add to cart */
.woocommerce div.product form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.woocommerce div.product form.cart .quantity {
    display: flex;
    align-items: center;
}

.woocommerce div.product form.cart .quantity input[type="number"] {
    width: 60px;
    height: 44px;
    text-align: center;
    border: 2px solid var(--bg-dark);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}

.woocommerce div.product form.cart .quantity input[type="number"]::-webkit-outer-spin-button,
.woocommerce div.product form.cart .quantity input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.woocommerce div.product form.cart button.single_add_to_cart_button {
    flex: 1;
    background-color: var(--brand);
    color: var(--text-invert);
    border: none;
    border-radius: var(--radius-sm);
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Comfortaa', cursive;
    cursor: pointer;
    transition: background-color 0.2s;
}

.woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    background-color: var(--brand-dark);
}

/* Categories / Meta */
.woocommerce div.product .product_meta {
    font-size: 0.9rem;
    color: var(--text-light);
    padding-top: 16px;
    border-top: 1px solid var(--bg-dark);
}

.woocommerce div.product .product_meta a {
    color: var(--brand);
    text-decoration: none;
}

.woocommerce div.product .product_meta a:hover {
    text-decoration: underline;
}

/* Tabs (Reviews) — span full width */
.woocommerce div.product .woocommerce-tabs {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px;
    margin-top: 10px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    gap: 8px;
    border-bottom: 2px solid var(--bg-dark);
    padding-bottom: 12px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 8px 16px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    background: var(--brand);
    color: var(--text-invert);
}

.woocommerce div.product .woocommerce-tabs h2 {
    color: var(--brand-dark);
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.woocommerce div.product .woocommerce-tabs #review_form textarea,
.woocommerce div.product .woocommerce-tabs #review_form input[type="text"],
.woocommerce div.product .woocommerce-tabs #review_form input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--bg-dark);
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.woocommerce div.product .woocommerce-tabs #review_form .submit {
    background: var(--brand);
    color: var(--text-invert);
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 24px;
    font-weight: 700;
    font-family: 'Comfortaa', cursive;
    cursor: pointer;
}

.woocommerce div.product .woocommerce-tabs #review_form .submit:hover {
    background: var(--brand-dark);
}

/* Related products — span full width */
.woocommerce div.product section.related {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.woocommerce div.product section.related h2 {
    color: var(--brand-dark);
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.woocommerce div.product section.related ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce div.product section.related ul.products::before,
.woocommerce div.product section.related ul.products::after {
    display: none;
}

.woocommerce div.product section.related ul.products li.product {
    list-style: none;
}

/* Responsive single product */
@media (max-width: 768px) {
    .woocommerce div.product {
        grid-template-columns: 1fr;
        padding: 10px;
        gap: 16px;
    }

    .woocommerce div.product .product_title {
        font-size: 1.3rem;
    }

    .woocommerce div.product section.related ul.products {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Checkout & cart pages */
.woocommerce-cart .wc-block-cart,
.woocommerce-checkout .wc-block-checkout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ================================================================
   UTILITY CLASSES
=================================================================== */

.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.px-1 { padding-left: 10px; padding-right: 10px; }
.px-2 { padding-left: 20px; padding-right: 20px; }

/* ================================================================
   PAGE CONTENT (Legal pages, etc.)
=================================================================== */

.page-content {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px;
}

.page-title {
    background-color: var(--brand-dark);
    text-align: center;
    color: #fff;
    padding: 16px 20px;
    font-size: clamp(1.4rem, 4vw, 2rem);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.entry-content {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px 24px;
    box-shadow: var(--shadow-card);
    line-height: 1.7;
    font-size: 1rem;
    color: var(--text);
}

.entry-content h2 {
    font-size: 1.3rem;
    margin-top: 28px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--bg-dark);
    color: var(--brand-dark);
}

.entry-content h2:first-child {
    margin-top: 0;
}

.entry-content p {
    margin: 0 0 14px;
}

.entry-content ul {
    margin: 0 0 14px;
    padding-left: 24px;
}

.entry-content li {
    margin-bottom: 6px;
}

.entry-content a {
    color: var(--brand);
    text-decoration: underline;
}

.entry-content a:hover {
    color: var(--brand-dark);
}

@media (max-width: 768px) {
    .page-content {
        padding: 10px;
    }

    .entry-content {
        padding: 20px 16px;
    }
}

/* Product count in title */
.product-count {
    font-size: 0.65em;
    font-weight: 400;
    opacity: 0.8;
}

/* No products message */
.no-products-msg {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: var(--text-light);
}
