/* =========================================================
   MODERN LAYOUT - OKA-inspired vibrant clean design
   Overrides default layout when layout=modern in settings
   ========================================================= */

/* ---- CSS Variables ---- */
:root {
    --modern-gradient: linear-gradient(135deg, #ff006e, #ff7eb3, #8338ec, #3a86ff);
    --modern-accent: #ff006e;
    --modern-accent2: #8338ec;
    --modern-dark: #1a1a2e;
    --modern-card-bg: #ffffff;
    --modern-text: #1a1a2e;
    --modern-text-light: #64748b;
    --modern-radius: 20px;
    --modern-shadow: 0 8px 32px rgba(0,0,0,0.08);
    --modern-shadow-hover: 0 16px 48px rgba(0,0,0,0.15);
}

/* ---- Override body ---- */
body.layout-modern {
    font-family: 'Outfit', 'Inter', sans-serif;
    background: #fafafa;
    color: var(--modern-text);
}

/* ---- NAVBAR ---- */
body.layout-modern .navbar {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 0;
    box-shadow: none;
}
body.layout-modern .navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
body.layout-modern .nav-container {
    max-width: 1400px;
}
body.layout-modern .logo-icon {
    background: var(--modern-gradient);
    color: #fff;
    border-radius: 12px;
    font-weight: 800;
}
body.layout-modern .logo-text {
    color: var(--modern-text);
    font-weight: 700;
}
body.layout-modern .nav-link {
    color: var(--modern-text);
    font-weight: 500;
    letter-spacing: 0.02em;
}
body.layout-modern .nav-link:hover,
body.layout-modern .nav-link.active {
    color: var(--modern-accent);
}

/* ---- HERO ---- */
body.layout-modern .hero {
    background: var(--modern-gradient);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 2rem 80px;
}
body.layout-modern .hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: modernFloat 8s ease-in-out infinite;
}
body.layout-modern .hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, #fafafa, transparent);
    z-index: 2;
}
@keyframes modernFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(3deg); }
}
body.layout-modern .hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}
body.layout-modern .hero-text {
    text-align: left;
}
body.layout-modern .hero-text .hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.3);
}
body.layout-modern .hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: none;
    letter-spacing: -0.02em;
}
body.layout-modern .hero h1 span.accent {
    display: block;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.layout-modern .hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.85);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 2rem;
}
body.layout-modern .hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
body.layout-modern .hero-buttons .btn-primary {
    background: #fff;
    color: var(--modern-accent);
    font-weight: 700;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
body.layout-modern .hero-buttons .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
body.layout-modern .hero-buttons .btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}
body.layout-modern .hero-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
}
body.layout-modern .hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
}
body.layout-modern .hero-stats .stat-item {
    text-align: left;
}
body.layout-modern .hero-stats .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}
body.layout-modern .hero-stats .stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Hero floating products */
body.layout-modern .hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
body.layout-modern .hero-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    max-width: 400px;
}
body.layout-modern .hero-product-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: heroCardFloat 4s ease-in-out infinite;
}
body.layout-modern .hero-product-card:nth-child(2) { animation-delay: 1s; }
body.layout-modern .hero-product-card:nth-child(3) { animation-delay: 2s; }
body.layout-modern .hero-product-card:nth-child(4) { animation-delay: 3s; }
@keyframes heroCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
body.layout-modern .hero-product-card:hover {
    transform: translateY(-5px) scale(1.03);
    background: rgba(255,255,255,0.25);
}
body.layout-modern .hero-product-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.1);
}
body.layout-modern .hero-product-card .hp-price {
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ---- SECTIONS ---- */
body.layout-modern .section-header {
    text-align: center;
    margin-bottom: 3rem;
}
body.layout-modern .section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--modern-text);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}
body.layout-modern .section-header p {
    color: var(--modern-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ---- CATEGORIES SECTION ---- */
body.layout-modern .categories-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
body.layout-modern .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
}
body.layout-modern .category-card-modern {
    background: #fff;
    border-radius: var(--modern-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: var(--modern-shadow);
    text-decoration: none;
    color: var(--modern-text);
    position: relative;
    overflow: hidden;
}
body.layout-modern .category-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--modern-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}
body.layout-modern .category-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--modern-shadow-hover);
    border-color: rgba(131, 56, 236, 0.1);
}
body.layout-modern .category-card-modern:hover::before {
    opacity: 1;
}
body.layout-modern .category-card-modern .cat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
body.layout-modern .category-card-modern h3 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}
body.layout-modern .category-card-modern .cat-count {
    color: var(--modern-text-light);
    font-size: 0.85rem;
}

/* ---- PRODUCT GRID ---- */
body.layout-modern .products-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}
body.layout-modern .products-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
body.layout-modern .product-card-modern {
    background: #fff;
    border-radius: var(--modern-radius);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--modern-shadow);
    text-decoration: none;
    color: var(--modern-text);
    display: flex;
    flex-direction: column;
    position: relative;
}
body.layout-modern .product-card-modern:hover {
    transform: translateY(-6px);
    box-shadow: var(--modern-shadow-hover);
}
body.layout-modern .product-card-modern .card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    background: #f8f9fa;
}
body.layout-modern .product-card-modern .card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
body.layout-modern .product-card-modern:hover .card-image img {
    transform: scale(1.08);
}
body.layout-modern .product-card-modern .card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--modern-gradient);
    color: #fff;
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
body.layout-modern .product-card-modern .card-quick-view {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: var(--modern-accent);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(255,0,110,0.3);
}
body.layout-modern .product-card-modern:hover .card-quick-view {
    opacity: 1;
    transform: translateY(0);
}
body.layout-modern .product-card-modern .card-body {
    padding: 1.2rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
body.layout-modern .product-card-modern .card-category {
    color: var(--modern-accent2);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}
body.layout-modern .product-card-modern .card-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
body.layout-modern .product-card-modern .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
body.layout-modern .product-card-modern .card-price {
    font-size: 1.25rem;
    font-weight: 800;
    background: var(--modern-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
body.layout-modern .product-card-modern .card-views {
    color: var(--modern-text-light);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ---- FEATURED BANNER ---- */
body.layout-modern .featured-banner {
    background: var(--modern-gradient);
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}
body.layout-modern .featured-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='2' fill='rgba(255,255,255,0.1)'/%3E%3C/svg%3E");
    opacity: 0.5;
}
body.layout-modern .featured-banner h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 800;
    position: relative;
}
body.layout-modern .featured-banner p {
    color: rgba(255,255,255,0.85);
    position: relative;
    margin-top: 0.5rem;
    font-size: 1.1rem;
}

/* ---- FILTER BAR ---- */
body.layout-modern .filter-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}
body.layout-modern .filter-btn {
    background: #fff;
    border: 2px solid #e2e8f0;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--modern-text);
}
body.layout-modern .filter-btn:hover {
    border-color: var(--modern-accent);
    color: var(--modern-accent);
}
body.layout-modern .filter-btn.active {
    background: var(--modern-gradient);
    border-color: transparent;
    color: #fff;
}

/* ---- FOOTER ---- */
body.layout-modern footer.site-footer {
    background: var(--modern-dark);
    color: #fff;
    padding: 4rem 2rem 2rem;
    position: relative;
    overflow: hidden;
}
body.layout-modern footer.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--modern-gradient);
}
body.layout-modern .footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}
body.layout-modern .footer-brand p {
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-top: 1rem;
}
body.layout-modern .footer-links h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
body.layout-modern .footer-links a {
    display: block;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 0.3rem 0;
    transition: color 0.2s;
    font-size: 0.9rem;
}
body.layout-modern .footer-links a:hover {
    color: var(--modern-accent);
}
body.layout-modern .footer-bottom {
    max-width: 1400px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ---- PRODUCT PAGE ---- */
body.layout-modern .product-page {
    max-width: 1400px;
    margin: 100px auto 4rem;
    padding: 0 2rem;
}
body.layout-modern .product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}
body.layout-modern .product-gallery {
    position: sticky;
    top: 100px;
}
body.layout-modern .product-gallery .main-image {
    background: #fff;
    border-radius: var(--modern-radius);
    box-shadow: var(--modern-shadow);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin-bottom: 1rem;
}
body.layout-modern .product-gallery .main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s;
}
body.layout-modern .product-gallery .main-image:hover img {
    transform: scale(1.05);
}
body.layout-modern .product-gallery .thumb-grid {
    display: flex;
    gap: 0.75rem;
}
body.layout-modern .product-gallery .thumb-grid img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
body.layout-modern .product-gallery .thumb-grid img:hover,
body.layout-modern .product-gallery .thumb-grid img.active {
    border-color: var(--modern-accent);
}
body.layout-modern .product-info {
    padding: 1rem 0;
}
body.layout-modern .product-info .breadcrumb {
    display: flex;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--modern-text-light);
    margin-bottom: 1.5rem;
}
body.layout-modern .product-info .breadcrumb a {
    color: var(--modern-accent2);
    text-decoration: none;
}
body.layout-modern .product-info .product-category-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(131,56,236,0.1), rgba(255,0,110,0.1));
    color: var(--modern-accent2);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
body.layout-modern .product-info h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--modern-text);
}
body.layout-modern .product-info .product-price-big {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--modern-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}
body.layout-modern .product-info .product-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.2rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}
body.layout-modern .product-info .product-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--modern-text-light);
}
body.layout-modern .product-info .product-meta .meta-item i {
    color: var(--modern-accent);
}
body.layout-modern .product-info .buy-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--modern-gradient);
    color: #fff;
    padding: 1.1rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(255,0,110,0.3);
    border: none;
    cursor: pointer;
    margin-bottom: 2rem;
}
body.layout-modern .product-info .buy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255,0,110,0.4);
}
body.layout-modern .product-info .buy-button i {
    font-size: 1.2rem;
}
body.layout-modern .product-description-section {
    background: #fff;
    border-radius: var(--modern-radius);
    padding: 2rem;
    box-shadow: var(--modern-shadow);
    margin-top: 2rem;
}
body.layout-modern .product-description-section h3 {
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}
body.layout-modern .product-description-section .desc-content {
    color: var(--modern-text-light);
    line-height: 1.8;
}

/* Related products */
body.layout-modern .related-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid #e2e8f0;
}

/* ---- CONTACT PAGE ---- */
body.layout-modern .contact-page {
    max-width: 1000px;
    margin: 120px auto 4rem;
    padding: 0 2rem;
}
body.layout-modern .contact-card {
    background: #fff;
    border-radius: var(--modern-radius);
    box-shadow: var(--modern-shadow);
    overflow: hidden;
}
body.layout-modern .contact-header {
    background: var(--modern-gradient);
    padding: 3rem 2.5rem;
    color: #fff;
    text-align: center;
}
body.layout-modern .contact-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
}
body.layout-modern .contact-header p {
    color: rgba(255,255,255,0.85);
    margin-top: 0.5rem;
}
body.layout-modern .contact-body {
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}
body.layout-modern .contact-form .form-group {
    margin-bottom: 1.5rem;
}
body.layout-modern .contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}
body.layout-modern .contact-form input,
body.layout-modern .contact-form textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}
body.layout-modern .contact-form input:focus,
body.layout-modern .contact-form textarea:focus {
    outline: none;
    border-color: var(--modern-accent);
}
body.layout-modern .contact-form .submit-btn {
    background: var(--modern-gradient);
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}
body.layout-modern .contact-form .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,0,110,0.3);
}
body.layout-modern .contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
body.layout-modern .contact-info-card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 16px;
}
body.layout-modern .contact-info-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--modern-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 1.1rem;
}
body.layout-modern .contact-info-card h4 {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}
body.layout-modern .contact-info-card p {
    color: var(--modern-text-light);
    font-size: 0.9rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    body.layout-modern .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    body.layout-modern .hero-text { text-align: center; }
    body.layout-modern .hero p { margin: 0 auto 2rem; }
    body.layout-modern .hero-buttons { justify-content: center; }
    body.layout-modern .hero-stats { justify-content: center; }
    body.layout-modern .hero-visual { display: none; }
    body.layout-modern .product-layout { grid-template-columns: 1fr; gap: 2rem; }
    body.layout-modern .product-gallery { position: static; }
    body.layout-modern .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    body.layout-modern .contact-body { grid-template-columns: 1fr; }
    body.layout-modern .products-grid-modern { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* ============================================================
   V2 PREMIUM ADDITIONS - Sliders, Picks, Pagination, Newsletter
   ============================================================ */

/* ---- Container ---- */
body.layout-modern .m-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- Section Header Row (with nav arrows) ---- */
body.layout-modern .section-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
}
body.layout-modern .section-header-row h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--modern-text);
    margin-bottom: 0.25rem;
}
body.layout-modern .section-header-row p {
    color: var(--modern-text-light);
    font-size: 0.95rem;
}

/* ---- Slider Nav Buttons ---- */
body.layout-modern .m-slider-nav {
    display: flex;
    gap: 0.5rem;
}
body.layout-modern .m-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #e2e8f0;
    background: #fff;
    color: var(--modern-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 0.9rem;
}
body.layout-modern .m-nav-btn:hover {
    background: var(--modern-gradient);
    border-color: transparent;
    color: #fff;
    transform: scale(1.05);
}

/* ---- Slider Container ---- */
body.layout-modern .m-slider-section {
    padding: 3rem 0;
}
body.layout-modern .m-slider {
    overflow: hidden;
    border-radius: 16px;
}
body.layout-modern .m-slider-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: grab;
    padding: 0.5rem 0 1rem;
}
body.layout-modern .m-slider-track::-webkit-scrollbar { display: none; }
body.layout-modern .m-slider-track .product-card-modern {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* ---- Categories Horizontal Scroll ---- */
body.layout-modern .m-categories-section {
    padding: 4rem 0 2rem;
}
body.layout-modern .m-cat-scroll-wrap {
    position: relative;
}
body.layout-modern .m-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--modern-text);
}
body.layout-modern .m-scroll-btn:hover {
    background: var(--modern-accent);
    color: #fff;
}
body.layout-modern .m-scroll-left { left: -15px; }
body.layout-modern .m-scroll-right { right: -15px; }
body.layout-modern .m-cat-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 0;
}
body.layout-modern .m-cat-scroll::-webkit-scrollbar { display: none; }
body.layout-modern .m-cat-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--modern-text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}
body.layout-modern .m-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    border-color: var(--modern-accent);
}
body.layout-modern .m-cat-emoji {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}
body.layout-modern .m-cat-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
body.layout-modern .m-cat-count {
    font-size: 0.8rem;
    color: var(--modern-text-light);
}

/* ---- Badge Variations ---- */
body.layout-modern .card-badge-deal {
    background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
}
body.layout-modern .card-badge-new {
    background: linear-gradient(135deg, #10b981, #06b6d4) !important;
}

/* ---- Staff Picks Grid ---- */
body.layout-modern .m-picks-section {
    padding: 3rem 0;
}
body.layout-modern .m-picks-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 1.5rem;
    min-height: 480px;
}
body.layout-modern .m-pick-hero {
    position: relative;
    border-radius: var(--modern-radius);
    overflow: hidden;
    text-decoration: none;
    display: block;
}
body.layout-modern .m-pick-hero .m-pick-img {
    width: 100%;
    height: 100%;
}
body.layout-modern .m-pick-hero .m-pick-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
body.layout-modern .m-pick-hero:hover .m-pick-img img {
    transform: scale(1.05);
}
body.layout-modern .m-pick-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: #fff;
}
body.layout-modern .m-pick-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
body.layout-modern .m-pick-overlay h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
body.layout-modern .m-pick-price {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 0.75rem;
}
body.layout-modern .m-pick-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}
body.layout-modern .m-pick-hero:hover .m-pick-cta { opacity: 1; }
body.layout-modern .m-pick-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
body.layout-modern .m-pick-sm {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: var(--modern-text);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    transition: all 0.35s;
    display: flex;
    flex-direction: column;
}
body.layout-modern .m-pick-sm:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
body.layout-modern .m-pick-sm img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    padding: 0.75rem;
    background: #f8f9fa;
}
body.layout-modern .m-pick-sm-info {
    padding: 0.75rem 1rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
body.layout-modern .m-pick-sm-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.25rem 0 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

/* ---- Pagination ---- */
body.layout-modern .m-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding-bottom: 1rem;
}
body.layout-modern .m-page-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--modern-text);
    background: #fff;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
}
body.layout-modern .m-page-btn:hover {
    border-color: var(--modern-accent);
    color: var(--modern-accent);
    transform: translateY(-2px);
}
body.layout-modern .m-page-btn.active {
    background: var(--modern-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,0,110,0.3);
}
body.layout-modern .m-page-dots {
    color: var(--modern-text-light);
    padding: 0 0.25rem;
}

/* ---- Newsletter ---- */
body.layout-modern .m-newsletter {
    padding: 4rem 0;
}
body.layout-modern .m-newsletter-inner {
    background: var(--modern-gradient);
    border-radius: var(--modern-radius);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}
body.layout-modern .m-newsletter-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 50%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 70%);
}
body.layout-modern .m-newsletter-text {
    position: relative;
}
body.layout-modern .m-newsletter-text h2 {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}
body.layout-modern .m-newsletter-text p {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
}
body.layout-modern .m-newsletter-form {
    display: flex;
    gap: 0.75rem;
    position: relative;
}
body.layout-modern .m-newsletter-form input {
    padding: 0.9rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 0.95rem;
    width: 280px;
    backdrop-filter: blur(10px);
    outline: none;
    transition: border-color 0.3s;
}
body.layout-modern .m-newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}
body.layout-modern .m-newsletter-form input:focus {
    border-color: rgba(255,255,255,0.6);
}
body.layout-modern .m-newsletter-form button {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 50px;
    background: #fff;
    color: var(--modern-accent);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
}
body.layout-modern .m-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* ---- V2 Responsive ---- */
@media (max-width: 768px) {
    body.layout-modern .section-header-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
    body.layout-modern .m-picks-grid { grid-template-columns: 1fr; }
    body.layout-modern .m-pick-side { grid-template-columns: 1fr 1fr; }
    body.layout-modern .m-pick-hero { min-height: 300px; }
    body.layout-modern .m-newsletter-inner { flex-direction: column; text-align: center; }
    body.layout-modern .m-newsletter-form { flex-direction: column; width: 100%; }
    body.layout-modern .m-newsletter-form input { width: 100%; }
    body.layout-modern .m-scroll-btn { display: none; }
    body.layout-modern .m-slider-track .product-card-modern { flex: 0 0 250px; }
}

@media (max-width: 480px) {
    body.layout-modern .m-pick-side { grid-template-columns: 1fr; }
    body.layout-modern .m-cat-card { flex: 0 0 150px; }
}

/* ============================================================
   V3 - SHOP LAYOUT: Sidebar + Grid
   ============================================================ */

/* ---- Category Chips (horizontal) ---- */
body.layout-modern .m-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: #fff;
    border-radius: 50px;
    text-decoration: none;
    color: var(--modern-text);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    border: 2px solid #e2e8f0;
    transition: all 0.3s;
    flex-shrink: 0;
}
body.layout-modern .m-cat-chip:hover {
    border-color: var(--modern-accent);
    color: var(--modern-accent);
    transform: translateY(-2px);
}
body.layout-modern .m-cat-chip .m-cat-emoji { font-size: 1.1rem; }
body.layout-modern .m-cat-chip .m-cat-count {
    background: #f1f5f9;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--modern-text-light);
}

/* ---- Shop Layout ---- */
body.layout-modern .m-shop-section {
    padding: 3rem 0;
}
body.layout-modern .m-shop-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* ---- Sidebar ---- */
body.layout-modern .m-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: sticky;
    top: 90px;
}
body.layout-modern .m-sidebar-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
body.layout-modern .m-sidebar-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--modern-text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
body.layout-modern .m-sidebar-card h3 i {
    color: var(--modern-accent);
    font-size: 0.85rem;
}
body.layout-modern .m-search-box {
    position: relative;
}
body.layout-modern .m-search-box input {
    width: 100%;
    padding: 0.7rem 0.9rem 0.7rem 2.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
body.layout-modern .m-search-box input:focus {
    outline: none;
    border-color: var(--modern-accent);
}
body.layout-modern .m-search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
}
body.layout-modern .m-sidebar-cats {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-height: 320px;
    overflow-y: auto;
}
body.layout-modern .m-sidebar-cats::-webkit-scrollbar { width: 4px; }
body.layout-modern .m-sidebar-cats::-webkit-scrollbar-thumb { background: #e2e8f0; border-radius: 4px; }
body.layout-modern .m-sidebar-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--modern-text);
    font-size: 0.85rem;
    transition: all 0.2s;
}
body.layout-modern .m-sidebar-cat:hover {
    background: #f8f9fa;
}
body.layout-modern .m-sidebar-cat.active {
    background: linear-gradient(135deg, rgba(255,0,110,0.08), rgba(131,56,236,0.08));
    color: var(--modern-accent);
    font-weight: 600;
}
body.layout-modern .m-badge {
    background: #f1f5f9;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--modern-text-light);
    font-weight: 600;
}
body.layout-modern .m-sidebar-cat.active .m-badge {
    background: rgba(255,0,110,0.1);
    color: var(--modern-accent);
}
body.layout-modern .m-price-range input[type="range"] {
    width: 100%;
    accent-color: var(--modern-accent);
}
body.layout-modern .m-price-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--modern-text-light);
    margin-top: 0.5rem;
}
body.layout-modern .m-sort-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: inherit;
    background: #fff;
    cursor: pointer;
}
body.layout-modern .m-sort-select:focus { outline: none; border-color: var(--modern-accent); }

/* Sidebar CTA card */
body.layout-modern .m-sidebar-cta {
    background: var(--modern-gradient) !important;
    color: #fff;
    text-align: center;
    padding: 1.5rem !important;
}
body.layout-modern .m-sidebar-cta .m-cta-icon { font-size: 2rem; margin-bottom: 0.5rem; }
body.layout-modern .m-sidebar-cta h4 { font-weight: 700; margin-bottom: 0.25rem; }
body.layout-modern .m-sidebar-cta p { font-size: 0.8rem; opacity: 0.85; margin-bottom: 0.75rem; }
body.layout-modern .m-cta-btn {
    display: inline-block;
    background: #fff;
    color: var(--modern-accent);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}
body.layout-modern .m-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }

/* ---- Shop Main ---- */
body.layout-modern .m-shop-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}
body.layout-modern .m-results-info {
    color: var(--modern-text-light);
    font-size: 0.9rem;
}
body.layout-modern .m-results-info span { font-weight: 700; color: var(--modern-text); }
body.layout-modern .m-view-toggle {
    display: flex;
    gap: 0.3rem;
}
body.layout-modern .m-view-btn {
    width: 36px;
    height: 36px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--modern-text-light);
    transition: all 0.2s;
}
body.layout-modern .m-view-btn.active {
    border-color: var(--modern-accent);
    color: var(--modern-accent);
}

/* List view */
body.layout-modern .products-grid-modern.list-view {
    grid-template-columns: 1fr !important;
}
body.layout-modern .products-grid-modern.list-view .product-card-modern {
    display: grid;
    grid-template-columns: 180px 1fr;
}
body.layout-modern .products-grid-modern.list-view .card-image {
    aspect-ratio: 1;
}

/* ---- V3 Responsive ---- */
@media (max-width: 1024px) {
    body.layout-modern .m-shop-layout { grid-template-columns: 240px 1fr; }
}
@media (max-width: 768px) {
    body.layout-modern .m-shop-layout { grid-template-columns: 1fr; }
    body.layout-modern .m-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
    body.layout-modern .m-sidebar-card { flex: 1; min-width: 200px; }
    body.layout-modern .m-sidebar-cats { max-height: 180px; }
    body.layout-modern .m-sidebar-cta { display: none; }
    body.layout-modern .products-grid-modern.list-view .product-card-modern { grid-template-columns: 120px 1fr; }
}
