@import url("base.css");
@import url("spinner.css");
@import url("toast.css");
@import url("header.css");
@import url("hero.css");
@import url("product.css");
@import url("product.css");
@import url("product-sect.css");
@import url("cart.css");
@import url("checkout.css");
@import url("wishlist.css");
@import url("history.css");
@import url("info.css");
@import url("sign-in.css");
@import url("search.css");
@import url("support.css");
@import url("footer.css");



/* ==========================================================================
   PROFILE
   ========================================================================== */

/* Profile Navigation Dropdown */
.profile-nav {
    width: 320px;
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    background: var(--color-white);
    border: 1px solid var(--color-border-lighter);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 5rem;
    right: 1rem;
    padding: 1.5rem;
    z-index: 120;
    animation: slideDown var(--transition-normal);
}

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

/* User Header */
.profile-nav > .flex-c {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.user-p-pic {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border: 2px solid var(--color-border-lighter);
    flex-shrink: 0;
}

.profile-nav h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* Dividers */
.profile-nav hr {
    margin: 1rem 0;
    border: none;
    border-top: 1px solid var(--color-border-lighter);
}

/* Section Headers with Edit Icons */
.profile-nav > div > .flex-sb-c {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.profile-nav > div > .flex-sb-c h4 {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--color-dark);
}

.profile-nav > div > .flex-sb-c svg {
    width: 16px;
    height: 16px;
    fill: var(--color-text-light);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-nav > div > .flex-sb-c svg:hover {
    fill: var(--color-primary);
    transform: scale(1.1);
}

/* Inner Content */
.profile-nav .inner {
    padding: 0.75rem 1rem;
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.profile-nav .inner p {
    color: var(--color-text);
    line-height: 1.6;
}

.profile-nav .inner a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--transition-fast);
}

.profile-nav .inner a:hover {
    opacity: 0.7;
}

/* Navigation Links */
.profile-nav > a {
    display: block;
    padding: 0.875rem 1rem;
    color: var(--color-dark);
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.profile-nav > a:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    padding-left: 1.25rem;
}

/* Theme Section */
.profile-nav > div:has(.inner.flex-sb-c) h4 {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.75rem;
}

.profile-nav .inner.flex-sb-c {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
}

.profile-nav .inner.flex-sb-c > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.profile-nav .inner.flex-sb-c input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.profile-nav .inner.flex-sb-c label {
    font-size: 0.875rem;
    color: var(--color-dark);
    cursor: pointer;
}

/* Logout Link */
.profile-nav > a:last-of-type {
    color: var(--color-error);
    font-weight: 600;
}

.profile-nav > a:last-of-type:hover {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

/* Hide Class */
.profile-nav.hide {
    display: none;
}

/* ==========================================================================
   EDIT PROFILE SECTION
   ========================================================================== */

.edit-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 6rem);
}

/* Edit Profile Card */
.edit {
    width: 100%;
    max-width: 560px;
    background: var(--color-white);
    border: 1px solid var(--color-border-lighter);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* Edit Header */
.edit-head {
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    position: relative;
    text-align: center;
}

.edit-head h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1rem;
}

/* Profile Picture Section */
.yo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.edit-pic {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 4px solid var(--color-white);
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-dark) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
}

.yo button,
.yo label {
    padding: 0.5rem 1.25rem;
    background: var(--color-white);
    color: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.yo button:hover,
.yo label:hover {
    background: var(--color-bg-gray);
    transform: translateY(-1px);
}

/* Edit Body */
.edit-body {
    padding: 2rem 1.5rem;
}

.edit-body > div {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

.edit-body > div:not(:last-child) {
    border-bottom: 1px solid var(--color-border-lighter);
}

.edit-body > div label {
    font-size: 0.938rem;
    font-weight: 600;
    color: var(--color-dark);
}

.edit-body > div input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--color-dark);
    transition: border-color var(--transition-fast);
}

.edit-body > div input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.edit-body > div input::placeholder {
    color: var(--color-text-light);
}

/* Remove old .c class styling if it exists */
.edit-body .c {
    border-top: none;
    border-bottom: none;
}

/* Edit Footer */
.edit-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border-top: 1px solid var(--color-border-lighter);
}

.edit-footer button {
    padding: 0.75rem 1.5rem;
    font-size: 0.938rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.edit-footer button:first-of-type {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-dark);
}

.edit-footer button:first-of-type:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.edit-footer button:last-of-type {
    background: var(--color-primary);
    border: none;
    color: var(--color-white);
}

.edit-footer button:last-of-type:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-primary);
}

/* button spinner */
.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #ffffff55;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
.spinner[hidden] {
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/*Pop up*/
        .xyz-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            z-index: 150;
        }

        .xyz-overlay.active { display: flex; }

        .xyz-popup {
            background: white;
            border-radius: 12px;
            padding: 2rem;
            width: fit-content;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }

        .xyz-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
        }

        .xyz-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--color-dark);
        }

        .xyz-close {
            background: var(--color-bg-gray);
            border: none;
            width: 32px;
            height: 32px;
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.25rem;
        }

        .xyz-size-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem;
            border: 2px solid var(--color-border);
            border-radius: 8px;
            margin-bottom: 0.75rem;
        }

        .xyz-size-name {
            font-weight: 600;
            color: var(--color-dark);
            font-size: 1rem;
        }

        .xyz-qty-control {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .xyz-qty-btn {
            width: 24px;
            height: 24px;
            border: 2px solid var(--color-border);
            background: white;
            border-radius: 6px;
            cursor: pointer;
            font-size: 1.125rem;
            font-weight: 600;
            color: var(--color-text);
        }

        .xyz-qty-btn:hover {
            border-color: var(--color-primary);
            color: var(--color-primary);
        }

        .xyz-qty-value {
            min-width: 30px;
            text-align: center;
            font-weight: 600;
            color: var(--color-dark);
            font-size: 14px;
        }

        .xyz-add-btn {
            width: 100%;
            background: var(--color-primary);
            color: white;
            border: none;
            padding: 0.8rem;
            font-weight: 600;
            border-radius: 8px;
            cursor: pointer;
            margin-top: 1rem;
        }

        .xyz-add-btn:hover { opacity: 0.9; }

/* @media (max-width: 1024px) {
    .selected-item,
    .checkout {
        grid-template-columns: 1fr;
    }
    
    .order-sum,
    .checkout .order-sum {
        position: static;
    }
    
    .info-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .track-order,
    .to-card {
        padding: 2rem 1rem;
    }
    
    .to-top {
        flex-direction: column;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 96px;
    }

    .c-head h2 {
        font-size: 1.5rem;
    }
    
    .si-card {
        grid-template-columns: 120px 1fr;
        gap: 1rem;
        padding: 1rem;
    }
    
    .si-img {
        width: 120px;
        height: 120px;
    }
    
    .si1 .name {
        font-size: 1rem;
    }
    
    .ms {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .ms p:not(:last-child)::after {
        display: none;
    }
    
    .qp {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .checkout {
        padding: 2rem 1rem;
    }
    
    .delivery-type,
    .Payment-method {
        padding: 1.5rem;
    }
    
    .user-address form .flex-sb-c {
        grid-template-columns: 1fr;
    }

    .info-card-img {
        height: 400px;
    }

    .profile-nav {
        width: calc(100vw - 2rem);
        right: 1rem;
        left: 1rem;
    }
    
    .edit-section {
        padding: 2rem 1rem;
    }
    
    .edit {
        max-width: 100%;
    }
    
    .edit-body > div {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .edit-body > div label {
        margin-bottom: 0.25rem;
    }
    
    .order-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .order-info span {
        min-width: auto;
    }
    
    .progress-icons {
        gap: 1rem;
    }
    
    .progress-icons > div {
        max-width: none;
    }
    
    .progress-icon {
        width: 40px;
        height: 40px;
    }
    
    .progress-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .progress-icons > div > p {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 88px;
    }

    .si-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .si-img {
        margin: 0 auto;
    }
    
    .si1 {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .qp {
        align-items: center;
    }
    
    .delivery-type > .bord,
    .Payment-method .bord {
        padding: 1rem;
    }
    
    .pm {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .pm svg {
        align-self: flex-end;
    }

    .info-card-img {
        height: 300px;
    }
    
    .profile-nav {
        padding: 1rem;
    }
    
    .user-p-pic {
        width: 48px;
        height: 48px;
    }
    
    .profile-nav h4 {
        font-size: 1rem;
    }
    
    .edit-head {
        padding: 1.5rem 1rem;
    }
    
    .edit-pic {
        width: 80px;
        height: 80px;
    }
    
    .edit-body {
        padding: 1.5rem 1rem;
    }
    
    .edit-footer {
        padding: 1rem;
        flex-direction: column;
    }
    
    .edit-footer button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .to-card {
        padding: 1rem;
    }
    
    .to-top h3 {
        font-size: 1.25rem;
    }
    
    .order-list {
        overflow-x: auto;
        padding: 1rem;
    }
    
    table {
        min-width: 500px;
    }
    
    .progress-icons {
        gap: 0.5rem;
    }
    
    .progress-icons > div {
        gap: 0.5rem;
    }
    
    .progress-icon {
        width: 36px;
        height: 36px;
    }
    
    .progress-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .progress-icons > div > p {
        font-size: 0.688rem;
    }
} */
 @media (max-width: 370px) {
    html {
        font-size: 10px;
    }
}