/* =========================================
   RESET
========================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", sans-serif;
    background: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
}

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


/* =========================================
   VARIABLES
========================================= */

:root {

    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #eef2ff;

    --secondary: #8b5cf6;

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --dark: #0f172a;
    --text: #334155;
    --muted: #64748b;

    --white: #ffffff;
    --light: #f8fafc;
    --border: #e2e8f0;

    --shadow-sm:
        0 4px 12px rgba(15, 23, 42, 0.06);

    --shadow:
        0 10px 30px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 20px 50px rgba(15, 23, 42, 0.15);

    --radius: 16px;

    --transition: 0.3s ease;
}


/* =========================================
   CONTAINER
========================================= */

.container {
    width: min(92%, 1200px);
    margin: 0 auto;
}


/* =========================================
   HEADER
========================================= */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.94);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-bottom: 1px solid rgba(226, 232, 240, 0.8);

    box-shadow: var(--shadow-sm);
}

.navbar {
    min-height: 78px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;
}


/* =========================================
   LOGO
========================================= */

.logo {
    display: flex;
    align-items: center;

    gap: 11px;

    flex-shrink: 0;
}

.logo-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color: white;

    font-size: 20px;

    box-shadow:
        0 8px 20px rgba(99, 102, 241, 0.3);
}

.logo-text h1 {
    font-size: 20px;
    line-height: 1;

    color: var(--dark);
}

.logo-text span {
    display: block;

    margin-top: 5px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.5px;
}


/* =========================================
   NAVIGATION
========================================= */

.nav-menu {
    display: flex;
    align-items: center;

    gap: 8px;
}

.nav-link {
    position: relative;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 10px 14px;

    color: var(--muted);

    font-size: 14px;
    font-weight: 500;

    border-radius: 10px;

    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active::after {
    content: "";

    position: absolute;

    left: 50%;
    bottom: -1px;

    width: 25px;
    height: 3px;

    transform: translateX(-50%);

    background: var(--primary);

    border-radius: 10px;
}


/* =========================================
   CART BUTTON
========================================= */

.cart-btn {
    position: relative;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 11px 16px;

    border-radius: 12px;

    background: var(--dark);

    color: white;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(99, 102, 241, 0.25);
}

.cart-count {
    min-width: 21px;
    height: 21px;

    display: grid;
    place-items: center;

    padding: 0 5px;

    border-radius: 50px;

    background: var(--danger);

    color: white;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-btn {
    display: none;

    width: 43px;
    height: 43px;

    border-radius: 11px;

    background: var(--primary-light);
    color: var(--primary);

    cursor: pointer;

    font-size: 18px;
}


/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {
    position: fixed;

    top: 78px;
    left: 0;
    right: 0;

    z-index: 999;

    display: none;
    flex-direction: column;

    padding: 15px 5%;

    background: white;

    border-bottom: 1px solid var(--border);

    box-shadow: var(--shadow);
}

.mobile-menu.show {
    display: flex;
}

.mobile-menu a {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 14px;

    color: var(--text);

    border-radius: 10px;

    transition: var(--transition);
}

.mobile-menu a:hover {
    background: var(--primary-light);
    color: var(--primary);
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    overflow: hidden;

    padding: 90px 0;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(139, 92, 246, 0.15),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #eef2ff 0%,
            #f8fafc 50%,
            #f5f3ff 100%
        );
}

.hero::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    top: -120px;
    left: -120px;

    background: rgba(99, 102, 241, 0.08);

    border-radius: 50%;
}

.hero-container {
    position: relative;

    display: grid;

    grid-template-columns: 1.15fr 0.85fr;

    align-items: center;

    gap: 50px;
}

.hero-content {
    animation: heroReveal 0.8s ease both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 8px 14px;

    border-radius: 50px;

    background: white;

    color: var(--primary);

    font-size: 12px;
    font-weight: 600;

    box-shadow: var(--shadow-sm);

    margin-bottom: 20px;
}

.hero h2 {
    max-width: 700px;

    color: var(--dark);

    font-size: clamp(38px, 5vw, 64px);

    line-height: 1.08;

    letter-spacing: -2px;

    margin-bottom: 22px;
}

.hero h2 span {
    display: block;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
}

.hero-content > p {
    max-width: 650px;

    color: var(--muted);

    font-size: 16px;

    line-height: 1.8;

    margin-bottom: 30px;
}


/* =========================================
   HERO ACTIONS
========================================= */

.hero-actions {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 35px;
}

.primary-btn,
.secondary-btn,
.hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 13px 20px;

    border-radius: 11px;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition: var(--transition);
}

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

    box-shadow:
        0 8px 20px rgba(99, 102, 241, 0.22);
}

.primary-btn:hover {
    background: var(--primary-dark);

    transform: translateY(-3px);

    box-shadow:
        0 12px 25px rgba(99, 102, 241, 0.3);
}

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

    border: 1px solid var(--border);
}

.secondary-btn:hover {
    color: var(--primary);

    border-color: var(--primary);

    transform: translateY(-3px);
}

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


/* =========================================
   HERO STATS
========================================= */

.hero-stats {
    display: flex;
    align-items: center;

    gap: 35px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    color: var(--dark);

    font-size: 24px;
}

.stat span {
    color: var(--muted);

    font-size: 12px;
}


/* =========================================
   HERO VISUAL
========================================= */

.hero-visual {
    position: relative;

    min-height: 390px;

    display: grid;
    place-items: center;
}

.hero-circle {
    width: 280px;
    height: 280px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color: white;

    font-size: 100px;

    box-shadow:
        0 30px 70px rgba(99, 102, 241, 0.28);

    animation: floating 4s ease-in-out infinite;
}

.floating-card {
    position: absolute;

    display: flex;
    align-items: center;

    gap: 11px;

    padding: 13px 16px;

    background: white;

    border-radius: 14px;

    box-shadow: var(--shadow);

    animation: floating 3.5s ease-in-out infinite;
}

.floating-card i {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--primary-light);

    color: var(--primary);
}

.floating-card strong {
    display: block;

    color: var(--dark);

    font-size: 12px;
}

.floating-card span {
    display: block;

    color: var(--muted);

    font-size: 10px;

    margin-top: 3px;
}

.card-one {
    top: 45px;
    left: 0;
}

.card-two {
    right: 0;
    bottom: 45px;

    animation-delay: 1s;
}


/* =========================================
   PRODUCTS SECTION
========================================= */

.products-section {
    padding: 85px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 35px;
}

.section-label {
    display: inline-block;

    color: var(--primary);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;

    margin-bottom: 7px;
}

.section-heading h2 {
    color: var(--dark);

    font-size: 34px;

    margin-bottom: 7px;
}

.section-heading p {
    color: var(--muted);

    font-size: 14px;
}

.product-count {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 10px 14px;

    border-radius: 10px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
}


/* =========================================
   FILTER BAR
========================================= */

.filter-bar {
    display: grid;

    grid-template-columns: 1fr 220px 220px;

    gap: 12px;

    margin-bottom: 35px;
}

.search-box,
.category-box,
.sort-box {
    position: relative;

    display: flex;
    align-items: center;
}

.search-box > i,
.category-box > i,
.sort-box > i {
    position: absolute;

    left: 15px;

    color: var(--muted);

    font-size: 14px;

    pointer-events: none;

    z-index: 2;
}

.search-box input,
.category-box select,
.sort-box select {
    width: 100%;

    height: 50px;

    padding: 0 42px;

    background: white;

    border: 1px solid var(--border);

    border-radius: 11px;

    outline: none;

    color: var(--text);

    font-size: 13px;

    transition: var(--transition);
}

.category-box select,
.sort-box select {
    padding-left: 40px;

    cursor: pointer;

    appearance: none;
}

.search-box input:focus,
.category-box select:focus,
.sort-box select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(99, 102, 241, 0.1);
}

.clear-search {
    position: absolute;

    right: 8px;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 8px;

    background: transparent;

    color: var(--muted);

    cursor: pointer;

    opacity: 0;

    pointer-events: none;

    transition: var(--transition);
}

.clear-search.show {
    opacity: 1;

    pointer-events: auto;
}

.clear-search:hover {
    background: #f1f5f9;

    color: var(--danger);
}


/* =========================================
   LOADING
========================================= */

.loading-container {
    min-height: 300px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 15px;

    color: var(--muted);
}

.loader {
    width: 45px;
    height: 45px;

    border: 4px solid #e0e7ff;

    border-top-color: var(--primary);

    border-radius: 50%;

    animation: spin 0.8s linear infinite;
}


/* =========================================
   PRODUCTS GRID
========================================= */

.products-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================
   PRODUCT CARD
========================================= */

.product-card {
    position: relative;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: white;

    border: 1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);

    animation: cardReveal 0.5s ease both;
}

.product-card:hover {
    transform: translateY(-7px);

    border-color: rgba(99, 102, 241, 0.25);

    box-shadow: var(--shadow);
}


/* Product Image */

.product-image-container {
    position: relative;

    height: 230px;

    display: grid;
    place-items: center;

    padding: 25px;

    background: #f8fafc;

    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;

    object-fit: contain;

    transition: transform 0.45s ease;
}

.product-card:hover .product-image {
    transform: scale(1.07);
}

.product-category {
    position: absolute;

    top: 12px;
    left: 12px;

    padding: 5px 9px;

    border-radius: 7px;

    background: white;

    color: var(--primary);

    box-shadow: var(--shadow-sm);

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
}

.product-content {
    display: flex;
    flex-direction: column;

    flex: 1;

    padding: 18px;
}

.product-rating {
    display: flex;
    align-items: center;

    gap: 5px;

    margin-bottom: 8px;

    color: var(--warning);

    font-size: 11px;
}

.product-rating span {
    color: var(--muted);
}

.product-title {
    display: -webkit-box;

    overflow: hidden;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    min-height: 42px;

    color: var(--dark);

    font-size: 14px;
    font-weight: 600;

    line-height: 1.5;

    margin-bottom: 13px;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-top: auto;
}

.product-price {
    color: var(--dark);

    font-size: 20px;
    font-weight: 700;
}

.add-cart-btn {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 10px;

    background: var(--primary);

    color: white;

    cursor: pointer;

    transition: var(--transition);
}

.add-cart-btn:hover {
    background: var(--primary-dark);

    transform: scale(1.08);
}

.view-product-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 10px;

    margin-top: 13px;

    border-radius: 9px;

    background: var(--primary-light);

    color: var(--primary);

    cursor: pointer;

    font-size: 12px;
    font-weight: 600;

    transition: var(--transition);
}

.view-product-btn:hover {
    background: var(--primary);

    color: white;
}


/* =========================================
   NO PRODUCTS
========================================= */

.no-products {
    min-height: 300px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 30px;
}

.no-products-icon {
    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 28px;
}

.no-products h3 {
    color: var(--dark);

    margin-bottom: 7px;
}

.no-products p {
    color: var(--muted);

    font-size: 13px;

    margin-bottom: 20px;
}


/* =========================================
   FEATURES
========================================= */

.features-section {
    padding: 65px 0;

    background: white;

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.features-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.feature-card {
    display: flex;
    align-items: flex-start;

    gap: 13px;

    padding: 18px;

    border: 1px solid var(--border);

    border-radius: 14px;

    transition: var(--transition);
}

.feature-card:hover {
    border-color: rgba(99, 102, 241, 0.3);

    transform: translateY(-4px);

    box-shadow: var(--shadow-sm);
}

.feature-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    background: var(--primary-light);

    color: var(--primary);
}

.feature-card h3 {
    color: var(--dark);

    font-size: 13px;

    margin-bottom: 4px;
}

.feature-card p {
    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;
}


/* =========================================
   CART SIDEBAR
========================================= */

.cart-sidebar {
    position: fixed;

    top: 0;
    right: 0;

    z-index: 2000;

    width: min(430px, 100%);

    height: 100vh;

    display: flex;
    flex-direction: column;

    background: white;

    box-shadow:
        -15px 0 50px rgba(15, 23, 42, 0.15);

    transform: translateX(100%);

    transition: transform 0.4s ease;
}

.cart-sidebar.open {
    transform: translateX(0);
}


/* Cart Header */

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 25px;

    border-bottom: 1px solid var(--border);
}

.cart-header h2 {
    color: var(--dark);

    font-size: 23px;
}

.close-btn {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: #f1f5f9;

    color: var(--text);

    cursor: pointer;

    font-size: 17px;

    transition: var(--transition);
}

.close-btn:hover {
    background: #fee2e2;

    color: var(--danger);
}


/* Cart Overlay */

.cart-overlay {
    position: fixed;

    inset: 0;

    z-index: 1900;

    background: rgba(15, 23, 42, 0.5);

    backdrop-filter: blur(3px);

    opacity: 0;

    visibility: hidden;

    transition:
        opacity var(--transition),
        visibility var(--transition);
}

.cart-overlay.show {
    opacity: 1;

    visibility: visible;
}


/* Cart Items */

.cart-items {
    flex: 1;

    overflow-y: auto;

    padding: 20px;
}

.cart-item {
    display: grid;

    grid-template-columns: 70px 1fr;

    gap: 13px;

    padding: 13px 0;

    border-bottom: 1px solid var(--border);

    animation: cardReveal 0.3s ease;
}

.cart-item-image {
    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    padding: 8px;

    background: #f8fafc;

    border-radius: 10px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.cart-item-info h4 {
    color: var(--dark);

    font-size: 12px;

    line-height: 1.5;

    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary);

    font-size: 13px;
    font-weight: 700;

    margin-bottom: 9px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.quantity-controls {
    display: flex;
    align-items: center;

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: 8px;
}

.quantity-btn {
    width: 28px;
    height: 28px;

    display: grid;
    place-items: center;

    background: white;

    color: var(--text);

    cursor: pointer;

    font-size: 11px;

    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-light);

    color: var(--primary);
}

.quantity-value {
    min-width: 30px;

    text-align: center;

    font-size: 11px;
    font-weight: 600;
}

.remove-item {
    background: transparent;

    color: var(--danger);

    cursor: pointer;

    font-size: 12px;
}


/* =========================================
   EMPTY CART
========================================= */

.empty-cart {
    flex: 1;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 30px;

    text-align: center;
}

.empty-cart-icon {
    width: 75px;
    height: 75px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 50%;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 28px;
}

.empty-cart h3 {
    color: var(--dark);

    margin-bottom: 7px;
}

.empty-cart p {
    color: var(--muted);

    font-size: 13px;

    margin-bottom: 20px;
}


/* =========================================
   CART FOOTER
========================================= */

.cart-footer {
    padding: 20px 25px;

    background: #f8fafc;

    border-top: 1px solid var(--border);
}

.cart-summary-row,
.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-summary-row {
    margin-bottom: 9px;

    color: var(--muted);

    font-size: 12px;
}

.cart-summary-row strong {
    color: var(--text);
}

.cart-total {
    padding-top: 14px;

    margin-top: 13px;

    border-top: 1px dashed var(--border);

    color: var(--dark);

    font-size: 18px;
    font-weight: 700;
}

.cart-total strong {
    color: var(--primary);
}

.checkout-btn {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 14px;

    margin-top: 17px;

    border-radius: 11px;

    background: var(--dark);

    color: white;

    font-size: 13px;
    font-weight: 600;

    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--primary);

    transform: translateY(-2px);
}


/* =========================================
   MODAL
========================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 3000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(15, 23, 42, 0.65);

    backdrop-filter: blur(5px);

    animation: fadeIn 0.25s ease;
}

.modal-overlay[hidden] {
    display: none;
}

.product-modal {
    position: relative;

    width: min(850px, 100%);

    max-height: 90vh;

    overflow-y: auto;

    background: white;

    border-radius: 20px;

    box-shadow: var(--shadow-lg);

    animation: modalIn 0.35s ease;
}

.modal-close {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 2;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.9);

    color: var(--dark);

    cursor: pointer;

    box-shadow: var(--shadow-sm);

    transition: var(--transition);
}

.modal-close:hover {
    background: #fee2e2;

    color: var(--danger);

    transform: rotate(90deg);
}

.modal-product-content {
    display: grid;

    grid-template-columns: 0.8fr 1.2fr;

    gap: 35px;

    padding: 40px;
}

.modal-product-image {
    min-height: 350px;

    display: grid;
    place-items: center;

    padding: 30px;

    background: #f8fafc;

    border-radius: 15px;
}

.modal-product-image img {
    width: 100%;
    height: 290px;

    object-fit: contain;
}

.modal-product-info {
    display: flex;
    flex-direction: column;

    justify-content: center;
}

.modal-product-category {
    display: inline-block;

    width: fit-content;

    padding: 6px 10px;

    margin-bottom: 12px;

    border-radius: 7px;

    background: var(--primary-light);

    color: var(--primary);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
}

.modal-product-info h2 {
    color: var(--dark);

    font-size: 27px;

    line-height: 1.4;

    margin-bottom: 12px;
}

.modal-product-rating {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 15px;

    color: var(--warning);

    font-size: 13px;
}

.modal-product-rating span {
    color: var(--muted);
}

.modal-product-description {
    color: var(--muted);

    font-size: 13px;

    line-height: 1.8;

    margin-bottom: 20px;
}

.modal-product-price {
    color: var(--primary);

    font-size: 28px;
    font-weight: 700;

    margin-bottom: 20px;
}

.modal-add-cart {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 14px;

    border-radius: 11px;

    background: var(--primary);

    color: white;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition: var(--transition);
}

.modal-add-cart:hover {
    background: var(--primary-dark);

    transform: translateY(-2px);
}


/* =========================================
   TOAST
========================================= */

.toast-container {
    position: fixed;

    top: 95px;
    right: 20px;

    z-index: 5000;

    width: min(360px, calc(100% - 40px));

    display: flex;
    flex-direction: column;

    gap: 10px;

    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;

    gap: 12px;

    padding: 14px 15px;

    background: white;

    border-left: 4px solid var(--primary);

    border-radius: 12px;

    box-shadow: var(--shadow-lg);

    pointer-events: auto;

    animation: toastIn 0.35s ease;
}

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

.toast.error {
    border-left-color: var(--danger);
}

.toast.warning {
    border-left-color: var(--warning);
}

.toast-icon {
    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 9px;

    background: var(--primary-light);

    color: var(--primary);
}

.toast.success .toast-icon {
    background: #ecfdf5;
    color: var(--success);
}

.toast.error .toast-icon {
    background: #fef2f2;
    color: var(--danger);
}

.toast.warning .toast-icon {
    background: #fffbeb;
    color: var(--warning);
}

.toast-content {
    flex: 1;
}

.toast-content strong {
    display: block;

    color: var(--dark);

    font-size: 12px;

    margin-bottom: 2px;
}

.toast-content p {
    color: var(--muted);

    font-size: 11px;

    line-height: 1.5;
}

.toast-close {
    background: transparent;

    color: var(--muted);

    cursor: pointer;

    font-size: 13px;
}

.toast-close:hover {
    color: var(--danger);
}

.toast.removing {
    animation: toastOut 0.3s ease forwards;
}


/* =========================================
   FOOTER
========================================= */

.footer {
    background: var(--dark);

    color: white;
}

.footer-container {
    display: grid;

    grid-template-columns: 1.5fr 1fr 1fr 1fr;

    gap: 45px;

    padding: 60px 0;
}

.footer .logo-text h1 {
    color: white;
}

.footer .logo-text span {
    color: #94a3b8;
}

.footer-brand > p {
    max-width: 330px;

    color: #94a3b8;

    font-size: 12px;

    line-height: 1.8;

    margin-top: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 9px;
}

.footer-links h3 {
    color: white;

    font-size: 14px;

    margin-bottom: 8px;
}

.footer-links a,
.footer-links span {
    color: #94a3b8;

    font-size: 11px;

    transition: var(--transition);
}

.footer-links a:hover {
    color: white;

    transform: translateX(3px);
}

.footer-bottom {
    padding: 18px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    text-align: center;
}

.footer-bottom p {
    color: #64748b;

    font-size: 10px;
}

.footer-bottom span {
    margin: 0 7px;
}


/* =========================================
   HIDDEN
========================================= */

[hidden] {
    display: none !important;
}


/* =========================================
   FOCUS
========================================= */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(99, 102, 241, 0.3);

    outline-offset: 3px;
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

}

@keyframes heroReveal {

    from {
        opacity: 0;

        transform: translateY(25px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}

@keyframes cardReveal {

    from {
        opacity: 0;

        transform: translateY(15px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes modalIn {

    from {
        opacity: 0;

        transform: scale(0.94) translateY(15px);
    }

    to {
        opacity: 1;

        transform: scale(1) translateY(0);
    }

}

@keyframes toastIn {

    from {
        opacity: 0;

        transform: translateX(30px);
    }

    to {
        opacity: 1;

        transform: translateX(0);
    }

}

@keyframes toastOut {

    from {
        opacity: 1;

        transform: translateX(0);
    }

    to {
        opacity: 0;

        transform: translateX(30px);
    }

}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1050px) {

    .products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .features-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .footer-container {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================
   TABLET / SMALL DESKTOP
========================================= */

@media (max-width: 850px) {

    .nav-menu {
        display: none;
    }

    .menu-btn {
        display: grid;
        place-items: center;
    }

    .navbar {
        gap: 12px;
    }

    .cart-btn {
        margin-left: auto;
    }

    .hero {
        padding: 70px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        min-height: 340px;
    }

    .filter-bar {
        grid-template-columns: 1fr 1fr;
    }

    .search-box {
        grid-column: 1 / -1;
    }

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .modal-product-content {
        grid-template-columns: 1fr;

        padding: 30px;
    }

    .modal-product-image {
        min-height: 280px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .container {
        width: 90%;
    }

    .navbar {
        min-height: 70px;
    }

    .mobile-menu {
        top: 70px;
    }

    .logo-icon {
        width: 39px;
        height: 39px;

        font-size: 17px;
    }

    .logo-text h1 {
        font-size: 17px;
    }

    .logo-text span {
        font-size: 8px;
    }

    .cart-btn {
        padding: 10px 12px;
    }

    .cart-btn span:not(.cart-count) {
        display: none;
    }

    .hero {
        padding: 60px 0;
    }

    .hero h2 {
        font-size: 40px;

        letter-spacing: -1.5px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn,
    .hero-button {
        width: 100%;
    }

    .hero-stats {
        gap: 25px;
    }

    .hero-circle {
        width: 210px;
        height: 210px;

        font-size: 70px;
    }

    .hero-visual {
        min-height: 280px;
    }

    .floating-card {
        padding: 9px 11px;
    }

    .floating-card i {
        width: 32px;
        height: 32px;
    }

    .card-one {
        left: -5px;
        top: 30px;
    }

    .card-two {
        right: -5px;
        bottom: 30px;
    }

    .products-section {
        padding: 60px 0;
    }

    .section-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .search-box {
        grid-column: auto;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-image-container {
        height: 250px;
    }

    .features-section {
        padding: 45px 0;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 45px 0;
    }

    .modal-product-content {
        padding: 25px 20px;
    }

    .modal-product-image {
        min-height: 230px;
    }

    .modal-product-image img {
        height: 210px;
    }

    .modal-product-info h2 {
        font-size: 21px;
    }

    .modal-product-price {
        font-size: 24px;
    }

    .toast-container {
        top: 80px;
        right: 15px;

        width: calc(100% - 30px);
    }

}


/* =========================================
   EXTRA SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .hero h2 {
        font-size: 34px;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat strong {
        font-size: 20px;
    }

    .stat span {
        font-size: 10px;
    }

    .hero-circle {
        width: 180px;
        height: 180px;

        font-size: 60px;
    }

    .floating-card {
        transform: scale(0.85);
    }

}


/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}