/* ===== STORE HERO ===== */
.store-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 130px;
    overflow: hidden;
}

.store-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.store-hero-title {
    font-family: Jost, sans-serif;
    font-weight: 900;
    font-size: 90px;
    color: #fff;
    margin: 0;
    letter-spacing: 6px;
    background: linear-gradient(135deg, #fff 40%, var(--color-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: heroTitleIn 0.8s ease-out both;
}

.store-hero-subtitle {
    font-family: Jost, sans-serif;
    font-weight: 300;
    font-size: 20px;
    color: var(--color-420);
    margin-top: 8px;
    animation: heroSubIn 0.8s 0.2s ease-out both;
}

.store-hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-300);
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes heroTitleIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes heroSubIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(0) scale(1); }
    20% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-300px) scale(0.3); }
}

/* ===== STORE CONTROLS ===== */
.store-controls {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: fadeInUp 0.6s 0.3s ease-out both;
}

.store-search-wrapper {
    position: relative;
    width: 100%;
}

.store-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-420);
    font-size: 18px;
    pointer-events: none;
}

.store-search {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 18px 14px 48px;
    border: 1px solid var(--color-410);
    border-radius: 12px;
    background: var(--color-400);
    color: #fff;
    font-size: 16px;
    font-family: Jost, sans-serif;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.store-search::placeholder {
    color: var(--color-420);
}

.store-search:focus {
    border-color: var(--color-300);
    box-shadow: 0 0 0 3px rgba(240, 89, 65, 0.15);
}

.store-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-filter-select {
    padding: 10px 16px;
    border: 1px solid var(--color-410);
    border-radius: 10px;
    background: var(--color-400);
    color: #fff;
    font-size: 14px;
    font-family: Jost, sans-serif;
    outline: none;
    cursor: pointer;
    transition: border-color 0.25s ease;
    min-width: 180px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23797983' d='M6 8.825L0.375 3.2l.85-.85L6 7.125l4.775-4.775.85.85z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.store-filter-select:focus {
    border-color: var(--color-300);
}

.store-filter-select option {
    background: var(--color-400);
    color: #fff;
}

/* ===== PRODUCT GRID ===== */
.store-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px 60px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    animation: fadeInUp 0.6s 0.4s ease-out both;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--color-400);
    border: 1px solid var(--color-410);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-300);
    box-shadow: 0 6px 20px rgba(240, 89, 65, 0.1), 0 2px 10px rgba(0, 0, 0, 0.2);
}

.product-card.out-of-stock {
    opacity: 0.6;
}

.product-card.out-of-stock:hover {
    opacity: 0.8;
}

/* Image Carousel */
.product-card-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--color-450);
}

.product-card-carousel img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card-carousel img.active {
    opacity: 1;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    border: none;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.product-card:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: rgba(240, 89, 65, 0.8);
}

.carousel-btn-prev {
    left: 8px;
}

.carousel-btn-next {
    right: 8px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 5;
}

.carousel-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.25s ease, transform 0.25s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--color-300);
    transform: scale(1.3);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    font-family: Jost, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 6;
    backdrop-filter: blur(6px);
}

.badge-in-stock {
    background: rgba(139, 195, 74, 0.2);
    color: #8bc34a;
    border: 1px solid rgba(139, 195, 74, 0.3);
}

.badge-out-of-stock {
    background: rgba(214, 69, 69, 0.2);
    color: #d64545;
    border: 1px solid rgba(214, 69, 69, 0.3);
}

.badge-low-stock {
    background: rgba(255, 152, 0, 0.2);
    color: #ffa726;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.badge-last-item {
    background: rgba(244, 67, 54, 0.2);
    color: #ef5350;
    border: 1px solid rgba(244, 67, 54, 0.3);
    animation: lastItemPulse 1.5s ease-in-out infinite;
}

@keyframes lastItemPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.badge-discount {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    font-family: Jost, sans-serif;
    z-index: 6;
    background: rgba(240, 89, 65, 0.2);
    color: var(--color-300);
    border: 1px solid rgba(240, 89, 65, 0.3);
    backdrop-filter: blur(6px);
}

.badge-pinned-star {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    backdrop-filter: blur(6px);
    color: #ffc107;
    font-size: 11px;
    animation: starPulse 2s ease-in-out infinite;
}

@keyframes starPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.3); }
    50% { box-shadow: 0 0 12px 4px rgba(255, 193, 7, 0.15); }
}

/* Card Info */
.product-card-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-card-category {
    font-family: Jost, sans-serif;
    font-size: 10px;
    color: var(--color-300);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.product-card-title {
    font-family: Jost, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--color-410);
}

.product-card-price {
    font-family: Jost, sans-serif;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
}

.product-card-price .currency {
    font-size: 11px;
    font-weight: 300;
    color: var(--color-420);
    margin-left: 2px;
}

.product-card-original-price {
    font-family: Jost, sans-serif;
    font-size: 12px;
    color: var(--color-420);
    text-decoration: line-through;
    margin-left: 6px;
}

.product-card-view {
    font-family: Jost, sans-serif;
    font-size: 11px;
    color: var(--color-300);
    display: flex;
    align-items: center;
    gap: 3px;
    transition: gap 0.2s ease;
}

.product-card:hover .product-card-view {
    gap: 8px;
}

/* ===== EMPTY STATE ===== */
.store-empty {
    text-align: center;
    padding: 80px 24px;
    color: var(--color-420);
    font-family: Jost, sans-serif;
    font-size: 18px;
}

.store-empty-icon {
    font-size: 60px;
    color: var(--color-410);
    margin-bottom: 20px;
    display: block;
}

/* ===== PRODUCT MODAL ===== */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.product-modal {
    background: var(--color-400);
    border: 1px solid var(--color-410);
    border-radius: 20px;
    max-width: 1100px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideUp 0.4s ease-out both;
}

.product-modal::-webkit-scrollbar {
    width: 6px;
}

.product-modal::-webkit-scrollbar-thumb {
    background: var(--color-410);
    border-radius: 10px;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.product-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--color-410);
    background: rgba(14, 15, 22, 0.7);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(6px);
}

.product-modal-close:hover {
    background: var(--color-300);
    border-color: var(--color-300);
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* Modal Gallery */
.product-modal-gallery {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product-modal-main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    overflow: hidden;
    background: var(--color-450);
}

.product-modal-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
}

.gallery-nav:hover {
    background: rgba(240, 89, 65, 0.8);
}

.gallery-nav-prev { left: 12px; }
.gallery-nav-next { right: 12px; }

.product-modal-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-modal-thumbnails::-webkit-scrollbar {
    height: 4px;
}

.product-modal-thumbnails::-webkit-scrollbar-thumb {
    background: var(--color-410);
    border-radius: 10px;
}

.modal-thumbnail {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: opacity 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
}

.modal-thumbnail.active {
    border-color: var(--color-300);
    opacity: 1;
}

.modal-thumbnail:hover {
    opacity: 0.8;
}

/* Modal Info */
.product-modal-info {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-modal-category {
    font-family: Jost, sans-serif;
    font-size: 13px;
    color: var(--color-300);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}

.product-modal-title {
    font-family: Jost, sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.product-modal-price-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.product-modal-price {
    font-family: Jost, sans-serif;
    font-size: 30px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-300), #ff8a65);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-modal-stock {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: Jost, sans-serif;
}

.product-modal-stock.in-stock {
    background: rgba(139, 195, 74, 0.15);
    color: #8bc34a;
    border: 1px solid rgba(139, 195, 74, 0.25);
}

.product-modal-stock.out-of-stock {
    background: rgba(214, 69, 69, 0.15);
    color: #d64545;
    border: 1px solid rgba(214, 69, 69, 0.25);
}

.product-modal-description {
    font-family: Jost, sans-serif;
    font-size: 15px;
    color: #ccc;
    line-height: 1.7;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 8px;
}

.product-modal-description::-webkit-scrollbar {
    width: 4px;
}

.product-modal-description::-webkit-scrollbar-thumb {
    background: var(--color-410);
    border-radius: 10px;
}

.product-modal-description h1 {
    font-size: 18px;
    color: #fff;
    margin: 12px 0 8px;
}

.product-modal-description ul {
    padding-left: 20px;
    margin: 8px 0;
}

.product-modal-description li {
    margin-bottom: 6px;
    color: #bbb;
}

.product-modal-description a {
    color: var(--color-300);
    text-decoration: underline;
}

.product-modal-description a:hover {
    color: #ff8a65;
}

/* Shopier Button */
.product-modal-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 14px;
    background: linear-gradient(135deg, #46b450, #3a9b42);
    color: #fff;
    font-family: Jost, sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-top: auto;
    cursor: pointer;
    border: none;
}

.product-modal-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(70, 180, 80, 0.3);
    background: linear-gradient(135deg, #52c45c, #46b450);
}

.product-modal-buy-btn:active {
    transform: translateY(0);
}

.shopier-btn-logo {
    height: 22px;
    filter: brightness(10);
}

.product-modal-buy-btn.disabled {
    background: var(--color-410);
    cursor: not-allowed;
    opacity: 0.5;
}

.product-modal-buy-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeInUp 0.5s ease-out both;
}

/* Stagger animation for cards */
.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media only screen and (max-width: 900px) {
    .store-hero-title {
        font-size: 60px;
    }

    .product-modal-body {
        grid-template-columns: 1fr;
    }

    .product-modal-gallery {
        padding: 20px 20px 10px;
    }

    .product-modal-info {
        padding: 20px;
    }

    .product-modal-title {
        font-size: 24px;
    }

    .product-modal-price {
        font-size: 24px;
    }

    .store-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }
}

@media only screen and (max-width: 600px) {
    .store-hero {
        min-height: 240px;
        padding-top: 100px;
        padding-bottom: 30px;
    }

    .store-hero-title {
        font-size: 44px;
        letter-spacing: 3px;
    }

    .store-hero-subtitle {
        font-size: 16px;
    }

    .store-controls {
        padding: 0 16px 20px;
    }

    .store-filters {
        flex-direction: column;
    }

    .store-filter-select {
        min-width: 100%;
    }

    .store-grid {
        padding: 0 12px 40px;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .product-card-info {
        padding: 10px;
    }

    .product-card-title {
        font-size: 15px;
    }

    .product-card-price {
        font-size: 18px;
    }

    .product-modal {
        border-radius: 14px;
        max-height: 95vh;
    }

    .product-modal-buy-btn {
        padding: 14px 24px;
        font-size: 16px;
    }
}

@media only screen and (max-width: 450px) {
    .store-hero-title {
        font-size: 36px;
    }

    .product-modal-gallery {
        padding: 14px 14px 8px;
    }

    .product-modal-info {
        padding: 14px;
    }

    .product-modal-title {
        font-size: 20px;
    }
}

/* ===== 2026-11 UI fixes: readable sizes, touch targets, touch devices ===== */
.product-badge { font-size: 12px; padding: 4px 9px; }
.product-card-category { font-size: 12px; letter-spacing: .06em; }
.product-card-view { font-size: 13px; }
.carousel-btn { width: 36px; height: 36px; font-size: 14px; }
.carousel-btn:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
@media (hover: none) {
    /* No hover on touch screens: arrows were invisible */
    .carousel-btn { opacity: 1; }
}
.carousel-dots { gap: 6px; }
.carousel-dot { position: relative; width: 8px; height: 8px; }
.carousel-dot::after { content: ""; position: absolute; inset: -8px; }
.store-search, .store-filter-select { font-size: 16px; }
