/*
Theme Name: Kauplus Rattapood Theme
Description: Custom theme for Kauplus Rattapood bike shop built on Bedrock with WooCommerce support
Author: Aigar
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.1
Tags: e-commerce, woocommerce, bikes, shop
Text Domain: kauplusrattapood
*/

/* ==========================================================================
   Google Fonts Import
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================================
   CSS Custom Properties (Global Colors)
   ========================================================================== */

:root {
    /* Primary Color Palette */
    --color-primary: #3246FF;      /* Blue */
    --color-secondary: #00FF00;    /* Green */
    --color-accent: #FF00E5;       /* Pink */
    --color-white: #ffffff;        /* White */
    --color-black: #171717;        /* Dark Gray */
    
    /* Derived Colors */
    --color-primary-dark: #2135cc;
    --color-primary-light: #5b6eff;
    --color-secondary-dark: #00cc00;
    --color-secondary-light: #33ff33;
    --color-accent-dark: #cc00b8;
    --color-accent-light: #ff33ea;
    
    /* Neutral Colors */
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-300: #d1d5db;
    --color-gray-400: #9ca3af;
    --color-gray-500: #6b7280;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
    --color-gray-900: #111827;
    
    /* Typography */
    --font-family-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    /* Global, responsive type scale (industry-standard base: 16px, lh:1.6) */
    --fs-base: 1rem;            /* 16px */
    --lh-base: 1.6;
    --lh-heading: 1.25;
    /* Clamp-based fluid headings: mobile → desktop (approx) */
    --fs-h1: clamp(2rem, 2.5vw + 1rem, 3rem);       /* 32 → 48 */
    --fs-h2: clamp(1.75rem, 2vw + 0.9rem, 2.25rem); /* 28 → 36 */
    --fs-h3: clamp(1.5rem, 1.6vw + 0.8rem, 1.875rem);/* 24 → 30 */
    --fs-h4: clamp(1.25rem, 1.2vw + 0.6rem, 1.5rem); /* 20 → 24 */
    --fs-h5: 1.125rem;          /* 18 */
    --fs-h6: 1rem;              /* 16 */
    
    /* Spacing */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Reset and Base Styles
   ========================================================================== */

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

body {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-normal);
    line-height: var(--lh-base);
    color: var(--color-gray-800);
    background-color: var(--color-white);
    font-size: var(--fs-base);
}

/* Global heading and paragraph styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-black);
    line-height: var(--lh-heading);
    font-weight: var(--font-weight-bold);
    margin: 0 0 0.75em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: var(--fs-h5); }
h6 { font-size: var(--fs-h6); }

p { margin: 0 0 1em; }
small { font-size: 0.875rem; }

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

/* Make shop container full width */
.shop-archive-container {
    max-width: 1440px;
    width: 100%;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    position: static;
    top: auto;
    z-index: auto;
}

/* Header Main Bar */
.header-main {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}

/* ==========================================================================
   Logo / Site Branding
   ========================================================================== */

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-link,
.custom-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.site-logo-link:hover,
.custom-logo-link:hover {
    transform: scale(1.05);
}

.site-logo,
.custom-logo {
    height: 50px;
    width: auto;
    max-width: 180px;
    display: block;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

/* ==========================================================================
   Search Bar
   ========================================================================== */

.header-search {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.search-form {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    background: var(--color-white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.search-input-wrapper:focus-within {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-field {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: none;
    background: transparent;
    font-family: var(--font-family-primary);
    font-size: 1rem;
    color: var(--color-gray-800);
    outline: none;
}

.search-field::placeholder {
    color: var(--color-gray-500);
    font-weight: var(--font-weight-normal);
}

.search-submit {
    background: transparent;
    border: none;
    padding: 0.875rem 1.25rem;
    color: var(--color-gray-800);
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: var(--color-gray-100);
}

.search-submit svg {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   Header Actions (Cart + Mobile Menu)
   ========================================================================== */

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

body.nav-fixed .header-actions {
    position: fixed;
    right: 24px;
    top: 16px;
    background: linear-gradient(135deg, #3246FF 0%, #2a3af5 100%);
    padding: 12px 16px;
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(50, 70, 255, 0.35);
    z-index: 1400;
    gap: 0.75rem;
}

body.nav-fixed .header-actions .cart-total {
    display: none;
}

body.nav-fixed .header-cart,
body.nav-fixed .mobile-menu-toggle {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 10px;
    transition: background 0.3s ease, opacity 0.3s ease;
}

body.nav-fixed .header-cart:hover,
body.nav-fixed .mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Cart Styling */
.header-cart {
    display: flex;
    align-items: center;
}

.cart-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-white);
    text-decoration: none;
    padding: 0;
    border-radius: 0;
    transition: all 0.3s ease;
}

/* Hide header-actions when sidebar/filters are open */
body.sidebar-open .header-actions {
    display: none;
}

.cart-link:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    opacity: 0.8;
}

.cart-total {
    font-weight: var(--font-weight-normal);
    font-size: 14px;
    letter-spacing: -0.02em;
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: var(--font-weight-normal);
    line-height: 1;
    border: 2px solid var(--color-primary);
}

/* ==========================================================================
   Mobile Menu Toggle
   ========================================================================== */

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ==========================================================================
   Navigation Menu
   ========================================================================== */

.header-navigation {
    background: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    z-index: 1100;
    transition: background-color 240ms ease, transform 240ms ease;
    will-change: background-color;
    position: sticky;
    top: 0;
}

/* Ensure sticky works on Safari/iOS by giving parent stacking context */
/* Avoid transforms that can break sticky stacking contexts */
/* body { transform: translateZ(0); } */

.header-navigation.is-fixed { position: fixed; left: 0; right: 0; top: 0; z-index: 1200; }
.header-navigation.scrolled { background: #3246FF !important; }
.header-navigation.scrolled .nav-menu a { color: #fff; }
.header-navigation.scrolled .nav-menu a:hover { border-bottom-color: rgba(255,255,255,0.6); }

/* Mini cart panel inside nav */
/* Remove experimental embedded mini-cart styles */

.main-navigation {
    padding: 0.5rem 0;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--color-gray-800);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    display: block;
    position: relative;
}

.nav-menu a:hover {
    color: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
}

/* Dropdown Menu Support */
.nav-menu .menu-item-has-children > a::after {
    content: "▼";
    font-size: 0.75rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-menu .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

.nav-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-menu .menu-item-has-children:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-menu .sub-menu a {
    color: var(--color-gray-800);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
}

.nav-menu .sub-menu a:hover {
    background: var(--color-gray-50);
    color: var(--color-primary);
    transform: none;
}

/* ==========================================================================
   Mobile Search Overlay
   ========================================================================== */

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-search-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
}

.mobile-search-wrapper {
    display: flex;
    background: var(--color-white);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: var(--shadow-lg);
}

.mobile-search-field {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    background: transparent;
    outline: none;
    font-family: var(--font-family-primary);
}

.mobile-search-submit,
.mobile-search-close {
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.mobile-search-close {
    background: var(--color-gray-500);
    margin-left: 0.5rem;
}

.mobile-search-submit:hover {
    background: var(--color-primary-dark);
}

.mobile-search-close:hover {
    background: var(--color-gray-700);
}

/* ==========================================================================
   Mobile Search Trigger
   ========================================================================== */

.mobile-search-trigger {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    transition: background-color 0.3s ease;
}

.mobile-search-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-search-trigger svg {
    width: 24px;
    height: 24px;
}

/* ==========================================================================
   Touch Interactions & Accessibility
   ========================================================================== */

.touch-active {
    opacity: 0.7;
    transform: scale(0.98);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999999;
    padding: 0.5rem 1rem;
    background: var(--color-black);
    color: var(--color-white);
    text-decoration: none;
    border-radius: 0 0 var(--border-radius-sm) 0;
}

.skip-link:focus {
    left: 0;
}

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

/* Header scroll effects */
.site-header.is-fixed { position: fixed; left: 0; right: 0; }
.site-header.scrolled {
    background: #3246FF;
    transition: background-color 0.3s ease;
}

.site-header.scrolled .header-main {
    padding: 0.75rem 0;
    transition: padding 0.3s ease;
}

/* ==========================================================================
   Mobile Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .header-content {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }
    
    .header-search {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }

    .header-actions {
        justify-content: flex-end;
        margin-left: auto;
    }

    /* Hide cart price on mobile to save space */
    .cart-total {
        display: none;
    }
    
    .header-navigation {
        display: none;
    }
    
    .header-navigation.mobile-open {
        display: block;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        background: var(--color-white);
        box-shadow: var(--shadow-lg);
        animation: slideDown 0.3s ease;
        border-top: 1px solid var(--color-gray-200);
        z-index: 1099;
    }
    
    .mobile-open .main-navigation {
        padding: 1rem 0;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid var(--color-gray-200);
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-menu a {
        padding: 1rem 2rem;
        border-radius: 0;
        text-align: left;
        color: var(--color-gray-800);
        border-bottom: 1px solid transparent;
    }
    
    .nav-menu a:hover {
        background: var(--color-gray-50);
        color: var(--color-primary);
        border-bottom: 1px solid var(--color-primary);
    }
    
    .mobile-search-trigger {
        display: block;
    }
    
    /* Mobile logo adjustments */
    .site-logo,
    .custom-logo {
        height: 40px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .header-main {
        padding: 0.75rem 0;
    }
    
    .header-content {
        gap: 0.75rem;
    }
    
    .cart-link {
        padding: 0.5rem;
        font-size: 1rem;
    }
    
    .cart-total {
        display: none;
    }
    
    .site-logo,
    .custom-logo {
        height: 35px;
        max-width: 120px;
    }
}

@media (max-width: 768px) {
    .woocommerce .products {
        grid-template-columns: 1fr;
    }
    
    .content-area {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Main Content
   ========================================================================== */

.site-main {
    min-height: 60vh;
    padding: 0;
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Removed grid split; keep single-column layout on all viewports using flex */

.primary-content {
    background: var(--color-white);
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    margin-bottom: 0.5rem;
    color: var(--color-black);
}

.entry-title a {
    color: var(--color-black);
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--color-primary);
}

.entry-content {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    font-weight: var(--font-weight-medium);
}

.read-more:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   WooCommerce Styles
   ========================================================================== */

.woocommerce .products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Explicit 4-col grid when grid view is active or WC sets columns-4 */
.woocommerce ul.products.grid-view,
.woocommerce ul.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

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

@media (max-width: 768px) {
    .woocommerce ul.products.grid-view,
    .woocommerce ul.products.columns-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .woocommerce ul.products.grid-view,
    .woocommerce ul.products.columns-4 { grid-template-columns: 1fr; }
}

.woocommerce .product {
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
}

.woocommerce .product:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.woocommerce .product img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

.woocommerce .product .woocommerce-loop-product__title {
    font-size: 1.125rem;
    font-weight: var(--font-weight-semibold);
    margin: 0.5rem 0;
    color: var(--color-black);
}

.woocommerce .price {
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    color: var(--color-accent);
    margin: 0.5rem 0;
}

.woocommerce .button {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-primary);
}

.woocommerce .button:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */

.widget-area {
    background: var(--color-gray-50);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--color-gray-200);
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    font-weight: var(--font-weight-semibold);
    margin-bottom: 1rem;
    color: var(--color-black);
}

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-gray-200);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--color-gray-700);
    text-decoration: none;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background-color: var(--color-gray-900);
    color: var(--color-white);
    text-align: left;
    padding: 3rem 0 0 0;
    margin-top: 4rem;
}

/* New Footer Layout */
.kr-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; align-items: start; }
.kr-footer-logo img { height: 48px; width: auto; }
.kr-footer-heading { margin: 20px 0 10px; font-size: 1.5rem; font-weight: 700; color: #fff; }
.kr-footer-sub { margin: 0 0 20px; color: #cbd5e1; }
.kr-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background:#102046; color:#fff; margin-right: 12px; transition: background .2s ease; }
.kr-footer-social a:hover { background:#1a2e6b; }
.kr-footer-title { font-size: 1.25rem; color:#fff; margin: 0 0 10px; font-weight:700; }
.kr-footer-list { list-style:none; padding:0; margin:0; }
.kr-footer-list li { margin: 10px 0; color:#d1d5db; }
.kr-footer-list a { color:#d1d5db; text-decoration:none; }
.kr-footer-list a:hover { color:#fff; }
.kr-footer-map iframe { width:100%; height:220px; border:0; }
.kr-footer-bottom { margin-top: 30px; background: var(--color-primary); }
.kr-footer-bottom-inner { text-align:center; padding: 14px 0; font-weight:600; }

@media (max-width: 1080px) {
  .kr-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .kr-footer-top { grid-template-columns: 1fr; }
}

.footer-info p {
    margin: 0.5rem 0;
    color: var(--color-gray-300);
}

/* ==========================================================================
   Buttons and Interactive Elements
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-accent:hover {
    background-color: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-accent { color: var(--color-accent); }
.text-white { color: var(--color-white); }
.text-black { color: var(--color-black); }

.bg-primary { background-color: var(--color-primary); }
.bg-secondary { background-color: var(--color-secondary); }
.bg-accent { background-color: var(--color-accent); }
.bg-white { background-color: var(--color-white); }
.bg-black { background-color: var(--color-black); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

.font-light { font-weight: var(--font-weight-light); }
.font-normal { font-weight: var(--font-weight-normal); }
.font-medium { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold { font-weight: var(--font-weight-bold); }

/* ==========================================================================
   Loading and Performance Optimizations
   ========================================================================== */

/* Prevent layout shift during font loading */
.site-header {
    font-display: swap;
}

/* Optimize animations for performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support for future enhancement */
@media (prefers-color-scheme: dark) {
    :root {
        --color-gray-50: #1f2937;
        --color-gray-100: #374151;
        --color-gray-200: #4b5563;
    }
}

/* Homepage Flexible Content Sections */

/* ====================================
   Hero Section
   ==================================== */
.hero-section {
    position: relative;
    min-height: 60vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(50, 70, 255, 0.8) 0%, rgba(255, 0, 229, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-discount-badge {
    display: inline-block;
    background: #FF00E5;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 2rem;
    font-weight: 700;
    margin: 1rem 0;
    box-shadow: 0 4px 20px rgba(255, 0, 229, 0.3);
    transform: rotate(-5deg);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-cta .btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
    border-radius: 50px;
    background: white;
    color: #3246FF;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.hero-cta .btn-large:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-discount-badge {
        font-size: 1.5rem;
        padding: 8px 16px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* ====================================
   Dual Hero Section
   ==================================== */
.dual-hero {
    padding: 4rem 0 3rem;
    background: #ffffff;
}

.dual-hero__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.dual-hero__card {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    min-height: clamp(420px, 60vh, 640px);
    padding: clamp(2rem, 4vw, 3rem);
    color: #ffffff;
    display: flex;
    align-items: flex-end;
    background-color: rgba(8, 11, 26, 0.75);
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.dual-hero__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(at 20% 80%, rgba(var(--dual-hero-accent-rgb, 50,70,255), 0.85) 0%, rgba(var(--dual-hero-accent-rgb, 50,70,255), 0.55) 45%, rgba(var(--dual-hero-accent-rgb, 50,70,255), 0) 70%),
        linear-gradient(150deg, rgba(var(--dual-hero-accent-rgb, 50,70,255), 0.8) 0%, rgba(var(--dual-hero-accent-rgb, 50,70,255), 0.55) 45%, rgba(var(--dual-hero-accent-rgb, 50,70,255), 0.2) 100%);
    z-index: 1;
}

.dual-hero__card-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 420px;
}

.dual-hero__card:hover {
    transform: translateY(-6px);
}

.dual-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.dual-hero__badge-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: var(--dual-hero-accent, #3246FF);
    font-weight: 700;
    font-size: clamp(1.1rem, 2.2vw, 1.35rem);
}

.dual-hero__badge-label {
    opacity: 0.85;
}

.dual-hero__title {
    font-size: clamp(1.8rem, 2.5vw, 2.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    color: #ffffff;
}

.dual-hero__subtitle {
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.dual-hero__actions {
    margin-top: 0.5rem;
}

.dual-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.95rem 1.9rem;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.dual-hero__button:hover {
    transform: translateY(-2px);
}

.dual-hero__button--pink,
.dual-hero__button--blue,
.dual-hero__button--dark {
    background: #ffffff;
    color: #121212;
}

.dual-hero__features {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.dual-hero__feature {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.75rem 1.5rem;
    text-align: center;
    border: 1px solid rgba(17, 17, 17, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dual-hero__feature-icon img {
    max-width: 52px;
    height: auto;
}

.dual-hero__feature-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #171717;
    margin: 0;
}

.dual-hero__feature-description {
    font-size: 0.95rem;
    color: #4a4a4a;
    margin: 0;
}

/* ====================================
   Homepage Product Feed Section
   ==================================== */
.homepage-products {
    padding: 4rem 0;
    background: #ffffff;
}

.homepage-products + .homepage-products {
    padding-top: 2rem;
}

.homepage-products__header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.homepage-products__header .homepage-products__actions {
    margin-left: auto;
}

.homepage-products__title {
    font-size: clamp(1.5rem, 2.4vw, 1.75rem);
    font-weight: 700;
    margin: 0;
    color: #171717;
}

.homepage-products__description {
    font-size: 1rem;
    color: #4a4a4a;
    margin: 0;
    max-width: 720px;
}

.homepage-products__actions {
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.homepage-products__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    background: #171717;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.homepage-products__link:hover {
    transform: translateY(-2px);
    background: #3246ff;
}

.homepage-products__grid {
    position: relative;
}

.homepage-products__grid ul.products {
    margin-bottom: 0;
}

.homepage-products__grid.columns-3 ul.products {
    --woocommerce-loop-columns: 3;
}

.homepage-products__grid.columns-4 ul.products {
    --woocommerce-loop-columns: 4;
}

.homepage-products__grid.is-carousel {
    --carousel-gap: 1.5rem;
}

.homepage-products__track {
    position: relative;
    overflow: hidden;
}

.homepage-products__grid.is-carousel .homepage-products__track {
    padding-bottom: 0.5rem;
}

.homepage-products__grid.is-carousel ul.products {
    display: flex;
    gap: var(--carousel-gap);
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    margin-bottom: 0;
    scroll-snap-type: x mandatory;
}

.homepage-products__grid.is-carousel ul.products::-webkit-scrollbar {
    display: none;
}

.homepage-products__grid.is-carousel ul.products.products--carousel li.product-card {
    flex: 0 0 calc((100% - (var(--carousel-columns, 4) - 1) * var(--carousel-gap)) / var(--carousel-columns, 4));
    scroll-snap-align: start;
}

.homepage-products__nav-group {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.homepage-products__nav {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(23, 23, 23, 0.12);
    background: #ffffff;
    color: #171717;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.homepage-products__nav:hover {
    background: #3246ff;
    color: #ffffff;
    transform: translateY(-1px);
}

.homepage-products__nav:disabled,
.homepage-products__nav.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: #f0f0f0;
    color: #7a7a7a;
}

@media (min-width: 960px) {
    .homepage-products__header {
        flex-direction: row;
        align-items: center;
    }

    .homepage-products__description {
        margin-left: auto;
    }

    .homepage-products__actions {
        margin-left: 1.5rem;
    }
}

@media (max-width: 640px) {
    .homepage-products {
        padding: 3rem 0;
    }

    .homepage-products__title {
        font-size: clamp(1.7rem, 6vw, 2.2rem);
    }

    .homepage-products__link {
        width: 100%;
        justify-content: center;
    }

    .homepage-products__grid.is-carousel ul.products.products--carousel li.product-card {
        flex: 0 0 100%;
    }
}

@media (max-width: 960px) {
    .homepage-products__grid.is-carousel ul.products.products--carousel li.product-card {
        flex: 0 0 calc((100% - var(--carousel-gap)) / 2);
    }
}

@media (max-width: 1100px) {
    .dual-hero__card {
        min-height: 320px;
    }
}

@media (max-width: 960px) {
    .dual-hero__cards {
        grid-template-columns: 1fr;
    }

    .dual-hero__card {
        min-height: 340px;
    }
}

@media (max-width: 640px) {
    .dual-hero {
        padding: 3rem 0 2.5rem;
    }

    .dual-hero__card {
        padding: 2.2rem;
    }

    .dual-hero__features {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .dual-hero__card {
        padding: 1.9rem;
        min-height: 300px;
    }
}

/* ====================================
   Features Section
   ==================================== */
.features-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    margin-bottom: 1rem;
}

.feature-icon img {
    max-width: 64px;
    height: auto;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #171717;
}

.feature-description {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1.5rem 1rem;
    }
}

/* ====================================
   Product Categories Section
   ==================================== */
.product-categories-section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #171717;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    margin-bottom: 0.5rem;
}

.product-title a {
    color: #171717;
    text-decoration: none;
    
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #3246FF;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #3246FF;
    margin-bottom: 1rem;
}

.product-actions {
    margin-top: 1rem;
}

.section-cta {
    text-align: center;
}

/* ====================================
   Brands Section
   ==================================== */
.brands-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.brand-item {
    text-align: center;
    padding: 2rem 1rem;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.brand-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.brand-logo {
    margin-bottom: 1rem;
}

.brand-logo img,
.brand-logo__img {
    max-height: 60px;
    width: auto;
    max-width: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.brand-item:hover .brand-logo img,
.brand-item:hover .brand-logo__img {
    filter: grayscale(0%);
}

.brand-name {
    font-weight: 600;
    color: #171717;
}

/* ====================================
   Product Showcase Section
   ==================================== */
.product-showcase-section {
    padding: 4rem 0;
}

.showcase-products {
    display: grid;
    gap: 3rem;
}

.showcase-products.two_column {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.showcase-products.single_large .showcase-product-item {
    max-width: 800px;
    margin: 0 auto;
}

.showcase-product-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.showcase-product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.showcase-product-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.showcase-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.showcase-product-item:hover .showcase-product-image img {
    transform: scale(1.05);
}

.showcase-product-content {
    padding: 2rem;
}

.showcase-product-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #171717;
}

.showcase-product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.showcase-product-title a:hover {
    color: #3246FF;
}

.showcase-product-description {
    margin-bottom: 1.5rem;
    color: #666;
    line-height: 1.6;
}

.showcase-product-cta .btn {
    display: inline-block;
}

@media (max-width: 768px) {
    .showcase-products.two_column {
        grid-template-columns: 1fr;
    }
    
    .showcase-product-image {
        height: 200px;
    }
    
    .showcase-product-content {
        padding: 1.5rem;
    }
}

/* ====================================
   Services Section
   ==================================== */
.services-section {
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    margin-bottom: 1.5rem;
}

.service-icon img {
    max-width: 80px;
    height: auto;
    border-radius: 12px;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #171717;
}

.service-description {
    color: #666;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ====================================
   Button Styles
   ==================================== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1;
}

.btn-primary {
    background: #3246FF;
    color: white;
    border-color: #3246FF;
}

.btn-primary:hover {
    background: #2739e6;
    border-color: #2739e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 70, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: #3246FF;
    border-color: #3246FF;
}

.btn-outline:hover {
    background: #3246FF;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(50, 70, 255, 0.3);
}

/* ====================================
   Utility Classes
   ==================================== */
.text-center {
    text-align: center;
}

.homepage-fallback {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.homepage-fallback h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #171717;
}

.homepage-fallback p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ====================================
   Responsive Design
   ==================================== */
@media (max-width: 576px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* ==========================================================================
   MODERN PRODUCT ARCHIVE STYLES
   ========================================================================== */

/* Shop Archive Container */
.shop-archive-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 40px;
}

/* Mobile Filter Toggle */
.mobile-filter-toggle {
    display: none;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: linear-gradient(135deg, #3246FF 0%, #2a3af5 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(50, 70, 255, 0.3);
    font-size: 1rem;
}

.filter-toggle-btn:active {
    background: linear-gradient(135deg, #2a3af5 0%, #1f2acd 100%);
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(50, 70, 255, 0.4);
}

.filter-toggle-btn:hover {
    background: linear-gradient(135deg, #2a3af5 0%, #1f2acd 100%);
    box-shadow: 0 6px 16px rgba(50, 70, 255, 0.4);
}

.filter-icon {
    font-size: 1.2rem;
}

.filter-text {
    flex: 1;
}

.filter-count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-radius: 14px;
    padding: 3px 10px;
    font-size: 13px;
    font-weight: 700;
    min-width: 24px;
    height: 20px;
}

.filter-count.active {
    display: flex;
}

/* Shop Header */
.shop-header {
    margin-bottom: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e5e5;
}

/* Category navigation strip */
.shop-category-nav { margin: 10px 0 20px; }
.shop-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.shop-category-item {}
.shop-category-link {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    text-decoration: none;
    color: #495057;
    transition: all .2s ease;
}
.shop-category-link:hover { background: #f1f3f5; color: #171717; }

.shop-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #171717;
    margin: 0 0 10px 0;
}

/* Shop Content Layout */
.shop-content {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* Shop Sidebar */
.shop-sidebar {
    background: white;
    border-radius: 12px;
    padding: 0 0 20px 0;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: hidden;
    overflow-x: visible;
    
}

.shop-sidebar:hover {
    overflow-y: auto;
}

.sidebar-header { 
    display: none; 
}

.sidebar-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
}

.sidebar-close {
    display: none;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.sidebar-close:hover,
.sidebar-close:active {
    background: #f3f4f6;
    color: #1f2937;
}

.sidebar-close svg {
    width: 24px;
    height: 24px;
}

/* Filter Sections */
.filter-section {
    border-bottom: 1px solid #e5e5e5;
    margin: 0;
}

.filter-section:last-child {
    border-bottom: none;
}

/* Category Tree Styles */
.category-tree .filter-title { cursor: default; }
.category-tree-content { padding-top: 0; }
.category-tree .filter-content,
.category-tree-content {
    max-height: none !important;
    overflow: visible !important;
}
.category-tree-list, .subcategory-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 5px 0;
}
.category-link, .subcategory-link {
    text-decoration: none; color: #171717; font-weight: 600;
}
.tag-label .tag-name { color: #171717; font-weight: 400; font-size: 0.875rem; line-height: 1.4; }
.category-link.active, .subcategory-link.active { color: #dc2626; }
.cat-toggle {
    background: none; border: none; color: #6b7280; cursor: pointer; font-size: 18px; width: 24px; height: 24px; border-radius: 4px;
}
.cat-toggle:hover { background: #f3f4f6; }
.subcategory-tree { display: none; padding-left: 18px; }
.subcategory-tree.open { display: block; }
.category-tree-item.open > .subcategory-tree { display: block; }

.tag-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem; /* match category link size */
}
.tag-label .tag-name {
    color: #171717; /* match category color */
    font-weight: 600; /* match category weight */
}
.tag-label .product-count {
    color: #6b7280;
    font-weight: 400;
    font-size: 0.9em;
}

.filter-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 20px;
    font-size: 1rem;
    font-weight: 600;
    color: #171717;
    cursor: pointer;
    background: white;
    transition: background-color 0.3s ease;
}

.filter-title:hover {
    background: #f8f9fa;
}

.filter-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.filter-toggle:hover {
    background: #e9ecef;
}

.filter-content {
    padding: 0 20px 20px;
    max-height: 400px;
    overflow-y: auto;
    transition: all 0.3s ease;
}

.filter-content.collapsed {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
}

/* Active Filters */
.active-filters {
    display: flex;
    align-content: center;
    align-items: center;
    gap: 10px;
}

.active-filters h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f1ff;
    color: #3246FF;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #b8daff;
}

.filter-chip-remove {
    background: none;
    border: none;
    color: #3246FF;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 0;
    margin-left: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-chip-remove:hover {
    background: #3246FF;
    color: white;
}

.clear-all-filters {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-all-filters:hover {
    background: #dc3545;
    color: white;
}

/* Category List */
.category-list,
.subcategory-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-item {
    margin-bottom: 8px;
}

.subcategory-list {
    margin-left: 20px;
    margin-top: 8px;
}

.category-label,
.subcategory-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.category-label:hover,
.subcategory-label:hover {
    color: #3246FF;
}

.category-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.3s ease;
}

.category-checkbox:checked {
    background: #3246FF;
    border-color: #3246FF;
}

.category-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.category-name,
.subcategory-name {
    flex: 1;
    font-weight: 500;
}

.product-count {
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 400;
}

/* Price Filter */
.price-range-slider {
    padding: 10px 0;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.price-input-group {
    position: relative;
}

.price-input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}

.price-input {
    width: 100%;
    padding: 10px 30px 10px 10px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.price-input:focus {
    outline: none;
    border-color: #3246FF;
    box-shadow: 0 0 0 3px rgba(50, 70, 255, 0.1);
}

.currency {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-weight: 500;
    margin-top: 12px;
}

.price-range {
    position: relative;
    height: 6px;
    background: #dee2e6;
    border-radius: 3px;
    margin: 20px 0;
}

.price-range-input {
    position: absolute;
    top: -8px;
    width: 100%;
    height: 20px;
    background: none;
    pointer-events: none;
    appearance: none;
    cursor: pointer;
}

.price-range-input::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3246FF;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-range-input::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3246FF;
    border-radius: 50%;
    cursor: pointer;
    pointer-events: auto;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.price-display {
    text-align: center;
    margin-top: 15px;
}

#price-range-display {
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    color: #495057;
    border: 1px solid #dee2e6;
}

/* Attributes Filter */
.attribute-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.attribute-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.attribute-label:hover {
    color: #3246FF;
}

.attribute-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.3s ease;
}

.attribute-checkbox:checked {
    background: #3246FF;
    border-color: #3246FF;
}

.attribute-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.attribute-name {
    flex: 1;
    font-weight: 500;
}

/* Rating Filter */
.rating-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-label:hover {
    color: #3246FF;
}

.rating-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.3s ease;
}

.rating-checkbox:checked {
    background: #3246FF;
    border-color: #3246FF;
}

.rating-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #dee2e6;
    font-size: 14px;
}

.star.filled {
    color: #ffc107;
}

.rating-text {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Stock Filter */
.stock-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stock-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.stock-label:hover {
    color: #3246FF;
}

.stock-checkbox {
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    appearance: none;
    transition: all 0.3s ease;
}

.stock-checkbox:checked {
    background: #3246FF;
    border-color: #3246FF;
}

.stock-checkbox:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.stock-name {
    font-weight: 500;
}

/* Shop Main Content */
.shop-main {
    min-width: 0;
}

/* Shop Toolbar */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.toolbar-left,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* View Toggle */
.view-toggle {
    display: flex;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    overflow: hidden;
}

.view-btn {
    background: white;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    border-right: 1px solid #dee2e6;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn:last-child {
    border-right: none;
}

.view-btn:hover {
    background: #f8f9fa;
}

.view-btn.active {
    background: #3246FF;
    color: white;
}

.grid-icon,
.list-icon {
    font-size: 16px;
}

/* Results Info */
.results-info {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Products Per Page */
.products-per-page {
    display: flex;
    align-items: center;
    gap: 8px;
}

.products-per-page label {
    font-size: 0.9rem;
    color: #495057;
    font-weight: 500;
}

.products-per-page-select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Sort By */
.sort-by select {
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
    backdrop-filter: blur(2px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #495057;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e9ecef;
    border-top: 3px solid #3246FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Products Wrapper */
.products-wrapper {
    position: relative;
    min-height: 400px;
    width: 100%;
}

/* WooCommerce Products Grid */
.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.woocommerce ul.products.list-view {
    grid-template-columns: 1fr;
    gap: 20px;
}

.woocommerce ul.products li.product {
    background: white;
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    transition: none;
    box-shadow: none !important;
}

.woocommerce ul.products li.product:hover {
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Ensure product-card variant also has no hover/border */
.woocommerce ul.products li.product-card,
.woocommerce ul.products li.product-card:hover {
    border: none !important;
    box-shadow: none !important;
    transform: none !important;
}

/* No Products Found */
.no-products-found {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e5e5e5;
}

.no-products-content h2 {
    margin: 0 0 15px 0;
    color: #495057;
    font-weight: 600;
}

.no-products-content p {
    color: #6c757d;
    margin: 0 0 25px 0;
}

.clear-filters-btn {
    background: #3246FF;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters-btn:hover {
    background: #2838e6;
    transform: translateY(-2px);
}

/* Shop Pagination */
.shop-pagination {
    margin-top: 40px;
    text-align: center;
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .shop-content {
        grid-template-columns: 260px 1fr;
        gap: 30px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 968px) {
    .shop-content {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mobile-filter-toggle {
        display: block;
    }

    .shop-sidebar {
        position: fixed;
        top: 0;
        left: -320px;
        width: 320px;
        height: 100%;
        z-index: 999;
        max-height: none;
        border-radius: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }

    .shop-sidebar.active {
        left: 0;
    }

    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        border-bottom: 2px solid #f3f4f6;
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10;
        gap: 12px;
    }

    .sidebar-close {
        display: flex;
    }

    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .toolbar-left,
    .toolbar-right {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .shop-archive-container {
        padding: 0 15px;
    }

    .shop-title {
        font-size: 2rem;
    }

    .shop-sidebar {
        width: 100%;
        left: -100%;
    }

    .price-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }

    .toolbar-left,
    .toolbar-right {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .filter-chips {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-chip {
        justify-content: space-between;
    }
}

.page-numbers li {
    display: inline-block;
    margin: 0 5px;
}
/* ==========================================================================
   MODERN PRODUCT CARDS
   ========================================================================== */

/* Product Card Base */
.woocommerce ul.products li.product-card {
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    
}

.woocommerce ul.products li.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3246FF;
}

.product-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Product Image */
.product-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
    border-radius: 0;
    aspect-ratio: 1;
}

.product-image-link {
    display: contents;
}

.product-card-inner .product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-wrapper img {
    
}
.related-products-wrap .related-products {
    width: 100%;
    padding: 40px 4%;
    display: flex;
    flex-direction: column;
    
}

.related-products-wrap .related-products ul.products {
    padding: 30px;
    gap: 3rem;
}

.related-products-heading {
    margin: 50px 0;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 10px;
}

/* Product Badges */
.product-badges {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.onsale {
    display: none;
}
.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}

.sale-badge {
    background: #fe01e5;
    color: white;
}

.out-of-stock-badge {
    background: #6c757d;
    color: white;
}

.featured-badge {
    background: #28a745;
    color: white;
}

/* Product Actions */
.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.action-btn:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.action-btn .icon {
    font-size: 16px;
    line-height: 1;
}

.quick-view-btn:hover {
    background: #3246FF;
    color: white;
}

.wishlist-btn:hover {
    background: #dc3545;
    color: white;
}

.wishlist-btn.active .icon::before {
    content: "❤️";
}

.add-to-cart-btn:hover {
    background: #28a745;
    color: white;
}

/* Product Info */
.product-info {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

/* Product Category */
.product-category {
    margin: 0;
}

.category-link {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.subcategory-tree {
    padding-bottom: 10px;
}


.subcategory-link {
    font-size: 0.9rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.category-link:hover {
    color: #3246FF;
}

/* Product Title */
.product-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    
}

.product-title a {
    color: #171717;
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #3246FF;
}

/* Product Rating */
.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.product-rating .star-rating {
    display: flex;
    gap: 2px;
}

.product-rating .star-rating .star {
    color: #ffc107;
    font-size: 14px;
}

.rating-count {
    font-size: 0.85rem;
    color: #6c757d;
}

/* Product Excerpt */
.product-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* Product Attributes */
.product-attributes {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.attribute {
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.4;
}

.attribute strong {
    color: #171717;
}

/* Product Price */
.product-price {
    margin: 0;
}

.product-price .price {
    font-size: 1rem;
    font-weight: 700;
    color: #fe01e5;
    margin: 0;
}

.product-price .price del {
    color: #fe01e5;
    font-size: 1rem;
    font-weight: 500;
    margin-right: 8px;
}

.product-price .price ins {
    color: #dc3545;
    text-decoration: none;
}

/* Stock Status */
.product-stock {
    margin: 0;
    display: none;
}

.in-stock {
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.out-of-stock {
    color: #dc3545;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-icon {
    font-size: 12px;
}

/* Add to Cart Button */
.product-cart {
    margin-top: auto;
}

.product-cart .button {
    width: 100%;
    padding: 12px 20px;
    background: #3246FF;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.product-cart .button:hover {
    background: #2838e6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 70, 255, 0.3);
}

.product-cart .button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* List View Styles */
.woocommerce ul.products.list-view li.product-card {
    border-radius: 12px;
}

.woocommerce ul.products.list-view .product-card-inner {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: center;
}

.woocommerce ul.products.list-view .product-image-wrapper {
    aspect-ratio: 1;
    max-width: 200px;
    border-radius: 8px;
}

.woocommerce ul.products.list-view .product-info {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 15px 20px;
    align-items: start;
}

.woocommerce ul.products.list-view .product-category,
.woocommerce ul.products.list-view .product-title,
.woocommerce ul.products.list-view .product-rating,
.woocommerce ul.products.list-view .product-excerpt {
    grid-column: 1;
}

.woocommerce ul.products.list-view .product-price,
.woocommerce ul.products.list-view .product-stock,
.woocommerce ul.products.list-view .product-cart {
    grid-column: 2;
    text-align: right;
}

.woocommerce ul.products.list-view .product-cart .button {
    width: auto;
    padding: 10px 20px;
    min-width: 140px;
}

/* Quick View Modal */
.quick-view-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.quick-view-modal.active {
    display: flex;
}

.quick-view-content {
    background: white;
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.quick-view-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 10;
}

.quick-view-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

/* Responsive Product Cards */
@media (max-width: 968px) {
    .woocommerce ul.products li.product-card {
        margin-bottom: 20px;
    }

    .product-info {
        padding: 15px;
        gap: 10px;
    }

    .product-actions {
        position: static;
        opacity: 1;
        transform: none;
        flex-direction: row;
        justify-content: center;
        padding: 15px;
        background: rgba(248, 249, 250, 0.9);
        margin: 0 -15px -15px;
    }

    .woocommerce ul.products.list-view .product-card-inner {
        grid-template-columns: 120px 1fr;
        gap: 15px;
    }

    .woocommerce ul.products.list-view .product-image-wrapper {
        max-width: 120px;
    }

    .woocommerce ul.products.list-view .product-info {
        padding: 15px;
        display: block;
    }

    .woocommerce ul.products.list-view .product-price,
    .woocommerce ul.products.list-view .product-stock,
    .woocommerce ul.products.list-view .product-cart {
        text-align: left;
        margin-top: 10px;
    }

    .quick-view-body {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
}

@media (max-width: 640px) {
    .product-badges {
        top: 8px;
        left: 8px;
    }

    .product-actions {
        gap: 6px;
    }

    .action-btn {
        width: 35px;
        height: 35px;
    }

    .product-info {
        padding: 12px;
        gap: 8px;
    }

    .product-title {
        font-size: 1rem;
    }

    .product-price .price {
        font-size: 1.1rem;
    }
}

/* Loading States */
.product-card.loading {
    pointer-events: none;
    opacity: 0.7;
}

.product-card.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.product-card.loading .product-image-wrapper {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Wishlist States */
.wishlist-btn.active {
    background: #dc3545 !important;
    color: white !important;
}

.wishlist-btn.active .icon::before {
    content: "❤️";
}

/* Cart Button States */
.add-to-cart-btn.loading {
    animation: pulse 1s ease-in-out infinite;
}

.add-to-cart-btn.added {
    background: #28a745 !important;
    color: white !important;
}

.add-to-cart-btn.added .icon::before {
    content: "✓";
} 

/* ====================================
   Single Product Layout (KR)
   ==================================== */
.kr-single-product .kr-product-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: start;
}

/* Remove any outer margins from the single product root */
.kr-single-product { margin: 0 !important; }

@media (max-width: 968px) {
    .kr-single-product .kr-product-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.kr-product-summary .price {
    font-size: 2rem;
    color: var(--color-accent);
    font-weight: 900;
    margin: 6px 0 20px;
}

/* Desktop spacing: extra room below price */
@media (min-width: 992px) {
    .kr-product-summary .price {
        margin-bottom: 50px;
    }
}

/* Heavier product title on single product */
.kr-product-summary .product_title {
    font-weight: 900;
    margin: 0 0 4px;
}

.kr-feature-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    margin: 24px 0 28px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 640px) {
    .kr-feature-cards { grid-template-columns: 1fr; }
}

.kr-feature-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 18px;
    font-size: 14px;
}

/* Table-like separators */
.kr-single-product .kr-feature-cards .kr-feature-card { border-bottom: 1px solid #e5e5e5 !important; }
.kr-single-product .kr-feature-cards .kr-feature-card:nth-child(odd) { border-right: 1px solid #e5e5e5 !important; }
.kr-single-product .kr-feature-cards .kr-feature-card:nth-last-child(-n+2) { border-bottom: none !important; }

.kr-feature-icon { font-size: 20px; }

/* Inline SVG icons styling for defaults */
/* Support both line-icons and solid icons */
.kr-feature-icon--svg svg {
    width: 22px;
    height: 22px;
}
.kr-feature-icon--svg svg.e-font-icon-svg {
    fill: #111827;
    stroke: none;
}
.kr-feature-icon--svg svg:not(.e-font-icon-svg) {
    stroke: #111827;
    fill: none;
    stroke-width: 2;
}

.kr-feature-text { color: #111827; font-weight: 600; text-align: center; }
.kr-feature-sub { color: #6b7280; display: block; margin-left: 0; text-align: center; font-size: 14px; }

/* Breadcrumbs below product title */
.kr-breadcrumbs-under-title { margin-bottom: 8px; }
.kr-breadcrumbs-under-title .woocommerce-breadcrumb {
    font-size: 14px;
    color: #6b7280;
}

.kr-sales-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 16px 0 24px;
    padding: 12px 14px;
    background: #f6f8ff;
    border: 1px solid #dfe6ff;
    border-radius: 10px;
    color: #334155;
}

.kr-product-extra { margin-top: 32px; }

/* Fullwidth container for single product only */
.kr-single-fullwidth {
    max-width: none;
    width: 100vw;
    padding: 0 40px;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (max-width: 768px) {
    .kr-single-fullwidth { padding: 0 16px; }
}

/* Disable hover effects on single product page */
body.single-product .product-card:hover,
body.single-product .woocommerce .product:hover,
body.single-product .product-item:hover,
body.single-product .showcase-product-item:hover {
    transform: none !important;
    box-shadow: var(--shadow-sm) !important;
    border-color: #e5e5e5 !important;
}

/* Preserve archive/product-card hovers as-is */
body.archive .product-card:hover,
body.tax-product_cat .product-card:hover,
body.post-type-archive-product .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3246FF;
}

/* Product card padding overrides */
.woocommerce ul.products li.product { padding: 0; }
.woocommerce ul.products.list-view .product-info { padding: 0 !important; }

.kr-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
}

.kr-qty input.qty {
    width: 70px;
    text-align: center;
    border: none;
    padding: 10px 6px;
    outline: none;
}

.kr-qty-btn {
    background: #f5f6f8;
    border: none;
    width: 36px;
    height: 38px;
    font-size: 18px;
    cursor: pointer;
}

.kr-qty-btn:hover { background: #eceff3; }

/* ====================================
   Overrides: Remove container borders & hover effects
   ==================================== */
/* Product grid/list containers */
.woocommerce ul.products li.product,
.woocommerce .product {
    border: none !important;
    box-shadow: none !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce .product:hover,
.product-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

/* Feature icon cards on single product */
.kr-feature-card {
    border: none !important;
    box-shadow: none !important;
}

/* Inline Additional information alignment under summary */
.kr-additional-info-inline {
    margin: 16px 0 0;
}
.kr-additional-info-inline table.shop_attributes {
    width: 100%;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}
.kr-additional-info-inline table.shop_attributes th,
.kr-additional-info-inline table.shop_attributes td {
    padding: 10px 14px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
}
.kr-additional-info-inline table.shop_attributes tr:last-child th,
.kr-additional-info-inline table.shop_attributes tr:last-child td {
    border-bottom: none;
}

@media (min-width: 992px) {
    .kr-additional-info-inline { margin-top: 100px; }
}

/* Summary dropdowns (Shipping & Contact) style to match accordions) */
.kr-summary-dropdowns { margin-top: 12px; }
.kr-summary-dropdowns details.kr-accordion {
    margin: 0;
}
.kr-summary-dropdowns details.kr-accordion summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 36px 18px 0;
    position: relative;
    font-weight: 700;
    border-bottom: 1px solid #e5e5e5;
}
.kr-summary-dropdowns details.kr-accordion summary::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    transform: translateY(-50%) rotate(-45deg);
    transition: transform 150ms ease;
}
.kr-summary-dropdowns details.kr-accordion[open] summary::after {
    transform: translateY(-50%) rotate(135deg);
}
.kr-summary-dropdowns .kr-accordion-panel { padding: 14px 0; font-size: 14px; }
.kr-summary-dropdowns .kr-accordion-panel .kr-product-meta {
    margin-top: 16px;
}
.kr-summary-dropdowns .kr-accordion-panel .kr-meta-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 0;
    padding: 10px 0;
    border-top: 1px solid #e5e5e5;
    align-items: baseline;
}
.kr-summary-dropdowns .kr-accordion-panel .kr-meta-row:first-child { border-top: none; }
.kr-summary-dropdowns .kr-accordion-panel .kr-meta-row dt { font-weight: 600; color: #111827; font-size: 14px; padding-left: 14px; }
.kr-summary-dropdowns .kr-accordion-panel .kr-meta-row dd { margin: 0; color: #374151; font-size: 14px; padding-left: 14px; }
.kr-summary-dropdowns .kr-accordion-panel .kr-meta-row a { color: #3246FF; text-decoration: none; }
.kr-summary-dropdowns .kr-accordion-panel .kr-meta-row a:hover { text-decoration: underline; }

/* Normalize Additional information table inside dropdown */
.kr-summary-dropdowns .kr-accordion-panel table.shop_attributes {
    width: 100%;
    border: none;
    border-radius: 0;
    border-collapse: collapse;
}
.kr-summary-dropdowns .kr-accordion-panel table.shop_attributes th,
.kr-summary-dropdowns .kr-accordion-panel table.shop_attributes td {
    padding: 10px 14px;
    font-size: 14px;
    border: none;
}
.kr-summary-dropdowns .kr-accordion-panel table.shop_attributes th {
    width: 120px;
    font-weight: 600;
    color: #111827;
}
.kr-summary-dropdowns .kr-accordion-panel table.shop_attributes td { color: #374151; }
.kr-summary-dropdowns .kr-accordion-panel table.shop_attributes td a { color: #3246FF; text-decoration: none; }
.kr-summary-dropdowns .kr-accordion-panel table.shop_attributes td a:hover { text-decoration: underline; }
.kr-summary-dropdowns .kr-accordion-panel table.shop_attributes tr + tr th,
.kr-summary-dropdowns .kr-accordion-panel table.shop_attributes tr + tr td {
    border-top: 1px solid #e5e5e5;
}

/* Target WooCommerce attribute table classes to mirror meta table styles */
.kr-summary-dropdowns .kr-accordion-panel table.woocommerce-product-attributes.shop_attributes { border: none; border-collapse: collapse; }
.kr-summary-dropdowns .kr-accordion-panel .woocommerce-product-attributes-item__label {
    width: 120px;
    font-weight: 600;
    color: #111827;
    font-size: 14px;
    padding: 10px 14px;
}
.kr-summary-dropdowns .kr-accordion-panel .woocommerce-product-attributes-item__value {
    font-size: 14px;
    color: #374151;
    padding: 10px 14px;
}
.kr-summary-dropdowns .kr-accordion-panel .woocommerce-product-attributes-item + .woocommerce-product-attributes-item .woocommerce-product-attributes-item__label,
.kr-summary-dropdowns .kr-accordion-panel .woocommerce-product-attributes-item + .woocommerce-product-attributes-item .woocommerce-product-attributes-item__value { border-top: 1px solid #e5e5e5; }

/* Fine-tune specific attribute rows */
.kr-summary-dropdowns .kr-accordion-panel .woocommerce-product-attributes-item--weight .woocommerce-product-attributes-item__value {
    padding-left: 0;
}

.kr-summary-dropdowns .kr-accordion-panel .woocommerce-product-attributes-item--dimensions .woocommerce-product-attributes-item__label,
.kr-summary-dropdowns .kr-accordion-panel .woocommerce-product-attributes-item--dimensions .woocommerce-product-attributes-item__value {
    border-bottom: 1px solid #e5e5e5;
}

/* Organized product meta */
.kr-product-meta { margin-top: 16px; }
.kr-meta-list { margin: 0; }
.kr-meta-row { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid #e5e5e5; }
.kr-meta-row:first-child { border-top: none; }
.kr-meta-row dt { font-weight: 600; color: #111827; font-size: 14px; }
.kr-meta-row dd { margin: 0; color: #374151; font-size: 14px; }
.kr-meta-row a { color: #3246FF; text-decoration: none; }
.kr-meta-row a:hover { text-decoration: underline; }

/* Product gallery: large image + thumbnails below */
.kr-single-product .woocommerce-product-gallery {
    position: relative;
    max-width: 520px;
}
.kr-single-product .woocommerce-product-gallery__wrapper {
    display: block;
}
.kr-single-product .flex-control-thumbs,
.kr-single-product .woocommerce-product-gallery .thumbnails {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-rows: 80px;
    gap: 10px;
    margin-top: 14px;
}
.kr-single-product .flex-control-thumbs li { list-style: none; height: 80px; overflow: hidden; }
.kr-single-product .flex-control-thumbs img {
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 640px) {
    .kr-single-product .flex-control-thumbs,
    .kr-single-product .woocommerce-product-gallery .thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 64px;
    }
    .kr-single-product .flex-control-thumbs li { height: 64px; }
}

/* ====================================
   Single product: align quantity and add-to-cart horizontally
   ==================================== */
.kr-product-summary form.cart {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 64px;
}

/* Related products section spacing */
.kr-related-section {
    margin-top: 40px;
    padding: 0 40px 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}
.kr-related-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 16px;
}

/* Related products: full-width flex layout (4 x 3) */
.kr-related-section .related ul.products {
    display: flex !important;
    flex-wrap: wrap;
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Remove ID-based selectors; rely on class selectors above */

.kr-related-section .related ul.products li.product {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 14px;
    flex: 0 0 25%;
    max-width: 25%;
}

.kr-related-section .related ul.products li.product a.woocommerce-LoopProduct-link {
    display: block;
}

.kr-related-section .related ul.products li.product img {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin: 0 0 12px;
}

.kr-related-section .related ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 8px;
    color: #171717;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.8em;
}

.kr-related-section .related ul.products li.product .price {
    margin: 0 0 10px;
    font-weight: 700;
    color: #171717;
}

/* Simplify related cards: hide extra meta for tight, equal layout */
.kr-related-section .related ul.products li.product .product-category,
.kr-related-section .related ul.products li.product .product-excerpt,
.kr-related-section .related ul.products li.product .product-attributes,
.kr-related-section .related ul.products li.product .product-stock { display: none !important; }

.kr-related-section .related ul.products li.product a.button,
.kr-related-section .related ul.products li.product button.button {
    margin-top: auto;
    width: 100%;
    border-radius: 8px;
}

@media (max-width: 1200px) {
    .kr-related-section .related ul.products li.product { flex-basis: 33.3333%; max-width: 33.3333%; }
}
@media (max-width: 768px) {
    .kr-related-section .related ul.products { padding: 0 16px 24px; }
    .kr-related-section .related ul.products li.product { flex-basis: 50%; max-width: 50%; }
}
@media (max-width: 480px) {
    .kr-related-section .related ul.products li.product { flex-basis: 100%; max-width: 100%; }
}

.kr-product-summary form.cart .quantity { margin: 0; }

.kr-product-summary form.cart .single_add_to_cart_button {
    flex: 1 1 auto;
    height: 48px;
    border-radius: 10px;
}

.kr-qty { height: 48px; }
.kr-qty input.qty { height: 48px; }
.kr-qty-btn { height: 48px; }

@media (max-width: 480px) {
    .kr-product-summary form.cart {
        flex-direction: column;
        align-items: stretch;
    }
    .kr-product-summary form.cart .single_add_to_cart_button { width: 100%; }
}

/* Search Autocomplete */
.kr-search-wrap { position: relative; }
.kr-search-dropdown-wrap { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 9999; }
.kr-search-dropdown { background:#fff; border:1px solid #e5e7eb; border-radius:10px; margin-top:6px; box-shadow:0 8px 24px rgba(0,0,0,0.12); overflow:hidden; }
.kr-search-item { display:flex; gap:10px; align-items:center; padding:10px 12px; text-decoration:none; color:#111; }
.kr-search-item:hover { background:#f3f4f6; }
.kr-search-thumb { width:44px; height:44px; object-fit:cover; border-radius:6px; background:#f8fafc; }
.kr-search-title { font-size:0.95rem; line-height:1.2; }
.kr-search-price { font-size:0.85rem; color:#374151; }
.kr-search-empty { padding:12px; color:#6b7280; font-size:0.9rem; }

/* Workshop page sections */
.kr-ws-section { margin: 40px 0 60px; }
.kr-ws-grid { display:grid; grid-template-columns: 1.2fr 1fr; gap:40px; align-items:center; }
.kr-ws-section.img-left .kr-ws-grid { grid-template-columns: 1fr 1.2fr; }
.kr-ws-section.img-left .kr-ws-content { order: 2; }
.kr-ws-section.img-left .kr-ws-image { order: 1; }
.kr-ws-title { font-size: var(--fs-h2); line-height: var(--lh-heading); margin: 0 0 16px; }
.kr-ws-text { color:#1f2937; font-size:1.05rem; }
.kr-ws-img { width:100%; height:auto; border-radius:14px; box-shadow:0 10px 30px rgba(0,0,0,0.15); }

@media (max-width: 1024px){
  .kr-ws-grid { grid-template-columns: 1fr; }
  .kr-ws-section.img-left .kr-ws-content { order: 2; }
  .kr-ws-section.img-left .kr-ws-image { order: 1; }
}

/* Features banner */
.kr-ws-features { position: relative; background-size: cover; background-position: center; border-radius: 24px; overflow: hidden; margin: 40px 0 60px; }
.kr-ws-features-overlay { position:absolute; inset:0; }
.kr-ws-features-inner { position: relative; z-index: 1; padding: 48px 28px; color: #fff; text-align: center; }
.kr-ws-features-title { font-size: var(--fs-h1); margin: 0 0 24px; font-weight: 800; }
.kr-ws-features-grid { display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; max-width: 1200px; margin: 0 auto; list-style: none !important; padding: 0 !important; }
.kr-ws-feature { padding: 8px 16px; list-style: none !important; }
.kr-ws-feature-link { display: block; text-decoration: none; color: inherit; transition: transform 0.3s ease, opacity 0.3s ease; }
.kr-ws-feature-link:hover { transform: translateY(-4px); opacity: 0.9; }
.material-symbols-outlined { font-size: 60px !important; }
.kr-ws-feature-icon { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 48; font-size: 60px !important; display:block; margin: 10px auto 12px; }
.kr-ws-feature-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 10px; color: #fff; }
.kr-ws-feature-text { font-size: 1rem; line-height: 1.6; opacity: .95; }
.kr-ws-features-cta { margin-top: 28px; }
.kr-ws-btn { display:inline-block; padding: 14px 26px; background: #ff2eb0; color:#fff; border-radius: 60px; text-decoration:none; font-weight: 800; box-shadow: 0 8px 24px rgba(255,46,176,.35); }
.kr-ws-btn:hover { background:#ff4bc0; }

@media (max-width: 1024px){
  .kr-ws-features-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .kr-ws-features-grid { grid-template-columns: 1fr; }
  .kr-ws-feature-icon { font-size: 50px !important; }
}

/* Why Choose Our Workshop Section */
.kr-ws-why-choose { margin: 60px 0; background: #f9fafb; border-radius: 20px; padding: 60px 28px; }
.kr-ws-why-choose-content { max-width: 1200px; margin: 0 auto; }
.kr-ws-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.kr-ws-why-left { }
.kr-ws-why-image { width: 100%; height: auto; border-radius: 14px; display: block; }
.kr-ws-why-right { display: flex; flex-direction: column; gap: 40px; }
.kr-ws-why-content { }
.kr-ws-why-title { font-size: var(--fs-h2); line-height: var(--lh-heading); margin: 0 0 32px; font-weight: 800; }
.kr-ws-why-benefits { font-size: 1.05rem; line-height: 1.6; color: #1f2937; }
.kr-ws-why-benefits ul { list-style: none !important; list-style-type: none !important; padding: 0 !important; margin: 0 !important; }
.kr-ws-why-benefits ol { list-style: none !important; list-style-type: none !important; padding: 0 !important; margin: 0 !important; }
.kr-ws-why-benefits li { padding: 6px 0 !important; margin: 0 !important; list-style: none !important; list-style-type: none !important; }
.kr-ws-why-benefits li::before { content: none !important; display: none !important; }
.kr-ws-why-benefits li::marker { content: none !important; display: none !important; }
.kr-ws-why-benefits p { margin: 0 0 10px; }
.kr-ws-why-benefits strong { font-weight: 700; }
.kr-ws-why-benefits em { font-style: italic; }

/* Additional WYSIWYG cleanup */
.kr-ws-why-benefits *::before { content: none !important; }
.kr-ws-why-benefits ul li, .kr-ws-why-benefits ol li { margin-left: 0 !important; padding-left: 0 !important; }
.kr-ws-contact-section { }
.kr-ws-why-contact-title { font-size: 1.75rem; margin: 0 0 28px; font-weight: 800; }
.kr-ws-contact-info { display: flex; flex-direction: column; gap: 20px; }
.kr-ws-contact-item { display: flex; align-items: center; gap: 16px; }
.kr-ws-contact-icon { width: 24px; height: 24px; flex-shrink: 0; color: #ff2eb0; }
.kr-ws-contact-item a, .kr-ws-contact-item span { font-size: 1.05rem; line-height: 1.6; color: #1f2937; text-decoration: none; }
.kr-ws-contact-item a:hover { color: #ff2eb0; text-decoration: underline; }

@media (max-width: 768px) {
  .kr-ws-why-choose { padding: 40px 20px; margin: 40px 0; }
  .kr-ws-why-grid { grid-template-columns: 1fr; gap: 40px; }
  .kr-ws-why-title { font-size: 1.5rem; margin-bottom: 24px; }
  .kr-ws-why-right { gap: 30px; }
}

/* Services Button List Section - Workshop */
.kr-ws-services-section { margin: 60px 0; }
.kr-ws-services-content { max-width: 1200px; margin: 0 auto; }
.kr-ws-services-title { font-size: var(--fs-h2); line-height: var(--lh-heading); margin: 0 0 40px; font-weight: 800; text-align: center; }
.kr-ws-services-buttons { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.kr-ws-service-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 32px; background: #3b50d6; color: #fff; border-radius: 60px; text-decoration: none; font-weight: 700; font-size: 14px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(59, 80, 214, 0.3); }
.kr-ws-service-btn:hover { background: #2a3ec4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 80, 214, 0.4); }
.kr-ws-service-btn svg { width: 20px; height: 20px; stroke: currentColor; transition: transform 0.3s ease; }
.kr-ws-service-btn:hover svg { transform: translateX(4px); }

@media (max-width: 768px) {
  .kr-ws-services-section { margin: 40px 0; }
  .kr-ws-services-title { font-size: 1.5rem; margin-bottom: 30px; }
  .kr-ws-services-buttons { gap: 12px; }
  .kr-ws-service-btn { padding: 12px 24px; font-size: 12px; }
}

/* Services Button List Section - Service Pages */
.kr-service-buttons-section { margin: 60px 0; padding: 0 28px; }
.kr-service-buttons-content { max-width: 1200px; margin: 0 auto; }
.kr-service-buttons-title { font-size: var(--fs-h2); line-height: var(--lh-heading); margin: 0 0 40px; font-weight: 800; text-align: center; }
.kr-service-buttons-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.kr-service-buttons-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 32px; background: #3b50d6; color: #fff; border-radius: 60px; text-decoration: none; font-weight: 700; font-size: 14px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(59, 80, 214, 0.3); }
.kr-service-buttons-btn:hover { background: #2a3ec4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 80, 214, 0.4); }
.kr-service-buttons-btn svg { width: 20px; height: 20px; stroke: currentColor; transition: transform 0.3s ease; }
.kr-service-buttons-btn:hover svg { transform: translateX(4px); }

@media (max-width: 768px) {
  .kr-service-buttons-section { margin: 40px 0; padding: 0 20px; }
  .kr-service-buttons-title { font-size: 1.5rem; margin-bottom: 30px; }
  .kr-service-buttons-grid { gap: 12px; }
  .kr-service-buttons-btn { padding: 12px 24px; font-size: 12px; }
}

/* Service Page Sections */
.kr-service-page { padding: 40px 28px; }
.kr-service-section { margin: 60px 0; }
.kr-service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; max-width: 1200px; margin: 0 auto; }
.kr-service-section.image-left .kr-service-grid { grid-template-columns: 1fr 1fr; }
.kr-service-section.image-left .kr-service-image { order: -1; }
.kr-service-section.image-right .kr-service-grid { grid-template-columns: 1fr 1fr; }
.kr-service-col { }
.kr-service-content { }
.kr-service-title { font-size: var(--fs-h2); line-height: var(--lh-heading); margin: 0 0 24px; font-weight: 800; color: #1f2937; }
.kr-service-text { font-size: 1.05rem; line-height: 1.7; color: #4b5563; }
.kr-service-text p { margin: 0 0 16px; }
.kr-service-text strong { font-weight: 700; color: #1f2937; }
.kr-service-text em { font-style: italic; }
.kr-service-text ul, .kr-service-text ol { margin: 16px 0; padding-left: 24px; }
.kr-service-text li { margin: 8px 0; }
.kr-service-image { }
.kr-service-figure { margin: 0; overflow: hidden; border-radius: 16px; }
.kr-service-img { width: 100%; height: auto; display: block; border-radius: 16px; }
.kr-service-btn-wrapper { margin-top: 24px; }
.kr-service-btn { display: inline-block; padding: 14px 28px; background: #3b50d6; color: #fff; border-radius: 60px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(59, 80, 214, 0.3); }
.kr-service-btn:hover { background: #2a3ec4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 80, 214, 0.4); text-decoration: none; color: #fff; }

/* Full Width Center Section */
.kr-service-fw-section { width: 100vw; margin-left: calc(-50vw + 50%); padding: 80px 28px; text-align: center; }
.kr-service-fw-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; align-items: center; }
.kr-service-fw-content-wrapper { max-width: 700px; }
.kr-service-fw-title { font-size: var(--fs-h2); line-height: var(--lh-heading); margin: 0 0 24px; font-weight: 800; }
.kr-service-fw-text { font-size: 1.05rem; line-height: 1.7; }
.kr-service-fw-text p { margin: 0 0 16px; }
.kr-service-fw-text strong { font-weight: 700; }
.kr-service-fw-text em { font-style: italic; }
.kr-service-fw-text ul, .kr-service-fw-text ol { margin: 16px auto; padding-left: 24px; display: inline-block; text-align: left; }
.kr-service-fw-text li { margin: 8px 0; }

/* Light background text */
.kr-service-fw-section.light-bg { color: #1f2937; }
.kr-service-fw-section.light-bg .kr-service-fw-title { color: #1f2937; }
.kr-service-fw-section.light-bg .kr-service-fw-text { color: #4b5563; }
.kr-service-fw-section.light-bg .kr-service-fw-text strong { color: #1f2937; }

/* Dark background text */
.kr-service-fw-section.dark-bg { color: #fff; }
.kr-service-fw-section.dark-bg .kr-service-fw-title { color: #fff; }
.kr-service-fw-section.dark-bg .kr-service-fw-text { color: rgba(255, 255, 255, 0.95); }
.kr-service-fw-section.dark-bg .kr-service-fw-text strong { color: #fff; }

.kr-service-fw-btn-wrapper { margin-top: 32px; }
.kr-service-fw-btn { display: inline-block; padding: 14px 36px; color: #fff; border-radius: 60px; text-decoration: none; font-weight: 700; font-size: 1rem; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(59, 80, 214, 0.3); }
.kr-service-fw-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 80, 214, 0.4); text-decoration: none; color: #fff; }

.kr-service-fw-image-wrapper { max-width: 900px; width: 100%; }
.kr-service-fw-figure { margin: 0; overflow: hidden; border-radius: 16px; }
.kr-service-fw-img { width: 100%; height: auto; display: block; border-radius: 16px; }

@media (max-width: 768px) {
  .kr-service-page { padding: 24px 20px; }
  .kr-service-section { margin: 40px 0; }
  .kr-service-grid { grid-template-columns: 1fr; gap: 40px; }
  .kr-service-section.image-left .kr-service-image { order: 0; }
  .kr-service-title { font-size: 1.5rem; margin-bottom: 16px; }
  .kr-service-text { font-size: 1rem; }
  .kr-service-btn { padding: 12px 24px; font-size: 0.95rem; }
  
  .kr-service-fw-section { padding: 60px 20px; }
  .kr-service-fw-inner { gap: 40px; }
  .kr-service-fw-title { font-size: 1.5rem; margin-bottom: 16px; }
  .kr-service-fw-text { font-size: 1rem; }
  .kr-service-fw-image-wrapper { max-width: 100%; }
}

/* Contact Page */
.kr-contact-page { padding: 60px 28px; }
.kr-contact-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; margin-bottom: 60px; }
.kr-contact-page-title { font-size: var(--fs-h1); line-height: var(--lh-heading); margin-bottom: 40px; font-weight: 800; color: #1f2937; }
.kr-contact-info { }
.kr-contact-details { }
.kr-contact-details h2 { font-size: 1.5rem; font-weight: 700; margin: 0 0 30px; color: #1f2937; }
.kr-contact-item { margin-bottom: 24px; font-size: 1.05rem; line-height: 1.6; color: #4b5563; }
.kr-contact-item a { color: #3b50d6; text-decoration: none; font-weight: 500; }
.kr-contact-item a:hover { text-decoration: underline; }
.kr-contact-item p { margin: 0; }
.kr-contact-item strong { color: #1f2937; }

.kr-contact-form-wrapper { }
.kr-contact-form-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 30px; color: #1f2937; }

.kr-contact-form { }
.kr-form-message { padding: 16px; border-radius: 8px; margin-bottom: 20px; font-size: 1rem; }
.kr-form-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.kr-form-error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

.kr-contact-form-fields { }
.kr-form-group { margin-bottom: 20px; }
.kr-contact-form input[type="text"],
.kr-contact-form input[type="email"],
.kr-contact-form textarea { width: 100%; padding: 14px 16px; border: 1px solid #e5e7eb; border-radius: 8px; font-size: 1rem; font-family: inherit; transition: all 0.3s ease; box-sizing: border-box; }
.kr-contact-form input[type="text"]:focus,
.kr-contact-form input[type="email"]:focus,
.kr-contact-form textarea:focus { outline: none; border-color: #3b50d6; box-shadow: 0 0 0 3px rgba(59, 80, 214, 0.1); }
.kr-contact-form textarea { resize: vertical; min-height: 150px; }
.kr-contact-submit-btn { background: #3b50d6; color: #fff; padding: 14px 36px; border: none; border-radius: 60px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(59, 80, 214, 0.3); }
.kr-contact-submit-btn:hover { background: #2a3ec4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 80, 214, 0.4); }

.kr-contact-map-section { margin-top: 60px; border-radius: 16px; overflow: hidden; }
.kr-contact-map-section iframe { border-radius: 16px; }

/* Cart Page */
.kr-cart-page { padding: 60px 28px; background: #f9fafb; min-height: calc(100vh - 400px); }
.kr-cart-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 380px; gap: 60px; }
.kr-cart-title { font-size: 2rem; font-weight: 800; margin-bottom: 40px; color: #1f2937; }

/* Cart Items Section */
.kr-cart-items-section { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.kr-cart-empty { text-align: center; padding: 60px 40px; }
.kr-cart-empty p { font-size: 1.1rem; color: #6b7280; margin-bottom: 20px; }
.kr-continue-shopping-btn { display: inline-block; background: #3b50d6; color: #fff; padding: 14px 28px; border-radius: 60px; text-decoration: none; font-weight: 700; transition: all 0.3s ease; }
.kr-continue-shopping-btn:hover { background: #2a3ec4; transform: translateY(-2px); }

/* Cart Table */
.kr-cart-table-wrapper { overflow-x: auto; }
.kr-cart-table { width: 100%; border-collapse: collapse; }
.kr-cart-table thead { background: #f3f4f6; border-bottom: 2px solid #e5e7eb; }
.kr-cart-table th { padding: 16px; text-align: left; font-weight: 700; color: #1f2937; font-size: 0.95rem; }
.kr-cart-col-remove { width: 50px; }
.kr-cart-col-product { width: 45%; }
.kr-cart-col-price { width: 12%; }
.kr-cart-col-quantity { width: 15%; }
.kr-cart-col-subtotal { width: 15%; text-align: right; }

.kr-cart-item { border-bottom: 1px solid #e5e7eb; transition: background 0.2s ease; }
.kr-cart-item:hover { background: #f9fafb; }
.kr-cart-item td { padding: 20px 16px; vertical-align: middle; }

.kr-remove-item { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: #fee2e2; color: #991b1b; border-radius: 50%; text-decoration: none; font-size: 1.5rem; line-height: 1; transition: all 0.3s ease; }
.kr-remove-item:hover { background: #fca5a5; transform: scale(1.1); }

.kr-cart-product-info { display: flex; gap: 16px; align-items: flex-start; }
.kr-cart-product-image { display: block; width: 80px; height: 80px; border-radius: 8px; overflow: hidden; }
.kr-cart-product-image img { width: 100%; height: 100%; object-fit: cover; }
.kr-product-details { flex: 1; }
.kr-product-name { display: block; color: #3b50d6; text-decoration: none; font-weight: 600; margin-bottom: 8px; transition: color 0.3s ease; }
.kr-product-name:hover { color: #2a3ec4; }
.kr-product-details small { display: block; color: #9ca3af; font-size: 0.9rem; margin-top: 4px; }

.kr-cart-col-price, .kr-cart-col-subtotal { font-weight: 600; color: #1f2937; }

/* Quantity Input */
.quantity { display: flex; align-items: center; gap: 8px; }
.quantity input { width: 60px; padding: 8px; border: 1px solid #e5e7eb; border-radius: 6px; text-align: center; font-size: 1rem; }
.quantity button { padding: 6px 10px; background: #e5e7eb; border: 1px solid #d1d5db; border-radius: 4px; cursor: pointer; transition: all 0.3s ease; }
.quantity button:hover { background: #d1d5db; }

/* Cart Actions */
.kr-cart-actions-row { background: #f3f4f6; }
.kr-cart-actions { padding: 20px 16px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.kr-coupon-section { display: flex; gap: 12px; flex: 1; min-width: 300px; }
.kr-coupon-input { flex: 1; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 6px; font-size: 1rem; }
.kr-coupon-btn { background: #6b7280; color: #fff; padding: 12px 20px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.kr-coupon-btn:hover { background: #4b5563; }
.kr-update-cart-btn { background: #3b50d6; color: #fff; padding: 12px 24px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.kr-update-cart-btn:hover { background: #2a3ec4; }

/* Cart Summary Section */
.kr-cart-summary-section { background: #fff; border-radius: 12px; padding: 40px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); height: fit-content; position: sticky; top: 100px; }
.kr-cart-summary { }

/* WooCommerce Cart Totals Styling */
.woocommerce-cart-totals table { width: 100%; }
.cart-totals table tr { border-bottom: 1px solid #e5e7eb; }
.cart-totals th, .cart-totals td { padding: 12px 0; }
.cart-totals th { text-align: left; font-weight: 600; color: #1f2937; }
.cart-totals td { text-align: right; color: #4b5563; }
.cart-totals .woocommerce-Price-amount { font-weight: 700; color: #1f2937; }

.woocommerce-shipping-totals { margin: 20px 0; }
.woocommerce-shipping-totals th { text-align: left; }

.order-total { font-size: 1.3rem !important; background: #f3f4f6; padding: 16px 0 !important; }
.order-total th { font-weight: 800; color: #1f2937; }
.order-total td { font-weight: 800; color: #3b50d6; }

.woocommerce-cart-totals .wc-proceed-to-checkout { margin-top: 24px; }
.wc-proceed-to-checkout a { display: block; background: #3b50d6 !important; color: #fff !important; padding: 16px !important; text-align: center; border-radius: 60px; font-weight: 700; transition: all 0.3s ease; text-decoration: none !important; }
.wc-proceed-to-checkout a:hover { background: #2a3ec4 !important; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 80, 214, 0.4); }

@media (max-width: 768px) {
  .kr-cart-page { padding: 40px 20px; }
  .kr-cart-container { grid-template-columns: 1fr; gap: 40px; }
  .kr-cart-items-section { padding: 24px; }
  .kr-cart-summary-section { position: static; padding: 24px; }
  .kr-cart-title { font-size: 1.8rem; margin-bottom: 24px; }
  
  .kr-cart-table { font-size: 0.9rem; }
  .kr-cart-table th { padding: 12px 8px; font-size: 0.85rem; }
  .kr-cart-item td { padding: 16px 8px; }
  .kr-cart-col-product { width: 50%; }
  .kr-cart-col-price { width: 15%; }
  .kr-cart-col-quantity { width: 18%; }
  .kr-cart-col-subtotal { width: 17%; }
  
  .kr-cart-product-info { flex-direction: column; gap: 8px; }
  .kr-cart-product-image { width: 100%; height: 200px; }
  
  .kr-cart-actions { flex-direction: column; gap: 12px; }
  .kr-coupon-section { min-width: 100%; }
  .kr-update-cart-btn { width: 100%; }
}

@media (max-width: 480px) {
  .kr-cart-page { padding: 24px 16px; }
  .kr-cart-items-section { padding: 16px; }
  .kr-cart-summary-section { padding: 16px; }
  .kr-cart-title { font-size: 1.5rem; }
  
  .kr-cart-col-product { width: 60%; }
  .kr-cart-col-price { display: none; }
  .kr-cart-col-quantity { display: none; }
  .kr-cart-col-subtotal { width: 40%; }
}

@media (max-width: 768px) {
  .kr-contact-page { padding: 40px 20px; }
  .kr-contact-container { grid-template-columns: 1fr; gap: 40px; margin-bottom: 40px; }
  .kr-contact-page-title { font-size: 1.8rem; margin-bottom: 30px; }
  .kr-contact-details h2 { font-size: 1.3rem; margin-bottom: 20px; }
  .kr-contact-item { margin-bottom: 20px; font-size: 1rem; }
  .kr-contact-form-title { font-size: 1.3rem; }
  .kr-contact-form input[type="text"],
  .kr-contact-form input[type="email"],
  .kr-contact-form textarea { padding: 12px 14px; font-size: 0.95rem; }
  .kr-contact-submit-btn { padding: 12px 28px; font-size: 0.95rem; }
  .kr-contact-map-section { margin-top: 40px; }
  .kr-contact-map-section iframe { height: 400px; }
}