/* =====================================================
   MiniAnni.cz Store - Styles
   ===================================================== */

/* Variables */
:root {
    --store-bg: #0a0a0a;
    --store-card: #141414;
    --store-card-hover: #1a1a1a;
    --store-border: #2a2a2a;
    --store-accent: #ff9011;
    --store-accent-hover: #ffb022;
    --store-success: #44ff44;
    --store-vip: #ffd700;
    --store-mvp: #ff69b4;
}

/* Layout */
.store-body {
    background: var(--store-bg);
    min-height: 100vh;
}

/* Header */
.store-header {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--store-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.store-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.store-header__left {
    display: flex;
    align-items: center;
    gap: 32px;
}

.store-header__logo img {
    height: 40px;
}

.store-header__nav {
    display: flex;
    gap: 8px;
}

.store-header__link {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.store-header__link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.store-header__link--active {
    color: var(--store-accent);
    background: rgba(255, 144, 17, 0.1);
}

.store-header__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Cart Button */
.store-cart-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--store-border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.store-cart-btn:hover {
    background: rgba(255, 144, 17, 0.1);
    border-color: var(--store-accent);
    color: var(--store-accent);
}

.store-cart-btn__count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--store-accent);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User */
.store-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
}

.store-user__avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.store-user__name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hero */
.store-hero {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
}

.store-hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 144, 17, 0.15) 0%, rgba(255, 144, 17, 0) 50%),
                linear-gradient(225deg, rgba(255, 105, 180, 0.1) 0%, rgba(255, 105, 180, 0) 50%);
}

.store-hero__title {
    font-family: 'Bungee', cursive;
    font-size: 3rem;
    color: var(--text-primary);
    margin-bottom: 16px;
    position: relative;
}

.store-hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    position: relative;
}

/* Categories */
.store-categories {
    padding: 40px 0;
    border-bottom: 1px solid var(--store-border);
}

.store-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.category-card {
    background: var(--store-card);
    border: 1px solid var(--store-border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--store-accent);
    box-shadow: 0 8px 32px rgba(255, 144, 17, 0.2);
}

.category-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 16px;
    color: #fff;
}

.category-card__name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.category-card__count {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Section */
.store-section {
    padding: 60px 0;
}

.store-section__title {
    font-family: 'Bungee', cursive;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-section__title i {
    color: var(--store-accent);
}

/* Filter */
.store-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.store-filter__right {
    display: flex;
    gap: 12px;
}

.store-filter__select {
    background: var(--store-card);
    border: 1px solid var(--store-border);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

.store-filter__select:focus {
    outline: none;
    border-color: var(--store-accent);
}

/* Products Grid */
.store-products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

/* Product Card */
.product-card {
    background: var(--store-card);
    border: 1px solid var(--store-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: var(--store-accent);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.product-card__image {
    position: relative;
    height: 180px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__image img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.product-card__image-placeholder {
    font-size: 4rem;
    opacity: 0.3;
}

.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--store-accent);
    color: #000;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.product-card__badge--sale {
    background: #ff4444;
    color: #fff;
}

.product-card__content {
    padding: 20px;
}

.product-card__category {
    font-size: 0.75rem;
    color: var(--store-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-card__name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.product-card__description {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-card__price {
    display: flex;
    flex-direction: column;
}

.product-card__price-current {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--store-accent);
}

.product-card__price-original {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-card__duration {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.product-card__add-btn {
    background: var(--store-accent);
    border: none;
    color: #000;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.product-card__add-btn:hover {
    background: var(--store-accent-hover);
    transform: scale(1.1);
}

/* Cart Sidebar */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 200;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100vh;
    background: var(--store-card);
    border-left: 1px solid var(--store-border);
    display: flex;
    flex-direction: column;
    transition: right 0.3s;
    z-index: 201;
}

.cart-sidebar.active {
    right: 0;
}

.cart-sidebar__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--store-border);
}

.cart-sidebar__header h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-sidebar__close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.cart-sidebar__close:hover {
    color: var(--text-primary);
}

.cart-sidebar__content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.cart-empty i {
    font-size: 4rem;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.cart-item__image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item__image img {
    max-width: 80%;
    max-height: 80%;
}

.cart-item__info {
    flex: 1;
}

.cart-item__name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cart-item__price {
    color: var(--store-accent);
    font-weight: 600;
}

.cart-item__remove {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s;
}

.cart-item__remove:hover {
    color: #ff4444;
}

.cart-sidebar__footer {
    padding: 20px;
    border-top: 1px solid var(--store-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.cart-total strong {
    color: var(--store-accent);
    font-size: 1.4rem;
}

/* Product Detail Modal */
.modal__content--large {
    max-width: 800px;
    width: 95%;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.product-detail__image {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 16px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail__image img {
    max-width: 80%;
    max-height: 80%;
}

.product-detail__info {
    display: flex;
    flex-direction: column;
}

.product-detail__category {
    font-size: 0.85rem;
    color: var(--store-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-detail__name {
    font-family: 'Bungee', cursive;
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.product-detail__description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    white-space: pre-line;
}

.product-detail__meta {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.product-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-detail__meta-item i {
    color: var(--store-accent);
}

.product-detail__price {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--store-border);
}

.product-detail__price-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.product-detail__price-current {
    font-size: 2rem;
    font-weight: 700;
    color: var(--store-accent);
}

.product-detail__price-original {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.product-detail__price-save {
    background: rgba(68, 255, 68, 0.1);
    color: var(--store-success);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Footer */
.store-footer {
    background: var(--store-card);
    border-top: 1px solid var(--store-border);
    padding: 40px 0;
    margin-top: 60px;
}

.store-footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.store-footer__logo {
    height: 40px;
    margin-bottom: 8px;
}

.store-footer__left p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.store-footer__right {
    display: flex;
    gap: 24px;
}

.store-footer__right a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.store-footer__right a:hover {
    color: var(--store-accent);
}

.store-footer__payment {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--store-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.store-footer__payment i {
    font-size: 1.8rem;
    opacity: 0.5;
}

/* Loading */
.store-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px;
    color: var(--text-secondary);
}

.store-loading i {
    font-size: 2rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .store-header__nav {
        display: none;
    }
    
    .store-hero__title {
        font-size: 2rem;
    }
    
    .store-products__grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .store-footer__content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

