/* ============================================
   GOTHAM SHOP - FINAL DESIGN
   TOUT EN BLANC PUR - Cartes opaques
   ============================================ */

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

html {
    background: #0d1117;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #ffffff !important;
    min-height: 100vh;
    background: #0d1117;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

:root {
    --bg-primary: #0d1117;
    --bg-card: rgba(15, 20, 30, 0.92);
    --accent-lime: #3fb950;
    --accent-blue: #58a6ff;
    --border-green: rgba(63, 185, 80, 0.4);
    --border-green-bright: rgba(63, 185, 80, 0.7);
    --border-dim: rgba(48, 54, 61, 0.8);
}

/* ============================================
   BACKGROUND
   ============================================ */
.cosmic-bg {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.cosmic-bg::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(63, 185, 80, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(88, 166, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.neon-border {
    border: 1px solid var(--border-green);
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.08);
    border-radius: 12px;
}

.text-gradient {
    background: linear-gradient(135deg, #3fb950 0%, #58a6ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */

.products-page {
    padding-top: 1rem;
    padding-bottom: 6rem;
}

/* Header */
.dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    margin: 0 1rem 0.5rem;
    background: var(--bg-card);
    border-radius: 14px;
}

.dp-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff !important;
}

.dp-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dp-results {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
}

/* Filtres */
.dp-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin: 0 1rem 0.5rem;
    background: var(--bg-card);
    border-radius: 14px;
}

.dp-filter-wrap {
    position: relative;
    border: 2px solid var(--border-green-bright);
    border-radius: 2rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: var(--bg-card);
}

.dp-filter-wrap:hover,
.dp-filter-wrap:focus-within {
    border-color: var(--accent-lime);
}

.dp-filter-icon {
    font-size: 1.1rem;
    margin-right: 0.4rem;
    flex-shrink: 0;
}

.dp-filter-select {
    width: 100%;
    padding: 0.65rem 0.25rem;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-shadow: none !important;
}

.dp-filter-select option {
    background: #161b22;
    color: #fff;
}

.dp-filter-chevron {
    position: absolute;
    right: 1rem;
    color: #ffffff !important;
    pointer-events: none;
    font-size: 0.75rem;
}

/* Search */
.dp-search {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.dp-search-input {
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: var(--bg-card) !important;
    border: 2px solid var(--border-green-bright) !important;
    border-radius: 2rem;
    color: #ffffff !important;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.25s;
}

.dp-search-input::placeholder {
    color: #ffffff !important;
    opacity: 0.7;
}

.dp-search-input:focus {
    border-color: var(--accent-lime) !important;
    box-shadow: 0 0 16px rgba(63, 185, 80, 0.2);
}

/* Grid */
.dp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .dp-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
}
@media (min-width: 1024px) {
    .dp-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Product Card */
.dp-card {
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border-dim);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.dp-card:hover {
    border-color: var(--border-green);
    box-shadow: 0 0 20px rgba(63, 185, 80, 0.12);
    transform: translateY(-3px);
}

.dp-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #161b22;
}

.dp-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.dp-card:hover .dp-card-img img {
    transform: scale(1.06);
}

/* Badges */
.dp-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 5px;
    z-index: 2;
}

.dp-badge {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dp-badge-meetup { background: rgba(63, 185, 80, 0.85); color: #fff; }
.dp-badge-postal { background: rgba(88, 166, 255, 0.85); color: #fff; }
.dp-badge-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #f85149;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    z-index: 2;
}

/* Card Info */
.dp-card-info {
    padding: 0.85rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dp-card-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.dp-card-category {
    font-size: 0.78rem;
    color: #ffffff !important;
    margin-bottom: 0.15rem;
}

.dp-card-farm {
    font-size: 0.78rem;
    color: #ffffff !important;
    margin-bottom: 0.65rem;
}

.dp-card-rating {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.dp-card-stars { color: #e3b341; }
.dp-card-rating-count { color: #ffffff !important; }

/* Price buttons */
.dp-prices {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
}

.dp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid var(--border-green);
    border-radius: 6px;
    padding: 7px 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.dp-price-row:hover { background: rgba(63, 185, 80, 0.08); }

.dp-price-label {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
}

.dp-price-value {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9rem;
}

.dp-view-all {
    width: 100%;
    border: 1.5px solid var(--border-green);
    border-radius: 6px;
    padding: 8px;
    background: transparent;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    margin-top: 2px;
}

.dp-view-all:hover { background: rgba(63, 185, 80, 0.08); }

.dp-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #ffffff !important;
    font-size: 1.1rem;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */

.product-detail-page {
    padding-top: 1rem;
    padding-bottom: 6rem;
}

/* Breadcrumb */
.dp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

.dp-breadcrumb a {
    color: #ffffff !important;
    text-decoration: none;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-green);
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.dp-breadcrumb a:hover { background: rgba(63, 185, 80, 0.15); }

.dp-breadcrumb-sep { color: #ffffff !important; }

.dp-breadcrumb-current {
    color: #ffffff !important;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border-radius: 0.5rem;
}

/* Detail Grid */
.dp-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .dp-detail-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

/* Gallery */
.dp-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dp-main-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #161b22;
    border: 1.5px solid var(--border-green);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-main-image img,
.dp-main-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dp-main-image video { object-fit: contain; background: #000; }

.dp-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.dp-thumb {
    aspect-ratio: 1 / 1;
    border: 2px solid var(--border-dim);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s;
}

.dp-thumb:hover,
.dp-thumb.active { border-color: var(--accent-lime); }

.dp-thumb img { width: 100%; height: 100%; object-fit: cover; }

.dp-thumb-video {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #161b22;
    font-size: 1.5rem;
}

/* Detail Info */
.dp-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dp-detail-card {
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border-green);
    border-radius: 14px;
    padding: 1.25rem;
}

.dp-detail-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 0.85rem;
}

.dp-detail-card p {
    color: #ffffff !important;
    line-height: 1.65;
    white-space: pre-line;
    font-size: 0.92rem;
}

/* Product Title */
.dp-product-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 0.75rem;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .dp-product-title { font-size: 2rem; }
}

.dp-product-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.dp-tag {
    padding: 0.3rem 0.65rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff !important;
}

.dp-tag-green {
    background: rgba(63, 185, 80, 0.2);
    border: 1px solid var(--border-green);
}

.dp-tag-blue {
    background: rgba(88, 166, 255, 0.2);
    border: 1px solid rgba(88, 166, 255, 0.3);
}

/* Variants */
.dp-variants {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dp-variant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border-green);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    transition: all 0.25s;
}

.dp-variant:hover,
.dp-variant.active {
    background: rgba(63, 185, 80, 0.08);
    border-color: var(--border-green-bright);
}

.dp-variant-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dp-variant-check { font-size: 1.2rem; color: #ffffff !important; }
.dp-variant-name { font-weight: 600; color: #ffffff !important; font-size: 0.95rem; }
.dp-variant-price { font-weight: 700; color: #ffffff !important; font-size: 1.1rem; }

/* Quantity */
.dp-qty-wrap { margin-bottom: 1rem; }
.dp-qty-label { display: block; color: #ffffff !important; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.92rem; }

.dp-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1.5px solid var(--border-green);
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
}

.dp-qty-btn {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #ffffff !important;
    cursor: pointer;
    font-weight: 800;
    font-size: 1.2rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.dp-qty-btn:hover { background: rgba(63, 185, 80, 0.12); }
.dp-qty-value { width: 40px; text-align: center; color: #ffffff !important; font-weight: 700; font-size: 1.1rem; }

/* Action Buttons */
.dp-actions { display: flex; flex-direction: column; gap: 0.65rem; }

.dp-btn-primary {
    width: 100%;
    padding: 0.9rem;
    background: var(--accent-lime);
    border: none;
    border-radius: 8px;
    color: #000 !important;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dp-btn-primary:hover {
    background: #56d364;
    box-shadow: 0 0 20px rgba(63, 185, 80, 0.3);
    transform: translateY(-1px);
}

.dp-btn-secondary {
    width: 100%;
    padding: 0.9rem;
    background: transparent;
    border: 2px solid var(--border-green);
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.dp-btn-secondary:hover { background: rgba(63, 185, 80, 0.08); }

/* Reviews */
.dp-reviews {
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border-green);
    border-radius: 14px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.dp-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-dim);
}

.dp-reviews-title { font-size: 1.1rem; font-weight: 700; color: #ffffff !important; }

.dp-reviews-count {
    background: rgba(63, 185, 80, 0.1);
    border: 1px solid var(--border-green);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.82rem;
}

.dp-review {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-dim);
}

.dp-review:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.dp-review-author { font-weight: 700; color: #ffffff !important; margin-bottom: 0.2rem; font-size: 0.95rem; }
.dp-review-stars { color: #e3b341; font-size: 0.85rem; margin-bottom: 0.5rem; }
.dp-review-date { color: #ffffff !important; font-size: 0.75rem; }
.dp-review-text { color: #ffffff !important; line-height: 1.6; margin: 0.5rem 0; white-space: pre-wrap; font-size: 0.9rem; }

/* ============================================
   UTILITIES
   ============================================ */

.min-h-screen { min-height: 100vh; }
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.grid { display: grid; }
.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }
@keyframes pulse-slow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.animate-pulse-slow { animation: pulse-slow 3s ease-in-out infinite; }

/* Forms */
input, select, textarea { font-size: 16px; }
input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 2px solid var(--border-green);
    background-color: transparent;
    color: #ffffff !important;
    width: 100%;
}
input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-lime);
    box-shadow: 0 0 12px rgba(63, 185, 80, 0.2);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(13, 17, 23, 0.5); }
::-webkit-scrollbar-thumb { background: var(--accent-lime); border-radius: 3px; }

@media (max-width: 767px) {
    body { font-size: 0.875rem; }
    .max-w-7xl { padding-left: 0.5rem; padding-right: 0.5rem; }
    .dp-title { font-size: 1.5rem; }
}
@media (min-width: 768px) {
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
