/* 
   -------------------------------------------------------
   SKOWZZ CREATION - PREMIUM THEME V2 (Round & Bold)
   -------------------------------------------------------
*/

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

:root {
    /* --- COLORS --- */
    --bg-color: #0c0b10;
    --bg-secondary: #16151a;

    --accent-color: #D4AF37;
    /* Noble Gold */
    --accent-hover: #FDB931;
    /* Brighter Gold */
    --accent-glow: rgba(212, 175, 55, 0.3);

    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #888888;

    /* --- GLASSMORPHISM --- */
    --glass-bg: rgba(25, 25, 30, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    /* More subtle border */
    --glass-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);

    /* --- UI ELEMENTS --- */
    --border-radius: 24px;
    /* MORE ROUNDED */
    --nav-height: 90px;
    /* BIGGER HEADER */
    --sidebar-width: 280px;
    --transition-speed: 0.3s;
}

/* --- RESET & BASE --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Base size increased */

body {
    background: var(--bg-color);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(80, 227, 194, 0.05) 0%, transparent 25%);
    color: var(--text-primary);
    font-family: 'Quicksand', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1400px;
    /* Wider container */
    margin: 0 auto;
    padding: 0 30px;
}

/* --- TYPOGRAPHY (Bigger & Bolder) --- */
h1,
h2,
h3 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #D4AF37 0%, #FDB931 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hover-float:hover {
    animation: float 3s ease-in-out infinite;
}

/* Updated Price Styling (LARGER) */
.article-price .new-price {
    font-size: 1.6rem;
    /* Bigger */
    font-weight: 800;
    color: var(--accent-color);
}

.article-price .old-price {
    font-size: 1.1rem;
    /* Bigger */
    text-decoration: line-through;
    color: #888;
    margin-right: 10px;
}

/* --- HEADER & NAV --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(12, 11, 16, 0.98);
    /* Less transparent for readability */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 10000;
    /* FORCE ON TOP */
    display: flex;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    /* Stronger shadow */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 10px 0;
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* --- BACKGROUND ANIMATION --- */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 15% 50%, rgba(255, 215, 0, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(120, 0, 255, 0.05), transparent 25%);
    z-index: -1;
    pointer-events: none;
    animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* --- SIDE CART --- */
.side-cart {
    position: fixed;
    top: 0;
    right: -400px;
    /* Hidden */
    width: 350px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 10002;
    /* ABOVE HEADER */
    transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}

.side-cart.open {
    right: 0;
}

.side-cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.side-cart-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}

.side-cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.side-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.side-cart-footer {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
}

/* --- ADD TO CART BUTTON (GOLD) --- */
.add-to-cart-btn {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.2)) !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    color: var(--accent-color) !important;
    transition: 0.3s !important;
}

.add-to-cart-btn:hover {
    background: var(--accent-color) !important;
    color: #000 !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* --- FLYING IMAGE ANIMATION --- */
.fly-img {
    position: fixed;
    z-index: 9999;
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0.8;
}

/* --- BUTTONS --- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--accent-color);
    color: #000;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    /* Full pill shape */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    background: #fff;
}

.cta-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cta-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cta-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* --- GLASS CARDS --- */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease-out backwards;
    overflow: hidden;
    /* Ensure images don't spill out */
    display: flex;
    flex-direction: column;
    /* Organize content */
}

/* Enforce Image Sizing in Cards */
.glass-card img {
    width: 100%;
    height: 250px;
    /* Fixed height for consistency */
    object-fit: cover;
    border-radius: calc(var(--border-radius) - 5px);
    margin-bottom: 20px;
    background: #000;
    /* Placeholder bg */
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* --- GRID LAYOUTS (Fixed "Giant" Issue) --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    /* Limits max width */
    gap: 40px;
}

/* If only 1 item, keep it reasonable size */
.grid-3>*:only-child {
    max-width: 450px;
    margin: 0 auto;
}


/* --- ADMIN SIDEBAR LAYOUT --- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
    padding-top: var(--nav-height);
}

.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--glass-border);
    padding: 30px;
    position: fixed;
    height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    left: 0;
    bottom: 0;
}

/* --- FORMS (Fixed White Input Bug) --- */
input,
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05) !important;
    /* Force Dark */
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
    color: #fff !important;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
    outline: none;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-color) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* --- BADGES --- */
.badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.badge-new {
    background: linear-gradient(135deg, #ff4081, #ff80ab);
    color: white;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 5px;
    vertical-align: middle;
}

.badge-premium {
    background: var(--accent-color);
    color: #000;
}

.badge-free {
    background: #4CAF50;
    color: #fff;
}

.admin-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 40px;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent 40%);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--text-secondary);
    border-radius: 12px;
    font-weight: 500;
    transition: 0.2s;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
}

.sidebar-link i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: var(--nav-height);
}

/* --- FOOTER --- */
footer {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
    margin-top: 100px;
    color: #888;
    text-align: center;
    /* CENTERED */
}

footer h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

footer a:hover {
    color: var(--accent-color);
}

/* --- UTILS --- */
.text-gold {
    color: var(--accent-color);
}

.text-center {
    text-align: center;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-50 {
    margin-top: 50px;
}

/* --- RESPONSIVE & LAYOUT FIXES --- */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Better spacing */
}

/* Fix Giant Images in Any Grid */
.grid-3 img,
.grid-4 img,
.article-grid img {
    max-width: 100%;
    height: 220px;
    /* Fixed height */
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .admin-wrapper {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #333;
    }

    .admin-content {
        margin-left: 0;
        padding: 20px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        padding: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .burger-menu {
        display: block;
    }
}

/* --- CART PAGE --- */
.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

.panier-table {
    width: 100%;
    border-collapse: collapse;
}

.panier-table th {
    text-align: left;
    padding: 15px;
    color: #888;
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.panier-table td {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.remove-item-btn {
    color: #ff4081;
    font-size: 1.2rem;
    transition: 0.2s;
}

.remove-item-btn:hover {
    color: #f50057;
    transform: scale(1.1);
}

/* --- CART ANIMATION --- */
@keyframes bump {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.3);
        color: var(--accent-color);
    }

    100% {
        transform: scale(1);
    }
}

.cart-bump {
    animation: bump 0.3s ease-out;
}

@media (max-width: 992px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}