/*
Theme Name: Nexus Theme
Theme URI: https://3dnexuscreations.com
Author: 3D Nexus Creations
Author URI: https://3dnexuscreations.com
Description: A playful, cosmic WooCommerce theme for 3D printed collectibles.
Version: 3.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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexus-theme
Tags: woocommerce, e-commerce, custom-colors, custom-logo
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES
   ========================================================================== */
:root {
    /* ── Legacy aliases — reference design-tokens.css (--nx-*) as single source of truth ── */

    /* Core palette */
    --color-primary:       var(--nx-color-primary);
    --color-primary-light: var(--nx-color-primary-light);
    --color-secondary:     var(--nx-color-secondary);
    --color-accent:        var(--nx-color-accent);
    --color-cta-start:     var(--nx-color-cta-start);
    --color-cta-end:       var(--nx-color-cta-end);
    --color-bg:            var(--nx-bg);
    --color-bg-alt:        var(--nx-bg-alt);
    --color-bg-dark:       var(--nx-bg-dark);
    --color-text:          var(--nx-text);
    --color-text-light:    var(--nx-text-muted);
    --color-text-on-dark:  var(--nx-text-on-dark);
    --color-border:        var(--nx-border);
    --color-success:       var(--nx-status-success);
    --color-sale:          var(--nx-color-sale);
    --color-star:          var(--nx-color-star);
    --color-silver:        var(--nx-color-silver);

    /* Pastels */
    --pastel-pink:      var(--nx-pastel-pink);
    --pastel-purple:    var(--nx-pastel-purple);
    --pastel-blue:      var(--nx-pastel-blue);
    --pastel-mint:      var(--nx-pastel-mint);
    --pastel-peach:     var(--nx-pastel-peach);
    --pastel-lavender:  var(--nx-pastel-lavender);
    --pastel-yellow:    var(--nx-pastel-yellow);
    --pastel-navy:      var(--nx-pastel-navy);

    /* Gradients */
    --gradient-cta:    var(--nx-gradient-cta);
    --gradient-header: var(--nx-gradient-header);
    --gradient-hero:   var(--nx-gradient-hero);

    /* Typography */
    --font-heading: var(--nx-font-heading);
    --font-body:    var(--nx-font-body);
    --font-accent:  var(--nx-font-accent);

    /* Radius */
    --radius-sm:   var(--nx-radius-sm);
    --radius-md:   var(--nx-radius-md);
    --radius-lg:   var(--nx-radius-lg);
    --radius-xl:   var(--nx-radius-xl);
    --radius-full: var(--nx-radius-pill);

    /* Shadows */
    --shadow-sm:   var(--nx-shadow-sm);
    --shadow-md:   var(--nx-shadow-md);
    --shadow-lg:   var(--nx-shadow-lg);
    --shadow-glow: var(--nx-shadow-glow);

    /* Transitions */
    --transition-fast: var(--nx-ease-fast);
    --transition-base: var(--nx-ease-base);
    --transition-slow: var(--nx-ease-slow);

    /* Layout */
    --header-height:    var(--nx-header-height);
    --container-width:  var(--nx-container-width);
    --container-narrow: var(--nx-container-narrow);
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--color-primary-light); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-primary); }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
p { margin-bottom: 1rem; }
::selection { background: var(--color-accent); color: var(--color-primary); }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* ==========================================================================
   3. LAYOUT UTILITIES
   ========================================================================== */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }
.section { padding: 64px 0; }
.section--dark { background: var(--color-bg-dark); color: var(--color-text-on-dark); }
.section--dark h2, .section--dark h3 { color: var(--color-text-on-dark); }
.section__header { text-align: center; margin-bottom: 48px; }
.section__header h2 { margin-bottom: 12px; }
.section__header p { color: var(--color-text-light); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }
.section__header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.browse-all-link { font-weight: 700; color: var(--color-cta-start); display: inline-flex; align-items: center; gap: 6px; transition: gap var(--transition-fast); }
.browse-all-link:hover { color: var(--color-cta-end); gap: 10px; }
.fw-normal { font-weight: 400; }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
    padding: 14px 32px; border: none; border-radius: var(--radius-full);
    cursor: pointer; transition: all var(--transition-base); text-decoration: none; line-height: 1;
}
.btn--primary, .btn--cta { background: var(--gradient-cta); color: #fff; box-shadow: 0 4px 16px rgba(255, 107, 61, 0.35); }
.btn--primary:hover, .btn--cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255, 107, 61, 0.45); color: #fff; }
.btn--outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-border); }
.btn--outline:hover { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.btn--ghost { background: rgba(255, 255, 255, 0.1); color: #fff; border: 2px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.btn--sm { padding: 10px 20px; font-size: 0.85rem; }
.btn--lg { padding: 18px 42px; font-size: 1.05rem; }

/* ==========================================================================
   5. HEADER — Compact hero-header
   Nav bar on top, then logo + tagline + pills + CTA in a tight block.
   Cosmic gradient, designed to share the viewport with Best Sellers.
   ========================================================================== */
.site-header {
    position: relative; z-index: 1000;
    background: var(--gradient-hero);
    overflow: hidden;
}
.header__stars {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        radial-gradient(2px 2px at 15% 20%, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 85% 15%, rgba(255, 255, 255, 0.4) 0%, transparent 100%),
        radial-gradient(2px 2px at 45% 8%, rgba(255, 255, 255, 0.35) 0%, transparent 100%),
        radial-gradient(1px 1px at 70% 45%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 25% 55%, rgba(0, 212, 240, 0.2) 0%, transparent 100%),
        radial-gradient(1px 1px at 90% 65%, rgba(255, 140, 66, 0.15) 0%, transparent 100%),
        radial-gradient(2px 2px at 55% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 100%),
        radial-gradient(1px 1px at 10% 70%, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
}

/* ── Header grid: 3 cols × 2 rows, logo spans both rows ── */
.header__grid {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto; padding: 8px 24px 10px;
}
/* Row 1: nav links */
.header__nav-left { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 32px; justify-self: start; }
.header__nav-right { grid-column: 3; grid-row: 1; display: flex; align-items: center; gap: 24px; justify-self: end; }
/* Logo spans both rows */
.header__logo-area { grid-column: 2; grid-row: 1 / 3; justify-self: center; padding: 0 24px; }
.header__logo-area a { display: block; line-height: 0; }
.header__logo-area img { height: 120px !important; max-height: 120px !important; width: auto !important; }
.header__logo-img { height: 120px; max-height: 120px; width: auto; display: block; filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.3)); object-fit: contain; }
.header__logo-text { text-align: center; }
.header__logo-main { display: block; font-family: var(--font-accent); font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: 0.08em; text-transform: uppercase; text-shadow: 0 3px 12px rgba(0, 0, 0, 0.4); }
.header__logo-sub { display: block; font-family: var(--font-accent); font-size: 0.7rem; font-weight: 600; color: var(--color-cta-start); letter-spacing: 0.3em; text-transform: uppercase; margin-top: 2px; }
/* Row 2: pills */
.header__pills { grid-row: 2; display: flex; align-items: center; gap: 10px; }
.header__pills--left { grid-column: 1; justify-self: end; }
.header__pills--right { grid-column: 3; justify-self: start; }
/* Nav links (supports both wp_nav_menu <li><a> and direct <a> links) */
.header__nav-left li { list-style: none; margin: 0; padding: 0; }
.header__nav-left li a,
.header__nav-link { color: rgba(255, 255, 255, 0.85); font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; transition: color var(--transition-fast); white-space: nowrap; text-decoration: none; }
.header__nav-left li a:hover,
.header__nav-link:hover { color: #fff; }
.mobile-nav li { list-style: none; margin: 0; padding: 0; }
/* Cart icon */
.header__cart { position: relative; color: rgba(255, 255, 255, 0.85); transition: color var(--transition-fast); }
.header__cart:hover { color: #fff; }
.header__cart svg { width: 24px; height: 24px; }
.header__cart-count { position: absolute; top: -6px; right: -8px; background: var(--color-cta-end); color: #fff; font-size: 0.65rem; font-weight: 800; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; line-height: 1; }
/* Mobile */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: #fff; }
.mobile-menu-toggle svg { width: 28px; height: 28px; }
.mobile-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--color-bg-dark); z-index: 999; padding: 80px 24px 32px; flex-direction: column; gap: 8px; overflow-y: auto; }
.mobile-nav.is-open { display: flex; }
.mobile-nav__close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: rgba(255, 255, 255, 0.7); cursor: pointer; padding: 8px; transition: color var(--transition-fast); }
.mobile-nav__close:hover { color: #fff; }
.mobile-nav a { color: rgba(255, 255, 255, 0.9); font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); display: block; }
.mobile-nav a:hover { color: var(--color-accent); }
.header__pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px; border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem; font-weight: 600;
    backdrop-filter: blur(4px);
}
.header__pill-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--color-cta-start); }
.header__pill-icon { width: 12px; height: 12px; color: var(--color-star); }

/* HOMEPAGE — moved to assets/css/pages.css */

/* ==========================================================================
   10. FAQ ACCORDION (standalone page or linked from nav)
   ========================================================================== */
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--color-bg-alt); border-radius: var(--radius-md); border: 1px solid var(--color-border); overflow: hidden; transition: box-shadow var(--transition-fast); }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item__question { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; background: none; border: none; cursor: pointer; font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--color-primary); text-align: left; line-height: 1.4; }
.faq-item__icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--color-bg); display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); font-size: 1.2rem; color: var(--color-text-light); font-weight: 400; }
.faq-item.is-open .faq-item__icon { background: var(--color-primary); color: #fff; transform: rotate(45deg); }
.faq-item__answer { display: none; padding: 0 24px 20px; color: var(--color-text-light); font-size: 0.95rem; line-height: 1.7; }
.faq-item.is-open .faq-item__answer { display: block; }

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer { background: var(--color-bg-dark); color: rgba(255, 255, 255, 0.7); padding: 64px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer__brand h3 { font-family: var(--font-accent); color: #fff; font-size: 1.1rem; margin-bottom: 14px; }
.footer__brand p { font-size: 0.9rem; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }
.footer__col h4 { font-family: var(--font-heading); color: #fff; font-size: 0.95rem; margin-bottom: 16px; font-weight: 700; }
.footer__col ul { list-style: none; }
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a { color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; transition: color var(--transition-fast); }
.footer__col ul li a:hover { color: var(--color-accent); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.footer__social { display: flex; gap: 16px; }
.footer__social a { color: rgba(255, 255, 255, 0.45); transition: color var(--transition-fast); }
.footer__social a:hover { color: var(--color-accent); }

/* ==========================================================================
   11b. GENERIC PAGE TEMPLATE
   ========================================================================== */
.page-content { padding: 48px 0 80px; }
.page-header { margin-bottom: 32px; }
.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
}
.page-body {
    color: var(--color-text-light);
    line-height: 1.8;
    font-size: 1rem;
    max-width: var(--container-narrow);
}
.page-body h2, .page-body h3 {
    color: var(--color-primary);
    margin-top: 32px;
    margin-bottom: 12px;
}
.page-body p { margin-bottom: 16px; }
.page-body ul, .page-body ol { padding-left: 24px; margin-bottom: 16px; }
.page-body a { color: var(--color-primary-light); text-decoration: underline; }

/* ==========================================================================
   12. WOOCOMMERCE SHOP / ARCHIVE
   ========================================================================== */
.wc-shop-page { padding: 40px 0 80px; }
.wc-shop-header { text-align: center; margin-bottom: 40px; }
.wc-shop-header h1 { margin-bottom: 8px; }
.wc-shop-header p { color: var(--color-text-light); }
.wc-shop-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 16px; }
.wc-shop-toolbar .woocommerce-result-count { font-size: 0.9rem; color: var(--color-text-light); margin: 0; }
.wc-shop-toolbar .woocommerce-ordering select { font-family: var(--font-body); padding: 10px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-alt); color: var(--color-text); font-size: 0.9rem; }
.woocommerce-breadcrumb { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 24px; }
.woocommerce-breadcrumb a { color: var(--color-primary-light); }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; gap: 28px !important; list-style: none !important; padding: 0 !important; margin: 0 !important; }
.woocommerce ul.products li.product { float: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important; background: var(--color-bg-alt); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); transition: all var(--transition-base); }
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.woocommerce ul.products li.product a img { border-radius: 0; margin: 0 !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-heading); font-size: 1rem; padding: 14px 18px 4px; color: var(--color-primary); }
.woocommerce ul.products li.product .price { padding: 0 18px 14px; font-family: var(--font-heading); font-weight: 700; color: var(--color-primary); }
.woocommerce ul.products li.product .button { margin: 0 18px 18px; width: calc(100% - 36px); text-align: center; background: var(--gradient-cta); color: #fff; border: none; border-radius: var(--radius-full); font-family: var(--font-heading); font-weight: 700; padding: 12px 20px; font-size: 0.85rem; cursor: pointer; transition: all var(--transition-base); }
.woocommerce ul.products li.product .button:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255, 107, 61, 0.35); }
.woocommerce ul.products li.product .onsale { background: var(--color-sale); color: #fff; font-size: 0.7rem; font-weight: 800; padding: 4px 12px; border-radius: var(--radius-full); text-transform: uppercase; min-height: auto; min-width: auto; line-height: 1.4; top: 12px; left: 12px; right: auto; margin: 0; }

/* ==========================================================================
   13. WOOCOMMERCE SINGLE PRODUCT
   ========================================================================== */
.single-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; padding: 40px 0 64px; }
.single-product-image { position: sticky; top: calc(var(--header-height) + 24px); }
.single-product-image .woocommerce-product-gallery { width: 100% !important; }
.single-product-image .woocommerce-product-gallery__image img { border-radius: var(--radius-lg); background: var(--pastel-lavender); }
.single-product-image .flex-control-thumbs { display: flex; gap: 8px; margin-top: 12px; list-style: none; padding: 0; }
.single-product-image .flex-control-thumbs li { width: 72px; height: 72px; flex-shrink: 0; }
.single-product-image .flex-control-thumbs li img { border-radius: var(--radius-sm); border: 2px solid var(--color-border); cursor: pointer; transition: border-color var(--transition-fast); width: 100%; height: 100%; object-fit: cover; }
.single-product-image .flex-control-thumbs li img.flex-active { border-color: var(--color-primary); }
.single-product-details .product_title { font-size: 1.8rem; margin-bottom: 8px; }
.single-product-details .woocommerce-product-rating { margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.single-product-details .star-rating { color: var(--color-star); }
.single-product-details .price { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--color-primary); margin-bottom: 20px; }
.single-product-details .price del { color: var(--color-text-light); font-size: 1.1rem; }
.single-product-details .price ins { text-decoration: none; }
.single-product-details .woocommerce-product-details__short-description { color: var(--color-text-light); margin-bottom: 24px; line-height: 1.7; }
.single-product-details .variations { width: 100%; border: none; margin-bottom: 20px; }
.single-product-details .variations td, .single-product-details .variations th { padding: 8px 0; border: none; }
.single-product-details .variations select { font-family: var(--font-body); padding: 10px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg); width: 100%; }
.single-product-details .cart { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.single-product-details .quantity { display: flex; align-items: center; border: 2px solid var(--color-border); border-radius: var(--radius-full); overflow: hidden; background: var(--color-bg); }
.single-product-details .quantity .qty-btn { width: 44px; height: 44px; background: none; border: none; cursor: pointer; font-size: 1.2rem; color: var(--color-text); display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast); }
.single-product-details .quantity .qty-btn:hover { background: var(--color-border); }
.single-product-details .quantity input[type="number"] { width: 48px; text-align: center; border: none; background: transparent; font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--color-text); -moz-appearance: textfield; outline: none; }
.single-product-details .quantity input[type="number"]::-webkit-inner-spin-button, .single-product-details .quantity input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; }
.single-product-details .single_add_to_cart_button { flex: 1; min-width: 200px; background: var(--gradient-cta) !important; color: #fff !important; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; padding: 14px 32px; border: none; border-radius: var(--radius-full); cursor: pointer; transition: all var(--transition-base); text-align: center; }
.single-product-details .single_add_to_cart_button:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(255, 107, 61, 0.4); }
.single-product-details .product_meta { padding: 20px 0; border-top: 1px solid var(--color-border); font-size: 0.9rem; color: var(--color-text-light); }
.single-product-details .product_meta > span { display: block; margin-bottom: 6px; }
.single-product-details .product_meta a { color: var(--color-primary-light); }
.product-info-badges { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 20px; }
.product-info-badges span { display: inline-flex; align-items: center; gap: 6px; }
/* Tabs */
.woocommerce-tabs { margin-top: 48px; grid-column: 1 / -1; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 0; border-bottom: 2px solid var(--color-border); margin: 0 0 24px; padding: 0; }
.woocommerce-tabs ul.tabs li { margin: 0; padding: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 14px 24px; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; color: var(--color-text-light); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all var(--transition-fast); }
.woocommerce-tabs ul.tabs li.active a { color: var(--color-primary); border-bottom-color: var(--color-primary); }
.woocommerce-tabs ul.tabs li a:hover { color: var(--color-primary); }
.woocommerce-tabs .panel { padding: 0 0 32px; color: var(--color-text-light); line-height: 1.7; }
.woocommerce-tabs .panel h2 { font-size: 1.2rem; margin-bottom: 16px; }
.related-products { padding: 64px 0; border-top: 1px solid var(--color-border); margin-top: 32px; }
.related-products h2 { text-align: center; margin-bottom: 32px; }

/* ==========================================================================
   14. CART & CHECKOUT
   ========================================================================== */
.woocommerce table.cart td, .woocommerce table.cart th { border-color: var(--color-border); padding: 16px; }
.woocommerce .cart_totals h2 { font-family: var(--font-heading); margin-bottom: 16px; }
.woocommerce a.checkout-button, .woocommerce #place_order { background: var(--gradient-cta) !important; color: #fff !important; border: none !important; border-radius: var(--radius-full) !important; font-family: var(--font-heading) !important; font-weight: 700 !important; padding: 16px 32px !important; font-size: 1rem !important; transition: all var(--transition-base) !important; }
.woocommerce a.checkout-button:hover, .woocommerce #place_order:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 24px rgba(255, 107, 61, 0.4) !important; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info { border-top-color: var(--color-accent); background: var(--pastel-blue); }
.woocommerce .woocommerce-error { border-top-color: var(--color-sale); background: var(--pastel-peach); }

/* ==========================================================================
   15. PAGINATION
   ========================================================================== */
.woocommerce nav.woocommerce-pagination ul { display: flex; justify-content: center; gap: 8px; list-style: none; padding: 40px 0 0; border: none; }
.woocommerce nav.woocommerce-pagination ul li { border: none; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; font-weight: 700; font-size: 0.9rem; border: 1px solid var(--color-border); background: var(--color-bg-alt); color: var(--color-text); transition: all var(--transition-fast); }
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* ==========================================================================
   15b. CUSTOM SHOP PAGE
   ========================================================================== */

/* ==========================================================================
   SHOP PAGE — moved to assets/css/pages.css
   ========================================================================== */


/* ==========================================================================
   ABOUT PAGE — moved to assets/css/pages.css
   ========================================================================== */


/* ==========================================================================
   TOAST NOTIFICATIONS — moved to assets/css/components.css
   ========================================================================== */

/* ==========================================================================
   CART / BASKET PAGE — moved to assets/css/pages.css
   ========================================================================== */


/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */

/* ==========================================================================
   CONTACT PAGE — moved to assets/css/pages.css
   ========================================================================== */


/* ANIMAL COLLECTIONS PRODUCT TEMPLATE — moved to assets/css/pages.css */

/* ==========================================================================
   16b. ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-in.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   17. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .products-grid--four { grid-template-columns: repeat(2, 1fr); }
    .collection-grid { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .single-product-layout { gap: 32px; }
    .split-layout { gap: 32px; }
    /* Animal Collections */
    .ac-layout { gap: 36px; }
    .ac-details-tab { gap: 28px; }
}
@media (max-width: 768px) {
    .hero { padding: 40px 0 48px; }
    .hero__split { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .hero__subheadline { margin-left: auto; margin-right: auto; }
    .hero__buttons { justify-content: center; }
    .hero__image-placeholder { max-width: 300px; margin: 0 auto; }
    .fc__split { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .fc__desc { margin-left: auto; margin-right: auto; }
    .header__nav-left, .header__nav-right .header__nav-link { display: none; }
    .mobile-menu-toggle { display: block; }
    .header__grid { grid-template-columns: 1fr auto 1fr; grid-template-rows: auto auto; padding: 8px 16px 12px; }
    .header__nav-right { gap: 16px; }
    .header__logo-img { height: 90px; }
    .header__pills { display: none; }
    .header__pill { font-size: 0.7rem; padding: 4px 10px; }
    .products-grid, .products-grid--four, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
    .split-layout { grid-template-columns: 1fr; gap: 40px; }
    .new-arrivals-grid { grid-template-columns: repeat(3, 1fr); }
    .single-product-layout { grid-template-columns: 1fr; gap: 24px; }
    .single-product-image { position: static; }
    /* Animal Collections */
    .ac-layout { grid-template-columns: 1fr; gap: 28px; }
    .ac-gallery { position: static; }
    .ac-title { font-size: 1.6rem; }
    .ac-details-tab { grid-template-columns: 1fr; gap: 24px; }
    .ac-details-tab::before { display: none; }
    .ac-details-tab__col:first-child { padding-right: 0; padding-bottom: 24px; border-bottom: 1px solid var(--color-border); }
    .ac-details-tab__col:last-child { padding-left: 0; }
    .ac-collections-grid { grid-template-columns: repeat(2, 1fr); }
    .ac-content-section { padding: 24px 20px; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
    .woocommerce-tabs ul.tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .woocommerce-tabs ul.tabs li a { padding: 12px 16px; font-size: 0.85rem; white-space: nowrap; }
    .reviews-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .newsletter-layout { flex-direction: column; text-align: center; }
    .newsletter__form { flex-direction: column; }
    .newsletter__input { min-width: auto; }
}
@media (max-width: 480px) {
    .hero { padding: 28px 0 36px; }
    .hero__buttons { flex-direction: column; align-items: center; }
    .hero__buttons .btn { width: 100%; text-align: center; }
    .products-grid, .products-grid--four, .woocommerce ul.products { grid-template-columns: 1fr !important; }
    .collection-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: 1fr; }
    /* Animal Collections */
    .ac-collections-grid { grid-template-columns: 1fr; }
    .ac-swatch img, .ac-swatch__text-fallback { width: 44px; height: 44px; }
    .ac-swatch { min-width: 56px; }
    .ac-type-btn { padding: 8px 18px; font-size: 0.85rem; }
    .new-arrivals-grid { grid-template-columns: 1fr; }
    .section { padding: 40px 0; }
    .header__logo-img { height: 64px; }
}


/* ==========================================================================
   FAQ PAGE — moved to assets/css/pages.css
   ========================================================================== */


/* ══════════════════════════════════════════════════════════════
   CHECKOUT PAGE — moved to assets/css/pages.css
   ══════════════════════════════════════════════════════════════ */
