/* ============================================================
   SOLNET SHOP - Boutique publique
   Design moderne, premium, e-commerce professionnel
   ============================================================ */

:root {
    --shop-primary: #0d6efd;
    --shop-primary-dark: #0a58ca;
    --shop-secondary: #1a1d23;
    --shop-accent: #00c9a7;
    --shop-bg: #f8f9fc;
    --shop-card-bg: #ffffff;
    --shop-text: #1e293b;
    --shop-text-muted: #64748b;
    --shop-border: #e2e8f0;
    --shop-radius: 12px;
    --shop-radius-lg: 16px;
    --shop-shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shop-shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shop-shadow-lg: 0 10px 30px rgba(0,0,0,.1);
    --shop-transition: all .2s ease;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--shop-bg);
    color: var(--shop-text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

/* ── Navbar ─────────────────────────────────────────── */

.shop-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--shop-border);
    padding: .75rem 0;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.shop-navbar .navbar-collapse {
    background: #ffffff;
}

@media (max-width: 991.98px) {
    .shop-navbar .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--shop-border);
        box-shadow: 0 6px 20px rgba(0,0,0,.08);
        padding: 1rem;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

.brand-logo {
    height: 80px;
    width: auto;
    border-radius: 8px;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .brand-logo { height: 50px; }
}

.brand-name {
    font-weight: 700; font-size: 1.15rem; color: var(--shop-secondary);
    display: block; line-height: 1.1;
}
.brand-sub {
    font-size: .72rem; color: var(--shop-text-muted);
    font-weight: 500; letter-spacing: .02em;
}

.shop-navbar .nav-link {
    font-weight: 500; color: var(--shop-text);
    padding: .5rem 1rem; font-size: .93rem;
    transition: var(--shop-transition);
}
.shop-navbar .nav-link:hover { color: var(--shop-primary); }

.btn-icon {
    width: 40px; height: 40px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px; border: none; background: transparent;
    color: var(--shop-text); font-size: 1.2rem;
    transition: var(--shop-transition);
}
.btn-icon:hover { background: var(--shop-bg); color: var(--shop-primary); }

.cart-badge {
    position: absolute; top: 2px; right: 2px;
    background: var(--shop-primary);
    color: #fff; font-size: .65rem; font-weight: 700;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

.search-form .form-control {
    border-radius: 10px 0 0 10px;
    border: 1px solid var(--shop-border);
    font-size: .875rem; padding: .45rem .9rem;
}
.search-form .btn {
    border-radius: 0 10px 10px 0;
}

.navbar-toggler {
    border: none; padding: .5rem;
    font-size: 1.4rem; color: var(--shop-text);
}

.dropdown-menu {
    border: 1px solid var(--shop-border);
    border-radius: var(--shop-radius);
    box-shadow: var(--shop-shadow-md);
    padding: .5rem;
}
.dropdown-item {
    border-radius: 8px; font-size: .9rem; padding: .45rem .8rem;
}
.dropdown-item:hover { background: var(--shop-bg); }

/* ── Hero / Banner ──────────────────────────────────── */

.shop-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0d6efd 100%);
    color: #fff;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.shop-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.shop-hero .container { position: relative; z-index: 1; }
.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800; line-height: 1.15;
}
.hero-subtitle {
    font-size: 1.15rem; opacity: .85; max-width: 520px;
    line-height: 1.6;
}

/* ── Trust Badges ───────────────────────────────────── */

.trust-bar {
    background: #fff;
    border-bottom: 1px solid var(--shop-border);
    padding: 1rem 0;
}
.trust-item {
    display: flex; align-items: center; gap: .6rem;
    font-size: .85rem; color: var(--shop-text-muted); font-weight: 500;
}
.trust-item i {
    font-size: 1.3rem; color: var(--shop-primary);
}

/* ── Section titles ─────────────────────────────────── */

.section-title {
    font-weight: 700; font-size: 1.6rem;
    color: var(--shop-secondary);
    position: relative;
}
.section-subtitle {
    color: var(--shop-text-muted); font-size: .95rem;
    max-width: 500px;
}

/* ── Product Cards ──────────────────────────────────── */

.product-card {
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    border: 1px solid var(--shop-border);
    transition: var(--shop-transition);
    height: 100%;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shop-shadow-lg);
    border-color: transparent;
}

.product-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f5f9;
}
.product-card-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute; top: .75rem; left: .75rem;
    background: var(--shop-accent);
    color: #fff; font-size: .7rem; font-weight: 700;
    padding: .3rem .65rem; border-radius: 6px;
    text-transform: uppercase; letter-spacing: .04em;
}
.product-badge.sale {
    background: #ef4444;
}

.product-card-body {
    padding: 1.1rem 1.25rem;
    flex: 1; display: flex; flex-direction: column;
}
.product-card-category {
    font-size: .75rem; color: var(--shop-primary);
    font-weight: 600; text-transform: uppercase;
    letter-spacing: .03em; margin-bottom: .3rem;
}
.product-card-title {
    font-weight: 600; font-size: 1rem;
    color: var(--shop-secondary); margin-bottom: .4rem;
    line-height: 1.3;
}
.product-card-title a {
    color: inherit; text-decoration: none;
}
.product-card-title a:hover { color: var(--shop-primary); }
.product-card-desc {
    font-size: .83rem; color: var(--shop-text-muted);
    line-height: 1.5; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer {
    padding: 0 1.25rem 1.1rem;
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem;
}
.product-price {
    font-size: 1.15rem; font-weight: 700;
    color: var(--shop-secondary);
}
.product-price-old {
    font-size: .85rem; color: var(--shop-text-muted);
    text-decoration: line-through; margin-left: .35rem;
}

/* ── Buttons ────────────────────────────────────────── */

.btn-shop {
    background: var(--shop-primary);
    color: #fff; border: none;
    border-radius: 10px;
    font-weight: 600; font-size: .85rem;
    padding: .55rem 1.2rem;
    transition: var(--shop-transition);
    display: inline-flex; align-items: center; gap: .4rem;
}
.btn-shop:hover {
    background: var(--shop-primary-dark);
    color: #fff; transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,110,253,.3);
}

.btn-shop-outline {
    background: transparent;
    color: var(--shop-primary);
    border: 1.5px solid var(--shop-primary);
    border-radius: 10px;
    font-weight: 600; font-size: .85rem;
    padding: .5rem 1.2rem;
    transition: var(--shop-transition);
    display: inline-flex; align-items: center; gap: .4rem;
}
.btn-shop-outline:hover {
    background: var(--shop-primary);
    color: #fff;
}

.btn-cart-sm {
    width: 38px; height: 38px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--shop-primary);
    color: #fff; border: none;
    transition: var(--shop-transition);
    flex-shrink: 0;
}
.btn-cart-sm:hover {
    background: var(--shop-primary-dark);
    color: #fff;
    transform: scale(1.05);
}

/* ── Category Cards ─────────────────────────────────── */

.category-card {
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--shop-border);
    transition: var(--shop-transition);
    text-decoration: none; color: var(--shop-text);
    display: block;
}
.category-card:hover {
    border-color: var(--shop-primary);
    transform: translateY(-3px);
    box-shadow: var(--shop-shadow-md);
    color: var(--shop-primary);
}
.category-icon {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, rgba(13,110,253,.1), rgba(0,201,167,.1));
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--shop-primary);
    margin: 0 auto 1rem;
    transition: var(--shop-transition);
}
.category-card:hover .category-icon {
    background: linear-gradient(135deg, var(--shop-primary), var(--shop-accent));
    color: #fff;
}

/* ── Product Detail Page ────────────────────────────── */

.product-gallery {
    position: relative;
}
.product-gallery-main {
    border-radius: var(--shop-radius-lg);
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f1f5f9;
}
.product-gallery-main img {
    width: 100%; height: 100%; object-fit: cover;
}
.product-gallery-thumbs {
    display: flex; gap: .5rem; margin-top: .75rem;
}
.product-thumb {
    width: 70px; height: 70px;
    border-radius: 10px;
    overflow: hidden; cursor: pointer;
    border: 2px solid var(--shop-border);
    transition: var(--shop-transition);
}
.product-thumb:hover,
.product-thumb.active {
    border-color: var(--shop-primary);
}
.product-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}

.product-detail-price {
    font-size: 1.8rem; font-weight: 800;
    color: var(--shop-secondary);
}

.product-meta {
    font-size: .85rem; color: var(--shop-text-muted);
}
.product-meta dt { font-weight: 600; color: var(--shop-text); }

.qty-input {
    display: flex; align-items: center;
    border: 1.5px solid var(--shop-border);
    border-radius: 10px; overflow: hidden;
    width: fit-content;
}
.qty-input button {
    width: 40px; height: 40px;
    border: none; background: transparent;
    font-size: 1.1rem; cursor: pointer;
    transition: var(--shop-transition);
    color: var(--shop-text);
}
.qty-input button:hover { background: var(--shop-bg); }
.qty-input input {
    width: 50px; text-align: center;
    border: none; font-weight: 600;
    font-size: .95rem; outline: none;
}

/* ── Cart ───────────────────────────────────────────── */

.cart-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1.25rem;
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius);
    border: 1px solid var(--shop-border);
    transition: var(--shop-transition);
}
.cart-item:hover { box-shadow: var(--shop-shadow); }
.cart-item-img {
    width: 80px; height: 80px;
    border-radius: 10px;
    overflow: hidden; flex-shrink: 0;
    background: #f1f5f9;
}
.cart-item-img img {
    width: 100%; height: 100%; object-fit: cover;
}

.cart-summary {
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    border: 1px solid var(--shop-border);
    padding: 1.5rem;
}
.cart-summary-row {
    display: flex; justify-content: space-between;
    padding: .5rem 0; font-size: .9rem;
}
.cart-summary-total {
    font-size: 1.2rem; font-weight: 700;
    border-top: 2px solid var(--shop-secondary);
    margin-top: .5rem; padding-top: .75rem;
}

/* ── Checkout ───────────────────────────────────────── */

.checkout-form .form-label {
    font-weight: 500; font-size: .875rem;
    color: var(--shop-text);
}
.checkout-form .form-control {
    border-radius: 10px;
    border: 1.5px solid var(--shop-border);
    padding: .6rem 1rem;
    font-size: .9rem;
    transition: var(--shop-transition);
}
.checkout-form .form-control:focus {
    border-color: var(--shop-primary);
    box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}

/* ── CTA Section ────────────────────────────────────── */

.cta-section {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff;
    border-radius: var(--shop-radius-lg);
    padding: 3rem 2rem;
}

/* ── Footer ─────────────────────────────────────────── */

.shop-footer {
    background: #0f1117;
    color: #94a3b8;
}
.footer-heading {
    color: #fff; font-weight: 600;
    font-size: .9rem; margin-bottom: .75rem;
}
.footer-links {
    list-style: none; padding: 0; margin: 0;
}
.footer-links li {
    margin-bottom: .4rem; font-size: .85rem;
}
.footer-links a {
    color: #94a3b8; text-decoration: none;
    transition: var(--shop-transition);
}
.footer-links a:hover { color: #fff; }

.social-link {
    width: 36px; height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; text-decoration: none;
    transition: var(--shop-transition);
}
.social-link:hover {
    background: var(--shop-primary); color: #fff;
    border-color: var(--shop-primary);
}

/* ── Info Page ──────────────────────────────────────── */

.info-page {
    background: var(--shop-card-bg);
    border-radius: var(--shop-radius-lg);
    border: 1px solid var(--shop-border);
    padding: 2.5rem;
}
.info-page h2 { font-weight: 700; margin-top: 1.5rem; font-size: 1.3rem; }
.info-page p { color: var(--shop-text-muted); line-height: 1.7; }

/* ── Toast Notification ─────────────────────────────── */

.shop-toast {
    position: fixed; bottom: 1.5rem; right: 1.5rem;
    background: var(--shop-secondary);
    color: #fff;
    padding: .85rem 1.5rem;
    border-radius: 12px;
    font-size: .9rem; font-weight: 500;
    box-shadow: var(--shop-shadow-lg);
    z-index: 9999;
    transform: translateY(100px); opacity: 0;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    display: flex; align-items: center; gap: .6rem;
}
.shop-toast.show {
    transform: translateY(0); opacity: 1;
}

/* ── Empty State ────────────────────────────────────── */

.empty-state {
    text-align: center; padding: 4rem 2rem;
}
.empty-state-icon {
    width: 80px; height: 80px;
    background: var(--shop-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: var(--shop-text-muted);
    margin: 0 auto 1.5rem;
}

/* ── Pagination ─────────────────────────────────────── */

.pagination .page-link {
    border-radius: 10px;
    border: 1px solid var(--shop-border);
    color: var(--shop-text);
    margin: 0 2px;
    font-size: .875rem; font-weight: 500;
}
.pagination .page-item.active .page-link {
    background: var(--shop-primary);
    border-color: var(--shop-primary);
}

/* ── Stock Badge ────────────────────────────────────── */

.stock-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .78rem; font-weight: 600;
}
.stock-badge.in-stock { color: #16a34a; }
.stock-badge.low-stock { color: #f59e0b; }
.stock-badge.out-of-stock { color: #ef4444; }

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 991.98px) {
    .shop-hero { padding: 3rem 0; }
    .hero-title { font-size: 1.8rem; }
}

@media (max-width: 767.98px) {
    .shop-hero { padding: 2.5rem 0; }
    .product-card-footer { flex-direction: column; align-items: stretch; }
    .product-card-footer .btn-cart-sm { width: 100%; height: auto; padding: .5rem; border-radius: 10px; }
    .cart-item { flex-direction: column; text-align: center; }
    .cart-item-img { margin: 0 auto; }
    .info-page { padding: 1.5rem; }
}

@media (max-width: 575.98px) {
    .hero-title { font-size: 1.5rem; }
    .section-title { font-size: 1.3rem; }
}
