:root {
    --bg-dark: #050816;
    --bg-card: #0f172a;
    --accent: #06b6d4;
    --accent-soft: #22c55e;
    --accent-warm: #f97316;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --danger: #ef4444;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.65);
    --transition: 0.28s ease;
}

/* RESET */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: radial-gradient(circle at top, #1e293b 0, #020617 48%, #020617 100%);
    color: var(--text-main);
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
}

/* HEADER */
.gws-topbar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    background: linear-gradient(90deg, rgba(8,47,73,0.95), rgba(30,64,175,0.95));
    color: #e0f2fe;
    flex-wrap: wrap;
}

.gws-header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem clamp(1.2rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 0;
    z-index: 20;
    background: linear-gradient(90deg, rgba(2,6,23,0.92), rgba(15,23,42,0.96));
    flex-wrap: wrap;
    gap: 0.8rem;
}

.gws-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 20%, #f97316, #22c55e 38%, #06b6d4 80%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #0b1120;
    box-shadow: 0 0 24px rgba(56,189,248,0.75);
}

.logo-text h1 {
    font-size: 1.1rem;
    font-weight: 600;
}

.logo-text p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.gws-search {
    flex: 1;
    max-width: 520px;
    display: flex;
    gap: 0.4rem;
    align-items: center;
    min-width: 200px;
}

.gws-search input {
    flex: 1;
    padding: 0.65rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    background: rgba(15,23,42,0.9);
    color: var(--text-main);
    font-size: 0.85rem;
}

.gws-search input::placeholder {
    color: rgba(148,163,184,0.8);
}

.gws-search button {
    border-radius: 999px;
    border: none;
    padding: 0.65rem 1.1rem;
    background: linear-gradient(135deg, #06b6d4, #22c55e);
    color: #0b1120;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 10px 25px rgba(34,197,94,0.35);
}

.gws-search button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 35px rgba(8,47,73,0.7);
}

.gws-header-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.icon-btn {
    border: 1px solid rgba(148,163,184,0.3);
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    background: rgba(15,23,42,0.85);
    color: var(--text-main);
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.icon-btn span:first-child {
    font-size: 0.9rem;
}

.icon-btn:hover {
    background: rgba(30,64,175,0.85);
    border-color: rgba(56,189,248,0.7);
    transform: translateY(-1px);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -2px;
    background: var(--danger);
    color: white;
    border-radius: 999px;
    padding: 0 0.3rem;
    font-size: 0.65rem;
}

/* NAV */
.gws-nav {
    padding: 0.6rem clamp(1.2rem, 4vw, 3rem);
    border-bottom: 1px solid rgba(30,64,175,0.25);
    background: radial-gradient(circle at top, rgba(15,23,42,0.95), rgba(2,6,23,0.95));
    position: sticky;
    top: 64px;
    z-index: 10;
    overflow-x: auto;
    scrollbar-width: none;
}

.gws-nav::-webkit-scrollbar {
    display: none;
}

.gws-nav ul {
    display: flex;
    gap: 1rem;
    list-style: none;
}

.gws-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.82rem;
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.gws-nav li.active a,
.gws-nav a:hover {
    background: rgba(15,118,110,0.25);
    color: #f9fafb;
}

/* HERO */
.gws-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 2.5rem;
    padding: 2.5rem clamp(1.2rem, 4vw, 3rem);
    align-items: center;
}

.hero-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    margin-bottom: 0.6rem;
}

.hero-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 480px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.4rem 0;
}

.btn-primary,
.btn-outline {
    border-radius: 999px;
    border: none;
    padding: 0.75rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, #06b6d4, #22c55e);
    color: #0b1120;
    box-shadow: 0 14px 30px rgba(6,182,212,0.55);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(8,47,73,0.85);
}

.btn-outline {
    border: 1px solid rgba(148,163,184,0.6);
    background: transparent;
    color: var(--text-main);
}

.btn-outline:hover {
    background: rgba(15,23,42,0.9);
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    font-size: 0.75rem;
}

.hero-badges span {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(55,65,81,0.85);
}

/* CAROUSEL */
.hero-carousel {
    background: radial-gradient(circle at 10% 0, rgba(45,212,191,0.18), rgba(8,47,73,0.85));
    border-radius: var(--radius-lg);
    padding: 1.3rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(56,189,248,0.35);
    position: relative;
    overflow: hidden;
}

.carousel-track {
    position: relative;
    min-height: 180px;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(12px) translateY(8px);
    transition: opacity 0.4s ease, transform 0.45s ease;
    padding: 0.4rem;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

.carousel-slide h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.carousel-slide p {
    font-size: 0.85rem;
    color: #e0f2fe;
}

.carousel-slide .tag {
    display: inline-flex;
    margin-top: 0.6rem;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(96,165,250,0.8);
}

.carousel-dots {
    display: flex;
    gap: 0.35rem;
    margin-top: 1.1rem;
    justify-content: flex-start;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    background: rgba(148,163,184,0.5);
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), width var(--transition);
}

.dot.active {
    width: 22px;
    background: #22c55e;
    transform: translateY(-1px);
}

/* CATEGORIES */
.gws-categories {
    padding: 1rem clamp(1.2rem, 4vw, 3rem) 2.2rem;
}

.gws-categories h2 {
    font-size: 1.2rem;
    margin-bottom: 1.1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem;
}

.category-card {
    background: rgba(15,23,42,0.95);
    border-radius: var(--radius-md);
    padding: 1rem;
    border: 1px solid rgba(31,41,55,0.85);
    box-shadow: 0 16px 32px rgba(15,23,42,0.7);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition);
    text-align: left;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 45px rgba(15,23,42,0.9);
    border-color: rgba(56,189,248,0.7);
    background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,1));
}

.category-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,118,110,0.25);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.category-card h3 {
    font-size: 0.98rem;
    margin-bottom: 0.3rem;
}

.category-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* SECTIONS PRODUITS */
.gws-section {
    padding: 1rem clamp(1.2rem, 4vw, 3rem) 2.4rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.9rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-header h2 {
    font-size: 1.15rem;
}

.section-header a {
    font-size: 0.8rem;
    color: #7dd3fc;
    text-decoration: none;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.product-card {
    background: rgba(15,23,42,0.98);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(31,41,55,0.9);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(56,189,248,0.8);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: rgba(15,23,42,0.95);
}

.card-body {
    padding: 0.8rem 0.9rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}

.card-body h3 {
    font-size: 0.95rem;
}

.card-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.badge {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
}

.badge-hot {
    border: 1px solid rgba(248,113,113,0.9);
    color: #fecaca;
}

.badge-discount {
    top: 0.55rem;
    right: 0.55rem;
    left: auto;
    border: 1px solid rgba(34,197,94,0.9);
    color: #bbf7d0;
}

.badge-new {
    border: 1px solid rgba(129,140,248,0.9);
    color: #e0e7ff;
}

.card-meta {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.price {
    font-weight: 600;
    color: #a5f3fc;
    font-size: 0.95rem;
}

.old-price {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.card-extra {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-muted);
}

.btn-add {
    margin-top: 0.5rem;
    border-radius: 999px;
    border: none;
    padding: 0.55rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    background: linear-gradient(135deg, #f97316, #ef4444);
    color: #fff7ed;
    align-self: flex-start;
    box-shadow: 0 10px 24px rgba(248,113,113,0.55);
    transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.btn-add:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 18px 32px rgba(127,29,29,0.9);
}

/* BANNIÈRE FLASH */
.gws-banner {
    margin: 0 clamp(1.2rem, 4vw, 3rem) 2.5rem;
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.4rem;
    background: linear-gradient(120deg, rgba(248,113,113,0.1), rgba(234,88,12,0.4));
    border: 1px solid rgba(248,113,113,0.8);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.gws-banner h2 {
    font-size: 1.1rem;
}

.banner-content p {
    font-size: 0.85rem;
    color: #ffedd5;
}

.banner-timer span {
    font-size: 0.8rem;
    color: #fed7aa;
}

#flash-countdown {
    margin-top: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
}

/* SUIVI COMMANDE */
.gws-track {
    padding: 1rem clamp(1.2rem, 4vw, 3rem) 2.5rem;
}

.track-card {
    max-width: 520px;
    background: rgba(15,23,42,0.98);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.4rem;
    border: 1px solid rgba(37,99,235,0.7);
    box-shadow: var(--shadow-soft);
}

.track-card h2 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.track-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.form-group {
    margin-top: 0.9rem;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    margin-bottom: 0.25rem;
}

.form-group input {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.4);
    background: rgba(15,23,42,0.9);
    color: var(--text-main);
    font-size: 0.82rem;
}

.full-width {
    width: 100%;
    margin-top: 0.9rem;
}

.track-result {
    margin-top: 0.9rem;
    padding: 0.7rem 0.9rem;
    border-radius: var(--radius-md);
    background: rgba(22,101,52,0.25);
    border: 1px solid rgba(34,197,94,0.7);
    font-size: 0.8rem;
}

.track-note {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.hidden {
    display: none;
}

/* AVIS */
.gws-avis {
    padding: 1rem clamp(1.2rem, 4vw, 3rem) 2.8rem;
}

.gws-avis h2 {
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.avis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.avis-card {
    background: rgba(15,23,42,0.98);
    border-radius: var(--radius-md);
    border: 1px solid rgba(55,65,81,0.9);
    padding: 0.9rem;
    box-shadow: 0 16px 30px rgba(15,23,42,0.8);
}

.avis-text {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
}

.avis-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* PANIER SLIDE-OVER */
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(360px, 100%);
    height: 100vh;
    background: #020617;
    border-left: 1px solid rgba(51,65,85,0.9);
    box-shadow: -8px 0 30px rgba(15,23,42,0.9);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 50;
}

.cart-panel.open {
    transform: translateX(0);
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid rgba(30,64,175,0.6);
}

.cart-panel-header h3 {
    font-size: 1rem;
}

.cart-panel-header button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.2rem;
    display: grid;
    gap: 0.6rem;
}

.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(30,41,59,0.8);
    padding-bottom: 0.4rem;
}

.cart-item-title {
    font-weight: 500;
}

.cart-item-qty {
    color: var(--text-muted);
}

.cart-item-remove {
    border: none;
    background: transparent;
    color: #fca5a5;
    cursor: pointer;
    font-size: 0.8rem;
}

.cart-panel-footer {
    padding: 1rem 1.2rem 1.3rem;
    border-top: 1px solid rgba(30,64,175,0.6);
}

.cart-total {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.cart-note {
    margin-top: 0.6rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* FOOTER */
.gws-footer {
    padding: 2rem clamp(1.2rem, 4vw, 3rem) 1rem;
    border-top: 1px solid rgba(30,64,175,0.5);
    background: radial-gradient(circle at top, #020617, #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    font-size: 0.82rem;
}

.footer-grid h3 {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.footer-grid p {
    color: var(--text-muted);
}

.footer-grid ul {
    list-style: none;
    display: grid;
    gap: 0.3rem;
}

.footer-grid a {
    text-decoration: none;
    color: var(--text-muted);
}

.footer-grid a:hover {
    color: #e5e7eb;
}

.footer-bottom {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* RESPONSIVE */
@media (max-width: 960px) {
    .gws-header-main {
        flex-wrap: wrap;
    }

    .gws-search {
        order: 3;
        width: 100%;
        margin-top: 0.5rem;
    }

    .gws-hero {
        grid-template-columns: 1fr;
        padding-top: 1.4rem;
    }
}

@media (max-width: 640px) {
    .gws-topbar {
        display: none;
    }

    .gws-header-main {
        padding-inline: 1rem;
    }

    .gws-hero,
    .gws-categories,
    .gws-section,
    .gws-track,
    .gws-avis {
        padding-inline: 1rem;
    }

    .gws-banner {
        margin-inline: 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .logo-text h1 {
        font-size: 0.9rem;
    }

    .logo-text p {
        display: none;
    }
}