/* Lightning Enable Store Styles */

/* Variables */
:root {
    --store-orange: #F7931A;
    --store-cyan: #00D4FF;
    --store-dark: #1a1a2e;
    --store-darker: #0f0f1a;
    --store-card-bg: #252540;
}

/* Store Page Container */
.store-page {
    background: linear-gradient(135deg, var(--store-darker) 0%, var(--store-dark) 100%);
    color: #fff;
    min-height: 100vh;
}

/* Hero Section */
.store-hero {
    background: linear-gradient(135deg, rgba(247, 147, 26, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(247, 147, 26, 0.2);
}

.store-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--store-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.store-hero .lead {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.store-badge {
    display: inline-block;
    background: var(--store-orange);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-icon {
    font-size: 8rem;
    color: var(--store-orange);
    text-shadow: 0 0 40px rgba(247, 147, 26, 0.5);
}

/* Experimental Notice */
.experimental-notice {
    background: rgba(247, 147, 26, 0.15);
    border: 1px solid rgba(247, 147, 26, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.experimental-notice .notice-icon {
    font-size: 1.5rem;
    color: var(--store-orange);
}

.experimental-notice .notice-content {
    font-size: 0.9rem;
    line-height: 1.6;
}

.experimental-notice a {
    color: var(--store-cyan);
    text-decoration: underline;
}

/* Section Headers */
.section-header {
    text-align: center;
    padding: 3rem 0 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-header p {
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Product Cards */
.product-card {
    background: var(--store-card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.product-image {
    background: linear-gradient(135deg, #2a2a4a 0%, #1a1a2e 100%);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.product-image img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

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

.product-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.product-description {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    flex: 1;
}

.product-variants {
    margin-bottom: 1rem;
}

.variant-group {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.variant-label {
    color: rgba(255, 255, 255, 0.6);
}

.variant-options {
    color: #fff;
}

/* Product Pricing */
.product-pricing {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-usd {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.price-sats {
    font-size: 1rem;
    color: var(--store-orange);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sats-icon {
    font-size: 1.2rem;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-view-product {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: 2px solid var(--store-cyan);
    color: var(--store-cyan);
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-view-product:hover {
    background: var(--store-cyan);
    color: #000;
}

.btn-add-to-cart {
    flex: 1;
    padding: 0.75rem 1rem;
    background: var(--store-orange);
    border: none;
    color: #000;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-add-to-cart:hover {
    background: #ff9f2f;
    transform: scale(1.02);
}

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

/* Out of Stock */
.out-of-stock-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #dc3545;
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Info Sections */
.info-section {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section h2 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* How It Works */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--store-orange);
    color: #000;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.step-card p {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* AI Agent Section */
.agent-card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(247, 147, 26, 0.1) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
}

.agent-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.agent-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--store-cyan);
}

.agent-card p {
    opacity: 0.9;
    margin-bottom: 1rem;
}

.agent-card code {
    display: block;
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    overflow-x: auto;
}

/* Policy Notice */
.policy-notice {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1.5rem;
}

.policy-notice h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--store-orange);
}

.policy-notice ul {
    margin: 0;
    padding-left: 1.25rem;
}

.policy-notice li {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

/* Product Detail Page */
.product-detail-page {
    padding: 2rem 0 4rem;
}

.product-gallery {
    background: var(--store-card-bg);
    border-radius: 12px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.product-gallery img {
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
}

.product-detail-info {
    padding: 0 1rem;
}

.product-detail-info h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.product-detail-pricing {
    display: flex;
    align-items: baseline;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.product-detail-pricing .price-usd {
    font-size: 2.5rem;
}

.product-detail-pricing .price-sats {
    font-size: 1.25rem;
}

.product-detail-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Variant Selectors */
.variant-selector {
    margin-bottom: 1.5rem;
}

.variant-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.variant-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.variant-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.variant-btn.selected {
    border-color: var(--store-orange);
    background: rgba(247, 147, 26, 0.2);
}

/* Quantity Selector */
.quantity-selector {
    margin-bottom: 1.5rem;
}

.quantity-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1.25rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.qty-input {
    width: 60px;
    height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 1rem;
    border-radius: 6px;
}

/* Add to Cart Button (Large) */
.btn-add-to-cart-lg {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--store-orange);
    border: none;
    color: #000;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-add-to-cart-lg:hover {
    background: #ff9f2f;
    transform: scale(1.02);
}

/* Product Features */
.product-features {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-features h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    opacity: 0.9;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--store-cyan);
}

/* Cart Page */
.cart-page {
    padding: 2rem 0 4rem;
}

.cart-items {
    background: var(--store-card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.cart-item {
    display: flex;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 100px;
    height: 100px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
}

.cart-item-image img {
    max-width: 80%;
    max-height: 80%;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-variant {
    font-size: 0.875rem;
    opacity: 0.7;
}

.cart-item-price {
    text-align: right;
}

.cart-summary {
    background: var(--store-card-bg);
    border-radius: 12px;
    padding: 1.5rem;
}

.cart-summary h3 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.95rem;
}

.summary-row.total {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-sats {
    color: var(--store-orange);
    font-size: 0.9rem;
}

.btn-checkout {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--store-orange);
    border: none;
    color: #000;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s;
}

.btn-checkout:hover {
    background: #ff9f2f;
}

/* Empty Cart */
.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-cart-icon {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.empty-cart h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-cart p {
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

.btn-continue-shopping {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--store-cyan);
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .store-hero h1 {
        font-size: 2rem;
    }

    .hero-features {
        flex-direction: column;
    }

    .product-detail-info h1 {
        font-size: 1.75rem;
    }

    .product-detail-pricing .price-usd {
        font-size: 2rem;
    }

    .cart-item {
        flex-direction: column;
    }

    .cart-item-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .cart-item-price {
        text-align: left;
        margin-top: 1rem;
    }
}
