/*
Theme Name: Avinya Ecommerce
Theme URI: https://avinyadigitalsolutions.com
Author: Avinya Digital Solutions
Author URI: https://avinyadigitalsolutions.com
Description: A modern, conversion-focused WooCommerce theme for Avinya Digital Solutions. Clean design, fully responsive, with Customizer controls for product grids, colors, and layout.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avinya-ecommerce
Tags: e-commerce, woocommerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive
*/

/* ==================================================
   CSS Variables
   ================================================== */
:root {
    --primary: #0F4C81;
    --primary-dark: #0A3559;
    --primary-light: #1A6BB5;
    --accent: #F7B500;
    --accent-hover: #E5A600;
    --secondary: #1E293B;
    --text: #334155;
    --text-light: #64748B;
    --bg: #FFFFFF;
    --bg-alt: #F8FAFC;
    --bg-dark: #0F172A;
    --border: #E2E8F0;
    --success: #10B981;
    --danger: #EF4444;
    --sale: #DC2626;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.08);
    --transition: all 0.25s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --container: 1280px;
    --header-height: 72px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-light); }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.25;
    color: var(--secondary);
    margin-bottom: 0.6em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

/* ==================================================
   Layout
   ================================================== */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-sm { padding: 2.5rem 0; }

.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ==================================================
   Buttons
   ================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.2;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--accent);
    color: var(--secondary);
    border-color: var(--accent);
}
.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--secondary);
    transform: translateY(-1px);
}

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

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover {
    background: #fff;
    color: var(--primary);
    border-color: #fff;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ==================================================
   Header
   ================================================== */
.site-header {
    background: var(--bg);
    box-shadow: 0 1px 0 var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.site-header.scrolled { box-shadow: var(--shadow); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    gap: 1rem;
}

.site-branding { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.site-logo img { max-height: 40px; width: auto; }

.site-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0;
    letter-spacing: -0.02em;
}
.site-title a { color: inherit; }

.main-navigation { display: flex; align-items: center; gap: 1.5rem; }

.nav-menu {
    display: none;
    align-items: center;
    gap: 0.15rem;
}
@media (min-width: 992px) {
    .nav-menu { display: flex; }
}

.nav-menu a {
    display: block;
    padding: 0.45rem 0.9rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--secondary);
    border-radius: 6px;
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: var(--primary);
    background: rgba(15, 76, 129, 0.07);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--secondary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}
.header-icon:hover { background: var(--bg-alt); color: var(--primary); }

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--accent);
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
@media (min-width: 992px) { .menu-toggle { display: none; } }

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--secondary);
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    box-shadow: var(--shadow-lg);
    padding: 1rem;
    flex-direction: column;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
    padding: 0.85rem 1rem;
    font-weight: 500;
    color: var(--secondary);
    border-radius: 8px;
}
.mobile-menu a:hover { background: var(--bg-alt); color: var(--primary); }

/* ==================================================
   Hero
   ================================================== */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
    color: #fff;
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; opacity: 0.92; max-width: 520px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* ==================================================
   Category chips
   ================================================== */
.category-chips {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
}
.category-chip {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--secondary);
    transition: var(--transition);
}
.category-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(15, 76, 129, 0.04);
}
.category-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ==================================================
   Product Grid
   ================================================== */
.products-grid {
    display: grid;
    gap: 1.25rem;
    /* Defaults overridden by Customizer inline CSS */
    grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}

.product-card__image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-alt);
    overflow: hidden;
}
.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}
.product-card:hover .product-card__image img { transform: scale(1.04); }

.product-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--sale);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.55rem;
    border-radius: 4px;
    z-index: 2;
}
.product-card__badge--new {
    background: var(--primary);
}

.product-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    line-height: 1.35;
}
.product-card__title a { color: var(--secondary); }
.product-card__title a:hover { color: var(--primary); }

.product-card__rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}
.product-card__rating .stars { color: var(--accent); letter-spacing: -1px; }

.product-card__price {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--secondary);
    margin-bottom: 0.75rem;
}
.product-card__price del {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-right: 0.35rem;
}
.product-card__price ins {
    text-decoration: none;
    color: var(--sale);
}

.product-card__actions { margin-top: auto; }

.product-card .button,
.product-card .add_to_cart_button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1rem;
    background: var(--primary);
    color: #fff !important;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
}
.product-card .button:hover,
.product-card .add_to_cart_button:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

/* ==================================================
   Shop Layout
   ================================================== */
.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 992px) {
    .shop-layout.has-sidebar {
        grid-template-columns: 260px 1fr;
    }
}

.shop-sidebar {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.woocommerce-result-count { font-size: 0.9rem; color: var(--text-light); margin: 0; }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    background: var(--bg);
    cursor: pointer;
}

/* ==================================================
   Single Product
   ================================================== */
.single-product-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .single-product-layout {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.product-gallery {
    position: relative;
}
.product-gallery__main {
    aspect-ratio: 1;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.product-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}
.product-gallery__thumbs img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}
.product-gallery__thumbs img:hover,
.product-gallery__thumbs img.active {
    opacity: 1;
    border-color: var(--primary);
}

.product-summary .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0.75rem 0;
}
.product-summary .price del {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-light);
    margin-right: 0.4rem;
}
.product-summary .price ins {
    text-decoration: none;
    color: var(--sale);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
.product-rating .stars { color: var(--accent); }

.woocommerce-product-details__short-description {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.variations {
    margin-bottom: 1.25rem;
}
.variations td { padding: 0.4rem 0; }
.variations label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--secondary);
    display: block;
    margin-bottom: 0.35rem;
}
.variations select {
    width: 100%;
    max-width: 220px;
    padding: 0.55rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.quantity {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-right: 0.75rem;
}
.quantity input.qty {
    width: 52px;
    text-align: center;
    border: none;
    padding: 0.6rem 0;
    font-size: 1rem;
    font-weight: 600;
    -moz-appearance: textfield;
}
.quantity input.qty::-webkit-outer-spin-button,
.quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; }

.single_add_to_cart_button {
    background: var(--accent) !important;
    color: var(--secondary) !important;
    border: none !important;
    padding: 0.85rem 1.75rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius) !important;
    cursor: pointer;
    transition: var(--transition);
}
.single_add_to_cart_button:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
}

.product-meta {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-light);
}
.product-meta > span { display: block; margin-bottom: 0.35rem; }

.product-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
}
.product-trust-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Product tabs */
.woocommerce-tabs {
    margin-top: 3rem;
}
.woocommerce-tabs ul.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}
.woocommerce-tabs ul.tabs li {
    margin: 0;
}
.woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}
.woocommerce-tabs ul.tabs li.active a,
.woocommerce-tabs ul.tabs li a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ==================================================
   Cart
   ================================================== */
.woocommerce-cart-form { margin-bottom: 2rem; }

.shop_table {
    width: 100%;
    border-collapse: collapse;
}
.shop_table th,
.shop_table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}
.shop_table th {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-light);
    font-weight: 600;
}
.shop_table .product-remove a {
    color: var(--danger);
    font-size: 1.25rem;
}
.shop_table .product-thumbnail img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}
.shop_table .product-name a {
    font-weight: 600;
    color: var(--secondary);
}
.shop_table .product-name a:hover { color: var(--primary); }

.cart-collaterals {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .cart-collaterals {
        grid-template-columns: 1fr 380px;
    }
}

.cart_totals {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}
.cart_totals h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}
.cart_totals table { width: 100%; }
.cart_totals th,
.cart_totals td {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--border);
}
.cart_totals .order-total th,
.cart_totals .order-total td {
    font-size: 1.15rem;
    font-weight: 800;
    border-bottom: none;
    padding-top: 1rem;
}
.wc-proceed-to-checkout { margin-top: 1.25rem; }
.wc-proceed-to-checkout .checkout-button {
    width: 100%;
    background: var(--accent) !important;
    color: var(--secondary) !important;
    padding: 0.95rem !important;
    font-weight: 700 !important;
    border-radius: var(--radius) !important;
    text-align: center;
    display: block;
}
.wc-proceed-to-checkout .checkout-button:hover {
    background: var(--accent-hover) !important;
}

/* ==================================================
   Checkout
   ================================================== */
.woocommerce-checkout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 992px) {
    .woocommerce-checkout {
        grid-template-columns: 1.4fr 1fr;
    }
}

.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
#order_review_heading {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.woocommerce form .form-row {
    margin-bottom: 1rem;
}
.woocommerce form .form-row label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
    color: var(--secondary);
}
.woocommerce form .input-text,
.woocommerce form select,
.woocommerce form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
}
.woocommerce form .input-text:focus,
.woocommerce form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.12);
}

#order_review {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.woocommerce-checkout-payment {
    margin-top: 1.25rem;
}
.woocommerce-checkout-payment .place-order {
    margin-top: 1.25rem;
}
#place_order {
    width: 100%;
    background: var(--accent) !important;
    color: var(--secondary) !important;
    padding: 1rem !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    border: none !important;
    border-radius: var(--radius) !important;
    cursor: pointer;
}
#place_order:hover { background: var(--accent-hover) !important; }

/* ==================================================
   Trust badges
   ================================================== */
.trust-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem 0;
}
@media (min-width: 768px) {
    .trust-bar { grid-template-columns: repeat(4, 1fr); }
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}
.trust-item__icon {
    width: 40px;
    height: 40px;
    background: rgba(15, 76, 129, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.trust-item__text strong {
    display: block;
    font-size: 0.875rem;
    color: var(--secondary);
}
.trust-item__text span {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ==================================================
   Footer
   ================================================== */
.site-footer {
    background: var(--bg-dark);
    color: #94A3B8;
    padding: 3.5rem 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
@media (min-width: 640px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand .site-title { color: #fff; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; }
.footer-widget h4 {
    color: #fff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}
.footer-widget ul li { margin-bottom: 0.5rem; }
.footer-widget a { color: #94A3B8; font-size: 0.9rem; }
.footer-widget a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.25rem 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

/* ==================================================
   Page / Blog
   ================================================== */
.entry-header { margin-bottom: 1.75rem; }
.entry-content { max-width: 780px; }
.entry-content h2, .entry-content h3 { margin-top: 1.75rem; }
.entry-content p { margin-bottom: 1.15rem; }
.entry-content ul, .entry-content ol {
    margin-bottom: 1.15rem;
    padding-left: 1.4rem;
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content img { border-radius: var(--radius); margin: 1.25rem 0; }

/* ==================================================
   Notices
   ================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    list-style: none;
}
.woocommerce-message {
    background: #ECFDF5;
    color: #065F46;
    border-left: 4px solid var(--success);
}
.woocommerce-info {
    background: #EFF6FF;
    color: #1E40AF;
    border-left: 4px solid var(--primary);
}
.woocommerce-error {
    background: #FEF2F2;
    color: #991B1B;
    border-left: 4px solid var(--danger);
}

/* ==================================================
   Pagination
   ================================================== */
.woocommerce-pagination {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}
.woocommerce-pagination ul {
    display: flex;
    gap: 0.4rem;
}
.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-weight: 500;
    color: var(--secondary);
}
.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ==================================================
   404
   ================================================== */
.error-404 {
    text-align: center;
    padding: 5rem 0;
}
.error-404 h1 {
    font-size: 5rem;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* ==================================================
   Utilities & WP
   ================================================== */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; margin: -1px; overflow: hidden; padding: 0;
    position: absolute; width: 1px; word-wrap: normal !important;
}
.alignleft { float: left; margin: 0 1.25rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.25rem; }
.aligncenter { display: block; margin: 1.25rem auto; }

/* Sticky ATC on mobile product */
@media (max-width: 767px) {
    .sticky-atc {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 0.85rem 1.25rem;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
        z-index: 999;
        display: flex;
        gap: 0.75rem;
        align-items: center;
    }
    .sticky-atc .price { font-weight: 800; margin: 0; flex: 1; }
    .sticky-atc .button { flex: 1.5; }
    body.single-product { padding-bottom: 80px; }
}

/* ==================================================
   Responsive
   ================================================== */
@media (max-width: 767px) {
    .section { padding: 2.75rem 0; }
    .hero { padding: 3rem 0 2.75rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .shop_table thead { display: none; }
    .shop_table tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 1rem;
    }
    .shop_table td {
        display: flex;
        justify-content: space-between;
        border: none;
        padding: 0.4rem 0;
    }
    .shop_table td::before {
        content: attr(data-title);
        font-weight: 600;
        font-size: 0.8rem;
        color: var(--text-light);
    }
}
