/*
Theme Name: Magnets
Theme URI: 
Description: マグネッツ公式サイト専用のオリジナルテーマ。思い出をカタチにする3Dプリントアイテムやオリジナルマグネットの魅力を伝えるためのプレミアムデザイン。Storefrontを親テーマとしています。
Author: Antigravity
Author URI: 
Template: storefront
Version: 1.0.0
*/

:root {
    --magnets-primary: #f6993f;
    /* Warm orange */
    --magnets-secondary: #fcd5ce;
    /* Soft pink/beige */
    --magnets-bg: #fffbf0;
    /* Soft warm background */
    --magnets-text: #4a4a4a;
    --magnets-border-radius: 20px;
    --magnets-button-radius: 50px;
}

body {
    background-color: var(--magnets-bg);
    color: var(--magnets-text);
    font-family: 'Zen Maru Gothic', 'Nunito', 'Rounded Mplus 1c', sans-serif;
}

/* Soft Buttons */
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.added_to_cart,
.widget a.button,
.site-header-cart .widget_shopping_cart a.button {
    background-color: var(--magnets-primary) !important;
    border-radius: var(--magnets-button-radius) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(246, 153, 63, 0.3) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    padding: 12px 24px !important;
    font-weight: bold !important;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(246, 153, 63, 0.4) !important;
    background-color: #e58933 !important;
}

/* Soft Product Cards */
ul.products li.product {
    background: #fff;
    border-radius: var(--magnets-border-radius);
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-bottom: none;
    transition: transform 0.2s ease;
    text-align: center;
}

ul.products li.product:hover {
    transform: translateY(-5px);
}

ul.products li.product img {
    border-radius: calc(var(--magnets-border-radius) - 5px);
    margin-bottom: 15px;
}

ul.products li.product .woocommerce-loop-product__title {
    color: var(--magnets-text);
    font-weight: bold;
}

ul.products li.product .price {
    color: var(--magnets-primary) !important;
    font-size: 1.2em;
    font-weight: bold;
}

/* Header & General Soft UI */
.site-header {
    background-color: var(--magnets-bg) !important;
    border-bottom: 2px solid var(--magnets-secondary);
}

.storefront-primary-navigation {
    background: transparent !important;
}

/* Soft Input fields */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea {
    border-radius: 10px;
    border: 2px solid #f0e6d2;
    background-color: #fff;
    padding: 10px 15px;
}

input[type="text"]:focus,
input[type="number"]:focus {
    border-color: var(--magnets-primary);
    outline: none;
}

/* WooCommerce specific tweaks */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-top-color: var(--magnets-primary) !important;
    background-color: #fff !important;
    color: var(--magnets-text) !important;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    color: var(--magnets-primary) !important;
}

/* Ensure Checkout text is visible */
.woocommerce-checkout label,
.woocommerce-checkout .shop_table th,
.woocommerce-checkout .shop_table td,
.woocommerce-checkout .payment_methods {
    color: var(--magnets-text) !important;
}

.woocommerce-checkout #payment {
    background: #fff !important;
    border-radius: 10px;
    color: var(--magnets-text) !important;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: var(--magnets-bg) !important;
    color: var(--magnets-text) !important;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-bottom-color: var(--magnets-bg) !important;
}

.single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__image {
    border-radius: var(--magnets-border-radius);
    overflow: hidden;
}

/* Custom UI Additions for Quantity */
.magnets-qty-selector {
    margin-bottom: 25px;
}

.magnets-qty-selector p {
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--magnets-text);
}

.qty-btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.qty-btn {
    background-color: var(--magnets-bg) !important;
    color: var(--magnets-primary) !important;
    border: 2px solid var(--magnets-primary) !important;
    box-shadow: none !important;
    padding: 12px 0px !important;
    flex: 1 1 calc(25% - 10px);
    font-size: 16px !important;
    border-radius: 12px !important;
    line-height: 1.3 !important;
    text-align: center;
}

.qty-btn.active {
    background-color: var(--magnets-primary) !important;
    color: white !important;
}

.qty-btn span {
    font-size: 12px;
    opacity: 0.9;
    font-weight: normal;
}

/* Hide default quantity input */
.single-product form.cart div.quantity {
    display: none !important;
}

/* Add to Cart Button Tweaks */
button.single_add_to_cart_button {
    width: 100% !important;
    padding: 24px 30px !important;
    font-size: 1.3rem !important;
    margin-top: 30px !important;
    white-space: normal !important;
}

button.single_add_to_cart_button:disabled {
    background-color: #d1d5db !important;
    color: #6b7280 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ====================================================
   Premium Homepage Styles (Magnets Focus)
   ==================================================== */

:root {
    --magnets-gradient-hero: linear-gradient(135deg, #fff9f0 0%, #fcd5ce 100%);
    --magnets-shadow-card: 0 15px 35px rgba(246, 153, 63, 0.08);
    --magnets-shadow-hover: 0 20px 40px rgba(246, 153, 63, 0.15);
    --magnets-dark: #2d3748;
}

.magnets-container,
.col-full {
    max-width: 1400px !important;
    /* Force the theme's core wrapper to expand */
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Global Typography --- */
body,
h1,
h2,
h3,
p,
a,
button {
    font-family: 'Zen Maru Gothic', sans-serif;
}

h1,
h2,
h3 {
    font-weight: 700;
}

/* --- Header Custom Logo & Layout --- */
.site-header {
    background-color: #3C87A3 !important;
    /* Matched to exact logo teal */
    padding-top: 20px !important;
    padding-bottom: 5px !important;
    border-bottom: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.site-header .col-full {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
}

.site-header .site-branding {
    margin-bottom: 20px !important;
    width: 100%;
    display: flex;
    justify-content: center;
}

.site-header .site-branding .custom-logo {
    max-width: 400px;
    /* Adjusted for better vertical balance with 1200x628 ratio */
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.site-header .site-branding .custom-logo:hover {
    transform: scale(1.02);
}

/* Secondary header area (Menu) */
.site-header .main-navigation {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
}

.site-header .main-navigation ul.menu {
    display: flex !important;
    justify-content: center !important;
    border: none;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.site-header .main-navigation ul.menu li a {
    padding: 10px 25px !important;
    color: #ffffff !important;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.05rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.site-header .main-navigation ul.menu li a:hover {
    color: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-2px);
}

/* Ensure mobile menu button is also visible/white if needed */
.menu-toggle {
    color: #fff !important;
}

/* Hide standard Storefront secondary nav clutter if it exists */
.secondary-navigation,
.site-header-cart {
    display: none !important;
}

/* --- Hero Slider Section --- */
.magnets-hero {
    position: relative;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    background-color: var(--magnets-bg);
    cursor: grab;
}

.magnets-hero:active {
    cursor: grabbing;
}

.magnets-hero-wrapper {
    display: grid;
    width: 100%;
}

.magnets-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    /* Added for extra safety */
    pointer-events: none;
    z-index: 10;
    padding: 100px 0 160px;
    transition: opacity 0.8s ease-in-out, transform 1s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.8s;
    transform: scale(1.05);
    /* Slightly larger for zoom effect */
}

.magnets-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 20;
    transform: scale(1);
}

/* Theme 1: Peach/Magnets */
.slide-magnets {
    background: linear-gradient(135deg, rgba(254, 240, 138, 0.6) 0%, rgba(253, 186, 116, 0.25) 100%);
}

/* Theme 2: Mint/3D Items */
.slide-3d {
    background: linear-gradient(135deg, #ccfbf1 0%, #e0f2fe 100%);
}

.slide-3d .magnets-badge {
    background: rgba(13, 148, 136, 0.15);
    color: #0f766e;
}

.slide-3d .slider-btn-mint {
    background: linear-gradient(to right, #0d9488, #0ea5e9);
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.3);
}

.slide-3d .slider-btn-mint:hover {
    background: linear-gradient(to right, #0f766e, #0284c7);
}

/* Slider Navigation Controls */
.magnets-slider-nav {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 100;
    /* Increased to ensure it's always above slides */
}

.slider-dot {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    /* Semi-transparent dot */
    border: 2px solid transparent !important;
    /* Prevents jumping */
    border-radius: 12px !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    position: relative !important;
    overflow: hidden !important;
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.4s ease, height 0.4s ease !important;
    box-shadow: none !important;
}

.slider-dot.active {
    width: 60px !important;
    /* Expand to a long pill */
    height: 8px !important;
    /* Slightly thinner for elegance */
    background: rgba(0, 0, 0, 0.15) !important;
    /* Dark track interior */
    border: none !important;
}

.slider-dot::after {
    content: '' !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    height: 100% !important;
    width: 0%;
    /* Removed !important so animation can override it */
    background: #ffffff !important;
    /* Bright solid fill */
    border-radius: 12px !important;
}

.slider-dot.active::after {
    animation: sliderProgress 6s linear forwards !important;
}

@keyframes sliderProgress {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.magnets-hero .magnets-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.magnets-hero-content {
    flex: 0 0 45%;
    padding: 40px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.magnets-badge {
    background: white;
    color: var(--magnets-primary);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.magnets-hero-title {
    font-size: 48px;
    line-height: 1.3;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.magnets-hero-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #5a677a;
    margin-bottom: 40px;
}

/* Premium Buttons */
.magnets-btn-primary {
    display: inline-block;
    background-color: var(--magnets-primary);
    color: #fff !important;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(246, 153, 63, 0.4);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, background-color 0.3s ease;
}

.magnets-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(246, 153, 63, 0.5);
    background-color: #e58933;
}

.magnets-btn-secondary {
    display: inline-block;
    background-color: #fff;
    color: var(--magnets-primary) !important;
    padding: 15px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid var(--magnets-primary);
    transition: all 0.3s ease;
}

.magnets-btn-secondary:hover {
    background-color: var(--magnets-primary);
    color: #fff !important;
}

.magnets-center-btn {
    text-align: center;
    margin-top: 40px;
}

/* Animations for Visuals */
.magnets-hero-visual {
    flex: 0 0 55%;
    position: relative;
    height: 550px;
}

.mag-shape {
    position: absolute;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    /* More dramatic shadow */
    border: 8px solid #fff;
    /* Slightly thicker border */
    animation: float 8s ease-in-out infinite;
    /* Slower, more elegant float */
    object-fit: cover;
    background-color: #fff;
    z-index: 10;
}

.mag-shape:hover {
    z-index: 20;
}

.mag-shape-1 {
    width: 350px;
    height: 350px;
    top: 10px;
    left: 20px;
    animation-delay: 0s;
}

.mag-shape-2 {
    width: 360px;
    height: 360px;
    top: 130px;
    right: -40px;
    border-radius: 50%;
    animation-delay: 2s;
}

.mag-shape-3 {
    width: 220px;
    height: 220px;
    bottom: -30px;
    left: 100px;
    border-radius: 30px;
    animation-delay: 4s;
    z-index: 15;
}

.mag-shape-4 {
    width: 200px;
    height: 200px;
    top: -40px;
    right: 120px;
    border-radius: 40px;
    animation-delay: 1s;
    z-index: 8;
}

.mag-shape-5 {
    width: 180px;
    height: 180px;
    bottom: -10px;
    right: 40px;
    border-radius: 50%;
    animation-delay: 3s;
    z-index: 18;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

/* --- Swipable Photo Gallery (JS + CSS) --- */
.magnets-gallery-section {
    padding: 20px 0 60px;
    background-color: var(--magnets-bg);
    overflow: hidden;
}

.magnets-marquee {
    display: flex;
    overflow-x: auto;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 20px 0;
    cursor: grab;
}

.magnets-marquee.active {
    cursor: grabbing;
}

.magnets-marquee::-webkit-scrollbar {
    display: none;
}

.magnets-marquee-content {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    width: max-content;
    animation: none !important;
}

.magnets-marquee-content img {
    height: 320px;
    width: auto;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 8px solid #fff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #fff;
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.magnets-marquee-content img:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    z-index: 10;
    position: relative;
}

/* Removed CSS animation to allow manual drag */
.magnets-steps-section {
    padding: 80px 0;
    background-color: var(--magnets-bg);
}

.magnets-section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.magnets-section-desc {
    text-align: center;
    font-size: 18px;
    color: #5a677a;
    margin-bottom: 60px;
}

.magnets-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.magnets-step-card {
    background: #fff;
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: var(--magnets-shadow-card);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(246, 153, 63, 0.1);
    position: relative;
    z-index: 1;
}

.magnets-step-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--magnets-shadow-hover);
    z-index: 5;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--magnets-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 25px;
    box-shadow: 0 6px 15px rgba(246, 153, 63, 0.3);
}

.magnets-step-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.magnets-step-card p {
    color: var(--magnets-text);
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- Products Showcase --- */
.magnets-products-section {
    padding: 80px 0 100px;
    background: #fff;
}

/* ====================================================
   Animations & Interaction
   ==================================================== */
.magnets-animate {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnets-animate.is-visible {
    opacity: 1;
    visibility: visible;
}

.magnets-fade-in-up {
    transform: translateY(40px);
}

.magnets-fade-in-up.is-visible {
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.5s;
}

/* Enhanced hover states for interactions */
.magnets-btn-primary:active,
.qty-btn:active {
    transform: scale(0.96) !important;
}

.magnets-step-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.magnets-step-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* ====================================================
   Responsive Adjustments (Mobile Optimization)
   ==================================================== */
@media (max-width: 991px) {
    .magnets-hero .magnets-container {
        flex-direction: column;
        text-align: center;
    }

    .magnets-hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }

    .magnets-steps-grid {
        grid-template-columns: 1fr;
    }

    .magnets-hero-title {
        font-size: 36px;
    }

    .magnets-hero-visual {
        display: block;
        height: 380px;
        /* Taller to fit 5 shapes */
        width: 100%;
        margin-top: 20px;
        transform: none;
        /* Fixed messy scaling */
        z-index: 1;
        position: relative;
    }

    .mag-shape-1 {
        width: 140px;
        height: 140px;
        top: 0;
        left: 0;
    }

    .mag-shape-2 {
        width: 180px;
        height: 180px;
        top: 60px;
        right: -10px;
    }

    .mag-shape-3 {
        width: 110px;
        height: 110px;
        bottom: 30px;
        left: 10%;
    }

    .mag-shape-4 {
        width: 130px;
        height: 130px;
        top: -10px;
        right: 35%;
    }

    .mag-shape-5 {
        width: 120px;
        height: 120px;
        bottom: 50px;
        right: 15%;
    }
}

@media (max-width: 768px) {
    .magnets-hero {
        padding: 60px 0 80px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }

    .magnets-slide {
        padding: 60px 0 120px;
    }

    .slider-dot {
        width: 10px;
        height: 10px;
    }

    .slider-dot.active {
        width: 25px;
    }

    .magnets-hero-title {
        font-size: 28px;
    }

    .magnets-hero-desc {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Header Mobile Re-ordering (Menu Button on Top-Right, Logo Centered) */
    header.site-header {
        display: block !important;
        /* Switch back from flex to allow absolute positioning of children */
        position: relative !important;
        background-color: #3C87A3 !important;
        padding-top: 50px !important;
        /* Room for the top-right button */
        padding-bottom: 20px !important;
    }

    .storefront-primary-navigation {
        position: absolute !important;
        top: 15px !important;
        right: 15px !important;
        width: auto !important;
        margin: 0 !important;
        z-index: 100 !important;
        display: block !important;
    }

    header.site-header .col-full {
        width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    /* Smaller Menu Button */
    .menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        background-color: var(--magnets-primary) !important;
        color: #fff !important;
        border-radius: 8px !important;
        padding: 8px 16px 8px 36px !important;
        /* Smaller padding */
        font-weight: bold;
        font-size: 0.9rem !important;
        /* Smaller font */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
        border: none !important;
        min-width: 0 !important;
        width: auto !important;
    }

    /* Adjust the icon position to match smaller padding */
    .menu-toggle::before,
    .menu-toggle::after,
    .menu-toggle span {
        margin-right: 0 !important;
    }

    /* Fix "Sluggish" Close Animation (Override Storefront's 0.8s) */
    .main-navigation ul,
    .main-navigation ul.menu,
    .handheld-navigation,
    .main-navigation.toggled .handheld-navigation,
    .main-navigation ul.menu li a {
        transition: all 0.3s ease-out !important;
        /* Faster, snappy transition */
    }

    /* Ensure menu items don't float over header when closed */
    .main-navigation:not(.toggled) .primary-navigation,
    .main-navigation:not(.toggled) .handheld-navigation,
    .main-navigation:not(.toggled) .nav-menu {
        max-height: 0 !important;
        overflow: hidden !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Mobile Menu Dropdown Background and Styling when Toggled */
    .main-navigation.toggled .primary-navigation {
        background-color: #316d84 !important;
        /* Solid dark teal for better contrast */
        position: absolute !important;
        top: 55px !important;
        /* Positioned below the small menu button */
        right: 0px !important;
        width: 200px !important;
        /* Card width */
        border-radius: 12px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
        padding: 10px 0 !important;
        z-index: 9999 !important;
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        max-height: none !important;
        transition: all 0.3s ease-out !important;
    }

    .main-navigation.toggled .nav-menu {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        text-align: left !important;
    }

    .main-navigation.toggled .nav-menu li {
        margin: 0 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation.toggled .nav-menu li:last-child {
        border-bottom: none;
    }

    .main-navigation.toggled .nav-menu li a {
        font-size: 1rem !important;
        color: #fff !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        display: block !important;
        padding: 12px 20px !important;
        transition: background 0.2s ease;
    }

    .main-navigation.toggled .nav-menu li a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Reset the close button (menu-toggle) to normal flow within the relative header */
    .main-navigation.toggled .menu-toggle {
        z-index: 10000 !important;
        position: relative !important;
    }

    /* Hide the duplicate fallback menu list that causing overlapping text */
    .main-navigation.toggled .menu {
        display: none !important;
    }





    .site-branding {
        display: flex !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 !important;
    }


    .site-branding .custom-logo {
        max-width: 280px !important;
        /* Slightly smaller for mobile */
        margin: 0 auto !important;
    }

    .magnets-btn-primary {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .magnets-section-title {
        font-size: 26px;
    }

    .magnets-section-desc {
        font-size: 15px;
        margin-bottom: 40px;
        padding: 0 10px;
    }

    .magnets-steps-section {
        padding: 60px 0;
    }

    .magnets-gallery-section {
        padding: 40px 0;
    }

    .magnets-marquee-content img {
        height: 200px;
        border-width: 5px;
        border-radius: 12px;
    }

    .qty-btn {
        flex: 1 1 calc(50% - 10px);
    }

    ul.products li.product {
        margin-bottom: 20px !important;
    }

    /* Ensure checkout fields are readable */
    .woocommerce-checkout form .form-row {
        width: 100% !important;
        float: none !important;
    }
}

/* --- Footer Legal Links --- */
.site-info.footer-legal {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background-color: transparent;
}

.footer-legal-links {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal-links li {
    margin: 0;
}

.footer-legal-links a {
    color: var(--magnets-text);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-legal-links a:hover {
    opacity: 1;
    color: var(--magnets-primary);
}

.footer-legal .copyright {
    font-size: 0.85rem;
    opacity: 0.6;
}