/* explore.css - Toy Universe — Light Modern Explore Page */

* {
    box-sizing: border-box;
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.explore-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px 96px;
    min-height: 80vh;
    font-family: 'Outfit', sans-serif;
}

/* ============================================
   PAGE HEADER
   ============================================ */
.explore-header {
    padding: 64px 40px;
    background: #fefefe;
    margin: 0 -24px 52px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid #edf0f4;
}

.explore-header::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.05) 0%, transparent 65%);
    pointer-events: none;
}

.explore-header::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(72, 219, 251, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.explore-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 18px;
    background: linear-gradient(135deg, #fff0e6, #ffe4cc);
    border: 1px solid rgba(255, 140, 66, 0.15);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #e0722b;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.explore-header-tag svg {
    width: 14px;
    height: 14px;
}

.explore-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    text-shadow: none;
    line-height: 1.15;
}

.explore-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.12rem);
    color: #8e99a9;
    position: relative;
    z-index: 1;
    margin: 0 auto;
    line-height: 1.65;
    max-width: 480px;
}

/* ============================================
   FILTERS BAR
   ============================================ */
.explore-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
    padding: 0 4px;
}

.explore-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.explore-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: #ffffff;
    border: 1.5px solid #e8ecf1;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 550;
    color: #5a6578;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.explore-filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.06), rgba(72, 219, 251, 0.06));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.explore-filter-btn:hover {
    border-color: #cdd3dc;
    color: #1a1a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26, 35, 50, 0.06);
}

.explore-filter-btn:hover::before {
    opacity: 1;
}

.explore-filter-btn.active {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(26, 26, 46, 0.2);
}

.explore-filter-btn.active::before {
    display: none;
}

.explore-filter-btn svg {
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
}

.explore-results-count {
    font-size: 0.88rem;
    color: #8e99a9;
    font-weight: 500;
    padding: 8px 20px;
    background: #f7f8fb;
    border-radius: 50px;
    border: 1px solid #edf0f4;
}

.explore-results-count strong {
    color: #1a1a2e;
    font-weight: 700;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 0;
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.explore-card {
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #edf0f4;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
    position: relative;
}

.explore-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #48dbfb);
    transform: scaleX(0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 0 0 20px 20px;
    z-index: 2;
}

.explore-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: 0 24px 56px rgba(26, 35, 50, 0.1);
}

.explore-card:hover::after {
    transform: scaleX(1);
}

.explore-card:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 35, 50, 0.08);
}

/* ============================================
   IMAGE WRAPPER
   ============================================ */
.explore-image-wrapper {
    width: 100%;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(160deg, #f8f9fb, #f0f2f5);
    position: relative;
    overflow: hidden;
}

.explore-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(255, 107, 107, 0.02), rgba(72, 219, 251, 0.02));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.explore-card:hover .explore-image-wrapper::before {
    opacity: 1;
}

/* ============================================
   PRODUCT IMAGE
   ============================================ */
.explore-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 1;
}

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

/* ============================================
   NO IMAGE PLACEHOLDER
   ============================================ */
.explore-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    color: #c5cdd8;
    transition: all 0.35s ease;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
}

.explore-no-image svg {
    width: 48px;
    height: 48px;
}

.explore-card:hover .explore-no-image {
    color: #a0aab8;
    transform: scale(1.05);
}

/* ============================================
   PRODUCT DETAILS
   ============================================ */
.explore-details {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

/* ============================================
   PRODUCT NAME
   ============================================ */
.explore-name {
    font-size: clamp(0.92rem, 2vw, 1.05rem);
    font-weight: 650;
    color: #1a1a2e;
    line-height: 1.45;
    letter-spacing: -0.01em;
    transition: color 0.25s ease;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.explore-card:hover .explore-name {
    color: #ee5a24;
}

/* ============================================
   PRODUCT PRICE
   ============================================ */
.explore-price {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 800;
    color: #2e7d32;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ============================================
   VIEW BUTTON
   ============================================ */
.explore-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
    background: transparent;
    color: #1a1a2e;
    font-size: 0.88rem;
    font-weight: 600;
    border-top: 1px solid #edf0f4;
    margin-top: auto;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    letter-spacing: 0.02em;
}

.explore-view-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.explore-card:hover .explore-view-btn {
    color: #ee5a24;
    border-color: rgba(255, 107, 107, 0.15);
}

.explore-card:hover .explore-view-btn svg {
    transform: translateX(5px);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.explore-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 88px 40px;
    background: #ffffff;
    border: 1.5px dashed #dde2e8;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.explore-empty::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.04) 0%, transparent 65%);
    pointer-events: none;
}

.explore-empty-icon {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(145deg, #fff0e6, #ffe4cc);
    border-radius: 22px;
    margin-left: auto;
    margin-right: auto;
    color: #e0722b;
    transition: transform 0.3s ease;
}

.explore-empty:hover .explore-empty-icon {
    transform: rotate(-5deg) scale(1.05);
}

.explore-empty-icon svg {
    width: 36px;
    height: 36px;
}

.explore-empty-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.explore-empty-text {
    font-size: 0.98rem;
    color: #8e99a9;
    margin-bottom: 28px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.explore-empty-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
}

.explore-empty-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(255, 107, 107, 0.4);
}

.explore-empty-link svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   LOADING SKELETON
   ============================================ */
.explore-skeleton {
    background: linear-gradient(160deg, #f8f9fb, #f0f2f5);
    border: 1px solid #edf0f4;
    border-radius: 20px;
    height: 380px;
    position: relative;
    overflow: hidden;
}

.explore-skeleton::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.7),
            transparent);
    animation: explore-shimmer 1.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes explore-shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* ============================================
   RESPONSIVE — 1400px
   ============================================ */
@media (max-width: 1400px) {
    .explore-container {
        padding: 0 20px 72px;
    }

    .explore-grid {
        gap: 18px;
    }
}

/* ============================================
   RESPONSIVE — 1200px
   ============================================ */
@media (max-width: 1200px) {
    .explore-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
    .explore-container {
        padding: 0 20px 56px;
    }

    .explore-header {
        padding: 52px 32px;
        margin: 0 -20px 44px;
    }

    .explore-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .explore-image-wrapper {
        height: 200px;
        padding: 20px;
    }

    .explore-details {
        padding: 18px 20px;
        gap: 8px;
    }
}

/* ============================================
   RESPONSIVE — 768px
   ============================================ */
@media (max-width: 768px) {
    .explore-container {
        padding: 0 16px 48px;
    }

    .explore-header {
        padding: 44px 24px;
        margin: 0 -16px 36px;
    }

    .explore-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 28px;
    }

    .explore-filter-group {
        overflow-x: auto;
        padding-bottom: 6px;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .explore-filter-group::-webkit-scrollbar {
        display: none;
    }

    .explore-filter-btn {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.84rem;
    }

    .explore-results-count {
        text-align: center;
        align-self: center;
    }

    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .explore-image-wrapper {
        height: 180px;
        padding: 18px;
    }

    .explore-no-image svg {
        width: 42px;
        height: 42px;
    }

    .explore-details {
        padding: 16px 18px;
        gap: 8px;
    }

    .explore-empty {
        padding: 64px 24px;
        border-radius: 20px;
    }
}

/* ============================================
   RESPONSIVE — 576px
   ============================================ */
@media (max-width: 576px) {
    .explore-container {
        padding: 0 12px 40px;
    }

    .explore-header {
        padding: 36px 20px;
        margin: 0 -12px 28px;
    }

    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .explore-card {
        border-radius: 16px;
    }

    .explore-card::after {
        border-radius: 0 0 16px 16px;
    }

    .explore-image-wrapper {
        height: 155px;
        padding: 14px;
    }

    .explore-no-image {
        width: 80px;
        height: 80px;
        border-radius: 14px;
    }

    .explore-no-image svg {
        width: 36px;
        height: 36px;
    }

    .explore-details {
        padding: 14px 16px;
        gap: 6px;
    }

    .explore-name {
        font-size: 0.88rem;
    }

    .explore-price {
        font-size: 1.05rem;
    }

    .explore-view-btn {
        padding: 10px 0;
        font-size: 0.82rem;
    }

    .explore-empty {
        padding: 52px 20px;
        border-radius: 18px;
    }

    .explore-filter-btn {
        padding: 7px 14px;
        font-size: 0.8rem;
        border-radius: 40px;
    }

    .explore-results-count {
        font-size: 0.82rem;
        padding: 6px 16px;
    }
}

/* ============================================
   RESPONSIVE — 400px
   ============================================ */
@media (max-width: 400px) {
    .explore-container {
        padding: 0 10px 36px;
    }

    .explore-header {
        padding: 28px 16px;
        margin: 0 -10px 24px;
    }

    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .explore-card {
        border-radius: 14px;
    }

    .explore-card::after {
        border-radius: 0 0 14px 14px;
    }

    .explore-image-wrapper {
        height: 130px;
        padding: 12px;
    }

    .explore-no-image {
        width: 64px;
        height: 64px;
    }

    .explore-no-image svg {
        width: 32px;
        height: 32px;
    }

    .explore-details {
        padding: 12px 14px;
        gap: 5px;
    }

    .explore-name {
        font-size: 0.82rem;
    }

    .explore-price {
        font-size: 0.98rem;
    }
}

/* ============================================
   RESPONSIVE — 320px
   ============================================ */
@media (max-width: 320px) {
    .explore-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .explore-card {
        border-radius: 18px;
    }

    .explore-card::after {
        border-radius: 0 0 18px 18px;
    }

    .explore-image-wrapper {
        height: 190px;
        padding: 20px;
    }

    .explore-no-image {
        width: 90px;
        height: 90px;
    }

    .explore-no-image svg {
        width: 44px;
        height: 44px;
    }

    .explore-details {
        padding: 18px;
        gap: 10px;
    }

    .explore-name {
        font-size: 0.95rem;
    }

    .explore-price {
        font-size: 1.1rem;
    }
}

/* ============================================
   TOUCH DEVICES
   ============================================ */
@media (hover: none) {
    .explore-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #edf0f4;
    }

    .explore-card:hover::after {
        transform: scaleX(0);
    }

    .explore-card:hover .explore-image {
        transform: none;
    }

    .explore-card:hover .explore-image-wrapper::before {
        opacity: 0;
    }

    .explore-card:hover .explore-no-image {
        transform: none;
        color: #c5cdd8;
    }

    .explore-card:hover .explore-name {
        color: #1a1a2e;
    }

    .explore-card:hover .explore-view-btn {
        color: #1a1a2e;
        border-color: #edf0f4;
    }

    .explore-card:hover .explore-view-btn svg {
        transform: none;
    }

    .explore-card:active {
        transform: scale(0.98);
    }

    .explore-card:active .explore-name {
        color: #ee5a24;
    }

    .explore-card:active::after {
        transform: scaleX(1);
    }

    .explore-filter-btn:hover {
        transform: none;
        box-shadow: none;
    }

    .explore-filter-btn:hover::before {
        opacity: 0;
    }

    .explore-filter-btn:active {
        transform: scale(0.97);
    }

    .explore-empty:hover .explore-empty-icon {
        transform: none;
    }

    .explore-empty-link:hover {
        transform: none;
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .explore-header {
        padding: 28px 24px;
    }

    .explore-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .explore-image-wrapper {
        height: 140px;
    }

    .explore-details {
        padding: 14px;
    }
}

@media (max-width: 576px) and (orientation: landscape) {
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.explore-card:focus-visible {
    outline: 2px solid #48dbfb;
    outline-offset: 3px;
}

.explore-card:focus:not(:focus-visible) {
    outline: none;
}

.explore-filter-btn:focus-visible {
    outline: 2px solid #48dbfb;
    outline-offset: 3px;
}

.explore-filter-btn:focus:not(:focus-visible) {
    outline: none;
}

.explore-empty-link:focus-visible {
    outline: 2px solid #48dbfb;
    outline-offset: 3px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {

    .explore-card,
    .explore-image,
    .explore-no-image,
    .explore-name,
    .explore-price,
    .explore-view-btn,
    .explore-filter-btn,
    .explore-empty-link {
        transition: none;
    }

    .explore-card:hover {
        transform: none;
    }

    .explore-card:hover .explore-image {
        transform: none;
    }

    .explore-skeleton::after {
        animation: none;
    }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
    .explore-header {
        background: #f8f8f8 !important;
    }

    .explore-title {
        color: #000 !important;
    }

    .explore-subtitle {
        color: #555 !important;
    }

    .explore-filters {
        display: none;
    }

    .explore-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .explore-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }

    .explore-card::after {
        display: none;
    }

    .explore-card:hover {
        transform: none;
    }

    .explore-view-btn {
        display: none;
    }
}