﻿/*==================================================
TOYSHELL
style.css
Part 1
==================================================*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2563EB;
    --secondary: #1E40AF;
    --accent: #F97316;
    --yellow: #FACC15;
    --green: #22C55E;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --text: #1F2937;
    --muted: #6B7280;
    --border: #E5E7EB;
    --radius: 22px;
    --shadow: 0 18px 40px rgba(37,99,235,.12);
    --transition: .30s ease;
    --header-height: 60px;
    --navbar-height: 75px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo',sans-serif;
    direction: rtl;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

.container {
    width: min(1300px,92%);
    margin: auto;
}



/*==========================
Top Header
==========================*/

.top-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-height);
    background: var(--primary);
    overflow: hidden;
    z-index: 5000;
    display: flex;
    align-items: center;
}

.header-marquee {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.header-track {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: 4px;
    white-space: nowrap;
    animation: ledBounce 12s ease-in-out infinite;
}

@keyframes ledBounce {

    0% {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    25% {
        left: 0;
        transform: translate(0, -50%);
    }

    50% {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    75% {
        left: calc(100% - 300px);
        transform: translate(0, -50%);
    }

    100% {
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

/*==========================
Navbar
==========================*/

.navbar {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    height: var(--navbar-height);
    background: #fff;
    z-index: 4000;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }

.logo {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
}

    .logo span {
        color: var(--accent);
    }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

    .nav-links a {
        font-weight: 700;
        transition: var(--transition);
        position: relative;
    }

        .nav-links a::after {
            content: "";
            position: absolute;
            bottom: -8px;
            right: 0;
            width: 0;
            height: 3px;
            border-radius: 10px;
            background: var(--primary);
            transition: .3s;
        }

        .nav-links a:hover {
            color: var(--primary);
        }

            .nav-links a:hover::after {
                width: 100%;
            }

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #EEF4FF;
    color: var(--primary);
    font-size: 20px;
}

.cart-button {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    transition: .3s;
}

    .cart-button:hover {
        transform: translateY(-3px);
    }

#cartCounter {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
}

/*==========================
Main
==========================*/

main {
    padding-top: calc( var(--header-height) + var(--navbar-height) );
}
/*==================================================
Hero Slider
Part 2
==================================================*/

.hero-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height) - var(--navbar-height) + 100px);
    min-height: 650px;
    max-height: 950px;
    overflow: hidden;
    background: transparent;
    margin-top: 0;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
}

    .slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
        transform: scale(.90);
    }

    .slide.active img {
        transform: scale(.92);
    }

    .slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(0,0,0,.20), rgba(0,0,0,.45), rgba(0,0,0,.65) );
    }

.slide-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    z-index: 3;
    padding: 20px;
    max-width: 900px;
    margin: auto;
}

    .slide-overlay h1 {
        font-size: clamp(34px,5vw,64px);
        font-weight: 900;
        line-height: 1.15;
        margin-bottom: 18px;
        text-shadow: 0 12px 30px rgba(0,0,0,.45);
    }
    .slide-overlay p {
        font-size: clamp(16px,2vw,24px);
        max-width: 700px;
        opacity: .95;
        line-height: 1.8;
    }

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    transition: var(--transition);
    box-shadow: 0 15px 35px rgba(249,115,22,.30);
}

    .hero-btn:hover {
        transform: translateY(-4px);
        background: #ea6a08;
    }

/*==========================
Slider Controls
==========================*/

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 20;
    box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

    .slider-arrow:hover {
        background: var(--primary);
        color: #fff;
    }

    .slider-arrow.prev {
        right: 25px;
    }

    .slider-arrow.next {
        left: 25px;
    }

/*==========================
Slider Dots
==========================*/

.slider-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 25;
}

    .slider-dots .dot {
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: rgba(255,255,255,.45);
        cursor: pointer;
        transition: .3s;
    }

        .slider-dots .dot:hover {
            transform: scale(1.15);
        }

        .slider-dots .dot.active {
            background: #fff;
            width: 36px;
            border-radius: 30px;
        }

/*==========================
Section Title
==========================*/

.section-title {
    text-align: center;
    margin-bottom: 55px;
}

    .section-title h2 {
        font-size: 42px;
        font-weight: 800;
        color: var(--text);
        margin-bottom: 12px;
    }

    .section-title p {
        color: var(--muted);
        font-size: 18px;
        max-width: 700px;
        margin: auto;
    }

/*==========================
General Section Spacing
==========================*/

section {
    padding: 90px 0;
}
/*==================================================
Categories
Part 3
==================================================*/

.categories-section {
    background: var(--bg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(270px,1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #fff;
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
    transition: all .35s ease;
}

    .category-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 30px 60px rgba(37,99,235,.16);
    }

.category-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

    .category-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
    }

.category-card:hover .category-image img {
    transform: scale(1.08);
}

.category-content {
    padding: 28px;
    text-align: center;
}

    .category-content h3 {
        font-size: 28px;
        font-weight: 900;
        margin-bottom: 14px;
        color: var(--text);
    }

    .category-content span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 10px 24px;
        border-radius: 999px;
        background: #eef4ff;
        color: var(--primary);
        font-weight: 700;
        transition: var(--transition);
    }

.category-card:hover .category-content span {
    background: var(--primary);
    color: #fff;
}

/*==================================================
Products
==================================================*/

.products-section {
    background: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 28px;
}

.product-card {
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid #edf2f7;
    box-shadow: 0 12px 35px rgba(0,0,0,.06);
    transition: .35s ease;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 28px 55px rgba(37,99,235,.15);
    }

.product-image {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #f8fafc;
    padding: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: .45s ease;
    }

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    padding: 22px;
}

.product-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 14px;
    min-height: 68px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 15px;
}

.product-price {
    color: var(--primary);
    font-size: 34px;
    font-weight: 900;
    margin: 18px 0;
}

.product-actions {
    display: flex;
    gap: 12px;
}

    .product-actions button {
        flex: 1;
        height: 54px;
        border-radius: 16px;
        font-size: 16px;
        font-weight: 800;
        transition: .3s;
    }

.add-cart {
    background: var(--primary);
    color: #fff;
}

    .add-cart:hover {
        transform: translateY(-3px);
        background: var(--secondary);
    }

.order-btn {
    background: var(--accent);
    color: #fff;
}

    .order-btn:hover {
        transform: translateY(-3px);
        background: #e56a08;
    }

/*==================================================
Badges
==================================================*/

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--accent);
    color: #fff;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 10px 25px rgba(249,115,22,.25);
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}
/*==================================================
Cart Sidebar
Part 4
==================================================*/

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 8000;
}

    .cart-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 420px;
    max-width: 100%;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: .35s ease;
    z-index: 9000;
    box-shadow: -12px 0 35px rgba(0,0,0,.15);
}

    .cart-sidebar.active {
        transform: translateX(0);
    }

.cart-header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    border-bottom: 1px solid var(--border);
}

    .cart-header h2 {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 24px;
        font-weight: 800;
        color: var(--text);
    }

.close-cart {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f3f4f6;
    color: var(--text);
    font-size: 18px;
    transition: var(--transition);
}

    .close-cart:hover {
        background: #e5e7eb;
    }

.cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 22px;
}

.empty-cart {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
}

    .empty-cart i {
        font-size: 60px;
        color: #cbd5e1;
        margin-bottom: 18px;
    }

    .empty-cart h3 {
        font-size: 24px;
        margin-bottom: 10px;
    }

.cart-item {
    display: grid;
    grid-template-columns: 85px 1fr;
    gap: 16px;
    padding: 16px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.cart-item-image {
    width: 85px;
    height: 85px;
    border-radius: 14px;
    overflow: hidden;
    background: #f3f4f6;
}

    .cart-item-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.cart-item-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cart-item-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 800;
    font-size: 18px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.quantity-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eef4ff;
    color: var(--primary);
    font-weight: 700;
    transition: var(--transition);
}

    .quantity-btn:hover {
        background: var(--primary);
        color: #fff;
    }

.quantity-value {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
}

.remove-item {
    background: none;
    color: #ef4444;
    font-size: 20px;
}

.cart-footer {
    border-top: 1px solid var(--border);
    padding: 22px;
    background: #fff;
}

.cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 16px;
}

    .cart-row.total {
        font-size: 22px;
        font-weight: 800;
        color: var(--primary);
        margin-top: 12px;
    }

.checkout-btn {
    width: 100%;
    height: 56px;
    margin-top: 20px;
    border-radius: 16px;
    background: var(--green);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    transition: var(--transition);
}

    .checkout-btn:hover {
        transform: translateY(-2px);
        filter: brightness(.95);
    }
/*==================================================
Order Modal
Toast
Footer
Part 5
==================================================*/

/*==========================
Order Modal
==========================*/

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 9500;
    padding: 20px;
}

    .modal.active {
        opacity: 1;
        visibility: visible;
    }

.modal-box {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,.2);
    animation: modalPop .3s ease;
}

@keyframes modalPop {

    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #f3f4f6;
    color: var(--text);
    font-size: 18px;
    transition: var(--transition);
}

    .close-modal:hover {
        background: #e5e7eb;
    }

.modal-box h2 {
    text-align: center;
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--primary);
}

.input-group {
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 700;
        color: var(--text);
    }

    .input-group input,
    .input-group textarea {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 14px 16px;
        font-size: 16px;
        font-family: inherit;
        transition: var(--transition);
        background: #fff;
    }

    .input-group textarea {
        resize: vertical;
        min-height: 110px;
    }

        .input-group input:focus,
        .input-group textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 4px rgba(37,99,235,.12);
        }

.confirm-order-btn {
    width: 100%;
    height: 56px;
    border-radius: 16px;
    background: var(--green);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    transition: var(--transition);
}

    .confirm-order-btn:hover {
        transform: translateY(-2px);
        filter: brightness(.96);
    }

/*==========================
Toast
==========================*/

.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--green);
    color: #fff;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 9999;
}

    .toast.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

/*==========================
Footer
==========================*/

.footer {
    background: #111827;
    color: #fff;
    padding: 70px 0 35px;
    margin-top: 80px;
}
.footer-title {
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

    .footer-title::after {
        content: "";
        display: block;
        width: 80px;
        height: 4px;
        margin: 10px auto 0;
        background: var(--accent);
        border-radius: 999px;
    }

    .footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 28px;
        text-align: center;
    }

.footer-social {
    display: flex;
    gap: 18px;
}

    .footer-social a {
        width: 52px;
        height: 52px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255,255,255,.08);
        color: #fff;
        font-size: 22px;
        transition: var(--transition);
    }

        .footer-social a:hover {
            background: var(--primary);
            transform: translateY(-4px);
        }

.footer p {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
}
/*==================================================
Responsive
Part 6 (Final)
==================================================*/

/*==========================
Large Screens
==========================*/

@media (max-width:1200px) {

    .hero-slider {
        height: 560px;
    }

    .slide-overlay h1 {
        font-size: 48px;
    }

    .categories-grid {
        grid-template-columns: repeat(3,1fr);
    }
}

/*==========================
Tablets
==========================*/

@media (max-width:992px) {

    .mobile-menu-btn {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-links {
        position: fixed;
        top: calc(var(--header-height) + var(--navbar-height));
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: calc(100vh - var(--header-height) - var(--navbar-height));
        background: #fff;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 35px 25px;
        gap: 25px;
        overflow-y: auto;
        box-shadow: -20px 0 40px rgba(0,0,0,.15);
        transition: .35s ease;
        z-index: 3000;
    }

        .nav-links.active {
            right: 0;
        }

    .categories-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .hero-slider {
        height: 500px;
    }

    .slide-overlay h1 {
        font-size: 42px;
    }

    .slide-overlay p {
        font-size: 18px;
    }
}

/*==========================
Mobile
==========================*/

@media (max-width:768px) {

    .navbar .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        order: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .logo {
        order: 2;
        flex: 1;
        text-align: center;
        font-size: 24px;
    }

    .navbar-actions {
        order: 3;
    }

    .container {
        width: 94%;
    }

    .hero-slider {
        height: 72vh;
        min-height: 420px;
        max-height: 600px;
    }

    .slide-overlay h1 {
        font-size: 34px;
    }

    .slide-overlay p {
        font-size: 16px;
    }

    .hero-btn {
        padding: 13px 24px;
        font-size: 15px;
    }

    .slider-arrow {
        width: 46px;
        height: 46px;
        font-size: 18px;
    }

        .slider-arrow.prev {
            right: 12px;
        }

        .slider-arrow.next {
            left: 12px;
        }

    .categories-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-content h3 {
        font-size: 22px;
    }

    .product-image {
        padding: 14px;
    }

    .product-title {
        font-size: 20px;
        min-height: auto;
    }

    .product-price {
        font-size: 28px;
    }

    .product-actions {
        flex-direction: column;
    }

        .product-actions button {
            width: 100%;
            height: 52px;
        }

    .cart-sidebar {
        width: 100%;
    }

    .modal-box {
        padding: 24px;
    }

    .footer {
        padding: 55px 0 30px;
    }
    .category-content {
        padding: 22px;
    }

        .category-content h3 {
            font-size: 24px;
        }

        .category-content p {
            font-size: 15px;
        }

}

/*==========================
Small Phones
==========================*/

@media (max-width:480px) {

    .logo {
        font-size: 24px;
    }

    .top-header {
        height: 52px;
    }

    :root {
        --header-height: 52px;
        --navbar-height: 68px;
    }

    .navbar {
        height: var(--navbar-height);
    }

    main {
        padding-top: calc( var(--header-height) + var(--navbar-height) );
    }

    .hero-slider {
        height: 58vh;
        min-height: 260px;
        max-height: 420px;
    }

    .slide-overlay h1 {
        font-size: 28px;
    }

    .slide-overlay p {
        font-size: 14px;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .section-title p {
        font-size: 15px;
    }

    .cart-header h2 {
        font-size: 20px;
    }

    .cart-item {
        grid-template-columns: 70px 1fr;
    }

    .cart-item-image {
        width: 70px;
        height: 70px;
    }

    .toast {
        right: 15px;
        left: 15px;
        bottom: 15px;
        text-align: center;
    }
}

/*==========================
Utility Classes
==========================*/

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

.mt-4 {
    margin-top: 40px;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mb-4 {
    margin-bottom: 40px;
}

.w-100 {
    width: 100%;
}

.fade-in {
    animation: fadeIn .5s ease;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ===============================
   PRODUCT GALLERY
=============================== */

.product-gallery {
    width: 100%;
}

.main-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 18px;
    cursor: pointer;
    transition: .3s;
}

    .main-image:hover {
        transform: scale(1.02);
    }

.thumbs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.thumb {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: .25s;
}

    .thumb:hover {
        transform: scale(1.05);
    }

    .thumb.active {
        border: 3px solid var(--primary);
    }
/* ===============================
   LIGHTBOX
=============================== */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,.5);
    animation: zoom .25s ease;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: white;
    font-size: 45px;
    cursor: pointer;
    user-select: none;
    transition: .25s;
}

    .close-lightbox:hover {
        transform: scale(1.15);
    }

@keyframes zoom {

    from {
        transform: scale(.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* ===============================
   CATEGORY SLIDER
=============================== */

.super-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--header-height) - var(--navbar-height) + 100px);
    min-height: 650px;
    max-height: 950px;
    overflow: hidden;
}

.super-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(.90);
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
}

    .super-slide.active {
        opacity: 1;
        transform: scale(.92);
    }

@media (max-width:768px) {

    .super-slider {
        height: 72vh;
        min-height: 420px;
        max-height: 600px;
    }
}

@media (max-width:480px) {

    .super-slider {
        height: 58vh;
        min-height: 260px;
        max-height: 420px;
    }
}
/* ===============================
   PRODUCTS GRID
=============================== */

.products-grid {
    width: 90%;
    margin: 60px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    gap: 35px;
}


/* ===============================
   PRODUCT CARD
=============================== */

.product-card {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
    transition: .3s;
}

    .product-card:hover {
        transform: translateY(-8px);
    }

.product-info {
    padding: 20px;
    text-align: center;
}

    .product-info h3 {
        font-size: 24px;
        color: var(--text);
        margin-bottom: 15px;
    }

.pieces {
    font-size: 17px;
    color: #666;
    margin-bottom: 10px;
}

.price {
    font-size: 26px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
}


/* ===============================
   BUTTONS
=============================== */

.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 14px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    transition: .3s;
}

    .cart-button:hover {
        transform: scale(1.03);
    }

.order-button {
    border: none;
    background: var(--green);
    color: white;
    padding: 14px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 17px;
    font-weight: bold;
    transition: .3s;
}

    .order-button:hover {
        transform: scale(1.03);
    }