/**
 * M-Fishing Theme - Main Stylesheet
 *
 * Custom component styles that complement Tailwind CSS utility classes.
 * Tailwind CSS is loaded via CDN in the enqueue system (not imported here).
 * Google Fonts (Cinzel + Manrope) are enqueued separately.
 *
 * @package MFishing
 * @version 1.0.0
 */

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
    /* Colors */
    --color-cream-bg: #FDFCF8;
    --color-rich-black: #121212;
    --color-muted-gold: #D4AF37;
    --color-soft-gray: #F2F0EB;
    --color-lux-green: #1B4D3E;
    --color-lux-green-light: #2A6E5A;

    /* Fonts */
    --font-serif: "Cinzel", serif;
    --font-sans: "Manrope", sans-serif;

    /* Shadows */
    --shadow-floating: 0 20px 60px rgba(0, 0, 0, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);

    /* Transitions */
    --transition-base: 300ms ease;
    --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --container-max: 1280px;
    --header-height: 80px;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    color: var(--color-rich-black);
    background-color: var(--color-cream-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-base);
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input,
select,
textarea {
    font-family: inherit;
}

/* Remove default focus outlines and add custom */
:focus-visible {
    outline: 2px solid var(--color-muted-gold);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background-color: var(--color-muted-gold);
    color: #fff;
}

/* ==========================================================================
   3. Typography
   ========================================================================== */

h1, h2, h3, h4,
.font-serif {
    font-family: var(--font-serif);
}

/* Ensure white text overrides serif color inheritance */
.bg-lux-green h1,
.bg-lux-green h2,
.bg-lux-green h3 {
    color: #fff;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

h2 {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 600;
    line-height: 1.3;
}

h4 {
    font-size: clamp(1rem, 2vw, 1.125rem);
    font-weight: 600;
    line-height: 1.4;
}

.font-sans {
    font-family: var(--font-sans);
}

/* Prose (long-form content areas) */
.prose p {
    margin-bottom: 1em;
}

.prose strong {
    font-weight: 700;
}

.prose ul,
.prose ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}

.prose li {
    margin-bottom: 0.5em;
}

/* ==========================================================================
   4. Container Layout
   ========================================================================== */

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* ==========================================================================
   5. Navigation Styles
   ========================================================================== */

/* Floating island pills */
.floating-island {
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all var(--transition-smooth);
}

/* Nav items */
.nav-item {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 0.25rem 0;
    white-space: nowrap;
}

.nav-item::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-muted-gold);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-item:hover::after,
.nav-item.text-muted-gold::after {
    width: 100%;
}

/* Dropdown menus are now JS-controlled (display:none/block + opacity transitions) */

/* Sub-links (children in dropdown) */
.sub-link {
    display: block;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-rich-black);
    border-radius: 0.75rem;
    transition: all var(--transition-base);
}

.sub-link:hover {
    background-color: var(--color-soft-gray);
    color: var(--color-muted-gold);
    padding-left: 1.5rem;
}

/* Dropdown panel styling */
.nav-dropdown-panel {
    will-change: opacity, transform;
}

.nav-subdropdown > div {
    will-change: opacity, transform;
}

/* Search suggestions dropdown */
.search-suggestions {
    position: fixed;
    top: 70px;
    right: 1.5rem;
    width: 380px;
    max-height: 480px;
    overflow-y: auto;
    background: #fff;
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.5rem);
    transition: opacity 250ms ease, visibility 250ms ease, transform 250ms ease;
    z-index: 9990;
    padding: 0.5rem;
}

.search-suggestions.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-suggestions .suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    transition: background-color 200ms ease;
    text-decoration: none;
    color: inherit;
}

.search-suggestions .suggestion-item:hover {
    background-color: #F8F7F4;
}

.search-suggestions .suggestion-item img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0.75rem;
    background: #F2F0EB;
    flex-shrink: 0;
    padding: 4px;
}

@media (max-width: 640px) {
    .search-suggestions {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}

/* ==========================================================================
   5b. Mobile Header — always compact, reduce page top padding
   ========================================================================== */

@media (max-width: 1279px) {
    /* Reduce top padding on all pages for compact mobile header */
    main.pt-36,
    main.pt-28,
    main.pt-24,
    .pt-28 {
        padding-top: 5.5rem !important;
    }
}

/* ==========================================================================
   6. Header Scroll Effects
   ========================================================================== */

#main-header {
    transition: all var(--transition-smooth);
}

/* Desktop scroll state — toggled by JS only on xl+ */
@media (min-width: 1280px) {
    #main-header.xl-scrolled {
        background-color: rgba(27, 77, 62, 0.95) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15) !important;
        padding-top: 0.75rem !important;
        padding-bottom: 0.75rem !important;
    }

    #main-header.xl-scrolled .floating-island {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
}

/* ==========================================================================
   7. Search Input Toggle
   ========================================================================== */

#search-input {
    transition: width 500ms ease-in-out, opacity 500ms ease-in-out;
}

#search-input.active,
#search-input:focus {
    width: 10rem;
    opacity: 1;
}

@media (min-width: 1024px) {
    #search-input.active,
    #search-input:focus {
        width: 14rem;
    }
}

/* ==========================================================================
   8. Hamburger Animation
   ========================================================================== */

#mobile-menu-btn .bar-1,
#mobile-menu-btn .bar-2,
#mobile-menu-btn .bar-3 {
    transition: all 300ms ease;
    transform-origin: center;
}

#mobile-menu-btn.hamburger-active .bar-1 {
    transform: translateY(5.5px) rotate(45deg);
}

#mobile-menu-btn.hamburger-active .bar-2 {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu-btn.hamburger-active .bar-3 {
    transform: translateY(-5.5px) rotate(-45deg);
}

#mobile-menu-btn.hamburger-active .bar-1,
#mobile-menu-btn.hamburger-active .bar-3 {
    width: 1.5rem;
    background-color: var(--color-muted-gold);
}

/* ==========================================================================
   9. Mobile Menu
   ========================================================================== */

/* Overlay */
#mobile-menu-overlay {
    transition: opacity 500ms ease, visibility 500ms ease;
}

/* Panel */
#mobile-menu {
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-overflow-scrolling: touch;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
}

/* Accordion panels */
.mobile-accordion-panel,
.mobile-sub-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-accordion-panel.open {
    max-height: 2000px;
}

.mobile-sub-panel.open {
    max-height: 500px;
}

/* Caret rotation */
.mobile-accordion-toggle i,
.mobile-sub-toggle i {
    transition: transform 300ms ease;
}

.mobile-accordion-toggle i.rotate-180,
.mobile-sub-toggle i.rotate-180 {
    transform: rotate(180deg);
}

/* Mobile search suggestions */
.mobile-search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 0.5rem;
    background: #163f33;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    max-height: 320px;
    overflow-y: auto;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.25rem);
    transition: opacity 250ms ease, visibility 250ms ease, transform 250ms ease;
    padding: 0.375rem;
    -webkit-overflow-scrolling: touch;
}

.mobile-search-suggestions.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-search-suggestions .suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: background-color 200ms ease;
}

.mobile-search-suggestions .suggestion-item:hover,
.mobile-search-suggestions .suggestion-item:active {
    background: rgba(255, 255, 255, 0.08);
}

.mobile-search-suggestions .suggestion-item img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    padding: 3px;
}

/* ==========================================================================
   9b. Sidebar Accordion (Shop/Category page)
   ========================================================================== */

.sidebar-accordion-panel,
.sidebar-sub-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-accordion-panel.open {
    max-height: 2000px;
}

.sidebar-sub-panel.open {
    max-height: 500px;
}

.sidebar-accordion-toggle i,
.sidebar-sub-toggle i {
    transition: transform 300ms ease;
}

/* ==========================================================================
   10. Button Styles
   ========================================================================== */

/* Primary Button (lux-green background) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: var(--color-lux-green);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0.75rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-color: var(--color-muted-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: transparent;
    color: var(--color-rich-black);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 2px solid var(--color-rich-black);
    border-radius: 0.75rem;
    transition: all var(--transition-base);
}

.btn-outline:hover {
    background-color: var(--color-rich-black);
    color: #fff;
}

/* Gold Button */
.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background-color: var(--color-muted-gold);
    color: var(--color-rich-black);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0.75rem;
    transition: all var(--transition-base);
}

.btn-gold:hover {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
    transform: translateY(-1px);
}

/* Button shine sweep effect (used on hero CTA and add-to-cart) */
.btn-primary .absolute,
.add-to-cart-single .absolute {
    pointer-events: none;
}

/* Add to cart button loading state */
.add-to-cart-btn.loading,
.add-to-cart-single.loading {
    pointer-events: none;
    opacity: 0.7;
}

.add-to-cart-btn.loading::after,
.add-to-cart-single.loading::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 600ms linear infinite;
    margin-left: 0.5rem;
}

/* ==========================================================================
   11. Product Card Hover Effects
   ========================================================================== */

/* Product card lift on hover */
.products-grid > div,
.products-grid > a {
    transition: transform 500ms ease, box-shadow 500ms ease;
}

/* Quick view button entrance */
.quick-view-btn {
    transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Product card image zoom */
.products-grid .group img {
    transition: transform 700ms ease;
}

/* Product card badge pulse */
.products-grid .bg-muted-gold {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 4px 20px rgba(212, 175, 55, 0.5); }
}

/* WooCommerce price styling */
.woocommerce-Price-amount {
    font-family: var(--font-sans);
}

del .woocommerce-Price-amount {
    color: #9ca3af;
    font-size: 0.875em;
}

ins {
    text-decoration: none;
}

ins .woocommerce-Price-amount {
    color: var(--color-rich-black);
    font-weight: 700;
}

/* ==========================================================================
   12. Product Page: Weight Options & Quantity Input
   ========================================================================== */

/* Variation/weight option buttons */
.variation-option {
    transition: all var(--transition-base);
    cursor: pointer;
}

.variation-option.selected,
.weight-option.selected {
    border-color: var(--color-muted-gold) !important;
    color: var(--color-muted-gold) !important;
    background-color: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 0 1px var(--color-muted-gold);
}

.weight-option {
    transition: all var(--transition-base);
    cursor: pointer;
}

.weight-option:hover {
    border-color: var(--color-muted-gold);
    color: var(--color-muted-gold);
}

/* Quantity input: hide number arrows/spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Quantity +/- buttons */
.qty-minus,
.qty-plus {
    user-select: none;
    transition: all var(--transition-base);
}

.qty-minus:active,
.qty-plus:active {
    background-color: var(--color-soft-gray);
    transform: scale(0.9);
}

/* Product thumbnails gallery */
.product-thumb {
    transition: all var(--transition-base);
}

.product-thumb.active {
    border-color: var(--color-muted-gold) !important;
    opacity: 1 !important;
}

.product-thumb.active img {
    filter: grayscale(0) !important;
}

/* ==========================================================================
   13. Tab System for Product Pages
   ========================================================================== */

.tab-btn {
    position: relative;
    transition: all var(--transition-base);
    cursor: pointer;
}

.tab-btn.active {
    color: var(--color-rich-black);
    border-bottom-color: var(--color-muted-gold);
}

.tab-btn:not(.active) {
    color: #9ca3af;
    border-bottom-color: transparent;
}

.tab-btn:not(.active):hover {
    color: var(--color-rich-black);
}

.tab-content {
    animation: fadeInTab 400ms ease;
}

.tab-content.hidden {
    display: none;
    animation: none;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   14. Animation Keyframes
   ========================================================================== */

/* Dropdown menu entrance */
@keyframes fadeInUpMenu {
    from {
        opacity: 0;
        transform: translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* On-load animation (used by hero section) */
.animate-on-load {
    opacity: 0;
    transform: translateY(3rem);
    transition: opacity 1000ms ease-out, transform 1000ms ease-out;
}

.animate-on-load.loaded {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

/* Scale variant for hero image */
.animate-on-load.scale-95 {
    transform: scale(0.95);
}

.animate-on-load.scale-95.loaded {
    transform: scale(1);
}

/* Spin animation (for loading indicators) */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Fade in general */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Slide up (for toasts, modals) */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(1.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide down (for dropdowns) */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-0.5rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bounce (for cart count badge) */
@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.15); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

.cart-count.bounce {
    animation: bounceIn 500ms ease;
}

/* Ping (for stock indicator) */
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ==========================================================================
   15. Footer Styles
   ========================================================================== */

footer {
    position: relative;
}

/* Footer headings must be white */
footer h4 {
    color: #fff !important;
}

/* Footer heading decoration */
.footer-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    color: #fff;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    display: inline-block;
}

/* Footer widget base */
.footer-widget {
    margin-bottom: 2rem;
}

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

.footer-widget ul li {
    margin-bottom: 0.75rem;
}

.footer-widget ul li a {
    color: #9ca3af;
    transition: color var(--transition-base), padding-left var(--transition-base);
    font-size: 0.875rem;
}

.footer-widget ul li a:hover {
    color: var(--color-muted-gold);
    padding-left: 0.5rem;
}

/* Footer map hover effect */
footer iframe {
    transition: filter 700ms ease;
}

footer .group:hover iframe {
    filter: grayscale(0%) contrast(1) !important;
}

/* ==========================================================================
   16. Responsive Utilities
   ========================================================================== */

/* Container breakpoints for non-Tailwind contexts */
@media (min-width: 640px) {
    .container { max-width: 640px; }
}

@media (min-width: 768px) {
    .container { max-width: 768px; }
}

@media (min-width: 1024px) {
    .container { max-width: 1024px; }
}

@media (min-width: 1280px) {
    .container { max-width: 1280px; }
}

/* Touch devices - remove hover lift to prevent sticky hover states */
@media (hover: none) {
    .products-grid > div:hover {
        transform: none !important;
    }

    .nav-item::after {
        display: none;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .animate-on-load {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ==========================================================================
   17. Scrollbar Hide Utility
   ========================================================================== */

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ==========================================================================
   18. Quick View Modal
   ========================================================================== */

#quickViewModal {
    z-index: 100;
}

.quick-view-overlay {
    transition: opacity 400ms ease;
}

#quickViewModal.active .quick-view-overlay {
    opacity: 1;
}

.quick-view-content {
    transition: all 500ms cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
}

#quickViewModal.active .quick-view-content {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-close {
    transition: all var(--transition-base);
    z-index: 10;
}

.quick-view-close:hover {
    background-color: var(--color-muted-gold);
    color: #fff;
    transform: rotate(90deg);
}

.quick-view-body {
    animation: fadeIn 400ms ease 200ms both;
}

/* ==========================================================================
   19. Notification / Toast Styles
   ========================================================================== */

.mfishing-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 1rem;
    box-shadow: var(--shadow-floating);
    border-left: 4px solid var(--color-muted-gold);
    animation: slideUp 500ms cubic-bezier(0.4, 0, 0.2, 1), fadeIn 500ms ease;
    max-width: 380px;
    width: calc(100% - 2rem);
}

.mfishing-toast.toast-success {
    border-left-color: var(--color-lux-green);
}

.mfishing-toast.toast-error {
    border-left-color: #ef4444;
}

.mfishing-toast .toast-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.mfishing-toast.toast-success .toast-icon {
    background-color: rgba(27, 77, 62, 0.1);
    color: var(--color-lux-green);
}

.mfishing-toast.toast-error .toast-icon {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.mfishing-toast .toast-message {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-rich-black);
    line-height: 1.4;
}

.mfishing-toast .toast-message small {
    display: block;
    color: #6b7280;
    font-weight: 400;
    margin-top: 0.25rem;
}

.mfishing-toast .toast-close {
    color: #9ca3af;
    font-size: 1.25rem;
    padding: 0.25rem;
    flex-shrink: 0;
    transition: color var(--transition-base);
}

.mfishing-toast .toast-close:hover {
    color: var(--color-rich-black);
}

.mfishing-toast .toast-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.mfishing-toast .toast-actions a,
.mfishing-toast .toast-actions button {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: all var(--transition-base);
}

.mfishing-toast .toast-actions .toast-action-primary {
    background-color: var(--color-lux-green);
    color: #fff;
}

.mfishing-toast .toast-actions .toast-action-primary:hover {
    background-color: var(--color-muted-gold);
}

.mfishing-toast .toast-actions .toast-action-secondary {
    color: #6b7280;
}

.mfishing-toast .toast-actions .toast-action-secondary:hover {
    color: var(--color-rich-black);
}

/* Toast exit animation */
.mfishing-toast.removing {
    animation: toastExit 400ms ease forwards;
}

@keyframes toastExit {
    to {
        opacity: 0;
        transform: translateX(120%);
    }
}

/* Mobile toast adjustments */
@media (max-width: 640px) {
    .mfishing-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        width: auto;
        max-width: none;
    }
}

/* ==========================================================================
   20. Loading Spinner
   ========================================================================== */

.loading-spinner,
.animate-spin {
    animation: spin 700ms linear infinite;
}

/* Products loading overlay */
.products-loading {
    transition: opacity 300ms ease;
}

.products-loading .animate-spin {
    width: 2rem;
    height: 2rem;
    border: 3px solid var(--color-muted-gold);
    border-top-color: transparent;
    border-radius: 50%;
}

/* Full-page loading overlay */
.page-loading {
    position: fixed;
    inset: 0;
    background: rgba(253, 252, 248, 0.9);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.page-loading .spinner {
    width: 3rem;
    height: 3rem;
    border: 3px solid var(--color-soft-gray);
    border-top-color: var(--color-muted-gold);
    border-radius: 50%;
    animation: spin 800ms linear infinite;
}

/* ==========================================================================
   21. Shadow Utilities
   ========================================================================== */

.shadow-floating {
    box-shadow: var(--shadow-floating);
}

.shadow-card {
    box-shadow: var(--shadow-card);
}

/* Hover-floating shadow (used on blog cards, etc.) */
.hover\:shadow-floating:hover {
    box-shadow: var(--shadow-floating);
}

/* ==========================================================================
   22. Additional Component Styles
   ========================================================================== */

/* Pagination (WP paginate_links output as <ul>) */
.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    width: 100%;
}

.page-numbers li {
    list-style: none;
    flex: 1 1 0;
}

.page-numbers li a,
.page-numbers li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 2.5rem;
    border-radius: 0.625rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    transition: all var(--transition-base);
    border: 1px solid #e5e7eb;
    background-color: #fff;
}

@media (min-width: 640px) {
    .page-numbers li {
        flex: 0 0 auto;
    }
    .page-numbers li a,
    .page-numbers li span {
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 0.75rem;
        font-size: 0.875rem;
    }
}

.page-numbers li a:hover {
    background-color: var(--color-soft-gray);
    color: var(--color-rich-black);
    border-color: var(--color-muted-gold);
}

.page-numbers li span.current {
    background-color: var(--color-lux-green);
    color: #fff;
    border-color: var(--color-lux-green);
}

.page-numbers li .prev,
.page-numbers li .next {
    color: var(--color-rich-black);
    font-size: 1rem;
}

.page-numbers li .prev:hover,
.page-numbers li .next:hover {
    background-color: var(--color-muted-gold);
    color: #fff;
    border-color: var(--color-muted-gold);
}

/* Sort dropdown custom styling */
#sort-menu.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#sort-arrow.rotated {
    transform: rotate(180deg);
}

.sort-option.active {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-rich-black);
    font-weight: 700;
}

/* Per-page button active state */
.per-page-btn.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: var(--color-rich-black);
    font-weight: 700;
}

/* View toggle active state */
.view-toggle.active {
    color: var(--color-rich-black);
}

/* Products grid: list view alternative */
.products-grid.list-view {
    grid-template-columns: 1fr !important;
}

.products-grid.list-view > div,
.products-grid.list-view > a {
    display: flex;
    flex-direction: row;
}

@media (min-width: 768px) {
    .products-grid.list-view > div > .relative,
    .products-grid.list-view > a > .relative {
        width: 240px;
        height: auto;
        min-height: 200px;
        flex-shrink: 0;
    }
}

/* Filter sidebar */
.filter-group {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #f3f4f6;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--transition-base);
}

.filter-group:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.filter-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
    color: var(--color-rich-black);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Line clamp utility (for product excerpts) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* WooCommerce notices override */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    font-family: var(--font-sans);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    list-style: none;
    font-size: 0.875rem;
    line-height: 1.5;
}

.woocommerce-message {
    background-color: rgba(27, 77, 62, 0.05);
    border-left: 4px solid var(--color-lux-green);
    color: var(--color-lux-green);
}

.woocommerce-error {
    background-color: rgba(239, 68, 68, 0.05);
    border-left: 4px solid #ef4444;
    color: #ef4444;
}

/* Screen reader text (a11y) */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    clip: auto !important;
    display: block;
    height: auto;
    left: 5px;
    top: 5px;
    width: auto;
    z-index: 100000;
    background-color: #fff;
    padding: 1rem;
    font-size: 0.875rem;
}

/* ==========================================================================
   Blog Post Content Tables
   ========================================================================== */

article .prose table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-family: var(--font-sans) !important;
    font-size: 0.85rem !important;
    margin: 1.5rem 0 !important;
    border-radius: 0.75rem !important;
    overflow: hidden !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Header row — tables use <td><strong> instead of <th> */
article .prose table tbody tr:first-child {
    background: #1B4D3E !important;
}

article .prose table tbody tr:first-child td,
article .prose table tbody tr:first-child td p,
article .prose table tbody tr:first-child td strong,
article .prose table tbody tr:first-child td p strong {
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    border-bottom: none !important;
}

/* Also support proper <th> headers */
article .prose table th {
    background: #1B4D3E !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    padding: 0.875rem 1rem !important;
    text-align: left !important;
    border-bottom: none !important;
}

article .prose table td {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #374151 !important;
    vertical-align: top !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

article .prose table td p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.5 !important;
}

/* Striped rows (skip first row = header) */
article .prose table tbody tr:nth-child(even):not(:first-child) {
    background: #f9fafb !important;
}

article .prose table tbody tr:not(:first-child):hover {
    background: rgba(212, 175, 55, 0.08) !important;
}

/* Bold first column (fish names) */
article .prose table tbody tr:not(:first-child) td:first-child {
    font-weight: 600 !important;
    color: #121212 !important;
}

/* Last row no bottom border */
article .prose table tbody tr:last-child td {
    border-bottom: none !important;
}

/* Responsive tables */
@media (max-width: 640px) {
    article .prose table {
        font-size: 0.72rem !important;
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }

    article .prose table th,
    article .prose table td {
        padding: 0.5rem 0.625rem !important;
        white-space: nowrap;
    }

    article .prose table td:first-child {
        white-space: normal;
        min-width: 160px;
    }
}
