/* ═══════════════════════════════════════════════════
   MyStore — Main Storefront Stylesheet
   Premium dark-accent modern eCommerce design
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #10B981;
    --primary-dark: #059669;
    --primary-light: #34D399;
    --accent: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-2: #F1F5F9;
    --text: #1E293B;
    --text-light: #64748B;
    --text-lighter: #94A3B8;
    --border: #E2E8F0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow: 0 4px 12px rgba(0, 0, 0, .08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .12);
    --transition: 0.25s cubic-bezier(.4, 0, .2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── Typography ── */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.page-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.text--muted {
    color: var(--text-light);
}

.text--success {
    color: var(--success);
}

.text--danger {
    color: var(--danger);
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn--primary {
    background: var(--primary);
    color: #fff;
}

.btn--primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108, 99, 255, .35);
}

.btn--outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn--danger {
    background: var(--danger);
    color: #fff;
}

.btn--danger:hover {
    background: #DC2626;
    color: #fff;
}

.btn--sm {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
}

.btn--lg {
    padding: 0.85rem 2rem;
    font-size: 1rem;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ── Alerts ── */
.alert {
    max-width: 1200px;
    margin: 0.75rem auto;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideDown 0.3s ease;
}

.alert--success {
    background: #D1FAE5;
    color: #065F46;
}

.alert--error {
    background: #FEE2E2;
    color: #991B1B;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Header ── */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, .92);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 1.5rem;
}

.header__logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
}

.header__logo img {
    height: 36px;
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header__nav {
    display: flex;
    gap: 1.5rem;
}

.header__nav a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.92rem;
    position: relative;
    padding: 0.25rem 0;
}

.header__nav a.active,
.header__nav a:hover {
    color: var(--primary);
}

.header__nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* ── Nav Dropdowns ── */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-dropdown__content {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
}

.nav-dropdown:hover .nav-dropdown__content {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown__content a {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
    color: var(--text-light);
    border-radius: 0;
    width: 100%;
}

.nav-dropdown__content a::after {
    display: none;
}

.nav-dropdown__content a:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header__location {
    display: none;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-right: 1rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .header__location {
        display: flex;
    }
}

.header__search {
    display: flex;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.header__search input {
    border: none;
    background: transparent;
    padding: 0.5rem 0.75rem;
    width: 180px;
    font-family: var(--font);
    font-size: 0.85rem;
}

.header__search input:focus {
    outline: none;
}

.header__search button {
    border: none;
    background: transparent;
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
}

.header__cart {
    position: relative;
    color: var(--text);
    font-size: 1.15rem;
    padding: 0.4rem;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -6px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header__user-menu {
    position: relative;
}

.header__user-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 500;
    padding: 0.4rem;
}

.header__dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    min-width: 180px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px);
    transition: all var(--transition);
}

.header__user-menu.open .header__dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.header__dropdown a,
.header__dropdown button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
    color: var(--text-light);
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: var(--font);
    text-align: left;
}

.header__dropdown a:hover,
.header__dropdown button:hover {
    background: var(--surface-2);
    color: var(--primary);
}

.header__mobile-toggle {
    display: none;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text);
}

/* ── Hero Slider ── */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: transparent;
}

.slider-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
}

.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.slide {
    min-width: 100%;
    position: relative;
    height: 400px;
}

@media(max-width: 768px) {
    .slide {
        height: 200px;
    }
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.slider-container:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: var(--primary);
    color: #fff;
}

.slider-btn--prev {
    left: 1rem;
}

.slider-btn--next {
    right: 1rem;
}

.slider-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ── Sections ── */
.section {
    padding: 4rem 0;
}

.section--gray {
    background: var(--surface-2);
}

.section--dark {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
}

.section__title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    text-align: center;
}

.section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section__header .section__title {
    margin-bottom: 0;
}

/* ── Category Grid & Carousel ── */
.category-carousel-wrapper {
    position: relative;
    width: 100%;
}

.category-carousel {
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 3rem;
    /* Larger gap to match reference */
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.category-carousel::-webkit-scrollbar {
    display: none;
}

.category-card {
    background: transparent;
    border: none;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
    min-width: 140px;
    max-width: 140px;
    scroll-snap-align: start;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.category-card:hover {
    color: var(--text);
}

.category-card__icon {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 2.5rem;
    color: var(--primary);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card__icon {
    transform: scale(1.05);
    /* very subtle scale */
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
    line-height: 1.3;
    transition: color 0.3s ease;
    color: #1a202c;
}

.category-card:hover h3 {
    color: var(--primary);
}

/* ── Top Selling Carousel & Cards ── */
.top-selling-carousel-wrapper {
    position: relative;
    width: 100%;
}

.top-selling-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.top-selling-carousel::-webkit-scrollbar {
    display: none;
}

.top-selling-carousel .top-selling-card {
    min-width: 280px;
    max-width: 280px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.top-selling-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.top-selling-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.top-selling-card__image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f7fafc;
    overflow: hidden;
}

.top-selling-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    /* Helps blend white background products */
}

.top-selling-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #e53e3e;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    line-height: 1;
}

.top-selling-card__actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.top-selling-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.top-selling-action-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.top-selling-card__info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.top-selling-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top-selling-card__rating {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.top-selling-card__rating .empty {
    color: #e2e8f0;
}

.top-selling-card__price {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.top-selling-card__price .price--current {
    font-weight: 700;
    color: #1a202c;
    font-size: 1.1rem;
}

.top-selling-card__price .price--old {
    color: #a0aec0;
    font-size: 0.85rem;
    text-decoration: line-through;
}

/* ── Feature Product Grid & Card (Horizontal) ── */
.feature-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
}

.feature-product-card {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.feature-product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.feature-product-card__image {
    width: 220px;
    position: relative;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-product-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.feature-product-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #e53e3e;
    color: white;
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
}

.feature-product-card__hover-actions {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.feature-product-card:hover .feature-product-card__hover-actions {
    opacity: 1;
    visibility: visible;
}

.feature-product-card__hover-actions .hover-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
}

.feature-product-card__hover-actions .hover-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.feature-product-card__content {
    flex: 1;
    padding: 1.5rem 1.5rem 1.5rem 0;
    display: flex;
    flex-direction: column;
}

.feature-product-card__title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a202c;
    text-decoration: none;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.feature-product-card__title:hover {
    color: var(--primary);
}

.feature-product-card__rating {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.feature-product-card__price-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.feature-product-card__price-box .price--current {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
}

.feature-product-card__price-box .price--old {
    font-size: 0.9rem;
    color: #a0aec0;
    text-decoration: line-through;
}

.feature-product-card__form {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.feature-product-card__select {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 0.9rem;
    color: #4a5568;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.feature-product-card__select:focus {
    outline: none;
    border-color: var(--primary);
}

.custom-select-wrapper::after {
    content: '\f0d7';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #a0aec0;
}

.feature-product-card__add-btn {
    width: 100%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: none;
    border-radius: 6px;
    padding: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.feature-product-card__add-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ── Product Grid & Carousel ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.product-carousel-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 2rem;
}

.product-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    padding-top: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    /* Space for box-shadow */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.product-carousel::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.product-carousel .product-card {
    min-width: 260px;
    max-width: 260px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

.carousel-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.carousel-nav-btn {
    background: #fff;
    border: 1px solid var(--border);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s;
}

.carousel-nav-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    text-decoration: none;
    color: var(--text);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-card__img {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
    background: #fff;
    overflow: hidden;
    display: block;
}

.product-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-card__img img {
    transform: scale(1.05);
}

.product-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 2rem;
    color: var(--text-lighter);
}

.product-card__badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: #e53e3e;
    /* Red color from reference */
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-card__info {
    padding: 1rem;
}

.product-card__category {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card__name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #2d3748;
}

.product-card__rating {
    color: #ecc94b;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.product-card__rating i.empty {
    color: #e2e8f0;
}

.product-card__price {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.price--old {
    text-decoration: line-through;
    color: #a0aec0;
    font-size: 0.85rem;
}

.price--current {
    font-weight: 600;
    color: #1a202c;
    font-size: 1rem;
}

.product-card__actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card__weight {
    background: #f7fafc;
    color: #4a5568;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
    margin-right: 0.5rem;
}

.product-card__add {
    background: #e6ffed;
    /* Light green background */
    color: var(--primary);
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    justify-content: center;
    transition: background 0.2s;
}

.product-card__add:hover {
    background: #c6f6d5;
}

.price--lg {
    font-size: 1.5rem;
}

.price--save {
    background: #D1FAE5;
    color: #065F46;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card__out {
    font-size: 0.8rem;
    color: var(--danger);
    font-weight: 600;
}

/* ── Features Grid ── */
.features-section {
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 3rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.feature-card i {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: #effff3;
    border-radius: 50%;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: #1a202c;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.feature-card p {
    color: #718096;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ── Shop Layout ── */
.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
}

.shop-sidebar h3 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.category-list {
    list-style: none;
}

.category-list li a {
    display: block;
    padding: 0.4rem 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.category-list li a:hover,
.category-list li a.active {
    background: rgba(108, 99, 255, .08);
    color: var(--primary);
}

.shop-products__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ── Product Detail ── */
.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.gallery-main {
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface-2);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-main--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-lighter);
}

.gallery-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.gallery-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition);
    opacity: 0.7;
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    border-color: var(--primary);
    opacity: 1;
}

.product-detail__category {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-detail__info h1 {
    font-size: 1.75rem;
    margin: 0.5rem 0 1rem;
}

.product-detail__price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.product-detail__short {
    color: var(--text-light);
    margin-bottom: 1.25rem;
}

.product-detail__meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.product-detail__form {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.quantity-selector {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-selector button {
    width: 36px;
    border: none;
    background: var(--surface-2);
    cursor: pointer;
    font-size: 1rem;
    color: var(--text);
    transition: background var(--transition);
}

.quantity-selector button:hover {
    background: var(--border);
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-family: var(--font);
    font-size: 0.9rem;
    -moz-appearance: textfield;
}

.quantity-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.product-detail__desc {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.product-detail__desc h3 {
    margin-bottom: 0.75rem;
}

/* ── Variation Selector ── */
.variation-selector {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background: var(--surface-2);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.variation-group {
    margin-bottom: 1rem;
}

.variation-group:last-child {
    margin-bottom: 0.5rem;
}

.variation-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variation-btn {
    padding: 0.5rem 1.1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
}

.variation-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
    background: rgba(108, 99, 255, .04);
}

.variation-btn.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(108, 99, 255, .3);
}

.variation-prompt {
    font-size: 0.82rem;
    color: var(--text-light);
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.variation-prompt i {
    color: var(--primary);
}

.gallery-thumbs {
    flex-wrap: wrap;
}

.related-products {
    margin-top: 4rem;
}

/* ── Cart ── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2rem;
    align-items: start;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
}

.cart-item__img img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-item__placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    color: var(--text-lighter);
}

.cart-item__info h3 {
    font-size: 0.95rem;
}

.cart-item__total {
    font-weight: 700;
    font-size: 1rem;
}

.cart-item__remove {
    border: none;
    background: transparent;
    color: var(--text-lighter);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.cart-item__remove:hover {
    color: var(--danger);
}

/* ── Cart Summary ── */
.cart-summary {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 84px;
}

.cart-summary h3 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.cart-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.cart-summary__total {
    border-top: 2px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

/* ── Checkout ── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.checkout-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.checkout-form h3 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ── Forms ── */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    transition: border-color var(--transition);
    background: var(--surface);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, .1);
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 140px;
}

.form-group--lg {
    flex: 2 !important;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    margin-bottom: 1rem;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color var(--transition);
}

.payment-method:has(input:checked) {
    border-color: var(--primary);
    background: rgba(108, 99, 255, .04);
}

.payment-method span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── Auth ── */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 0.25rem;
}

.auth-card .text--muted {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* ── Order Success ── */
.success-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
    animation: scalePop 0.5s ease;
}

@keyframes scalePop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.order-success-card,
.order-detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-top: 1.25rem;
}

.order-success__row,
.order-detail__row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

/* ── Data Table ── */
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.data-table thead {
    background: var(--surface-2);
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
}

.data-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

.data-table tbody tr:hover {
    background: rgba(108, 99, 255, .02);
}

.orders-table-wrap {
    overflow-x: auto;
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge--pending {
    background: #FEF3C7;
    color: #92400E;
}

.badge--confirmed {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge--processing {
    background: #EDE9FE;
    color: #5B21B6;
}

.badge--packed {
    background: #FCE7F3;
    color: #9D174D;
}

.badge--shipped {
    background: #E0E7FF;
    color: #3730A3;
}

.badge--out_for_delivery {
    background: #CCFBF1;
    color: #115E59;
}

.badge--delivered {
    background: #D1FAE5;
    color: #065F46;
}

.badge--returned {
    background: #FFF7ED;
    color: #9A3412;
}

.badge--cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

.badge--paid {
    background: #D1FAE5;
    color: #065F46;
}

.badge--failed {
    background: #FEE2E2;
    color: #991B1B;
}

.badge--refunded {
    background: #FEF3C7;
    color: #92400E;
}

.badge--manual_verified {
    background: #D1FAE5;
    color: #065F46;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-light);
}

.empty-state i {
    font-size: 3rem;
    color: var(--text-lighter);
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ── Footer ── */
.footer {
    background: #171b22;
    /* very dark blue/grey */
    color: #e2e8f0;
    padding: 4rem 0 1.5rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

.footer__col h4 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer__col.mt-4 {
    margin-top: 2rem;
}

.footer__col a {
    display: block;
    color: #e2e8f0;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s;
}

.footer__col a:hover {
    color: var(--primary);
}

.footer__social-box {
    display: inline-flex;
    align-items: center;
    background: #2d3748;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    gap: 1rem;
}

.footer__social-box a {
    color: #fff;
    margin-bottom: 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__social-box a:hover {
    color: var(--primary);
}

.store-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.store-info-icon {
    width: 40px;
    height: 40px;
    background: #2d3748;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    /* Green icon color */
    flex-shrink: 0;
    font-size: 1.1rem;
}

.store-info-item p {
    color: #e2e8f0;
    font-size: 0.95rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.footer__bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* very subtle dark border */
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer__copyright {
    color: #e2e8f0;
    font-size: 0.95rem;
}

.footer__payment {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer__payment span {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
}

.payment-icons {
    display: flex;
    gap: 0.5rem;
}

.payment-icon {
    width: 40px;
    height: 28px;
    background: #2d3748;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── Pagination ── */
nav[role=navigation] {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

nav[role=navigation] span,
nav[role=navigation] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin: 0 0.2rem;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: all var(--transition);
}

nav[role=navigation] span[aria-current] {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

nav[role=navigation] a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .header__nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1rem;
    }

    .header__nav.open {
        display: flex;
    }

    .header__search {
        display: none;
    }

    .header__mobile-toggle {
        display: block;
    }

    .hero__content h1 {
        font-size: 2.2rem;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .shop-layout {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 60px 1fr;
    }

    .cart-item__qty,
    .cart-item__total,
    .cart-item form:last-child {
        grid-column: 2;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}