/* Shop Page Styles - MonstREVO Theme */

/* Shop Hero Section */
.shop-hero {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 6rem 2rem 4rem;
    text-align: center;
    overflow: hidden;
}

.shop-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(107, 114, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(75, 85, 99, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.shop-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(251,191,36,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.shop-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.shop-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(75, 85, 99, 0.2));
    border: 2px solid rgba(107, 114, 128, 0.3);
    border-radius: 2rem;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.shop-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    text-shadow: 0 0 60px rgba(107, 114, 128, 0.3);
}

.shop-hero-description {
    font-size: 1.25rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Shop Main */
.shop-main {
    background: #0a0f1e;
    min-height: 100vh;
    padding: 3rem 0;
}

.shop-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2rem;
}

/* Sidebar */
.shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.shop-cart-summary {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 1rem;
    overflow: hidden;
    position: sticky;
    top: 80px;
}

.cart-summary-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.1), rgba(75, 85, 99, 0.1));
    border-bottom: 1px solid rgba(107, 114, 128, 0.2);
    color: #6b7280;
    font-weight: 700;
    font-size: 1.125rem;
}

.cart-summary-content {
    padding: 1.25rem;
}

.cart-items-preview {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 1rem;
}

.cart-items-preview::-webkit-scrollbar {
    width: 6px;
}

.cart-items-preview::-webkit-scrollbar-track {
    background: #0f172a;
    border-radius: 3px;
}

.cart-items-preview::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 3px;
}

.empty-cart {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
}

.empty-cart i {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 0.875rem;
}

.cart-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.cart-item-image {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    object-fit: cover;
    background: #1e293b;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    color: #f1f5f9;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    color: #6b7280;
    font-weight: 700;
    font-size: 0.875rem;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    transition: all 0.2s;
}

.cart-item-remove:hover {
    color: #dc2626;
    transform: scale(1.1);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #334155;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
}

.cart-total-amount {
    color: #6b7280;
    font-size: 1.5rem;
}

.btn-checkout {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-checkout:hover:not(:disabled) {
    background: linear-gradient(135deg, #fde047, #f97316);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 114, 128, 0.4);
}

.btn-checkout:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Categories */
.shop-categories {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 1rem;
    padding: 1.25rem;
}

.sidebar-title {
    color: #f1f5f9;
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.category-btn:hover {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.3);
}

.category-btn.active {
    background: linear-gradient(135deg, rgba(107, 114, 128, 0.2), rgba(75, 85, 99, 0.2));
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.3);
}

/* Products Section */
.shop-products {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.shop-title {
    font-size: 2rem;
    font-weight: 800;
    color: #f1f5f9;
}

.shop-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.shop-search {
    position: relative;
    display: flex;
    align-items: center;
}

.shop-search i {
    position: absolute;
    left: 1rem;
    color: #64748b;
}

.shop-search input {
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #f1f5f9;
    font-family: 'Poppins', sans-serif;
    min-width: 250px;
    transition: all 0.2s;
}

.shop-search input:focus {
    outline: none;
    border-color: #6b7280;
    background: #0f172a;
}

.shop-sort {
    padding: 0.75rem 1rem;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.5rem;
    color: #f1f5f9;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.shop-sort:focus {
    outline: none;
    border-color: #6b7280;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6b7280, #4b5563);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: #6b7280;
    box-shadow: 0 20px 60px rgba(107, 114, 128, 0.2);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.375rem 0.75rem;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-description {
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #334155;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #6b7280;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: scale(1.05);
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #94a3b8;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #1e293b;
    border-top-color: #6b7280;
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #64748b;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

/* Product Modal */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.product-modal.active {
    display: flex;
}

.product-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.product-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border: 1px solid #334155;
    border-radius: 1rem;
    overflow-y: auto;
    z-index: 1;
}

.product-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 50%;
    color: #ef4444;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 2;
}

.product-modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

.product-modal-body {
    padding: 2rem;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 0.75rem;
    background: #0f172a;
}

.product-detail-info h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 1rem;
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.product-detail-description {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.product-detail-actions {
    display: flex;
    gap: 1rem;
}

.btn-add-cart-lg {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #0f172a;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add-cart-lg:hover {
    background: linear-gradient(135deg, #fde047, #f97316);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(107, 114, 128, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .shop-container {
        grid-template-columns: 280px 1fr;
    }
}

@media (max-width: 992px) {
    .shop-container {
        grid-template-columns: 1fr;
    }
    
    .shop-cart-summary {
        position: relative;
        top: 0;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .shop-hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .shop-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .shop-controls {
        width: 100%;
        flex-direction: column;
    }
    
    .shop-search input {
        width: 100%;
    }
    
    .shop-sort {
        width: 100%;
    }
}
