:root {
    --primary: #ff7eb9;
    --secondary: #7ec4ff;
    --accent: #ffd166;
    --dark: #333;
    --light: #f8f9fa;
    --gray: #6c757d;
    --light-gray: #dee2e6;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #fff;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */

header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    color: white;
    font-size: 1.8rem;
    font-weight: bold;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

nav a:hover {
    opacity: 0.8;
}

/* Login / Signup Button */

.login-btn {
    background: #ff66a6;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 10px;
    transition: background 0.3s;
}

.login-btn:hover {
    background: #f55fa1;
}

/* Admin Panel Styles */

.admin-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 20px;
}

.admin-panel.open {
    right: 0;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.admin-logout {
    background: var(--danger);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-logout:hover {
    background: #c82333;
}

.admin-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s;
    padding: 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-close:hover {
    color: var(--danger);
    background-color: rgba(220, 53, 69, 0.1);
}

.admin-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: var(--radius) 0 0 var(--radius);
    cursor: pointer;
    z-index: 1999;
}

.admin-tabs {
    display: flex;
    border-bottom: 1px solid var(--light-gray);
    margin-bottom: 20px;
}

.admin-tab {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.admin-tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-form {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.admin-form input,
.admin-form textarea,
.admin-form select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.admin-form textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group {
    margin-bottom: 15px;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #ff5da2;
}

.btn-secondary {
    background-color: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background-color: #66b3ff;
}

.btn-success {
    background-color: var(--success);
    color: white;
}

.btn-warning {
    background-color: var(--warning);
    color: var(--dark);
}

.btn-danger {
    background-color: var(--danger);
    color: white;
}

.btn-small {
    padding: 5px 10px;
    font-size: 0.85rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.stat-card p {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

/* Hero Section */

.hero {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect fill="%23ff7eb9" opacity="0.2" width="20" height="20"/></svg>');
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.1)"/></svg>');
    background-size: cover;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #34495e;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.highlight {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    color: #e84393;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.hero-btn:nth-child(2) {
    background: linear-gradient(135deg, #e84393, #d6307a);
}

.hero-btn:nth-child(2):hover {
    box-shadow: 0 6px 20px rgba(232, 67, 147, 0.4);
}

#shopNowBtn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

#shopNowBtn:hover {
    background: linear-gradient(135deg, #2980b9, #21618c);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

#customizePerfumeBtn {
    background: linear-gradient(135deg, #e84393, #d6307a);
    color: white;
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.3);
}

#customizePerfumeBtn:hover {
    background: linear-gradient(135deg, #d6307a, #c0266d);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(232, 67, 147, 0.4);
}

.whatsapp-icon {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.perfume-icon {
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    p {
        font-size: 1.1rem;
    }
    .btn-container {
        flex-direction: column;
        align-items: center;
    }
    .hero-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Categories */

.categories {
    padding: 40px 0;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--dark);
    position: relative;
    display: inline-block;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--primary);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background-color: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
}

.category-card.active {
    border: 2px solid var(--primary);
    background-color: var(--light);
}

/* Products */

.products {
    padding: 40px 0;
    background-color: var(--light);
}

.product-filter {
    margin-bottom: 30px;
    text-align: center;
}

.category-filter {
    display: inline-flex;
    background: white;
    padding: 8px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    gap: 5px;
}

.category-filter-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.category-filter-btn.active {
    background: var(--primary);
    color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1;
}

.badge-new {
    background-color: var(--success);
    color: white;
}

.badge-out {
    background-color: var(--danger);
    color: white;
}

.badge-sale {
    background-color: var(--accent);
    color: var(--dark);
}

.product-img {
    height: 200px;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
    display: block;
    margin: 0 auto;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.4;
    min-height: 40px;
}

.product-price {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 15px;
}

.product-price-old {
    font-size: 1rem;
    color: var(--gray);
    text-decoration: line-through;
    margin-right: 8px;
}

/* Product Actions with Quantity Selector */

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 2px;
    gap: 6px;
}

.quantity-selector button {
    background: linear-gradient(135deg, #ff7eb9, #ff66a6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(255, 126, 185, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-selector button:hover:not(:disabled) {
    background: linear-gradient(135deg, #ff66a6, #ff4f8b);
    transform: scale(1.1);
}

.quantity-selector button:active:not(:disabled) {
    transform: scale(0.95);
}

.quantity-selector button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    background: transparent;
    color: #333;
}

.action-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
}

.add-to-cart-btn {
    flex: 1;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #20c997, #17a2b8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.add-to-cart-btn:active:not(:disabled) {
    transform: translateY(0);
}

.add-to-cart-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    box-shadow: none;
}

.view-details-btn {
    background: linear-gradient(135deg, #7ec4ff, #66b3ff);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(126, 196, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #66b3ff, #4da3ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(126, 196, 255, 0.4);
}

.view-details-btn:active {
    transform: translateY(0);
}

.view-details-btn i {
    font-size: 1.1rem;
}

/* Newsletter */

.newsletter {
    padding: 40px 0;
    background-color: var(--primary);
    color: white;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: var(--radius);
}

/* Charts */

.chart-container {
    background: white;
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.chart-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark);
}

/* Tables */

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.admin-table th,
.admin-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid var(--light-gray);
}

.admin-table th {
    background-color: var(--light);
    font-weight: 600;
}

.admin-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Status badges */

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-pending {
    background-color: var(--warning);
    color: var(--dark);
}

.status-processing {
    background-color: var(--secondary);
    color: white;
}

.status-completed {
    background-color: var(--success);
    color: white;
}

.status-cancelled {
    background-color: var(--danger);
    color: white;
}

/* Payment Form Styles */

.payment-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.payment-form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.payment-form input[type="text"],
.payment-form input[type="email"],
.payment-form input[type="tel"],
.payment-form input[type="number"],
.payment-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-top: 0.25rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
    box-sizing: border-box;
}

.payment-form input[type="text"]:focus,
.payment-form input[type="email"]:focus,
.payment-form input[type="tel"]:focus,
.payment-form input[type="number"]:focus,
.payment-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.payment-form textarea {
    resize: vertical;
    min-height: 60px;
    font-family: inherit;
}

/* Error States */

.payment-form input:invalid:not(:focus):not(:placeholder-shown),
.payment-form textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #dc3545;
}

.payment-form input:valid:not(:focus):not(:placeholder-shown),
.payment-form textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #28a745;
}

/* Error Messages */

.payment-form .error {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

/* Submit Button */

.payment-form .hero-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.payment-form .hero-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.payment-form .hero-btn:active {
    transform: translateY(0);
}

.payment-form .hero-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Upload Status */

#upload-status {
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

#upload-status:not(:empty) {
    padding: 0.75rem;
    border-radius: 6px;
    background-color: #f8f9fa;
    border-left: 4px solid #007bff;
}

/* Loading State */

.payment-form .loading {
    opacity: 0.7;
    pointer-events: none;
}

.payment-form .loading .hero-btn {
    background: #6c757d;
    position: relative;
}

.payment-form .loading .hero-btn::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }
    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

/* Modal Styles */

.payment-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.payment-modal-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.payment-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    padding: 0.25rem;
    border-radius: 4px;
}

.payment-modal-close:hover {
    color: #333;
    background-color: #f8f9fa;
}

/* Payment Options */

.payment-options {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.payment-option-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-weight: 500;
}

.payment-option-btn.active {
    border-color: var(--primary);
    background-color: rgba(255, 126, 185, 0.1);
    color: var(--primary);
}

.payment-option-btn:hover {
    border-color: var(--primary);
}

/* Footer */

footer {
    background-color: var(--dark);
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary);
}

.footer-section p,
.footer-section a {
    margin-bottom: 10px;
    color: #ccc;
    text-decoration: none;
    display: block;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-links a {
    font-size: 1.2rem;
}

.copyright,
.copyright p,
.copyright * {
    color: #ffffff !important;
    text-align: center;
    font-weight: 500;
    opacity: 0.95;
}

.copyright {
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* Admin Login Modal */

#adminLoginModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

#adminLoginModal>div {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#adminLoginModal h2 {
    margin-bottom: 20px;
    color: var(--primary);
}

#adminLoginModal p {
    margin-bottom: 20px;
    color: var(--gray);
}

#adminPassword {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 16px;
}

#loginError {
    color: var(--danger);
    margin-top: 15px;
    display: none;
}

/* Cart Sidebar */

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100vh;
    background-color: #fff7f3;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    transition: right 0.4s ease;
    z-index: 2000;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem;
    background-color: #ffe6e1;
    border-bottom: 1px solid #f0d3ca;
}

.cart-header h2 {
    margin: 0;
    font-size: 1.3rem;
    color: #b05a67;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #b05a67;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 10px;
    padding: 0.8rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 10px;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #444;
}

.item-price {
    color: #b05a67;
    font-weight: 600;
    margin-top: 5px;
}

.item-qty {
    font-size: 0.85rem;
    color: #666;
    margin-top: 2px;
}

.remove-item {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #b05a67;
    cursor: pointer;
}

.cart-footer {
    padding: 1rem;
    border-top: 1px solid #f0d3ca;
    background: #fff;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #333;
}

.checkout-btn {
    width: 100%;
    background: #ff7eb9;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.checkout-btn:hover {
    background: #ff66a6;
}

.cart-toggle {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #ff7eb9;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 1500;
}

.cart-toggle:hover {
    background: #ff66a6;
}

.cart-count {
    background: white;
    color: #ff66a6;
    font-size: 0.8rem;
    border-radius: 50%;
    padding: 2px 6px;
    margin-left: 5px;
}

/* Modal Styling */

.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.auth-modal-content {
    position: relative;
    background: #fff;
    padding: 30px 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 18px;
    background: #ff66a6;
    color: white;
    border: none;
    font-size: 1.3rem;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-close:hover {
    background: #f55fa1;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    gap: 10px;
}

.auth-tabs button {
    background: #fce1ed;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    color: #ff66a6;
    cursor: pointer;
    transition: 0.3s;
}

.auth-tabs button.active {
    background: #ff66a6;
    color: white;
}

.auth-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 2px solid #fca5f1;
    border-radius: 8px;
}

.auth-form button {
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Modal Overlay */

.auth-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

/* Box Layout */

.auth-modal-box {
    display: flex;
    width: 750px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Left Info Panel */

.auth-info {
    width: 40%;
    background: linear-gradient(135deg, #ffb6c1, #ff66a6);
    color: #fff;
    padding: 40px 25px;
    text-align: center;
}

.auth-info img.auth-logo {
    width: 70px;
    border-radius: 50%;
    margin-bottom: 10px;
}

.auth-info h2 {
    margin-bottom: 10px;
    font-weight: 700;
}

.auth-info ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

.auth-info li {
    margin: 8px 0;
}

.auth-info i {
    margin-right: 8px;
}

/* Right Form Section */

.auth-form-section {
    width: 60%;
    padding: 40px 30px;
    position: relative;
}

/* Close Button */

.auth-close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    border: none;
    background: none;
    color: #ff66a6;
    cursor: pointer;
}

/* Tabs */

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.auth-tabs button {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    color: #555;
}

.auth-tabs button:hover {
    color: #ff4f8b;
}

.auth-tabs button.active {
    color: #fff;
    border-bottom: 2px solid #ff4f8b;
}

/* Forms */

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-form label {
    font-size: 14px;
    color: #444;
    margin-bottom: 5px;
}

.auth-form input {
    padding: 10px 12px;
    border: 1.5px solid #f5b6c4;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 15px;
}

.auth-form input:focus {
    border-color: #ff66a6;
    outline: none;
}

/* Buttons */

.auth-btn {
    background: #ff66a6;
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.auth-btn:hover {
    background: #ff3380;
}

/* Social Login */

.auth-divider {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin: 15px 0;
}

.auth-social {
    display: flex;
    justify-content: space-between;
}

.google-btn,
.facebook-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}

.google-btn {
    background: #f2f2f2;
    margin-right: 10px;
}

.facebook-btn {
    background: #1877f2;
    color: white;
}

/* Terms Modal Styling */

.terms-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.terms-content {
    background: #fff;
    color: #333;
    padding: 30px;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
    position: relative;
}

.close-terms {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    color: #ff4f8b;
    font-weight: bold;
}

.close-terms:hover {
    color: #ff1e73;
}

#openTerms {
    color: #ff4f8b;
    cursor: pointer;
    text-decoration: underline;
    font-weight: 600;
}

#openTerms:hover {
    color: #ff1e73;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* User Profile Styles */

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color 0.3s;
}

.user-profile-header:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff7eb9, #7ec4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    border: 2px solid white;
}

.user-name {
    color: white;
    font-weight: 500;
    font-size: 14px;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.dropdown-divider {
    height: 1px;
    background-color: #e9ecef;
    margin: 4px 0;
}

/* User Notifications */

.user-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    z-index: 10000;
    max-width: 350px;
    animation: slideInRight 0.3s ease;
}

.user-notification.success {
    border-left: 4px solid var(--success);
}

.user-notification.error {
    border-left: 4px solid var(--danger);
}

.user-notification.info {
    border-left: 4px solid var(--secondary);
}

.user-notification button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.user-notification button:hover {
    color: #333;
}

/* Profile Form Improvements */

.auth-form select {
    padding: 10px 12px;
    border: 1.5px solid #f5b6c4;
    border-radius: 8px;
    font-size: 15px;
    background-color: white;
    width: 100%;
}

.auth-form select:focus {
    border-color: #ff66a6;
    outline: none;
}

.auth-form h4 {
    font-size: 16px;
    font-weight: 600;
}

/* Animations */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }
    nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .payment-modal-content {
        width: 95%;
        padding: 1rem;
    }
    .admin-panel {
        width: 100%;
        right: -100%;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .payment-options {
        flex-direction: column;
    }
    .user-name {
        display: none;
    }
    .user-profile-header {
        padding: 5px;
    }
    .user-dropdown {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
    .user-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .quantity-selector {
        justify-content: center;
        width: 100%;
    }
    .add-to-cart-btn {
        width: 100%;
    }
    .auth-modal-box {
        flex-direction: column;
        width: 95%;
    }
    .auth-info,
    .auth-form-section {
        width: 100%;
    }
    .auth-info {
        padding: 20px;
    }
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* Header button positioning fix */

.header-content {
    position: relative;
}

.login-btn {
    position: relative;
    z-index: 1002;
}

/* Category Management Styles */

.categories-list {
    margin-top: 20px;
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    margin-bottom: 10px;
    background: white;
    transition: all 0.3s;
}

.category-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.category-item>div:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-item i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
}

.category-item .btn {
    margin-left: 5px;
}

/* Category Filter Styles */

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.category-filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--light-gray);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray);
}

.category-filter-btn.active,
.category-filter-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

/* Category Grid Styles */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary);
}

.category-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 126, 185, 0.1), rgba(126, 196, 255, 0.1));
    transform: translateY(-5px);
}

.category-card.active i {
    color: var(--primary);
    transform: scale(1.1);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Admin Filter Controls */

.filter-controls {
    margin-bottom: 20px;
}

.filter-controls select {
    padding: 8px 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    background: white;
    font-size: 14px;
}

/* Customer Management Styles */

.customer-details-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.customer-details-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.customer-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-customer-details {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
}

/* Responsive adjustments */

@media (max-width: 768px) {
    .admin-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .admin-logout {
        align-self: flex-end;
    }
    .admin-tabs {
        flex-wrap: wrap;
    }
    .admin-tab {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
    .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .category-card {
        padding: 20px 15px;
    }
    .category-card i {
        font-size: 2rem;
    }
    .category-filter {
        gap: 5px;
    }
    .category-filter-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    .category-item {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .category-item>div:first-child {
        justify-content: center;
    }
}


/* Enhanced Button Styles */
.cart-icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.cart-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4f8b, #ff1e73);
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 6px;
    box-shadow: 0 2px 6px rgba(255, 30, 115, 0.4);
    animation: cartPulse 2s infinite;
}

@keyframes cartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.view-details-btn {
    background: linear-gradient(135deg, #7ec4ff, #66b3ff);
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(126, 196, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #66b3ff, #4da3ff);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(126, 196, 255, 0.4);
}

.view-details-btn:active {
    transform: translateY(0);
}

.view-details-btn i {
    font-size: 1rem;
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 6px;
    width: fit-content;
}

.qty-btn {
    background: linear-gradient(135deg, #ff7eb9, #ff66a6);
    color: white;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(255, 126, 185, 0.2);
}

.qty-btn:hover {
    background: linear-gradient(135deg, #ff66a6, #ff4f8b);
    transform: scale(1.05);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-display {
    min-width: 35px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #333;
}


/* Input with Icon Styles */
.input-with-icon {
    position: relative;
    margin-bottom: 15px;
}

.input-icon-emoji {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    z-index: 1;
}

.input-icon-img {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.6;
    z-index: 1;
}
