/* Global Styles */
:root {
    --primary-color: #8a2be2; /* Purple */
    --secondary-color: #ff6b6b; /* Coral */
    --dark-bg: #121212;
    --card-bg: #1e1e1e;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --border-radius: 8px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --success: #4caf50;
    --error: #f44336;
    --warning: #ff9800;
    --info: #2196f3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
.header {
    background-color: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo h1 a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav ul li a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav ul li a:hover {
    color: var(--text-light);
}

.nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav ul li a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px 0 0 20px;
    color: var(--text-light);
    width: 200px;
}

.search-box button {
    background: var(--primary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 0 20px 20px 0;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover {
    background: #7a1ad2;
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.user-actions a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    position: relative;
}

.user-actions a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.notif-dropdown {
    position: absolute;
    right: 20px;
    top: 60px;
    background: var(--card-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
}

.notif-item {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.notif-item:last-child { border-bottom: 0; }
.notif-title { font-weight: 600; margin-bottom: 4px; }
.notif-message { color: var(--text-gray); font-size: 0.9rem; }
.notif-time { color: var(--text-gray); font-size: 0.8rem; margin-top: 6px; }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(255, 107, 107, 0.1));
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    text-align: center;
}

.btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 43, 226, 0.4);
}

.btn.secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-gray);
}

.btn.secondary:hover {
    background: var(--text-gray);
    color: var(--dark-bg);
    border-color: var(--text-gray);
}

.btn.full-width {
    display: block;
    width: 100%;
}

.btn.google-btn {
    background: #4285f4;
    border-color: #4285f4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn.google-btn:hover {
    background: transparent;
    color: #4285f4;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    color: var(--text-light);
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(138, 43, 226, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input {
    margin-right: 10px;
    width: auto;
}

/* Checkbox group styling */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
}

.checkbox-group .checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: var(--border-radius);
    transition: background 0.3s ease;
}

.checkbox-group .checkbox-label:hover {
    background: rgba(138, 43, 226, 0.1);
}

/* Current image display in admin */
.current-image {
    margin-bottom: 10px;
}

.current-image img {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.forgot-password {
    display: block;
    text-align: right;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 5px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-gray);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.back-to-home {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 500;
    z-index: 9999;
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: var(--success);
}

.notification.error {
    background: var(--error);
}

.notification.warning {
    background: var(--warning);
}

.notification.info {
    background: var(--info);
}

.close-notification {
    cursor: pointer;
    font-size: 1.2rem;
    margin-left: 15px;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Admin Dashboard */
.admin-dashboard {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 250px;
    background: var(--card-bg);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.admin-logo {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.admin-logo h2 {
    font-size: 1.8rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-nav ul {
    list-style: none;
    padding: 0 10px;
}

.admin-nav ul li {
    margin-bottom: 5px;
}

.admin-nav ul li a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    gap: 10px;
    border-radius: var(--border-radius);
}

.admin-nav ul li a:hover,
.admin-nav ul li a.active {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary-color);
}

.admin-main {
    flex: 1;
    margin-left: 250px;
    padding-top: 20px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    margin: 0 20px 20px 20px;
}

.admin-content {
    padding: 0 20px 20px 20px;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.stat-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.stat-info h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.stat-info p {
    color: var(--text-gray);
    margin: 0;
}

/* Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
    background: rgba(138, 43, 226, 0.1);
    font-weight: 600;
    color: var(--text-light);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

/* Status Badges */
.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status.active,
.status.confirmed,
.status.completed {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.status.inactive {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.status.processing {
    background: rgba(33, 150, 243, 0.2);
    color: #2196f3;
}

.status.packaged {
    background: rgba(156, 39, 176, 0.2);
    color: #9c27b0;
}

.status.delivered {
    background: rgba(0, 150, 136, 0.2);
    color: #009688;
}

.status.canceled {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.status.on-hold {
    background: rgba(255, 152, 0, 0.2);
    color: #ff9800;
}

.status.payment-verifying {
    background: rgba(158, 158, 158, 0.2);
    color: #9e9e9e;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-action:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.btn-action i {
    font-size: 0.9rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.close-modal {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-gray);
}

.close-modal:hover {
    color: var(--text-light);
}

.modal-body {
    padding: 20px;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Products Grid */
.products {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.product-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-image .discount {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-image .stock-status {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(76, 175, 80, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.product-info p {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 1rem;
    color: var(--text-gray);
    text-decoration: line-through;
}

/* Cart Page */
.cart-page {
    padding: 40px 0;
}

.cart-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.cart-page .page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cart-page .page-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
}

.cart-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.cart-items {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 2fr 1fr 1fr 1fr auto;
    gap: 15px;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:last-child {
    border-bottom: none;
}

.item-image img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.item-details h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.item-details p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.item-price,
.item-total {
    font-weight: 600;
    color: var(--primary-color);
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
}

.qty-input {
    width: 50px;
    text-align: center;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.remove-item {
    background: none;
    border: none;
    color: var(--error);
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.remove-item:hover {
    transform: scale(1.1);
}

.cart-summary {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.summary-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-header h3 {
    font-size: 1.5rem;
    margin: 0;
}

.summary-details {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.continue-shopping {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--primary-color);
    text-decoration: none;
}

.continue-shopping:hover {
    text-decoration: underline;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 4rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.empty-cart h3 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.empty-cart p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Checkout Page */
.checkout-page {
    padding: 40px 0;
}

.checkout-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.checkout-page .page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.checkout-page .page-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
}

.checkout-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.checkout-form {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.payment-option {
    position: relative;
}

.payment-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.payment-label:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: var(--primary-color);
}

.payment-label i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-option input[type="radio"]:checked + .payment-label {
    background: rgba(138, 43, 226, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.payment-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-instructions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-instructions h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.payment-instructions ol {
    padding-left: 20px;
    color: var(--text-gray);
}

.payment-instructions li {
    margin-bottom: 10px;
}

.payment-instructions strong {
    color: var(--primary-color);
    font-weight: 600;
}

.hidden {
    display: none;
}

.order-summary {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
}

.order-summary h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.summary-items {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item .variation-name {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 5px 0;
}

/* Product Details */
.product-details-page {
    padding: 40px 0;
}

.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image img {
    width: 100%;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    border: 2px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.7;
}

.thumbnail-images img:hover {
    opacity: 1;
    border-color: rgba(138, 43, 226, 0.5);
}

.thumbnail-images img.active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: center;
}

.category {
    background: rgba(138, 43, 226, 0.2);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.product-meta .stock-status {
    display: inline-block;
    margin: 0;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.product-description {
    margin-bottom: 30px;
    color: var(--text-gray);
}

/* Product Variations */
.product-variations {
    margin: 20px 0;
}

.product-variations h3 {
    margin-bottom: 15px;
}

.variations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.variation-option {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
}

.variation-option:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: var(--primary-color);
}

.variation-option.active {
    background: rgba(138, 43, 226, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.variation-info h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.variation-stock {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.variation-stock .stock-status {
    position: relative;
    bottom: auto;
    left: auto;
    display: inline-block;
    margin: 0;
}

.stock-status.out-of-stock {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.product-meta .stock-status.out-of-stock {
    display: inline-block;
    margin: 0;
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Product Actions */
.product-actions {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-color);
}

#quantity {
    width: 60px;
    text-align: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    color: var(--text-light);
}

.wishlist-btn {
    margin-left: 10px;
}

/* Related Products */
.related-products h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    text-align: center;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Account Page */
.account-page {
    padding: 40px 0;
}

.account-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.account-page .page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.account-page .page-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
}

.account-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-top: 30px;
}

.account-sidebar {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: fit-content;
}

.user-profile {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

.profile-image {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.user-profile h3 {
    margin-bottom: 5px;
}

.user-profile p {
    color: var(--text-gray);
}

.account-nav ul {
    list-style: none;
}

.account-nav ul li {
    margin-bottom: 10px;
}

.account-nav ul li a {
    display: block;
    padding: 10px 15px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.account-nav ul li a:hover,
.account-nav ul li a.active {
    background: rgba(138, 43, 226, 0.1);
    color: var(--primary-color);
}

.account-main {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

/* Order History */
.order-history {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-id {
    font-weight: 600;
    font-size: 1.1rem;
}

.order-date {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.order-amount {
    font-size: 1.2rem;
    font-weight: 600;
}

.order-status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.order-status.pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.order-status.processing {
    background: rgba(0, 123, 255, 0.2);
    color: #007bff;
}

.order-status.completed {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.order-status.cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.order-actions {
    text-align: right;
}

.order-actions .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Categories Page */
.categories-page {
    padding: 40px 0;
}

.categories-page .page-header {
    text-align: center;
    margin-bottom: 40px;
}

.categories-page .page-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.categories-page .page-header p {
    color: var(--text-gray);
    font-size: 1.2rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-color);
}

.category-card a {
    text-decoration: none;
    color: var(--text-light);
    display: block;
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.category-icon {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(138, 43, 226, 0.1);
    font-size: 3rem;
    color: var(--primary-color);
}

.category-card h3 {
    padding: 15px 15px 5px 15px;
    margin: 0;
}

.category-card p {
    padding: 0 15px 15px 15px;
    margin: 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 15px;
    font-size: 2rem;
}

.empty-state p {
    color: var(--text-gray);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: rgba(10, 10, 10, 0.9);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3,
.footer-col h4 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after,
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

.floating-cart {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: floatUpDown 2s ease-in-out infinite;
}

.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 86px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    animation: floatUpDown 2s ease-in-out infinite;
}

.floating-cart:hover { transform: translateY(-2px); }

@keyframes floatUpDown {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* Auth Pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 100px);
    padding: 40px 0;
}

.auth-box {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--box-shadow);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-header p {
    color: var(--text-gray);
}

/* Notice Bar */
.notice-bar {
    background: var(--dark-bg);
    padding: 10px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notice-bar .container {
    display: flex;
    justify-content: center;
}

.notice-bar .notice-content {
    background: rgba(138, 43, 226, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 10px 20px;
    display: inline-block;
    animation: pulse 2s infinite;
}

.notice-bar .notice-content p {
    margin: 0;
    color: var(--text-light);
    font-weight: 500;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(138, 43, 226, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(138, 43, 226, 0);
    }
}

/* Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 40px;
    contain: layout style paint;
}

.banner-container {
    position: relative;
    width: 100%;
    height: 400px;
    contain: layout style paint;
}

.banner-slides {
    position: relative;
    width: 100%;
    height: 100%;
    contain: layout style paint;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    contain: layout style paint;
    will-change: opacity;
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    contain: layout style paint;
    will-change: transform;
}

.banner-static {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.banner-static .hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.banner-static .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-light);
}

.banner-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    pointer-events: none;
}

.banner-controls button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.3s ease;
}

.banner-controls button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.banner-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.banner-dot.active {
    background: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .banner-container {
        height: 300px;
    }
    
    .banner-static {
        height: 300px;
    }
    
    .banner-static .hero-content h2 {
        font-size: 2rem;
    }
    
    .banner-static .hero-content p {
        font-size: 1rem;
    }
    
    .banner-controls {
        padding: 0 10px;
    }
    
    .banner-controls button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    /* Mobile header adjustments */
    .header .container {
        flex-wrap: wrap;
        padding: 10px 0;
    }
    
    .logo h1 a {
        font-size: 1.5rem;
    }
    
    .nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .header-actions {
        gap: 10px;
    }
    
    .search-box input {
        width: 120px;
        padding: 6px 10px;
    }
    
    .search-box button {
        padding: 6px 10px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    /* Account Page Mobile */
    .account-page {
        padding: 20px 0;
    }
    
    .account-page .page-header {
        margin-bottom: 20px;
    }
    
    .account-page .page-header h2 {
        font-size: 1.8rem;
    }
    
    .account-page .page-header p {
        font-size: 1rem;
    }
    
    .account-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .account-sidebar {
        padding: 15px;
    }
    
    .account-main {
        padding: 20px;
    }
    
    .profile-image {
        font-size: 2.5rem;
    }
    
    .account-nav ul li a {
        padding: 8px 12px;
    }
    
    /* Mobile Account Nav Toggle */
    .mobile-account-nav-toggle {
        display: none;
    }
    
    /* Order History Mobile */
    .order-card {
        padding: 15px;
    }
    
    .order-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .order-details {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .order-amount {
        font-size: 1.1rem;
    }
    
    .order-actions {
        text-align: left;
        margin-top: 10px;
    }
    
    .order-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    /* Cart Page Mobile */
    .cart-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cart-item {
        grid-template-columns: 60px 1fr 1fr auto;
        gap: 10px;
        padding: 15px 0;
    }
    
    .item-details {
        grid-column: span 2;
    }
    
    .item-price {
        display: none;
    }
    
    .item-quantity {
        justify-content: flex-end;
    }
    
    .item-total {
        text-align: right;
    }
    
    /* Checkout Page Mobile */
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .order-summary {
        position: relative;
        top: auto;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .payment-methods {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .payment-label {
        padding: 15px 5px;
    }
    
    .payment-label i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    /* Product Details Mobile */
    .product-details-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .variations-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .variation-option {
        padding: 12px;
    }
    
    .product-info h1 {
        font-size: 1.8rem;
    }
    
    .product-meta {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .banner-container {
        height: 250px;
    }
    
    .banner-static {
        height: 250px;
    }
    
    .banner-static .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .banner-static .hero-content p {
        font-size: 0.9rem;
    }
    
    .notice-bar {
        padding: 8px 0;
    }
    
    .notice-bar .notice-content {
        padding: 8px 15px;
        margin: 0 10px;
    }
    
    .notice-bar .notice-content p {
        font-size: 0.9rem;
    }
    
    /* Mobile header adjustments */
    .header .container {
        padding: 8px 0;
    }
    
    .logo h1 a {
        font-size: 1.3rem;
    }
    
    .search-box {
        display: none;
    }
    
    .user-actions a {
        font-size: 1rem;
    }
    
    .nav ul {
        gap: 12px;
    }
    
    /* Account Page Mobile Small */
    .account-page .page-header h2 {
        font-size: 1.5rem;
    }
    
    .account-sidebar {
        padding: 10px;
    }
    
    .account-main {
        padding: 15px;
    }
    
    .profile-image {
        font-size: 2rem;
    }
    
    .user-profile h3 {
        font-size: 1.1rem;
    }
    
    .user-profile p {
        font-size: 0.9rem;
    }
    
    .account-nav ul li {
        margin-bottom: 5px;
    }
    
    .account-nav ul li a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    /* Order History Mobile Small */
    .order-card {
        padding: 12px;
    }
    
    .order-id {
        font-size: 1rem;
    }
    
    .order-date {
        font-size: 0.8rem;
    }
    
    .order-amount {
        font-size: 1rem;
    }
    
    /* Cart Page Mobile Small */
    .cart-item {
        grid-template-columns: 50px 1fr auto;
        gap: 8px;
    }
    
    .item-details h3 {
        font-size: 1rem;
    }
    
    .item-details p {
        font-size: 0.8rem;
    }
    
    .qty-input {
        width: 40px;
        padding: 3px;
    }
    
    .quantity-btn {
        width: 25px;
        height: 25px;
        font-size: 1rem;
    }
    
    /* Checkout Page Mobile Small */
    .payment-methods {
        grid-template-columns: 1fr 1fr;
    }
    
    .payment-label {
        padding: 12px 5px;
        font-size: 0.9rem;
    }
    
    .summary-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .summary-item .item-total {
        text-align: left;
        font-weight: 600;
    }
    
    /* Product Details Mobile Small */
    .variations-grid {
        grid-template-columns: 1fr;
    }
    
    .variation-option {
        padding: 10px;
    }
    
    .variation-info h4 {
        font-size: 0.9rem;
    }
    
    .product-actions {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
