/*
  custom.css — Only for JS-dynamically-generated elements
  that can't use Tailwind classes at build time.
  Also handles: swiper overrides, marquee, offcanvas states.
*/

/* ─── MARQUEE ANIMATION ─────────────────────────── */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-marquee {
    display: flex;
    animation: marquee 28s linear infinite;
}

/* ─── FADE-UP ANIMATION ─────────────────────────── */
@keyframes fade-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation: fade-up 0.7s ease forwards;
}

/* ─── OFFCANVAS / DRAWER STATES ──────────────────── */
.mobile-offcanvas-backdrop.is-open,
.cart-drawer-backdrop.is-open {
    opacity: 1 !important;
    visibility: visible !important;
}

.mobile-offcanvas.is-open,
.cart-drawer.is-open {
    transform: translateX(0) !important;
}

/* ─── SWIPER OVERRIDES ───────────────────────────── */
.swiper-button-prev,
.swiper-button-next {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: #1b5e3b !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    font-size: 14px !important;
    font-weight: 700;
    color: #fff;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5) !important;
    width: 10px !important;
    height: 10px !important;
    transition: all 0.3s;
}

.swiper-pagination-bullet-active {
    background: #ffd24d !important;
    width: 32px !important;
    border-radius: 999px !important;
}

/* ─── PRODUCT CARD (JS-generated) ───────────────── */
.product-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #f0f4f0;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 48px rgba(27, 94, 59, 0.13);
}

/* ── Image Wrap ── */
.product-image-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f4fbf6;
}

.product-image-wrap a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
    display: block;
}

.product-card:hover .product-image-wrap img {
    transform: scale(1.06);
}

/* ── Badge (top-left) ── */
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-badge.best-seller {
    background: linear-gradient(135deg, #d6a646, #f5c842);
    color: #fff;
}

.product-badge.featured {
    background: linear-gradient(135deg, #1b5e3b, #28a060);
    color: #fff;
}

/* ── Top Actions (always visible, top-right) ── */
.product-top-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.product-icon-btn:hover,
.product-icon-btn.wishlisted {
    background: #1b5e3b;
    color: #fff;
    transform: scale(1.1);
}

.product-icon-btn.wishlisted {
    background: #fef2f2;
    color: #ef4444;
}

/* ── Discount Ribbon (bottom-left of image) ── */
.product-discount-ribbon {
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, #1b5e3b, #28a060);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 10px 3px 8px;
    border-top-right-radius: 20px;
    letter-spacing: 0.4px;
    z-index: 3;
}

/* ── Body ── */
.product-body {
    padding: 13px 14px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Category Chip ── */
.product-category-chip {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #d6a646;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    background: #fef9ed;
    border: 1px solid #f5dfa0;
    padding: 2px 9px;
    border-radius: 20px;
    align-self: flex-start;
}

/* ── Product Name ── */
.product-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
    transition: color 0.2s;
}

.product-name:hover {
    color: #1b5e3b;
}

/* ── Rating ── */
.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stars {
    display: flex;
    gap: 1px;
}

.stars i {
    font-size: 11px;
    color: #f5c842;
}

.stars i.fa-regular {
    color: #e2e8f0;
}

.rating-count {
    font-size: 11px;
    color: #94a3b8;
}

/* ── Weight Row ── */
.product-weight-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weight-label {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
    flex-shrink: 0;
}

.weight-select {
    flex: 1;
    padding: 5px 8px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    background: #f9fafb;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.weight-select:focus {
    border-color: #1b5e3b;
    background: #fff;
}

/* ── Price ── */
.product-price {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.price-current {
    font-size: 19px;
    font-weight: 800;
    color: #1b5e3b;
    line-height: 1;
}

.price-old {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: line-through;
}

.price-save {
    font-size: 10px;
    font-weight: 700;
    color: #16a34a;
    background: #dcfce7;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid #bbf7d0;
}

/* ── Add to Cart Button ── */
.btn-add-cart {
    width: 100%;
    padding: 10px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1b5e3b 0%, #28a060 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    border: none;
    box-shadow: 0 4px 12px rgba(27, 94, 59, 0.25);
    letter-spacing: 0.2px;
}

.btn-add-cart:hover {
    background: linear-gradient(135deg, #155030 0%, #1b5e3b 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 94, 59, 0.35);
}

.btn-add-cart:active {
    transform: translateY(0);
}

/* ─── CART DRAWER ITEMS (JS-generated) ───────────── */
.cart-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
}

.cart-item-img {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f8f8f8;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h4 {
    font-weight: 700;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info .weight {
    font-size: 12px;
    color: #888;
    margin-bottom: 3px;
}

.cart-item-info .price {
    font-weight: 700;
    font-size: 15px;
    color: #1b5e3b;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}

.cart-item-qty button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f3f4f6;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #333;
}

.cart-item-qty button:hover {
    background: #1b5e3b;
    color: #fff;
}

.cart-item-qty span {
    font-weight: 700;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    position: absolute;
    top: 10px;
    right: 0;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.2s;
}

.cart-item-remove:hover {
    color: #ef4444;
}

/* ─── FEATURE CARD (JS-generated) ───────────────── */
.feature-card {
    padding: 28px 22px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    transition: all 0.35s;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.3);
}

.feature-icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(214, 166, 70, 0.18);
    border: 1px solid rgba(214, 166, 70, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    transition: 0.35s;
}

.feature-icon i {
    font-size: 28px;
    color: #fbbf24;
}

.feature-card:hover .feature-icon {
    background: #d6a646;
}

.feature-card:hover .feature-icon i {
    color: #fff;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

/* ─── NAV ACTIVE STATE ────────────────────────────── */
.nav-links li.active a {
    color: #1b5e3b !important;
}
@media (max-width:600px){

.footer-col ul,
.footer-col p,
.footer-newsletter form,
.footer-social,
.footer-contact{
    display:block !important;
    /* font-size: 18px !important; */
}

.footer-social{
    display:flex !important;
    flex-wrap:wrap;
    gap:12px;
}

.footer-contact{
    display:flex !important;
    flex-direction:column;
    gap:12px;
}

.footer-col h3{
    cursor:default;
}

}

/* product detials */
 .pd-thumbnails {
            display: flex;
            flex-direction: column;
            gap: 10px
        }

        .pd-thumbnails img {
            width: 72px;
            height: 72px;
            object-fit: cover;
            border-radius: 10px;
            cursor: pointer;
            border: 2px solid transparent;
            transition: border-color 0.2s
        }

        .pd-thumbnails img:hover,
        .pd-thumbnails img.active {
            border-color: #1b5e3b
        }

        .pd-main-image img {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 20px
        }

        #pdQty {
            width: 52px;
            text-align: center;
            border: 1.5px solid #e5e7eb;
            border-radius: 8px;
            padding: 6px;
            font-size: 15px;
            font-weight: 700;
            outline: none
        }

        .pd-tab-btn {
            padding: 10px 22px;
            border-radius: 50px;
            font-size: 14px;
            font-weight: 700;
            border: 2px solid #e5e7eb;
            background: #fff;
            cursor: pointer;
            transition: all 0.2s;
            color: #555
        }

        .pd-tab-btn.active {
            background: #1b5e3b;
            border-color: #1b5e3b;
            color: #fff
        }

        .pd-tab-content {
            display: none
        }

        .pd-tab-content.active {
            display: block
        }

        .pd-spec-table {
            width: 100%;
            border-collapse: collapse
        }

        .pd-spec-table tr:nth-child(even) {
            background: #f9fafb
        }

        .pd-spec-table td {
            padding: 10px 14px;
            font-size: 14px;
            border-bottom: 1px solid #f0f0f0
        }

        .pd-spec-table td:first-child {
            font-weight: 600;
            color: #555;
            width: 40%
        }

        .pd-related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px
        }

        .pd-brand {
            font-size: 13px;
            color: #888;
            margin-bottom: 6px
        }

        h1#pdTitle {
            font-size: clamp(20px, 3vw, 28px);
            font-weight: 800;
            color: #1a1a1a;
            margin-bottom: 10px;
            line-height: 1.3
        }

        .pd-rating {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-bottom: 14px
        }

        .pd-rating .stars i {
            font-size: 14px;
            color: #d6a646
        }

        .pd-price-box {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
            flex-wrap: wrap
        }

        .pd-price {
            font-size: 28px;
            font-weight: 800;
            color: #1b5e3b
        }

        .pd-old-price {
            font-size: 15px;
            color: #888;
            text-decoration: line-through
        }

        .pd-discount {
            font-size: 13px;
            font-weight: 700;
            background: #dcfce7;
            color: #16a34a;
            padding: 3px 10px;
            border-radius: 20px
        }

        .pd-meta {
            display: flex;
            gap: 20px;
            font-size: 13px;
            color: #888;
            margin: 12px 0;
            flex-wrap: wrap
        }

        .pd-meta strong {
            color: #333
        }

        .pd-stock {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 14px;
            color: #555
        }

        .pd-short-description {
            font-size: 14px;
            color: #666;
            line-height: 1.7;
            margin-bottom: 18px
        }

        .pd-quantity-wrapper label {
            font-size: 13px;
            font-weight: 600;
            color: #555;
            margin-bottom: 8px;
            display: block
        }

        .pd-quantity {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 18px
        }

        .pd-quantity button {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            border: 1.5px solid #e5e7eb;
            background: #fff;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            justify-content: center
        }

        .pd-quantity button:hover {
            background: #1b5e3b;
            border-color: #1b5e3b;
            color: #fff
        }

        .pd-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            margin-bottom: 18px
        }

        .pd-cart-btn {
            flex: 1;
            min-width: 140px;
            padding: 14px 20px;
            border-radius: 50px;
            background: #1b5e3b;
            color: #fff;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            border: none;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px
        }

        .pd-cart-btn:hover {
            background: #155030;
            transform: translateY(-2px)
        }

        .pd-buy-btn {
            flex: 1;
            min-width: 120px;
            padding: 14px 20px;
            border-radius: 50px;
            background: #d6a646;
            color: #fff;
            font-weight: 700;
            font-size: 14px;
            cursor: pointer;
            border: none;
            transition: all 0.3s
        }

        .pd-buy-btn:hover {
            background: #c49732
        }

        .pd-share {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: #888
        }

        .pd-share a {
            width: 34px;
            height: 34px;
            border-radius: 50%;
            border: 1.5px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #555;
            transition: all 0.2s
        }

        .pd-share a:hover {
            background: #1b5e3b;
            border-color: #1b5e3b;
            color: #fff
        }

        /* Layout styles */
        .container {
            max-width: 1200px;
            margin: auto;
            padding: 0 16px;
        }

        .pd-section {
            padding: 48px 0;
        }

        .pd-wrapper {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
            align-items: flex-start;
        }

        .pd-gallery {
            display: flex;
            gap: 16px;
        }

        .pd-info {
            display: flex;
            flex-direction: column;
        }

        .pd-card {
            background: #fff;
            border-radius: 16px;
            padding: 28px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
            border: 1px solid #f0f0f0;
        }

        .pd-tabs-section {
            padding: 0 0 56px;
        }

        .pd-tabs {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 24px;
        }

        .pd-related-section {
             padding: 24px 0 60px;
        }
        

        .pd-section-title {
            text-align: center;
            margin-bottom: 32px;
        }

        .pd-section-title h2 {
            font-size: 26px;
            font-weight: 800;
            color: #1a1a1a;
            margin-bottom: 6px;
        }

        .pd-section-title p {
            color: #888;
            font-size: 14px;
        }

        @media (max-width: 900px) {
            .pd-wrapper {
                grid-template-columns: 1fr;
            }

            .pd-gallery {
                flex-direction: row;
            }
        }

        @media (max-width: 600px) {
            .pd-gallery {
                flex-direction: column;
            }

            .pd-thumbnails {
                flex-direction: row;
                overflow-x: auto;
            }
        }


        /* profile css */
        /* Profile page specific styles */
        .breadcrumb {
            background: linear-gradient(135deg, #1b5e3b, #155030);
            color: #fff;
            padding: 24px 0;
        }

        @media (min-width: 640px) {
            .breadcrumb {
                padding: 36px 0;
            }
        }

        .breadcrumb h2 {
            font-size: 26px;
            font-weight: 800;
            margin-bottom: 4px;
        }

        .breadcrumb p {
            font-size: 14px;
            opacity: 0.75;
        }

        .container {
            max-width: 1200px;
            margin: auto;
            padding: 0 16px;
        }

        .profile-page {
            padding: 24px 0;
        }

        @media (min-width: 640px) {
            .profile-page {
                padding: 48px 0;
            }
        }

        .profile-sidebar {
            flex-shrink: 0;
            background: #fff;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
            border: 1px solid #f0f0f0;
        }

        .user-profile {
            padding: 24px;
            background: linear-gradient(135deg, #1b5e3b, #155030);
            text-align: center;
            color: #fff;
        }

        .user-profile img {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            object-fit: cover;
            margin: 0 auto 12px;
            border: 3px solid rgba(255, 255, 255, 0.3);
        }

        .user-profile h3 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 3px;
        }

        .user-profile span {
            font-size: 13px;
            opacity: 0.75;
        }

        .profile-menu {
            list-style: none;
            padding: 10px 0;
        }

        .profile-menu li {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 13px 22px;
            font-size: 14px;
            font-weight: 600;
            color: #555;
            cursor: pointer;
            transition: all 0.2s;
        }

        .profile-menu li:hover {
            background: #f0fdf4;
            color: #1b5e3b;
        }

        .profile-menu li.active {
            background: #f0fdf4;
            color: #1b5e3b;
            border-right: 3px solid #1b5e3b;
        }

        .profile-menu li.logout {
            color: #ef4444;
            margin-top: auto;
        }

        .profile-menu li.logout:hover {
            background: #fef2f2;
        }

        .profile-menu li i {
            width: 18px;
            text-align: center;
            font-size: 15px;
        }

        .profile-content {
            flex: 1;
            min-width: 0;
        }

        .section-content {
            display: none;
        }

        .section-content.active {
            display: block;
        }

        .welcome-card {
            background: linear-gradient(135deg, #1b5e3b, #2d7a55);
            color: #fff;
            border-radius: 16px;
            padding: 18px;
            margin-bottom: 20px;
        }

        @media (min-width: 640px) {
            .welcome-card {
                padding: 28px;
            }
        }

        .welcome-card h2 {
            font-size: 22px;
            font-weight: 800;
            margin-bottom: 6px;
        }

        .welcome-card p {
            font-size: 14px;
            opacity: 0.8;
            line-height: 1.6;
        }

        .profile-card {
            background: #fff;
            border-radius: 16px;
            padding: 16px;
            box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
            border: 1px solid #f0f0f0;
            margin-bottom: 20px;
        }

        @media (min-width: 640px) {
            .profile-card {
                padding: 24px;
            }
        }

        .card-header {
            margin-bottom: 20px;
            padding-bottom: 14px;
            border-bottom: 1px solid #f0f0f0;
        }

        .card-header h3 {
            font-size: 17px;
            font-weight: 800;
            color: #1a1a1a;
        }

        .primary-btn {
            padding: 8px 16px;
            border-radius: 50px;
            background: #1b5e3b;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: background 0.2s;
        }

        .primary-btn:hover {
            background: #155030;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 16px;
        }

        .info-grid label {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: #888;
        }

        .info-grid p {
            font-size: 15px;
            font-weight: 600;
            color: #1a1a1a;
            margin-top: 3px;
        }

        .orders-table {
            overflow-x: auto;
        }

        .orders-table table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }

        .orders-table th {
            padding: 10px 14px;
            text-align: left;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #888;
            background: #f9fafb;
            border-bottom: 1px solid #e5e7eb;
        }

        .orders-table td {
            padding: 12px 14px;
            border-bottom: 1px solid #f5f5f5;
        }

        .status {
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
        }

        .status.delivered {
            background: #dcfce7;
            color: #16a34a;
        }

        .status.processing {
            background: #fef9c3;
            color: #b45309;
        }

        .status.shipped {
            background: #dbeafe;
            color: #1d4ed8;
        }

        .address-list {
            display: grid;
            gap: 16px;
        }

        .address-card {
            border: 1.5px solid #e5e7eb;
            border-radius: 14px;
            padding: 18px;
            position: relative;
        }

        .address-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 10px;
        }

        .address-top h4 {
            font-weight: 700;
            font-size: 15px;
        }

        .default-badge {
            font-size: 11px;
            font-weight: 700;
            background: #dcfce7;
            color: #16a34a;
            padding: 3px 10px;
            border-radius: 20px;
        }

        .address-card p {
            font-size: 13px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 6px;
        }

        .address-card strong {
            font-size: 13px;
        }

        .address-btns {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }

        .address-btns button {
            padding: 7px 16px;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 700;
            border: 1.5px solid #e5e7eb;
            cursor: pointer;
            transition: all 0.2s;
            background: #fff;
            color: #555;
        }

        .address-btns button:hover {
            border-color: #1b5e3b;
            color: #1b5e3b;
        }

        .theme-btn {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            padding: 9px 18px;
            border-radius: 50px;
            background: #1b5e3b;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: background 0.2s;
        }

        .theme-btn:hover {
            background: #155030;
        }

        .payment-list {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .payment-card {
            border: 1.5px solid #e5e7eb;
            border-radius: 14px;
            padding: 16px 20px;
        }

        .payment-left {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .payment-left i {
            font-size: 26px;
            color: #1b5e3b;
        }

        .payment-left h4 {
            font-weight: 700;
            font-size: 14px;
        }

        .payment-left p {
            font-size: 13px;
            color: #888;
        }

        .payment-card>button {
            padding: 7px 16px;
            border-radius: 8px;
            font-size: 13px;
            font-weight: 700;
            border: 1.5px solid #e5e7eb;
            cursor: pointer;
            background: #fff;
            color: #555;
            transition: all 0.2s;
        }

        .payment-card>button:hover {
            border-color: #1b5e3b;
            color: #1b5e3b;
        }

        .setting-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 0;
            border-bottom: 1px solid #f0f0f0;
            font-size: 14px;
            font-weight: 600;
            color: #555;
        }

        .switch {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            inset: 0;
            background: #e5e7eb;
            border-radius: 24px;
            transition: 0.3s;
        }

        .slider:before {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            left: 3px;
            top: 3px;
            transition: 0.3s;
        }

        input:checked+.slider {
            background: #1b5e3b;
        }

        input:checked+.slider:before {
            transform: translateX(20px);
        }

        .password-form {
            display: flex;
            flex-direction: column;
            gap: 18px;
            max-width: 420px;
        }

        .input-group label {
            display: block;
            font-size: 13px;
            font-weight: 600;
            color: #555;
            margin-bottom: 7px;
        }

        .input-group input {
            width: 100%;
            border: 1.5px solid #e5e7eb;
            border-radius: 10px;
            padding: 11px 14px;
            font-size: 14px;
            transition: border-color 0.2s;
            outline: none;
        }

        .input-group input:focus {
            border-color: #1b5e3b;
        }

        .wishlist-grid {
            display: grid;
            gap: 16px;
        }

        .wishlist-grid .wishlist-card {
            border-radius: 14px;
            overflow: hidden;
            border: 1.5px solid #e5e7eb;
            padding: 12px;
            position: relative;
            transition: box-shadow 0.2s, border-color 0.2s;
        }

        .wishlist-grid .wishlist-card:hover {
            border-color: #1b5e3b;
            box-shadow: 0 4px 16px rgba(27, 94, 59, 0.12);
        }

        .wishlist-grid .wishlist-card img {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 10px;
            margin-bottom: 10px;
            background: #f5f5f5;
        }

        .wishlist-badge {
            position: absolute;
            top: 20px;
            left: 20px;
            background: #1b5e3b;
            color: #fff;
            font-size: 10px;
            font-weight: 700;
            padding: 3px 9px;
            border-radius: 20px;
            z-index: 2;
        }

        .wishlist-cat {
            display: inline-block;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            color: #b45309;
            background: #fef3c7;
            padding: 2px 9px;
            border-radius: 20px;
            margin-bottom: 6px;
        }

        .wishlist-grid .wishlist-card h4 {
            font-size: 13px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 5px;
        }

        .wishlist-rating {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 11px;
            font-weight: 700;
            color: #b45309;
            margin-bottom: 6px;
        }

        .wishlist-rating span {
            font-weight: 500;
            color: #999;
        }

        .wishlist-grid .wishlist-card .price {
            font-size: 14px;
            font-weight: 800;
            color: #1b5e3b;
            display: flex;
            gap: 6px;
            align-items: center;
        }

        .wishlist-grid .wishlist-card .price span {
            font-size: 12px;
            color: #888;
            text-decoration: line-through;
        }

        .wishlist-btns {
            display: flex;
            gap: 7px;
            margin-top: 10px;
        }

        .wishlist-btns .cart-btn {
            flex: 1;
            font-size: 11px;
            font-weight: 700;
            padding: 8px;
            border-radius: 8px;
            background: #1b5e3b;
            color: #fff;
            border: none;
            cursor: pointer;
        }

        .wishlist-btns .remove-btn {
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: #fef2f2;
            border: none;
            cursor: pointer;
            color: #ef4444;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        @media (max-width: 480px) {
            .breadcrumb h2 {
                font-size: 21px;
            }

            .orders-table table {
                font-size: 12.5px;
            }

            .orders-table th,
            .orders-table td {
                padding: 8px 10px;
            }
        }

        /* ===== Edit Profile Modal (newly added) ===== */
        .modal-overlay {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 16px;
        }

        .modal-overlay.active {
            display: flex;
        }

        .modal-box {
            background: #fff;
            border-radius: 18px;
            width: 100%;
            max-width: 460px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 18px;
            border-bottom: 1px solid #f0f0f0;
        }

        @media (min-width: 640px) {
            .modal-header {
                padding: 20px 24px;
            }
        }

        .modal-header h3 {
            font-size: 17px;
            font-weight: 800;
            color: #1a1a1a;
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 18px;
            color: #888;
            cursor: pointer;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }

        .modal-close:hover {
            background: #f5f5f5;
            color: #1a1a1a;
        }

        .modal-body {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .modal-body .input-group input {
            width: 100%;
            border: 1.5px solid #e5e7eb;
            border-radius: 10px;
            padding: 11px 14px;
            font-size: 14px;
            outline: none;
            transition: border-color 0.2s;
        }

        .modal-body .input-group input:focus {
            border-color: #1b5e3b;
        }

        .modal-footer {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 10px;
            padding: 14px 18px 18px;
        }

        @media (min-width: 640px) {
            .modal-footer {
                padding: 16px 24px 24px;
            }
        }

        .modal-cancel-btn {
            padding: 10px 20px;
            border-radius: 50px;
            background: #fff;
            color: #555;
            font-size: 13px;
            font-weight: 700;
            border: 1.5px solid #e5e7eb;
            cursor: pointer;
            transition: all 0.2s;
        }

        .modal-cancel-btn:hover {
            border-color: #1b5e3b;
            color: #1b5e3b;
        }

        .modal-save-btn {
            padding: 10px 22px;
            border-radius: 50px;
            background: #1b5e3b;
            color: #fff;
            font-size: 13px;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: background 0.2s;
        }

        .modal-save-btn:hover {
            background: #155030;
        }

        /* Address form extras */
        .address-form-row {
            gap: 14px;
        }

        .address-form-row .input-group {
            flex: 1;
            min-width: 0;
        }

        .modal-body select.address-select {
            width: 100%;
            border: 1.5px solid #e5e7eb;
            border-radius: 10px;
            padding: 11px 14px;
            font-size: 14px;
            outline: none;
            background: #fff;
            transition: border-color 0.2s;
        }

        .modal-body select.address-select:focus {
            border-color: #1b5e3b;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 9px;
            font-size: 13px;
            font-weight: 600;
            color: #555;
            cursor: pointer;
        }

        .checkbox-label input {
            width: 17px;
            height: 17px;
            accent-color: #1b5e3b;
            cursor: pointer;
        }

        .address-card.no-address {
            text-align: center;
            color: #888;
            font-size: 14px;
            padding: 30px 10px;
            border-style: dashed;
        }