/* ═══════════════════════════════════════════════════════════════════════════
   STORE STYLES - EPIC GAMING AESTHETIC
   ═══════════════════════════════════════════════════════════════════════════ */

/* Store Search */
.store-search {
    margin-bottom: 40px;
}

.store-search .search-form.large {
    max-width: 600px;
    margin: 0 auto;
}

.store-search .search-form.large input {
    padding: 18px 25px;
    font-size: 18px;
}

.store-search .search-form.large button {
    padding: 18px 25px;
}

.results-count {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--white-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Store Filter */
.store-filter {
    background: var(--black-light);
    padding: 25px 0;
    border-bottom: 1px solid var(--black-border);
    position: relative;
}

.store-filter::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
    opacity: 0.5;
}

.filter-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-item {
    padding: 12px 24px;
    background: var(--black-lighter);
    border: 1px solid var(--black-border);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    color: var(--white-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all var(--transition);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.filter-item:hover {
    border-color: var(--red);
    color: var(--white);
}

.filter-item.active {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    box-shadow: 0 0 20px var(--red-glow);
}

/* Store Section */
.store-section {
    padding: 80px 0;
}

.store-empty,
.memberships-empty {
    text-align: center;
    padding: 100px 30px;
}

.store-empty i,
.memberships-empty i {
    font-size: 70px;
    color: var(--red);
    margin-bottom: 25px;
    text-shadow: 0 0 40px var(--red-glow);
}

.store-empty h3,
.memberships-empty h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.store-empty p,
.memberships-empty p {
    color: var(--white-muted);
    margin-bottom: 25px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
}

/* Product Card */
.product-card {
    background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
    border: 1px solid var(--black-border);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--black-border);
    transition: background var(--transition);
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--red);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.product-card:hover::before {
    background: var(--red);
    box-shadow: 0 0 20px var(--red-glow);
}

.product-card .product-image {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--black);
    position: relative;
}

.product-card .product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, var(--black) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-card .product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

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

.product-card .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-dim);
    font-size: 50px;
}

.product-card.sold-out {
    opacity: 0.7;
}

.product-card .sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--black);
    color: var(--red);
    padding: 12px 24px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--red);
    z-index: 3;
}

.product-card .product-content {
    padding: 25px;
}

.product-card .product-name {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.product-card .product-name a {
    color: var(--white);
    transition: color var(--transition-fast);
}

.product-card .product-name a:hover {
    color: var(--red);
}

.product-card .product-price {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--red);
    letter-spacing: 1px;
}

/* Single Product */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 25px 0;
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--white-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--white-muted);
    transition: color var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--red);
}

.product-section {
    padding: 40px 0 100px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image {
    aspect-ratio: 1;
    background: var(--black-light);
    border: 1px solid var(--black-border);
    overflow: hidden;
    margin-bottom: 20px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

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

.main-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white-dim);
    font-size: 80px;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
}

.thumbnail {
    width: 85px;
    height: 85px;
    border: 2px solid var(--black-border);
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: all var(--transition);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--red);
    box-shadow: 0 0 15px var(--red-glow);
}

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

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

.product-title {
    font-family: var(--font-body);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.product-price {
    margin-bottom: 30px;
}

.product-price .price {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 2px;
    text-shadow: 0 0 30px var(--red-glow);
}

.product-description {
    color: var(--white-muted);
    line-height: 1.9;
    margin-bottom: 35px;
    font-size: 16px;
}

/* Variant Selector */
.variant-selector {
    margin-bottom: 35px;
}

.option-group {
    margin-bottom: 25px;
}

.option-group label {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.option-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.option-btn {
    padding: 14px 28px;
    background: var(--black-lighter);
    border: 2px solid var(--black-border);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.option-btn:hover {
    border-color: var(--white-muted);
    transform: translateY(-2px);
}

.option-btn.active {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 20px var(--red-glow);
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 30px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 12px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.quantity-input {
    display: inline-flex;
    align-items: center;
    background: var(--black-lighter);
    border: 1px solid var(--black-border);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.quantity-input button {
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition);
}

.quantity-input button:hover {
    background: var(--black-border);
    color: var(--red);
}

.quantity-input input {
    width: 70px;
    height: 50px;
    background: none;
    border: none;
    color: var(--white);
    text-align: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
}

.add-to-cart-btn {
    margin-bottom: 20px;
}

.add-to-cart-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.stock-status {
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--white-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Cart */
.cart-section {
    padding: 80px 0;
}

.cart-empty {
    text-align: center;
    padding: 100px 30px;
}

.cart-empty i {
    font-size: 70px;
    color: var(--red);
    margin-bottom: 25px;
    text-shadow: 0 0 40px var(--red-glow);
}

.cart-empty h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.cart-empty p {
    color: var(--white-muted);
    margin-bottom: 25px;
}

.cart-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: start;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cart-item {
    display: grid;
    grid-template-columns: 110px 1fr auto auto auto;
    gap: 25px;
    align-items: center;
    padding: 25px;
    background: var(--black-light);
    border: 1px solid var(--black-border);
    transition: border-color var(--transition);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cart-item:hover {
    border-color: var(--red);
}

.cart-item .item-image {
    width: 110px;
    height: 110px;
    overflow: hidden;
    background: var(--black);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.cart-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item .item-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cart-item .item-variant {
    color: var(--white-muted);
    font-size: 14px;
}

.cart-item .item-price {
    font-family: var(--font-display);
    font-size: 14px;
    color: var(--red);
    font-weight: 600;
    letter-spacing: 1px;
    margin-top: 8px;
}

.cart-item .item-quantity {
    display: flex;
    align-items: center;
    background: var(--black-lighter);
    border: 1px solid var(--black-border);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.cart-item .qty-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    font-size: 18px;
    transition: all var(--transition);
}

.cart-item .qty-btn:hover {
    background: var(--black-border);
    color: var(--red);
}

.cart-item .qty-value {
    width: 50px;
    text-align: center;
    font-family: var(--font-display);
    font-weight: 700;
}

.cart-item .item-total {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    min-width: 90px;
    text-align: right;
    letter-spacing: 1px;
}

.cart-item .item-remove {
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--black-border);
    color: var(--white-muted);
    cursor: pointer;
    transition: all var(--transition);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.cart-item .item-remove:hover {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

/* Cart Summary */
.cart-summary {
    background: var(--black-light);
    border: 1px solid var(--black-border);
    padding: 35px;
    position: sticky;
    top: 120px;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.cart-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--red);
}

.cart-summary h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--black-border);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 18px;
    color: var(--white-muted);
    font-size: 15px;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    padding: 25px 0;
    margin: 25px 0;
    border-top: 1px solid var(--black-border);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.continue-shopping {
    display: block;
    text-align: center;
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--white-muted);
    letter-spacing: 2px;
    margin-top: 20px;
    transition: color var(--transition-fast);
}

.continue-shopping:hover {
    color: var(--red);
}

/* Memberships */
.memberships-section {
    padding: 80px 0;
}

.memberships-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.membership-card {
    background: linear-gradient(180deg, var(--black-light) 0%, var(--black) 100%);
    border: 2px solid var(--black-border);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.membership-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--black-border);
    transition: background var(--transition);
    z-index: 2;
}

.membership-card:hover {
    border-color: var(--red);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.membership-card:hover::before {
    background: var(--red);
    box-shadow: 0 0 20px var(--red-glow);
}

.membership-image {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.membership-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.membership-card:hover .membership-image img {
    transform: scale(1.1);
}

.membership-content {
    padding: 35px;
}

.membership-name {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.membership-price {
    margin-bottom: 25px;
}

.membership-price .price {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 900;
    color: var(--red);
    letter-spacing: 2px;
    text-shadow: 0 0 30px var(--red-glow);
}

.membership-price .period {
    color: var(--white-muted);
    font-size: 14px;
}

.membership-description {
    color: var(--white-muted);
    margin-bottom: 25px;
    line-height: 1.7;
}

.membership-perks {
    list-style: none;
    margin-bottom: 30px;
}

.membership-perks li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.membership-perks i {
    color: var(--green);
    font-size: 14px;
}

/* Membership CTA */
.membership-cta {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.membership-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(220, 38, 38, 0.2) 0%, transparent 60%),
        linear-gradient(135deg, var(--black-light) 0%, var(--red-dark) 50%, var(--black-light) 100%);
}

.cta-card {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--black-border);
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}

.cta-card h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 12px;
}

.cta-card p {
    color: var(--white-muted);
    font-size: 16px;
}

/* Memberships Info */
.memberships-info {
    padding: 80px 0;
    background: var(--black-light);
    position: relative;
}

.memberships-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
}

.info-card {
    text-align: center;
    padding: 50px 35px;
    background: var(--black);
    border: 1px solid var(--black-border);
    transition: all var(--transition);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.info-card:hover {
    border-color: var(--red);
    transform: translateY(-5px);
}

.info-card i {
    font-size: 50px;
    color: var(--red);
    margin-bottom: 25px;
    text-shadow: 0 0 30px var(--red-glow);
}

.info-card h4 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.info-card p {
    color: var(--white-muted);
    line-height: 1.7;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--green);
    color: var(--black);
    padding: 18px 30px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 2px;
    z-index: 9999;
    animation: slideIn 0.4s var(--ease-out-expo);
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
}

.toast-error {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 10px 40px var(--red-glow);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    .product-gallery {
        position: static;
    }

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

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-item {
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
    }

    .cart-item .item-quantity,
    .cart-item .item-total,
    .cart-item .item-remove {
        grid-column: 2;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        gap: 25px;
        padding: 40px 30px;
    }

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

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

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}
