/* ============================================================
   WellMemory Store — Main Stylesheet
   Color Palette:
     Primary Green:  #2E7D32
     Light Green:    #A5D6A7
     Accent Gold:    #F9A825
     Background:     #FAFAF5
     Text Dark:      #1B1B1B
   Fonts: Poppins (headings) + Nunito (body)
   ============================================================ */

/* ── CSS Custom Properties ───────────────────────────────── */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --primary-light: #A5D6A7;
    --primary-lighter: #E8F5E9;
    --accent: #F9A825;
    --accent-dark: #F57F17;
    --bg: #FAFAF5;
    --bg-white: #FFFFFF;
    --text-dark: #1B1B1B;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --border: #E5E7EB;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* ── Dark Mode ──────────────────────────────────────────── */
[data-theme="dark"] {
    --primary: #4CAF50;
    --primary-dark: #66BB6A;
    --primary-light: #2E7D32;
    --primary-lighter: #1a2e1a;
    --accent: #FFB300;
    --accent-dark: #FFC107;
    --bg: #0f1610;
    --bg-white: #1a231a;
    --text-dark: #E8E8E8;
    --text-muted: #A0A0A0;
    --text-light: #707070;
    --border: #2a3a2a;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] body {
    background-color: var(--bg);
}

[data-theme="dark"] #mainNav {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .navbar-brand {
    color: var(--primary) !important;
}

[data-theme="dark"] .nav-link {
    color: var(--text-dark) !important;
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--bg);
    color: var(--text-dark);
    border-color: var(--border);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: var(--bg);
    color: var(--text-dark);
}

[data-theme="dark"] .top-bar {
    background: #0a120a;
}

[data-theme="dark"] .site-footer {
    background: #0a100a;
}

[data-theme="dark"] .input-group-text {
    background: var(--bg);
    color: var(--text-muted);
    border-color: var(--border);
}

[data-theme="dark"] .modal-content {
    background: var(--bg-white);
    color: var(--text-dark);
}

[data-theme="dark"] .table {
    color: var(--text-dark);
}

[data-theme="dark"] .dropdown-menu {
    background: var(--bg-white);
    border-color: var(--border);
}

[data-theme="dark"] .dropdown-item {
    color: var(--text-dark);
}

[data-theme="dark"] .dropdown-item:hover {
    background: var(--primary-lighter);
}

[data-theme="dark"] .btn-outline-dark {
    color: var(--text-dark);
    border-color: var(--border);
}

[data-theme="dark"] .btn-outline-dark:hover {
    background: var(--border);
    color: var(--text-dark);
}

[data-theme="dark"] .alert-danger {
    background: #3d1515;
    border-color: #5a2020;
    color: #ff9999;
}

[data-theme="dark"] .alert-success {
    background: #153d15;
    border-color: #205a20;
    color: #99ff99;
}

/* ── Reset & Base ────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Top Bar ─────────────────────────────────────────────── */
.top-bar {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    padding: 6px 0;
    letter-spacing: 0.3px;
}

.top-bar a {
    color: rgba(255, 255, 255, 0.85);
}

.top-bar a:hover {
    color: #fff;
}

/* ── Navbar ──────────────────────────────────────────────── */
#mainNav {
    background: var(--bg-white);
    box-shadow: none;
    padding: 12px 0;
    transition: var(--transition);
    z-index: 1030;
}

#mainNav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
}

.brand-icon {
    font-size: 1.3rem;
    color: var(--primary);
}

.brand-text {
    color: var(--primary);
}

.brand-accent {
    color: var(--accent);
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 8px 18px !important;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-icon-link {
    color: var(--text-dark);
    font-size: 1.2rem;
    position: relative;
}

.nav-icon-link:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler {
    border: none;
    color: var(--text-dark);
    font-size: 1.4rem;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-accent {
    background: var(--accent);
    border: none;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    padding: 10px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 168, 37, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ── Hero Section ────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    opacity: 0.3;
    border-radius: 50%;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title span {
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-image {
    max-width: 480px;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* ── Section Styles ──────────────────────────────────────── */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-align: center;
}

.section-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.05rem;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 20px;
    border-radius: 2px;
}

/* ── Why Choose Us / Icon Boxes ──────────────────────────── */
.icon-box {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.icon-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.icon-box-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.icon-box:hover .icon-box-icon {
    background: var(--primary);
    color: #fff;
}

.icon-box h5 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.icon-box p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0;
}

/* ── Product Cards ───────────────────────────────────────── */
.product-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
    background: var(--primary-lighter);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.08);
}

.product-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-sale {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
}

.product-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-category {
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.product-card-title a {
    color: var(--text-dark);
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-card-rating {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.product-card-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    margin-bottom: 15px;
    margin-top: auto;
}

.product-card-price .old-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 8px;
}

.product-card .btn {
    margin-top: auto;
}

/* ── Category Cards ──────────────────────────────────────── */
.category-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--primary);
}

.category-card-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
    color: var(--primary);
}

.category-card h5 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.category-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ── Testimonials ────────────────────────────────────────── */
.testimonial-section {
    background: var(--primary-lighter);
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 5rem;
    color: var(--primary-light);
    position: absolute;
    top: 10px;
    left: 20px;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.testimonial-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 0.85rem;
    color: var(--primary);
}

/* ── Blog Cards ──────────────────────────────────────────── */
.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 200px;
    background: var(--primary-lighter);
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.blog-card-title a {
    color: var(--text-dark);
}

.blog-card-title a:hover {
    color: var(--primary);
}

/* ── Shop Page ───────────────────────────────────────────── */
.shop-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.shop-sidebar h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-lighter);
}

.shop-sidebar .form-check {
    margin-bottom: 8px;
}

.shop-sidebar .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.price-range-display {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Custom range slider */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--primary-lighter);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ── Product Detail Page ─────────────────────────────────── */
.product-image-zoom {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--primary-lighter);
}

.product-image-zoom img {
    width: 100%;
    transition: transform 0.5s ease;
    cursor: zoom-in;
}

.product-image-zoom:hover img {
    transform: scale(1.5);
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.product-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stock-badge {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-in {
    background: var(--primary-lighter);
    color: var(--primary);
}

.stock-out {
    background: #FFEBEE;
    color: #C62828;
}

.product-price-large {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 20px;
}

.product-price-large .old-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: 500;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.qty-control button {
    background: var(--bg);
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark);
}

.qty-control button:hover {
    background: var(--primary-lighter);
}

.qty-control input {
    width: 60px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 2px solid var(--border);
    border-right: 2px solid var(--border);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
}

.qty-control input:focus {
    outline: none;
}

/* Tabs */
.product-tabs .nav-tabs {
    border-bottom: 2px solid var(--border);
}

.product-tabs .nav-link {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    padding: 12px 24px;
    position: relative;
}

.product-tabs .nav-link.active {
    color: var(--primary);
    background: transparent;
    border: none;
}

.product-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.product-tabs .tab-content {
    padding: 30px 0;
}

/* Reviews */
.review-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.review-item:last-child {
    border-bottom: none;
}

.review-author {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Star input for review form */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    font-size: 1.5rem;
    color: var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.star-rating-input input:checked~label,
.star-rating-input label:hover,
.star-rating-input label:hover~label {
    color: var(--accent);
}

/* ── Cart Page ───────────────────────────────────────────── */
.cart-table {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cart-table th {
    background: var(--primary-lighter);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--primary-dark);
    padding: 15px 20px;
    border: none;
}

.cart-table td {
    padding: 15px 20px;
    vertical-align: middle;
    border-color: var(--border);
}

.cart-product-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.cart-product-name {
    font-weight: 700;
    color: var(--text-dark);
}

.cart-summary {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.cart-summary h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-lighter);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}

.cart-summary-row.total {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    border-top: 2px solid var(--border);
    margin-top: 10px;
    padding-top: 15px;
}

.coupon-input {
    display: flex;
    gap: 10px;
}

/* ── Checkout ────────────────────────────────────────────── */
.checkout-form {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
}

.checkout-form h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-lighter);
}

/* Payment method cards */
.payment-option {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--primary);
    background: var(--primary-lighter);
}

/* ── Auth Pages ──────────────────────────────────────────── */
.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 50px 0;
}

.auth-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    margin: 0 auto;
    width: 100%;
}

.auth-card h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* ── Account Pages ───────────────────────────────────────── */
.account-sidebar {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
}

.account-sidebar .list-group-item {
    border: none;
    padding: 12px 15px;
    border-radius: var(--radius-sm);
    margin-bottom: 4px;
    font-weight: 500;
    transition: var(--transition);
}

.account-sidebar .list-group-item.active {
    background: var(--primary);
    color: #fff;
}

.account-sidebar .list-group-item:hover:not(.active) {
    background: var(--primary-lighter);
}

/* ── Order Success ───────────────────────────────────────── */
.success-section {
    text-align: center;
    padding: 80px 0;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 3rem;
    color: var(--primary);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* ── About Page ──────────────────────────────────────────── */
.about-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.values-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
    transition: var(--transition);
}

.values-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.disclaimer-box {
    background: #FFF3E0;
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: var(--radius-sm);
    margin-top: 30px;
}

/* ── Contact Page ────────────────────────────────────────── */
.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 25px;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

/* ── Page Header / Breadcrumb ────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, var(--bg) 100%);
    padding: 40px 0;
}

.page-header h1 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: var(--primary);
    font-size: 0.9rem;
}

.breadcrumb-item.active {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: #1a2e1a;
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 0;
}

.site-footer .footer-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}

.site-footer .footer-brand .brand-accent {
    color: var(--accent);
}

.site-footer .footer-text {
    font-size: 0.9rem;
    margin-bottom: 15px;
    max-width: 300px;
}

.footer-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--accent);
    width: 20px;
    margin-right: 8px;
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0 20px;
}

.footer-bottom {
    padding-bottom: 20px;
    font-size: 0.85rem;
}

.footer-badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.85rem;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent);
    color: #fff;
    box-shadow: none;
}

/* ── WhatsApp Float ──────────────────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
    animation: pulse 2s ease infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    color: #fff;
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ── Toast ────────────────────────────────────────────────── */
.custom-toast {
    background: var(--bg-white);
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--primary);
}

.custom-toast.toast-success {
    border-left-color: var(--primary);
}

.custom-toast.toast-error {
    border-left-color: #C62828;
}

/* ── Forms ────────────────────────────────────────────────── */
.form-control,
.form-select {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 0.9rem;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination .page-link {
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 10px 16px;
    margin: 0 3px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-lighter);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
}

/* ── Loading Spinner ─────────────────────────────────────── */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    right: 15px;
    top: 50%;
    margin-top: -9px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── 404 Page ────────────────────────────────────────────── */
.error-section {
    text-align: center;
    padding: 100px 0;
}

.error-code {
    font-family: 'Poppins', sans-serif;
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-image {
        max-width: 350px;
        margin-top: 30px;
    }

    .navbar-collapse {
        background: var(--bg-white);
        padding: 15px;
        margin-top: 10px;
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
    }

    .product-image-zoom:hover img {
        transform: scale(1);
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-padding {
        padding: 50px 0;
    }

    .auth-card {
        padding: 25px;
    }

    .product-info h1 {
        font-size: 1.5rem;
    }

    .product-price-large {
        font-size: 1.4rem;
    }

    .cart-table {
        font-size: 0.85rem;
    }

    .cart-product-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.7rem;
    }

    .top-bar {
        font-size: 0.72rem;
    }
}

/* ── Search Page ─────────────────────────────────────────── */
.search-form-large {
    max-width: 600px;
    margin: 0 auto;
}

.search-form-large .input-group {
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    overflow: hidden;
}

.search-form-large .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1.05rem;
}

.search-form-large .form-control:focus {
    box-shadow: none;
}

.search-form-large .btn {
    border-radius: 0;
    padding: 15px 30px;
}

/* ── Empty State ─────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.empty-state h4 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* ── Blog Detail ─────────────────────────────────────────── */
.blog-content {
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
}

.blog-content h3 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.blog-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.blog-content li {
    margin-bottom: 8px;
}

/* ── Scroll Reveal Animations ───────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for card grids */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* Hero entrance */
.hero-fade-in {
    animation: heroFadeIn 0.8s ease forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Skeleton Loading ───────────────────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--border) 25%, var(--primary-lighter) 50%, var(--border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

.skeleton-card {
    height: 350px;
    border-radius: var(--radius);
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 80%;
}

.skeleton-text-sm {
    height: 10px;
    width: 60%;
}

.skeleton-image {
    height: 200px;
    border-radius: var(--radius) var(--radius) 0 0;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* ── Back to Top Button ─────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 46px;
    height: 46px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 998;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

/* ── Theme Toggle ───────────────────────────────────────── */
.theme-toggle {
    background: none;
    border: 2px solid var(--border);
    color: var(--text-dark);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-lighter);
}

/* ── Wishlist Heart ─────────────────────────────────────── */
.wishlist-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    font-size: 1rem;
    color: var(--text-muted);
}

.wishlist-btn:hover {
    background: #fff;
    color: #e53935;
    transform: scale(1.1);
}

.wishlist-btn.active {
    color: #e53935;
    background: #fff;
}

.wishlist-btn.active i {
    font-weight: 900;
}

.wishlist-btn .heart-pop {
    animation: heartPop 0.4s ease;
}

@keyframes heartPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* ── Quick View Modal ───────────────────────────────────── */
.quickview-modal .modal-content {
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
}

.quickview-modal .modal-body {
    padding: 0;
}

.quickview-image {
    height: 100%;
    min-height: 350px;
    background: var(--primary-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.quickview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quickview-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quickview-info .product-card-category {
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.quickview-info h4 {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.quickview-info .product-price-large {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.quickview-info .product-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.quickview-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.quickview-rating .text-warning {
    color: var(--accent) !important;
}

.quick-view-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
    font-size: 0.9rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(5px);
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.quick-view-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* ── Order Tracking ─────────────────────────────────────── */
.order-tracker {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 20px 0;
    margin: 15px 0;
}

.order-tracker::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--border);
}

.order-tracker-progress {
    position: absolute;
    top: 35px;
    left: 10%;
    height: 3px;
    background: var(--primary);
    transition: width 0.5s ease;
}

.tracker-step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.tracker-step-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border: 3px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tracker-step.completed .tracker-step-icon {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.tracker-step.active .tracker-step-icon {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.15);
}

.tracker-step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tracker-step.completed .tracker-step-label,
.tracker-step.active .tracker-step-label {
    color: var(--primary);
}

/* ── Coupon Badge ───────────────────────────────────────── */
.coupon-applied {
    background: var(--primary-lighter);
    border: 1px dashed var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.coupon-applied .coupon-code {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.coupon-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

.coupon-remove:hover {
    color: #e53935;
}

/* ── Order Card (account) ───────────────────────────────── */
.order-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--primary-lighter);
    flex-wrap: wrap;
    gap: 8px;
}

.order-card-body {
    padding: 15px 20px;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}

/* ── Wishlist Page ──────────────────────────────────────── */
.wishlist-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(229, 57, 53, 0.9);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    z-index: 5;
    transition: all 0.3s ease;
}

.wishlist-remove:hover {
    background: #c62828;
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════════════════
   PHASE 3 – Instant Search Dropdown
   ═══════════════════════════════════════════════════════ */
.instant-search {
    max-width: 420px;
}

.instant-search .form-control {
    border-radius: 25px 0 0 25px;
    border-right: none;
    padding-left: 18px;
}

.instant-search .input-group-text {
    border-radius: 0 25px 25px 0;
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    cursor: pointer;
}

.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    z-index: 1050;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    margin-top: 4px;
}

[data-theme="dark"] .search-dropdown {
    background: #1e1e1e;
    border-color: #333;
}

.search-dropdown.show {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text);
    transition: background 0.2s;
    border-bottom: 1px solid var(--border);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: var(--bg-soft);
}

.search-result-item img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-info h6 {
    margin: 0;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-info small {
    color: var(--text-muted);
}

.search-result-price {
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    font-size: .85rem;
}

.search-view-all {
    display: block;
    text-align: center;
    padding: 10px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: background 0.2s;
}

.search-view-all:hover {
    background: var(--bg-soft);
}

.search-no-results {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   PHASE 3 – Product Image Gallery
   ═══════════════════════════════════════════════════════ */
.product-gallery {
    position: relative;
}

.product-gallery-main {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.product-gallery-main:hover {
    transform: scale(1.02);
}

.product-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-gallery-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s;
    flex-shrink: 0;
}

.product-gallery-thumb:hover,
.product-gallery-thumb.active {
    opacity: 1;
    border-color: var(--primary);
}

/* ═══════════════════════════════════════════════════════
   PHASE 4 – Password Strength Meter
   ═══════════════════════════════════════════════════════ */
.password-strength-meter {
    margin-top: -6px;
}

.strength-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background: #e0e0e0;
    transition: background 0.3s;
}

.strength-label {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 600;
    transition: color 0.3s;
}

/* ═══════════════════════════════════════════════════════
   PHASE 4 – WhatsApp Order Button
   ═══════════════════════════════════════════════════════ */
.whatsapp-order-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s;
}

.whatsapp-order-btn:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.whatsapp-order-btn i {
    font-size: 1.2rem;
}

/* ═══════════════════════════════════════════════════════
   PHASE 4 – Review Photos
   ═══════════════════════════════════════════════════════ */
.review-photos {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.review-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.review-photo:hover {
    border-color: var(--primary);
    transform: scale(1.05);
}

.review-upload-zone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
    color: var(--text-muted);
}

.review-upload-zone:hover {
    border-color: var(--primary);
}

.review-upload-zone i {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 4px;
}