/* ============================================
   ROOT VARIABLES & RESET
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --morph-bg: #f9f7f6;
    --morph-surface: #ffffff;
    --morph-bg2: #dce7f7;
    --morph-text: #0a0a0f;
    --morph-text-light: #6b6b76;
    --morph-border: #e5e5eb;
    --morph-gradient: linear-gradient(
        135deg,
        #6c63ff 0%,
        #3f3d99 50%,
        #2a2a4a 100%
    );
    --morph-gradient-light: linear-gradient(135deg, #6c63ff 0%, #3f3d99 100%);
    --morph-success: #10b981;
    --morph-warning: #f59e0b;
    --morph-error: #ef4444;
    --morph-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --morph-shadow-hover: 0 12px 40px rgba(108, 99, 255, 0.15);
    --morph-radius: 20px;
    --morph-radius-sm: 12px;
    --morph-transition: all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1);
}

body {
    font-family: "Inter", sans-serif;
    background: var(--morph-bg);
    color: var(--morph-text);
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.loading {
    text-align: center;
    padding: 60px 20px;
    color: var(--morph-text-light);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--morph-text-light);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--morph-bg);
}
::-webkit-scrollbar-thumb {
    background: #d0d0d8;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b0b0b8;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: none !important;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex !important;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1002;
    display: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: modalIn 0.3s ease forwards;
}

.modal.open {
    display: block !important;
    transform: translate(-50%, -50%) scale(1);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

.modal h2 {
    margin-bottom: 20px;
    font-family: "Space Grotesk", monospace;
}

.modal-input:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.modal-btn {
    width: 100%;
    background: var(
        --morph-gradient-light,
        linear-gradient(135deg, #6c63ff 0%, #3f3d99 100%)
    );
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--morph-transition, all 0.3s ease);
    font-size: 1rem;
}

.modal-btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--morph-text-light, #6b6b76);
    transition: var(--morph-transition, all 0.3s ease);
}

.modal-close:hover {
    color: var(--morph-text, #0a0a0f);
}

textarea.modal-input {
    resize: vertical;
    min-height: 80px;
}

/* Profile Modal Specific */
.profile-section {
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(
        --morph-gradient-light,
        linear-gradient(135deg, #6c63ff 0%, #3f3d99 100%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.profile-avatar-large span {
    font-size: 32px;
    font-weight: 600;
    color: white;
}

.profile-field {
    margin-bottom: 16px;
}

.profile-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--morph-text-light, #6b6b76);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field .field-value {
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--morph-border, #e5e5eb);
}

.edit-profile-btn {
    width: 100%;
    background: none;
    border: 1px solid var(--morph-border, #e5e5eb);
    padding: 12px;
    border-radius: 40px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: var(--morph-transition, all 0.3s ease);
    margin-top: 16px;
}

.edit-profile-btn:hover {
    border-color: #6c63ff;
    color: #6c63ff;
}

/* Orders Modal */
.order-card {
    border: 1px solid var(--morph-border, #e5e5eb);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    background: white;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--morph-border, #e5e5eb);
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.paid {
    background: #10b98120;
    color: #10b981;
}

.order-status.processing {
    background: #f59e0b20;
    color: #f59e0b;
}

.order-status.shipped {
    background: #6c63ff20;
    color: #6c63ff;
}

.order-status.delivered {
    background: #10b98120;
    color: #10b981;
}

.order-status.cancelled {
    background: #ef444420;
    color: #ef4444;
}

.order-items {
    font-size: 14px;
    color: var(--morph-text-light, #6b6b76);
}

/* Responsive Modals */
@media (max-width: 768px) {
    .modal {
        padding: 24px;
        width: 95%;
        max-width: 100%;
    }
}

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

    .modal h2 {
        font-size: 1.2rem;
    }

    .profile-avatar-large {
        width: 60px;
        height: 60px;
    }

    .profile-avatar-large span {
        font-size: 24px;
    }
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: none !important;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex !important;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1002;
    display: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal.open {
    display: block !important;
    animation: modalIn 0.3s ease forwards;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

.modal h2 {
    margin-bottom: 20px;
    font-family: "Space Grotesk", monospace;
}

.modal-input:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.modal-btn {
    width: 100%;
    background: var(
        --morph-gradient-light,
        linear-gradient(135deg, #6c63ff 0%, #3f3d99 100%)
    );
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--morph-transition, all 0.3s ease);
    font-size: 1rem;
}

.modal-btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--morph-text-light, #6b6b76);
    transition: var(--morph-transition, all 0.3s ease);
}

.modal-close:hover {
    color: var(--morph-text, #0a0a0f);
}

textarea.modal-input {
    resize: vertical;
    min-height: 80px;
}

/* Profile Modal Specific */
.profile-section {
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(
        --morph-gradient-light,
        linear-gradient(135deg, #6c63ff 0%, #3f3d99 100%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.profile-avatar-large span {
    font-size: 32px;
    font-weight: 600;
    color: white;
}

.profile-field {
    margin-bottom: 16px;
}

.profile-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--morph-text-light, #6b6b76);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field .field-value {
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--morph-border, #e5e5eb);
}

.edit-profile-btn {
    width: 100%;
    background: none;
    border: 1px solid var(--morph-border, #e5e5eb);
    padding: 12px;
    border-radius: 40px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: var(--morph-transition, all 0.3s ease);
    margin-top: 16px;
}

.edit-profile-btn:hover {
    border-color: #6c63ff;
    color: #6c63ff;
}

/* Orders Modal */
.order-card {
    border: 1px solid var(--morph-border, #e5e5eb);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    background: white;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--morph-border, #e5e5eb);
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.paid {
    background: #10b98120;
    color: #10b981;
}

.order-status.processing {
    background: #f59e0b20;
    color: #f59e0b;
}

.order-status.shipped {
    background: #6c63ff20;
    color: #6c63ff;
}

.order-status.delivered {
    background: #10b98120;
    color: #10b981;
}

.order-status.cancelled {
    background: #ef444420;
    color: #ef4444;
}

.order-items {
    font-size: 14px;
    color: var(--morph-text-light, #6b6b76);
}

/* Responsive Modals */
@media (max-width: 768px) {
    .modal {
        padding: 24px;
        width: 95%;
        max-width: 100%;
    }
}

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

    .modal h2 {
        font-size: 1.2rem;
    }

    .profile-avatar-large {
        width: 60px;
        height: 60px;
    }

    .profile-avatar-large span {
        font-size: 24px;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--morph-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 3px 0;
    transition: box-shadow 0.3s;
}

.site-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    /*font-family: 'Space Grotesk', monospace;
    font-size: 1.6rem;
    font-weight: 700;*/
    /*letter-spacing: 2px;*/
    width: 20px;
    min-height: 5px;
    background: var(--morph-gradient-light);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
    transition: letter-spacing 0.3s;
}

.logo:hover {
    letter-spacing: 4px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    font-weight: 500;
    color: var(--morph-text);
    cursor: pointer;
    transition: color 0.2s;
    font-size: 0.9rem;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--morph-gradient-light);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #6c63ff;
}

.cart-icon {
    background: none;
    border: none;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 40px;
    transition: var(--morph-transition);
    position: relative;
}

.cart-icon:hover {
    background: rgba(108, 99, 255, 0.08);
}

.cart-count {
    background: var(--morph-gradient-light);
    color: white;
    border-radius: 40px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* ============================================
   USER DROPDOWN MENU
   ============================================ */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 12px 6px 6px;
    border-radius: 40px;
    transition: var(--morph-transition);
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--morph-text);
}

.user-trigger:hover {
    background: rgba(108, 99, 255, 0.08);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: lightskyblue;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 13px;
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--morph-border);
    min-width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.96);
    transition: all 0.2s ease;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: 16px 18px;
    border-bottom: 1px solid var(--morph-border);
}

.dropdown-email {
    font-size: 12px;
    color: var(--morph-text-light);
    margin-top: 2px;
    word-break: break-all;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    cursor: pointer;
    transition: background 0.15s;
    color: var(--morph-text);
    text-decoration: none;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--morph-bg);
}

.dropdown-item i {
    width: 18px;
    color: var(--morph-text-light);
}

.dropdown-divider {
    height: 1px;
    background: var(--morph-border);
    margin: 4px 0;
}

.dropdown-item.logout {
    color: #ef4444;
}

.dropdown-item.logout i {
    color: #ef4444;
}

/* ============================================
   FILTERS
   ============================================ */
.filters-section {
    padding: 16px 0 8px;
}

.filters-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--morph-border);
    border-radius: 40px;
    padding: 10px 18px;
    transition: var(--morph-transition);
}

.search-box:focus-within {
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.search-box i {
    color: var(--morph-text-light);
    margin-right: 10px;
}
.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    background: transparent;
    font-size: 0.9rem;
}

.filter-select {
    padding: 10px 18px;
    border: 1px solid var(--morph-border);
    border-radius: 40px;
    background: white;
    font-family: inherit;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--morph-transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B76' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

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

.section-header h2 {
    font-family: "Space Grotesk", monospace;
    font-size: 1.6rem;
    font-weight: 700;
}

.section-header .view-all {
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--morph-transition);
}

.section-header .view-all:hover {
    opacity: 0.7;
}

.filter-select:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
    outline: none;
}

.section-header .view-all {
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--morph-transition);
}

.section-header .view-all:hover {
    opacity: 0.7;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
    width: 100%;
}

.product-card {
    background: var(--morph-surface, #f8f8f8);
    border: 1px solid var(--morph-border, #e5e5eb);
    transition: var(
        --morph-transition,
        all 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1)
    );
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 150px;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(108, 99, 255, 0.1);
    border-color: #6c63ff30;
}

/* ============================================
    PRODUCT IMAGE - Takes 2/3 of card
    ============================================ */
.product-img {
    font-size: 3.5rem;
    text-align: center;
    /*padding: 14px 0;*/
    background: var(--morph-bg, #f8f8f8);
    /*border-radius: var(--morph-radius-sm, 10px);*/
    margin-bottom: 12px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 2; /* Takes 2/3 of the space */
    position: relative;
    overflow: hidden;
}

/* Optional: Add a subtle gradient overlay to image */
.product-img::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.03), transparent);
    pointer-events: none;
}

/* ============================================
    PRODUCT BADGES
    ============================================ */
.product-card .product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    /*padding: 3px 6px;*/
    /*border-radius: 20px;*/
    font-size: 0.6rem;
    font-weight: 600;
    z-index: 5;
    background: #10b981;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card .product-badge.sale {
    background: #ef4444;
}

.product-card .product-badge.new {
    background: #6c63ff;
}

/* ============================================
    WISHLIST ICON
    ============================================ */
.wishlist-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--morph-transition);
    border: 1.5px solid var(--morph-border, #e5e5eb);
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    font-size: 0.8rem;
}

.wishlist-icon:hover {
    transform: scale(1.1);
    border-color: #ef4444;
}

.wishlist-icon.active {
    color: #059905;
    border-color: #ef4444;
}

.wishlist-icon.active i {
    color: #059905;
}

/* ============================================
    PRODUCT INFO - Takes 1/3 of card
    ============================================ */
.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 4px;
}

.product-vendor {
    font-size: 0.65rem;
    color: var(--morph-text-light, #6b6b76);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-weight: 300;
    font-size: 0.8rem;
    line-height: 1.2em;
    color: gray;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 1.8em;
}

.product-card:hover .product-title {
    opacity: 1;
    visibility: visible;
}

.product-category {
    color: #69758a;
    font-size: 0.54rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 5px 2px 3px;
    overflow-wrap: anywhere;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: var(--morph-text-light, #6b6b76);
    margin-bottom: 5px;
}

.product-rating .stars {
    color: #f59e0b;
}

.product-price {
    font-size: 0.9rem;
    font-weight: 600;
}

.original-price {
    font-size: 0.85rem;
    color: var(--morph-text-light, #6b6b76);
    text-decoration: line-through;
    font-weight: 600;
    margin-left: 5px;
}

/* ============================================
    ADD TO CART - Icon Button
    ============================================ */
.add-to-cart {
    width: 55px;
    background: var(--morph-text, #f59e0b);
    color: white;
    border: none;
    padding: 3px 3px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--morph-transition);
    font-size: 0.65rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    min-height: 25px;
}

.add-to-cart i {
    font-size: 0.85rem;
    align-items: flex-end;
}

.tooltip {
    position: relative;
    display: inline-block;
    visibility: visible;
    opacity: 1;
}

.add-to-cart:hover {
    background: var(
        --morph-gradient-light,
        linear-gradient(135deg, #5167c1 0%, #3951b8 100%)
    );
    transform: scale(0.77);
}

.add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

/* ============================================
    RESPONSIVE
    ============================================ */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 14px;
    }

    .product-card {
        padding: 6px 6px 6px;
        min-height: 220px;
        /*border-radius: 6px;*/
    }

    .product-img {
        font-size: 2.5rem;
        min-height: 80px;
        padding: 5px 0;
        flex: 2;
    }

    .product-price {
        font-size: 1rem;
    }

    .add-to-cart {
        font-size: 0.75rem;
        padding: 3px 3px;
        min-height: 25px;
    }

    .add-to-cart i {
        font-size: 0.75rem;
    }

    .wishlist-icon {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
        top: 8px;
        right: 8px;
    }

    .product-card .product-badge {
        font-size: 0.5rem;
        padding: 2px 8px;
        top: 8px;
        left: 8px;
    }

    .product-category {
        color: #69758a;
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-card {
        padding: 10px;
        min-height: 180px;
        /*border-radius: 10px;*/
    }

    .product-category {
        color: #69758a;
        font-size: 0.46rem;
    }

    .product-img {
        font-size: 2rem;
        min-height: 60px;
        padding: 5px 0;
        /*border-radius: 8px;*/
    }

    .product-vendor {
        font-size: 0.5rem;
    }

    .product-rating {
        font-size: 0.65rem;
    }

    .product-price {
        font-size: 1rem;
        margin: 2px 0 4px;
    }

    .wishlist-icon {
        width: 22px;
        height: 22px;
        font-size: 0.6rem;
        top: 6px;
        right: 6px;
    }
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 440px;
    height: 100%;
    background: var(--morph-surface);
    z-index: 200;
    transition: right 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.06);
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--morph-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--morph-border);
}

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

.cart-item-info strong {
    font-size: 0.95rem;
}

.cart-item-info small {
    color: var(--morph-text-light);
    font-size: 0.85rem;
}

.cart-item-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.cart-item-actions button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--morph-border);
    background: white;
    cursor: pointer;
    transition: var(--morph-transition);
    font-size: 0.9rem;
}

.cart-item-actions button:hover {
    background: var(--morph-gradient-light);
    color: white;
    border-color: transparent;
}

.cart-item-actions span {
    min-width: 24px;
    text-align: center;
    font-weight: 500;
}

.cart-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--morph-border);
    background: white;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.checkout-btn {
    width: 100%;
    background: var(--morph-gradient-light);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--morph-transition);
}

.checkout-btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    visibility: hidden;
    z-index: 199;
    transition: visibility 0.3s;
}

.overlay.open {
    visibility: visible;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1001;
    display: none !important;
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex !important;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: white;
    border-radius: 24px;
    padding: 32px;
    max-width: 480px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1002;
    display: none !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal.open {
    display: block !important;
    animation: modalIn 0.3s ease forwards;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

.modal h2 {
    margin-bottom: 20px;
    font-family: "Space Grotesk", monospace;
}

.modal-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--morph-border, #e5e5eb);
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    background: var(--morph-surface, #ffffff);
    transition: all 0.2s ease;
    color: var(--morph-text, #0a0a0f);
    min-width: 0;
}

.modal-input:hover {
    border-color: #6c63ff;
}

.modal-input:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.modal-btn {
    width: 100%;
    background: var(
        --morph-gradient-light,
        linear-gradient(135deg, #6c63ff 0%, #3f3d99 100%)
    );
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--morph-transition, all 0.3s ease);
    font-size: 1rem;
}

.modal-btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--morph-text-light, #6b6b76);
    transition: var(--morph-transition, all 0.3s ease);
}

.modal-close:hover {
    color: var(--morph-text, #0a0a0f);
}

textarea.modal-input {
    resize: vertical;
    min-height: 80px;
}

/* Profile Modal Specific */
.profile-section {
    margin-bottom: 24px;
}

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(
        --morph-gradient-light,
        linear-gradient(135deg, #6c63ff 0%, #3f3d99 100%)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.profile-avatar-large span {
    font-size: 32px;
    font-weight: 600;
    color: white;
}

.profile-field {
    margin-bottom: 16px;
}

.profile-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--morph-text-light, #6b6b76);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-field .field-value {
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--morph-border, #e5e5eb);
}

.edit-profile-btn {
    width: 100%;
    background: none;
    border: 1px solid var(--morph-border, #e5e5eb);
    padding: 12px;
    border-radius: 40px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: var(--morph-transition, all 0.3s ease);
    margin-top: 16px;
}

.edit-profile-btn:hover {
    border-color: #6c63ff;
    color: #6c63ff;
}

/* Orders Modal */
.order-card {
    border: 1px solid var(--morph-border, #e5e5eb);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    background: white;
}

.order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--morph-border, #e5e5eb);
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.order-status.paid {
    background: #10b98120;
    color: #10b981;
}

.order-status.processing {
    background: #f59e0b20;
    color: #f59e0b;
}

.order-status.shipped {
    background: #6c63ff20;
    color: #6c63ff;
}

.order-status.delivered {
    background: #10b98120;
    color: #10b981;
}

.order-status.cancelled {
    background: #ef444420;
    color: #ef4444;
}

.order-items {
    font-size: 14px;
    color: var(--morph-text-light, #6b6b76);
}

/* Responsive Modals */
@media (max-width: 768px) {
    .modal {
        padding: 24px;
        width: 95%;
        max-width: 100%;
    }
}

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

    .modal h2 {
        font-size: 1.2rem;
    }

    .profile-avatar-large {
        width: 60px;
        height: 60px;
    }

    .profile-avatar-large span {
        font-size: 24px;
    }
}

/* ============================================
   TOAST
   ============================================ */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--morph-text);
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
    pointer-events: none;
    z-index: 1001;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   SKELETON LOADERS
   ============================================ */
.skeleton-card {
    background: white;
    border-radius: var(--morph-radius);
    padding: 20px;
    border: 1px solid var(--morph-border);
}

.skeleton-img {
    width: 100%;
    height: 120px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: var(--morph-radius-sm);
    margin-bottom: 16px;
}

.skeleton-title {
    width: 70%;
    height: 18px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 10px;
}

.skeleton-price {
    width: 40%;
    height: 24px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 14px;
}

.skeleton-btn {
    width: 100%;
    height: 44px;
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 40px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   HERO SLIDER
   ============================================ */
/* Scoped to the storefront hero; the rest of the supplied stylesheet is retained. */
.hero-section {
    padding: 30px 0 22px;
}
.hero-section .slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background:
        radial-gradient(ellipse at 18% 0%, #2a3d6b 0%, transparent 52%), #0d1734;
    box-shadow: 0 18px 48px #0d173418;
    color: #fff;
}
.hero-section .slider-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.22, 0.7, 0.25, 1);
    align-items: stretch;
}
.hero-section .slider-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(210px, 0.85fr) minmax(0, 2fr);
    gap: 30px;
    align-items: center;
    padding: 58px 36px 28px;
}
.hero-section .slide-content {
    min-width: 0;
}
.hero-section .slide-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #f6d477;
    text-transform: uppercase;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin: 0 0 18px;
}
.hero-section .slide-badge > span {
    width: 7px;
    height: 7px;
    background: #f6c544;
    border-radius: 50%;
}
.hero-section .slide-title {
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(1.8rem, 3.2vw, 2.8rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    color: white;
    margin: 0 0 18px;
}
.hero-section .slide-title span {
    color: #f6cf6c;
}
.hero-section .slide-description {
    color: #c7cede;
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 320px;
    margin: 0 0 25px;
}
.hero-section .slide-btn {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    color: #111c3a;
    background: #f7ce65;
    border: 0;
}
.hero-section .slide-btn:hover {
    background: #ffdc83;
}
.hero-section .slide-pricing-note {
    margin: 14px 0 0;
    color: #aebbd3;
    font-size: 0.69rem;
    line-height: 1.5;
    max-width: 285px;
}
.hero-section .slide-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    min-width: 0;
    align-items: stretch;
}
.hero-section .slide-product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #172341;
    border-radius: 15px;
    padding: 10px;
    min-width: 0;
    box-shadow: 0 8px 20px #030b1b22;
}
.hero-section .slide-product-link {
    color: inherit;
    text-decoration: none;
}
.hero-section .slide-product-visual {
    position: relative;
    height: 160px;
    display: grid;
    place-items: center;
    background: #f3f5f9;
    border-radius: 10px;
    overflow: hidden;
}
.hero-section .slide-product-visual .store-product-picture {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.hero-section .slide-product-visual img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 10px;
    box-sizing: border-box;
}
.hero-section .slide-product-visual .slide-product-emoji {
    font-size: 3.4rem;
}
.hero-section .slide-product-offer {
    position: absolute;
    left: 8px;
    top: 8px;
    border-radius: 6px;
    padding: 4px 7px;
    background: #f8d371;
    color: #2a210b;
    font-size: 0.7rem;
    font-weight: 800;
}
.hero-section .slide-product-category {
    color: #69758a;
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 13px 3px 5px;
    overflow-wrap: anywhere;
}
.hero-section .slide-product-name {
    font-family: "Inter", sans-serif;
    font-size: 0.86rem;
    line-height: 1.2;
    font-weight: 400;
    color: #172341;
    margin: 0 3px 10px;
    overflow-wrap: anywhere;
}
.hero-section .slide-product-price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin: auto 3px 13px;
}
.hero-section .slide-product-price {
    color: #142c5f;
    font-size: 1rem;
    font-weight: 800;
}
.hero-section .slide-original-price {
    color: #7d8594;
    font-size: 0.7rem;
}
.hero-section .slide-saving {
    width: 100%;
    color: #247545;
    font-size: 0.67rem;
    font-weight: 600;
}
.hero-section .featured-price-unavailable {
    color: #69758a;
    font-size: 0.78rem;
}
.hero-section .slide-add-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #dce3ef;
    background: #eff3fb;
    color: #17366c;
    border-radius: 8px;
    font: inherit;
    font-size: 0.73rem;
    font-weight: 700;
    cursor: pointer;
}
.hero-section .slide-add-btn:hover {
    background: #dfe9fa;
}
.hero-section .slide-add-btn:disabled {
    color: #7a8292;
    background: #f0f1f4;
    cursor: default;
}
.hero-section .slider-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 36px 24px;
}
.hero-section .slider-dots {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
}
.hero-section .slider-dot {
    display: grid;
    place-items: center;
    width: 30px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.hero-section .slider-dot::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 5px;
    background: #64728f;
    transition: width 0.2s;
}
.hero-section .slider-dot.active::after {
    width: 24px;
    background: #f6cf6c;
}
.hero-section .slider-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-section .slider-position {
    font-size: 0.72rem;
    color: #bac6db;
    margin-right: 5px;
    white-space: nowrap;
}
.hero-section .slider-btn,
.hero-section .slider-pause {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #5c6b88;
    color: white;
    background: #ffffff08;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.15rem;
}
.hero-section .slider-pause {
    font: inherit;
    font-size: 0.7rem;
    border-radius: 9px;
}
.hero-section .slider-btn:hover,
.hero-section .slider-pause:hover {
    background: #ffffff20;
}
.hero-section .slider-pause:disabled {
    opacity: 0.6;
    cursor: default;
}
.hero-section .discount-banner {
    position: absolute;
    top: 17px;
    right: 36px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f9db91;
    font-size: 0.71rem;
    font-weight: 600;
}
.hero-section [hidden] {
    display: none !important;
}
.hero-section :focus-visible {
    outline: 3px solid #d9a813;
    outline-offset: 3px;
}
.hero-section .featured-empty {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 55px 36px 30px;
}
.hero-section .featured-empty h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    color: white;
}
.hero-section .featured-empty p {
    margin: 12px 0 20px;
    color: #c7cede;
}
.hero-section .slider-action-message {
    color: #244365;
    font-size: 0.85rem;
    margin: 10px 0 0;
    min-height: 1.5em;
}
@media (max-width: 1050px) {
    .hero-section .slider-slide {
        grid-template-columns: minmax(180px, 0.75fr) minmax(0, 2fr);
        padding: 55px 24px 25px;
        gap: 20px;
    }
    .hero-section .slide-product-visual {
        height: 135px;
    }
    .hero-section .slide-product-visual img {
        height: 125px;
    }
    .hero-section .slider-footer {
        padding: 0 24px 22px;
    }
}
@media (max-width: 820px) {
    .hero-section .slider-slide {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
    }
    .hero-section .slide-content {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px 20px;
        align-items: center;
    }
    .hero-section .slide-badge,
    .hero-section .slide-title {
        margin: 0;
        grid-column: 1;
    }
    .hero-section .slide-btn {
        grid-column: 2;
        grid-row: 2;
    }
    .hero-section .slide-description {
        display: none;
    }
    .hero-section .slide-pricing-note {
        grid-column: 1 / -1;
        max-width: none;
        margin: 0;
    }
    .hero-section .slide-product-visual {
        height: 165px;
    }
    .hero-section .slide-product-visual img {
        height: 155px;
    }
}
@media (max-width: 560px) {
    .hero-section {
        padding-top: 18px;
    }
    .hero-section .slider-container {
        border-radius: 18px;
    }
    .hero-section .slider-slide {
        padding: 48px 17px 20px;
        gap: 20px;
    }
    .hero-section .slide-title {
        font-size: 1.65rem;
    }
    .hero-section .slide-btn {
        font-size: 0.7rem;
        padding: 10px;
        gap: 8px;
    }
    .hero-section .slide-badge {
        font-size: 0.6rem;
    }
    .hero-section .slide-products {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }
    .hero-section .slide-product-card {
        display: grid;
        grid-template-columns: 100px minmax(0, 1fr);
        gap: 0 12px;
        padding: 10px;
    }
    .hero-section .slide-product-link {
        display: contents;
    }
    .hero-section .slide-product-visual {
        grid-column: 1;
        grid-row: 1 / 5;
        height: 125px;
    }
    .hero-section .slide-product-visual img {
        height: 115px;
    }
    .hero-section .slide-product-category {
        grid-column: 2;
        margin: 0 0 4px;
    }
    .hero-section .slide-product-name {
        grid-column: 2;
        margin: 0 0 6px;
    }
    .hero-section .slide-product-price-row {
        grid-column: 2;
        margin: 0 0 7px;
    }
    .hero-section .slide-saving {
        width: auto;
    }
    .hero-section .slide-add-btn {
        grid-column: 2;
        min-height: 35px;
    }
    .hero-section .slider-footer {
        padding: 0 17px 18px;
        gap: 6px;
    }
    .hero-section .slider-dot {
        width: 20px;
    }
    .hero-section .slider-dot.active::after {
        width: 16px;
    }
    .hero-section .slider-position {
        display: none;
    }
    .hero-section .slider-controls {
        gap: 5px;
    }
    .hero-section .slider-btn {
        min-width: 36px;
        height: 36px;
    }
    .hero-section .discount-banner {
        right: 17px;
        font-size: 0.65rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-section .slider-track,
    .hero-section .slider-dot::after {
        transition: none;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--morph-text, #0a0a0f);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 24px;
    margin-top: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #6c63ff, #3f3d99);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--morph-transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: #6c63ff;
    color: white;
    transform: translateY(-2px);
}

.footer-links h4 {
    color: white;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 4px 0;
    font-size: 0.85rem;
    transition: var(--morph-transition);
}

.footer-links a:hover {
    color: #6c63ff;
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   MODAL LINKS
   ============================================ */
.modal-links {
    text-align: center;
    margin: 12px 0 8px;
}

.modal-links a {
    color: #6c63ff;
    text-decoration: none;
    font-size: 0.85rem;
}

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

.modal-switch {
    margin-top: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--morph-text-light);
}

.modal-switch a {
    color: #6c63ff;
    text-decoration: none;
    font-weight: 500;
}

.modal-switch a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE FOOTER
   ============================================ */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand p {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Form Group*/
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--register-text);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--register-border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--register-transition);
    background: var(--register-bg);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--register-primary);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.08);
    background: white;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--register-danger);
}

.form-group input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group modal-input:hover {
    border-color: #6c63ff;
}

.form-group modal-input:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

/* Password Input */
.password-input-wrapper {
    position: relative;
}

.password-input-wrapper input {
    padding-right: 48px;
}

.password-input-wrapper .toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--register-text-light);
    cursor: pointer;
    padding: 8px;
    font-size: 1rem;
    transition: var(--register-transition);
}

.password-input-wrapper .toggle-password:hover {
    color: var(--register-text);
}

/* ============================================
   PHONE INPUT & COUNTRY SELECTOR STYLES
   ============================================ */

/* ============================================
   PHONE INPUT WRAPPER
   ============================================ */
.phone-input-group {
    margin-bottom: 20px;
}

.phone-input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--morph-text, #0a0a0f);
    font-size: 0.9rem;
}

.phone-input-wrapper {
    display: flex;
    gap: 8px;
    align-items: stretch;
    position: relative;
}

/* ============================================
   COUNTRY SELECTOR
   ============================================ */
.country-select {
    padding: 12px 8px 12px 12px;
    border: 2px solid var(--morph-border, #e5e5eb);
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    background: var(--morph-surface, #ffffff);
    min-width: 100px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B76' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    color: var(--morph-text, #0a0a0f);
}

.country-select:hover {
    border-color: #6c63ff;
}

.country-select:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

.country-select optgroup {
    font-weight: 600;
    color: var(--morph-text, #0a0a0f);
    padding: 4px 0;
}

.country-select option {
    font-weight: 400;
    padding: 4px 8px;
}

.country-select option:hover {
    background: rgba(108, 99, 255, 0.08);
}

/* ============================================
   PHONE INPUT
   ============================================ */
.phone-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--morph-border, #e5e5eb);
    border-radius: 12px;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    background: var(--morph-surface, #ffffff);
    transition: all 0.2s ease;
    color: var(--morph-text, #0a0a0f);
    min-width: 0;
}

.phone-input::placeholder {
    color: var(--morph-text-light, #6b6b76);
    font-weight: 400;
}

.phone-input:hover {
    border-color: #6c63ff;
}

.phone-input:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.08);
}

/* ============================================
   VALIDATION STATES
   ============================================ */
.phone-input.valid {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.08);
}

.phone-input.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.country-select.valid {
    border-color: #10b981;
}

.country-select.invalid {
    border-color: #ef4444;
}

/* ============================================
   PHONE FORMAT HINT
   ============================================ */
.phone-format-hint {
    font-size: 0.75rem;
    color: var(--morph-text-light, #6b6b76);
    margin-top: 6px;
    transition: all 0.3s ease;
    min-height: 20px;
    padding: 0 4px;
}

.phone-format-hint.valid {
    color: #10b981;
}

.phone-format-hint.invalid {
    color: #ef4444;
}

.phone-format-hint .example {
    color: var(--morph-text-light, #6b6b76);
    font-size: 0.7rem;
}

/* ============================================
   FLAG ICON (Optional - using emojis)
   ============================================ */
.country-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-option .flag {
    font-size: 1.1rem;
    line-height: 1;
}

.country-option .country-name {
    font-weight: 400;
}

.country-option .dial-code {
    color: var(--morph-text-light, #6b6b76);
    font-size: 0.8rem;
    margin-left: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .phone-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .country-select {
        width: 100%;
        min-width: unset;
        padding: 10px 12px 10px 14px;
    }

    .phone-input {
        width: 100%;
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .country-select {
        font-size: 0.85rem;
        padding: 8px 10px 8px 12px;
        min-width: 80px;
        background-position: right 8px center;
        padding-right: 28px;
    }

    .phone-input {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
}

/* ============================================
   DARK MODE SUPPORT (Optional)
   ============================================ */
@media (prefers-color-scheme: dark) {
    .country-select,
    .phone-input {
        background: var(--morph-surface, #1a1a2e);
        color: var(--morph-text, #f8f8fa);
        border-color: var(--morph-border, #2d2d44);
    }

    .country-select option {
        background: var(--morph-surface, #1a1a2e);
        color: var(--morph-text, #f8f8fa);
    }

    .country-select optgroup {
        color: var(--morph-text, #f8f8fa);
    }

    .phone-input::placeholder {
        color: var(--morph-text-light, #8b8b9b);
    }

    .country-select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B8B9B' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20% {
        transform: translateX(-6px);
    }
    40% {
        transform: translateX(6px);
    }
    60% {
        transform: translateX(-4px);
    }
    80% {
        transform: translateX(4px);
    }
}

.phone-input.invalid:focus {
    animation: shake 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.phone-format-hint {
    animation: slideDown 0.2s ease-out;
}

/* ============================================
   DISABLED STATE
   ============================================ */
.country-select:disabled,
.phone-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: var(--morph-bg, #f8f8fa);
}

/* ============================================
   READY STATE
   ============================================ */
.phone-input:read-only {
    background: var(--morph-bg, #f8f8fa);
    cursor: default;
}

.field-error {
    font-size: 0.85rem;
    margin-top: 4px;
    display: none;
}

.field-error.show {
    display: block;
}

.field-error.success {
    color: #10b981;
}

.field-error.error {
    color: #ef4444;
}

/* ============================================
   DWOFLEX — Brand Variables
   ============================================ */

:root {
    /* Primary Colors (Ghana Flag) */
    --dwoflex-red: #ce1126;
    --dwoflex-gold: #d49504;
    --dwoflex-green: #006b3f;
    --dwoflex-dark: #1a1a2e;
    --dwoflex-light: #f8f8fa;

    /* Accent Colors */
    --dwoflex-accent: #6c63ff;
    --dwoflex-accent-dark: #3f3d99;
    --dwoflex-success: #10b981;
    --dwoflex-warning: #f59e0b;
    --dwoflex-error: #ef4444;

    /* Gradients */
    --dwoflex-gradient: linear-gradient(
        135deg,
        #ce1126 0%,
        #d49504 50%,
        #006b3f 100%
    );
    --dwoflex-gradient-accent: linear-gradient(
        135deg,
        #6c63ff 0%,
        #3f3d99 100%
    );

    /* Existing Variables */
    --morph-bg: #f8f8fa;
    --morph-surface: #ffffff;
    --morph-text: #0a0a0f;
    --morph-text-light: #6b6b76;
    --morph-border: #e5e5eb;

    /* Legacy mapping for backward compatibility */
    --morph-gradient: var(--dwoflex-gradient);
    --morph-gradient-light: var(--dwoflex-gradient-accent);
}

/* Update Logo */
.logo {
    font-family: "Space Grotesk", monospace;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: var(--dwoflex-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-decoration: none;
    transition: letter-spacing 0.3s;
}

.logo:hover {
    letter-spacing: 4px;
}

/* Update Buttons */
.btn-primary,
.add-to-cart,
.checkout-btn {
    background: var(--dwoflex-gradient);
    color: white;
    border: none;
    padding: 8px 8px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover,
.add-to-cart:hover,
.checkout-btn:hover {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-secondary {
    background: lightslategray;
    color: var(--dwoflex-primary);
    border: 1.5px solid var(--dwoflex-border);
    padding: 12px 28px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-family: "Inter", sans-serif;
}

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

/* Update Cart Count Badge */
.cart-count {
    background: var(--dwoflex-gradient);
    color: white;
    border-radius: 40px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Links */
a {
    color: var(--dwoflex-primary);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--dwoflex-accent);
}
