/* ===================================================
   RACINE BY GANDA - Frontend Shop Styles
   Page boutique - Styles extraits de shop.blade.php
   =================================================== */

.shop-hero {
    background: linear-gradient(135deg, #160D0C 0%, #ED5F1E 100%);
    padding: 4rem 0;
    margin-top: -70px;
    padding-top: calc(4rem + 70px);
}

.shop-hero h1 {
    font-family: 'Aleppo', 'Aileron', serif;
    font-size: 3.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.shop-hero p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 184, 0, 0.2);
    color: #FFB800;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.clear-filters-link {
    color: #160D0C;
    text-decoration: none;
    font-size: 0.9rem;
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.clear-filters-link:hover {
    color: #FFB800;
    text-decoration: underline;
}

.sort-form {
    display: inline-block;
}

.filter-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    cursor: pointer;
}

.filter-radio input[type="radio"] {
    margin: 0;
}

.breadcrumb-custom {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-custom a {
    color: #FFB800;
    text-decoration: none;
}

.breadcrumb-custom span {
    color: rgba(255, 255, 255, 0.5);
}

.shop-content {
    padding: 3rem 0;
    background: #FFFFFF;
    min-height: 60vh;
}

.shop-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
}

/* SIDEBAR FILTERS */
.filters-sidebar {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #FFFFFF;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-title {
    font-family: 'Aleppo', 'Aileron', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #160D0C;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.filter-title i {
    font-size: 0.8rem;
    color: #160D0C;
    transition: transform 0.3s;
}

.filter-title.collapsed i {
    transform: rotate(-90deg);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.filter-checkbox input {
    width: 18px;
    height: 18px;
    accent-color: #ED5F1E;
}

.filter-checkbox span {
    color: #160D0C;
    font-size: 0.95rem;
}

.filter-checkbox .count {
    color: #160D0C;
    font-size: 0.85rem;
    margin-left: auto;
}

/* Price Range */
.price-range {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-input {
    flex: 1;
    padding: 0.75rem;
    border: 1.5px solid #FFFFFF;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
}

.price-input:focus {
    outline: none;
    border-color: #FFB800;
}

.btn-apply-filter {
    width: 100%;
    padding: 0.75rem;
    background: #160D0C;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s;
}

.btn-apply-filter:hover {
    background: #ED5F1E;
}

.btn-reset-filter {
    width: 100%;
    padding: 0.75rem;
    background: transparent;
    color: #160D0C;
    border: 1.5px solid #FFFFFF;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: all 0.3s;
}

.btn-reset-filter:hover {
    border-color: #ED5F1E;
    color: #ED5F1E;
}

/* PRODUCTS AREA */
.products-area {
    display: flex;
    flex-direction: column;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
}

.results-count {
    color: #160D0C;
    font-size: 0.95rem;
}

.results-count strong {
    color: #160D0C;
}

.toolbar-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.sort-select {
    padding: 0.6rem 1rem;
    border: 1.5px solid #FFFFFF;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #160D0C;
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1.5px solid #FFFFFF;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #160D0C;
    transition: all 0.3s;
}

.view-btn.active,
.view-btn:hover {
    background: #160D0C;
    color: white;
    border-color: #160D0C;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(22, 13, 12, 0.1);
}

.product-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

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

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

.product-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge-new {
    background: #FFB800;
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-sale {
    background: #ED5F1E;
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-out-of-stock {
    background: #160D0C;
    color: white;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(22, 13, 12, 0.1);
    transition: all 0.3s;
}

.action-btn:hover {
    background: #FFB800;
    color: white;
}

.product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.product-info-link {
    display: block;
    text-decoration: none;
    color: inherit;
    flex: 1;
}

.product-info-link:hover {
    text-decoration: none;
    color: inherit;
}

.product-category {
    font-size: 0.8rem;
    color: #160D0C;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-family: 'Aleppo', 'Aileron', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #160D0C;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ED5F1E;
}

.original-price {
    font-size: 1rem;
    color: #160D0C;
    text-decoration: line-through;
}

/* Quick Add Button */
.quick-add-form {
    margin-top: 1rem;
    padding: 0;
}

.quick-add {
    width: 100%;
    background: linear-gradient(135deg, #160D0C 0%, #ED5F1E 100%);
    color: white;
    padding: 0.85rem 1.25rem;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.quick-add:hover {
    background: linear-gradient(135deg, #ED5F1E 0%, #160D0C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 13, 12, 0.3);
}

.quick-add:active {
    transform: translateY(0);
}

.product-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.page-link {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #FFFFFF;
    border-radius: 10px;
    color: #160D0C;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: #160D0C;
    color: white;
    border-color: #160D0C;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 20px;
}

.empty-state i {
    font-size: 4rem;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-family: 'Aleppo', 'Aileron', serif;
    font-size: 1.75rem;
    color: #160D0C;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #160D0C;
}

/* ===== BADGES VENDEUR ===== */
.badge-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    background: linear-gradient(90deg, #ED5F1E 0%, #FFB800 100%);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    box-shadow: 0 2px 8px rgba(237, 95, 30, 0.3);
}

.badge-creator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    background: #FFFFFF;
    border: 1.5px solid #160D0C;
    color: #160D0C;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ===== PRODUCT CSS PLACEHOLDER (boutique) ===== */
.product-css-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(22,13,12,0.05) 0%, rgba(237,95,30,0.07) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(22, 13, 12, 0.15);
    font-size: 3rem;
}

/* ===== SCROLL REVEAL ===== */
/* Visible par défaut (fallback si JS bloqué par CSP ou absent) */
.reveal-item {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.45s ease, transform 0.45s ease;
}
/* JS a chargé : on masque pour animer */
.reveal-js-ready .reveal-item {
    opacity: 0;
    transform: translateY(20px);
}
.reveal-item.revealed {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

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

@media (max-width: 768px) {
    .shop-hero h1 {
        font-size: 2.5rem;
    }

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

    .products-toolbar {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .filters-sidebar {
        display: none;
    }

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

@media (max-width: 480px) {
    .shop-hero h1 { font-size: 2rem; }
    .products-grid { grid-template-columns: 1fr; gap: 0.75rem; }
    .product-card { border-radius: 12px; }
    .shop-hero { padding: 3rem 1rem; }
}
/* ============================================================
   BATCH 3 — Skeleton loader + focus states + glass cards
   ============================================================ */

/* Skeleton shimmer animation */
@keyframes skeleton-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.product-css-placeholder {
    background: linear-gradient(
        90deg,
        rgba(22,13,12,0.05) 25%,
        rgba(237,95,30,0.08) 50%,
        rgba(22,13,12,0.05) 75%
    ) !important;
    background-size: 800px 100% !important;
    animation: skeleton-shimmer 1.6s ease-in-out infinite !important;
    color: transparent !important;
}

/* Glass border on product cards hover */
.product-card {
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.product-card:hover {
    border-color: rgba(237, 95, 30, 0.15);
    box-shadow: 0 20px 50px rgba(22, 13, 12, 0.1), 0 0 0 1px rgba(237,95,30,0.08);
}

/* Focus states — accessibility */
:focus-visible {
    outline: 2px solid var(--racine-orange, #ED5F1E);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible,
.btn-primary-custom:focus-visible,
.btn-outline-custom:focus-visible,
.action-btn:focus-visible {
    outline: 2px solid var(--racine-orange, #ED5F1E);
    outline-offset: 3px;
}
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(237, 95, 30, 0.4);
    outline-offset: 0;
    border-color: var(--racine-orange, #ED5F1E) !important;
    box-shadow: 0 0 0 3px rgba(237, 95, 30, 0.12) !important;
}

/* Cursor pointer on all interactive cards */
.product-card,
.creator-card,
.category-card,
.link-card,
.guide-card {
    cursor: pointer;
}
