:root {
    --bg-primary: #ffffff;
    --text-primary: #1d232c;
    --text-secondary: #475569;
    --bg-secondary: #f2f4f7;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --navbar-bg: #ffffff;
    --navbar-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
    --card-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px;
    --accent-color: #1d232c;
    --accent-hover: #2d3748;
    --footer-bg: #1d232c;
    --footer-text: #f2f4f7;
}

[data-theme="dark"] {
    --bg-primary: #111827;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --bg-secondary: #1f2937;
    --bg-card: #1e293b;
    --border-color: #374151;
    --navbar-bg: #1e293b;
    --navbar-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --accent-color: #3b82f6;
    --accent-hover: #2563eb;
    --footer-bg: #0f172a;
    --footer-text: #cbd5e1;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s, color 0.3s;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--navbar-bg);
    box-shadow: var(--navbar-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.navbar-links {
    display: flex;
    column-gap: 20px;
}

.navbar-links a {
    text-decoration: none;
    color: var(--text-primary);
    padding: 5px 10px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.navbar-links a:hover {
    background-color: var(--bg-secondary);
}

.navbar-links a.active-link {
    font-weight: 700;
    background-color: var(--accent-color);
    color: white;
}

.navbar-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-icon-container {
    position: relative;
    cursor: pointer;
    font-size: 1.2rem;
}

#cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #ef4444;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.navbar-menu-toggle {
    display: none;
}

.side-navbar {
    background-color: #1d232c;
    width: 50%;
    height: 100%;
    position: fixed;
    top: 0;
    left: -60%;
    padding: 20px;
    color: white;
    transition: 0.5s;
    z-index: 1001;
}

.side-navbar-link {
    margin-bottom: 30px;

}

.side-navbar-links a {
    text-decoration: none;
    color: white;
}

.side-navbar-links a:hover {
    text-decoration: underline;
}

/*Header*/
.header {
    display: flex;
    justify-content: center;
    gap: 50px;
    padding: 50px;
}

.header-button {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 10px;
    background-color: #1d232c;
    color: white;
    cursor: pointer;
}

.service {
    padding: 20px;
}

.service-container-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.service-container-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.service-container-2 div {
    background-color: var(--bg-secondary);
    border-radius: 10px;
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.service-container-2 div:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.new-arrival {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.new-arrival-container {
    position: relative;
    flex-basis: 20%;
    left: 30px;
}

.new-arrival button {
    padding-left: 10%;
    padding-right: 10%;
    padding-top: 5%;
    padding-bottom: 5%;
    margin-top: 10px;
    color: #1d232c;
    position: absolute;
    top: 50%;
    left: 10%;
    border-radius: 10px;
    border: none;
}


.news {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.news input {
    padding: 11px;
    width: 80vw;
    margin-bottom: 10px;
    border: solid var(--text-primary) 1px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    margin-top: 10px;
}

.news button {
    margin-top: 10px;
    color: white;
    background-color: var(--accent-color);
    border-radius: 10px;
    padding: 10px;
}

.footer {
    margin-top: 20px;
    padding: 40px;
    background-color: var(--footer-bg);
    color: var(--footer-text);
    transition: background-color 0.3s;
}

.footer p {
    text-align: center;
}

.product-section {
    margin-top: 20px;
}

.product-search {
    width: 80%;
    border: solid var(--border-color) 1px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin: auto;
    background-color: var(--bg-secondary);
    transition: background-color 0.3s, border-color 0.3s;
}

.product-search i {
    color: var(--text-secondary);
}

.product-search input {
    border: none;
    background-color: transparent;
    width: 100%;
    color: var(--text-primary);
    font-size: 0.95rem;
    padding-left: 5px;
}

.product-search input::placeholder {
    color: var(--text-secondary);
}

.product-search input:focus {
    outline: none;
}

.products {
    padding: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: space-around;
}

.products-box {
    text-align: center;
    flex-basis: 20%;
}

.products-box img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.products-box:hover img {
    transform: scale(1.05);
}

.add-cart-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background-color 0.2s, transform 0.2s;
}

.add-cart-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

/* Category Sidebar */
.collection-container {
    display: flex;
    padding: 20px;
    gap: 30px;
}

.filter-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-section h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 5px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.filter-section h3 {
    color: var(--text-primary);
    border-bottom-color: var(--border-color);
}

.filter-option input {
    cursor: pointer;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1d232c;
    color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(100px);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.cart-notification.show {
    transform: translateY(0);
}

/* Modern Contact Page Redesign */
.contact-page {
    background-color: #f8fafc;
    min-height: calc(100vh - 80px);
    /* Adjust based on navbar height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.contact-card {
    background: white;
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Left Side: Contact Info */
.contact-visual {
    background-color: #1d232c;
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-visual h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: left;
}

.contact-visual p {
    color: #94a3b8;
    margin-bottom: 40px;
    line-height: 1.6;
}

.info-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: 0.3s;
}

.info-item:hover i {
    background: white;
    color: #1d232c;
}

.social-row {
    display: flex;
    gap: 15px;
    margin-top: 50px;
}

.social-link {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.social-link:hover {
    background: white;
    color: #1d232c;
    transform: translateY(-3px);
}

/* Right Side: Contact Form */
.contact-form-side {
    padding: 50px;
}

.contact-form-side h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #1e293b;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-form-grid .full {
    grid-column: span 2;
}

.contact-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
}

.contact-input-group input,
.contact-input-group textarea {
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: 0.2s;
}

.contact-input-group textarea {
    height: 120px;
    resize: none;
}

.contact-input-group input:focus,
.contact-input-group textarea:focus {
    outline: none;
    border-color: #1d232c;
    background-color: #f8fafc;
}

.btn-send {
    background: #1d232c;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}

.btn-send:hover {
    background: #2d3748;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 800px) {
    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-visual {
        padding: 30px;
    }

    .contact-form-side {
        padding: 30px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-grid .full {
        grid-column: span 1;
    }
}

/* Premium Checkout / Payment Design */
.checkout-page {
    background-color: #f8fafc;
    min-height: 100vh;
    padding: 40px 20px;
}

.checkout-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
}

.checkout-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e293b;
}

.section-title i {
    color: var(--text-primary);
}

.theme-toggle {
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.theme-toggle:hover {
    transform: rotate(15deg);
}

/* Delivery Options Redesign */
.delivery-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.delivery-card {
    border: 1px solid var(--text-primary);
    background-color: var(--bg-primary);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.delivery-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.delivery-card.active {
    border-color: #1d232c;
    background-color: #f1f5f9;
}

.delivery-card strong {
    font-size: 1rem;
    color: #1e293b;
}

.delivery-card p {
    font-size: 0.85rem;
    color: #64748b;
}

/* Form Grid Improvement */
.checkout-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.form-full {
    grid-column: span 2;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}

.input-group input,
.input-group select {
    padding: 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #1d232c;
}

/* Payment Methods Redesign */
.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.payment-method-card {
    flex: 1;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
}

.payment-method-card.active {
    border-color: #1d232c;
    background-color: #f8fafc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Card Info Box */
.card-details-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 15px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
}

/* Summary Sidebar */
.order-summary {
    position: sticky;
    top: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: #475569;
    font-size: 0.95rem;
}

.summary-total {
    border-top: 1.5px solid #e2e8f0;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
}

.btn-confirm {
    width: 100%;
    background-color: #1d232c;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 20px;
}

.btn-confirm:hover {
    background-color: #2d3748;
}

@media (max-width: 900px) {
    .checkout-container {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
    }
}


/* Media Query*/

@media screen and (max-width:700px) {
    .navbar-menu-toggle {
        display: block;
    }

    .navbar-links {
        display: none;
    }

    .header-image {
        display: none;
    }

    .service-container-1 {
        display: none;
    }

    .service-container-2 {
        flex-direction: column;
    }

    .new-arrival {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .new-arrival-container {
        flex-basis: 45%;
        left: 0;
    }

    .filter-sidebar {
        display: none;
    }

    .collection-container {
        padding: 10px;
    }

    .products {
        justify-content: center;
    }

    .products-box {
        flex-basis: 45%;
    }
}

/* ═══════════════════════════════════════════
   Scroll Reveal Animations
   ═══════════════════════════════════════════ */

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered children delay */
.stagger-children>*:nth-child(1) {
    transition-delay: 0.05s;
}

.stagger-children>*:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children>*:nth-child(3) {
    transition-delay: 0.15s;
}

.stagger-children>*:nth-child(4) {
    transition-delay: 0.2s;
}

/* ═══════════════════════════════════════════
   Section Headings
   ═══════════════════════════════════════════ */

.section-heading {
    padding: 30px 20px 10px;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--border-color), transparent);
    margin-left: 15px;
}

/* ═══════════════════════════════════════════
   Back to Top Button
   ═══════════════════════════════════════════ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background-color 0.3s;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════
   Dynamic Cart Items (buy.html)
   ═══════════════════════════════════════════ */

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: var(--bg-secondary);
    border-radius: 10px;
    transition: background-color 0.3s;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.cart-item-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: left;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity button {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.cart-item-quantity button:hover {
    background-color: var(--bg-secondary);
}

.cart-item-quantity span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
    transition: transform 0.2s;
}

.cart-item-remove:hover {
    transform: scale(1.2);
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.4;
}

.cart-empty p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.cart-empty a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.cart-empty a:hover {
    text-decoration: underline;
}

/* Promo Code */
.promo-code-box {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: 15px;
}

.promo-code-box input {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9rem;
    background-color: var(--bg-primary);
    color: var(--text-primary);
}

.promo-code-box input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.promo-code-box button {
    padding: 10px 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.promo-code-box button:hover {
    background-color: var(--accent-hover);
}

/* ═══════════════════════════════════════════
   Product Images Responsive
   ═══════════════════════════════════════════ */

.new-arrival-container img,
.products-box img {
    object-fit: cover;
}

.header-button {
    padding: 12px 25px;
    margin-top: 10px;
    background-color: var(--accent-color);
    color: white;
    cursor: pointer;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.2s;
}

.header-button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   Authentication Pages (Login/Signup)
   ═══════════════════════════════════════════ */

.auth-page {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
}

[data-theme="dark"] .auth-page {
    background: radial-gradient(circle at top right, #1e293b, #0f172a);
}

.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    min-height: calc(100vh - 80px);
}

.auth-card {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .auth-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.auth-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-input-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.8;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    color: var(--text-secondary);
    font-size: 1.1rem;
    transition: color 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border-radius: 12px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.input-wrapper input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(29, 35, 44, 0.1);
}

[data-theme="dark"] .input-wrapper input:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.input-wrapper input:focus+i,
.input-wrapper i:hover {
    color: var(--accent-color);
}

.toggle-password {
    position: absolute;
    right: 15px;
    left: auto !important;
    cursor: pointer;
    font-size: 1rem !important;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.remember-me input {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    cursor: pointer;
}

.remember-me label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-auth {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-auth:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 15px;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-social:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.btn-social img {
    width: 20px;
    height: 20px;
}

.auth-footer {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .social-auth {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════
   User Profile Dashboard
   ═══════════════════════════════════════════ */

.profile-page {
    background-color: var(--bg-secondary);
    min-height: 100vh;
    padding: 40px 20px;
}

.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
}

/* User Info Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.user-card {
    background: var(--bg-primary);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
}

.avatar-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-secondary);
}

.user-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.user-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.profile-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.profile-btn:hover,
.profile-btn.active {
    background: var(--bg-secondary);
    color: var(--accent-color);
}

.profile-btn i {
    font-size: 1.1rem;
}

.btn-logout {
    margin-top: 10px;
    color: #ef4444;
}

.btn-logout:hover {
    background: #fee2e2;
    color: #dc2626;
}

/* Dashboard Content */
.profile-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dashboard-section {
    background: var(--bg-primary);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h3 {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}

/* Order Cards */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.order-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border: 1.5px solid var(--border-color);
    border-radius: 15px;
    transition: all 0.3s;
}

.order-card:hover {
    border-color: var(--accent-color);
    background: var(--bg-secondary);
}

.order-details {
    display: flex;
    gap: 15px;
    align-items: center;
}

.order-details img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.order-meta h4 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.order-meta p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Account Details Grid */
.account-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.detail-item {
    padding: 15px;
    border-radius: 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.detail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-color: var(--accent-color);
}

.detail-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-item label i {
    color: var(--accent-color);
}

.detail-item p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

@media screen and (max-width: 900px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }
}

.order-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-shipped {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 3rem;
    opacity: 0.3;
    margin-bottom: 15px;
}

@media (max-width: 900px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
    }
}