/* ENJOYBIZ - Enhanced Global Styles Supplement */

/* Page Layout */
main {
    min-height: calc(100vh - 300px);
}

/* Section Spacing */
section {
    margin: 0 auto;
    width: 100%;
}

/* Container Enhancements */
.container {
    max-width: 1400px;
    padding: 0 24px;
}

/* Card Animations */
.card, .card-custom, [class*="card"] {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Page Enhancements */
.product-section {
    margin: 40px 0;
}

.product-gallery {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.gallery-main {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.gallery-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: #0066FF;
    transform: scale(1.05);
}

/* Product Info */
.product-info-section {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.product-title-main {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stars {
    color: #FFA500;
}

.product-price-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    background: #f0f7ff;
    border-radius: 12px;
    margin: 20px 0;
}

.price-item {
    text-align: center;
}

.price-item-label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.price-item-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #0066FF;
}

/* Cart & Checkout Pages */
.cart-table {
    width: 100%;
    margin: 20px 0;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr 100px 100px auto;
    gap: 20px;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
}

.cart-item-details p {
    margin: 0;
    font-size: 0.85rem;
    color: #666;
}

.cart-summary {
    background: white;
    padding: 24px;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    position: sticky;
    top: 120px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.summary-row.total {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0066FF;
    border: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 2px solid #0066FF;
}

/* Form Enhancements */
.form-section {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group-row.full {
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .form-group-row {
        grid-template-columns: 1fr;
    }

    .product-price-section {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
    }
}

/* Table Enhancements */
.table-wrapper {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.table {
    width: 100%;
}

.table thead th {
    background: linear-gradient(135deg, #0066FF 0%, #00D4FF 100%);
    color: white;
    font-weight: 700;
    padding: 16px;
    text-align: left;
    border: none;
}

.table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.3s ease;
}

.table tbody tr:hover {
    background: #f9fafb;
}

.table td {
    padding: 16px;
}

.table tbody tr:last-child {
    border-bottom: none;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #664d03;
}

.status-processing {
    background: #cfe2ff;
    color: #084298;
}

.status-shipped {
    background: #cff4fc;
    color: #055160;
}

.status-delivered {
    background: #d1e7dd;
    color: #0f5132;
}

.status-cancelled {
    background: #f8d7da;
    color: #842029;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 12px 0;
    margin-bottom: 24px;
}

.breadcrumb-item {
    font-size: 0.95rem;
}

.breadcrumb-item a {
    color: #0066FF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #666;
}

/* User Center Enhancements */
.user-profile-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0066FF, #00D4FF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    margin: 0 auto 16px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li {
    margin: 4px 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #f0f7ff;
    color: #0066FF;
}

.sidebar-menu a i {
    font-size: 1.2rem;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    border: 2px dashed #e5e7eb;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    color: #1d1d1f;
    margin: 0 0 8px;
}

.empty-state p {
    color: #666;
    margin: 0 0 24px;
}

/* Loader */
.loader {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0066FF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

.toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    margin-bottom: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(3, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    
    .cart-summary {
        position: static;
        margin-top: 24px;
    }
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #0066FF;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0,102,255,0.3);
    transition: all 0.3s ease;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,102,255,0.4);
}

.scroll-top.show {
    display: flex;
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .navbar,
    .breadcrumb,
    .no-print {
        display: none !important;
    }

    body {
        background: white;
    }

    .product-card,
    .cart-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}
