/* style.css */
:root {
    --primary-color: #f6e6e4;
    /* Soft pink */
    --secondary-color: #e4d4cd;
    /* Deeper dusty rose */
    --accent-color: #d1bfae;
    /* Warm sand */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #fdfbf7;
    /* Warm white */
    --bg-white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Star Rating Component */
.star-rating {
    display: flex;
    gap: 8px;
    font-size: 1.4rem;
    color: #ddd;
    cursor: pointer;
}

.star-rating i {
    transition: var(--transition);
}

.star-rating i.active,
.star-rating i:hover {
    color: #e6c875; /* Premium Gold */
}

/* Sidebar Edit Button */
.side-edit-btn {
    margin-top: 15px;
    background: none;
    border: 1px solid var(--accent-color);
    padding: 8px 15px;
    border-radius: 25px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-edit-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--text-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--bg-light);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.12));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-left: 0.6rem;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-dark);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.close-menu-item {
    display: none;
}

.mobile-menu-btn {
    display: none;
}

.nav-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.2rem;
}

.nav-icons a {
    transition: var(--transition);
}

.nav-icons a:hover {
    color: var(--accent-color);
}

.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--secondary-color);
    color: var(--text-dark);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    min-height: 80vh;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--primary-color) 100%);
    overflow: hidden;
}

.hero-content {
    flex: 1;
    padding-right: 5%;
    animation: fadeUp 1s ease forwards;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.btn-primary {
    background-color: var(--text-dark);
    color: var(--bg-white);
    padding: 1rem 2.5rem;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 4px;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    animation: slideIn 1.2s ease forwards;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    object-fit: cover;
}

/* Typography & Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
}

/* Featured Products */
.featured-products {
    padding: 6rem 5%;
    background-color: var(--bg-white);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background-color: var(--primary-color);
    border-radius: 8px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: center;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    bottom: 0px;
}

.add-to-cart {
    background-color: var(--text-dark);
    color: var(--bg-white);
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
    max-width: 200px;
    transition: var(--transition);
}

.add-to-cart:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

.product-info {
    padding: 1.5rem 0;
    text-align: center;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-info .price {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.reviews {
    color: #e6c875;
    font-size: 0.85rem;
}

.reviews span {
    color: var(--text-light);
    margin-left: 5px;
}

/* Blog Section */
.blog-section {
    padding: 6rem 5%;
    background-color: var(--bg-light);
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.blog-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.blog-card img {
    height: 300px;
    width: 100%;
    object-fit: cover;
}

.blog-content {
    padding: 2.5rem;
}

.blog-category {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-block;
}

.blog-content h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.blog-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.read-more {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.read-more:hover {
    color: var(--accent-color);
}

/* Testimonials */
.testimonials {
    padding: 6rem 0; /* Remove horizontal padding for full-width scroll */
    background-color: var(--primary-color);
    text-align: center;
    overflow: hidden;
}

.testimonial-grid {
    display: flex;
    gap: 2.5rem;
    padding: 2rem 5%;
    width: max-content;
    animation: testimonialScroll 40s linear infinite;
}

.testimonial-grid:hover {
    animation-play-state: paused;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.6);
    padding: 3rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    width: 350px; /* Fixed width for cards in the scroll */
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.testimonial-card .stars {
    color: #e6c875;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.testimonial-card p {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.testimonial-card h4 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── Real Customer Review Cards ─────────────────────────────────── */
.real-review-card {
    background: rgba(255, 255, 255, 0.85);
    padding: 2rem 1.8rem 1.6rem;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.95);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.real-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.1);
}

.review-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.review-author-info {
    flex: 1;
    min-width: 0;
}

.review-author-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.verified-badge {
    font-size: 0.72rem;
    font-weight: 600;
    color: #2e7d32;
    letter-spacing: 0.3px;
}

.verified-badge i {
    font-size: 0.7rem;
}

.review-stars-compact {
    color: #e6c875;
    font-size: 1rem;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.review-product-tag {
    display: inline-flex;
    align-items: center;
    background: var(--primary-color);
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-body {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.review-date {
    color: var(--text-light);
    font-size: 0.78rem;
    display: block;
}

/* Footer */
footer {
    background-color: #222;
    color: #f9f9f9;
    padding: 5rem 5% 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: #bbb;
    margin-bottom: 1.5rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.socials a:hover {
    background-color: var(--primary-color);
    color: #222;
}

.footer-links h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #bbb;
    transition: var(--transition);
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-newsletter h3 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-newsletter p {
    color: #bbb;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    outline: none;
    border-radius: 4px 0 0 4px;
    font-family: var(--font-body);
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: #222;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
    text-transform: uppercase;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

/* Cart Modal */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-modal {
    width: 320px;
    height: 100%;
    background-color: var(--bg-white);
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal-overlay.active .cart-modal {
    transform: translateX(0);
    opacity: 1;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-light);
    margin-top: 2rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.item-details {
    flex: 1;
}

.item-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.item-price {
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f5f5f5;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.qty-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-dark);
}

.remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.cart-footer {
    padding: 1.5rem;
    background-color: #fafafa;
    border-top: 1px solid #eee;
}

.subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--text-dark);
    color: var(--bg-white);
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background-color: var(--accent-color);
    color: var(--text-dark);
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes testimonialScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-350px * 3 - 2.5rem * 3));
    }
}

/* Responsive */
@media (max-width: 900px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 260px;
        max-width: 80vw;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        opacity: 0;
        transition: right 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease;
        z-index: 1001;
    }

    .nav-links.active {
        right: 0;
        opacity: 1;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .close-menu-item {
        display: block;
        align-self: flex-end;
        margin-bottom: 2rem !important;
        width: auto !important;
    }
    
    .close-menu-btn {
        font-size: 1.5rem;
    }

    .close-menu-btn::after {
        display: none !important;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 3rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 3rem;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .hero-content p {
        margin: 0 auto 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .cart-modal {
        width: 100%;
    }
}

/* Login Modal */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: var(--bg-white);
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    animation: fadeIn 0.4s ease forwards;
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0);
}

.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.login-header h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-dark);
}

.close-login {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-login:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.login-body #loginModalSubtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fcfcfd;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--secondary-color);
    background-color: #fff;
    outline: none;
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.1);
}

.login-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.1rem !important;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: #ccc;
    font-size: 0.85rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #eee;
}

.divider span {
    padding: 0 1rem;
}

.social-login-buttons {
    display: flex;
    gap: 1rem;
}

.btn-social {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: var(--transition);
}

.btn-social:hover {
    background: #fafafa;
    border-color: #ddd;
    transform: translateY(-2px);
}

.btn-social i {
    font-size: 1.1rem;
}

.btn-social.google i {
    color: #DB4437;
}

.btn-social.facebook i {
    color: #4267B2;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Customer Profile Page */
.profile-page {
    background-color: #f9f9fb;
}

.profile-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    padding: 4rem 5%;
    min-height: 80vh;
}

.profile-sidebar {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-brief {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 1rem;
    font-family: var(--font-heading);
}

.user-brief h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.user-brief p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.profile-nav {
    list-style: none;
}

.profile-nav li {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.profile-nav li:hover {
    background-color: #f5f5f5;
    color: var(--text-dark);
}

.profile-nav li.active {
    background-color: var(--primary-color);
    color: var(--text-dark);
}

.profile-nav li i {
    font-size: 1.1rem;
    width: 20px;
}

.logout-btn {
    margin-top: 2rem;
    color: #e74c3c !important;
}

.profile-content {
    background: transparent;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.tab-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* Overview Cards */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.overview-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.overview-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1rem;
}

.info-card p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.info-card strong {
    color: var(--text-light);
    width: 120px;
    display: inline-block;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
}

.stat-item {
    background: #f9f9fb;
    padding: 1.5rem;
    border-radius: 12px;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-dark);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

/* My Orders */
.order-card-profile {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-delivered {
    background: #e6f7e6;
    color: #2e7d32;
}

.status-processing {
    background: #fff4e5;
    color: #ed6c02;
}

.status-returned {
    background: #fdecea;
    color: #d32f2f;
}

.cancel-order-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.cancel-order-btn:hover {
    background: #fdecea;
    color: #d32f2f;
    border-color: #d32f2f;
}

/* Profile Cart */
.profile-cart-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.profile-cart-item {
    display: flex;
    gap: 1.5rem;
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    align-items: center;
}

.profile-cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-summary-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    height: fit-content;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin: 1.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Reviews List */
.review-form-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
}

.my-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.review-item-profile {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.review-item-profile .stars {
    color: #e6c875;
}

/* Review Modal Enhancements */
.review-modal-content {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    animation: slideUp 0.4s ease;
}

.review-product-select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fcfcfd;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.575 2.6l3.425 3.425L9.425 2.6 10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.review-product-select:focus {
    border-color: var(--secondary-color);
    outline: none;
}

.write-review-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 2rem;
    background: var(--primary-color);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

.write-review-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Admin Review Management */
.status-published {
    background: #e6f7e6;
    color: #2e7d32;
}

.status-pending {
    background: #fff4e5;
    color: #ed6c02;
}

.review-text-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive Profile */
@media (max-width: 900px) {
    .profile-container {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .overview-grid,
    .profile-cart-container {
        grid-template-columns: 1fr;
    }
}

/* Checkout Page */
.checkout-page {
    background-color: #fcfcfd;
}

.checkout-container {
    padding: 100px 5% 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: start;
}

.checkout-section {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin-bottom: 2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.address-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.payment-option {
    border: 2px solid #f0f0f0;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option i {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

.payment-option span {
    font-weight: 500;
    font-size: 0.9rem;
}

.payment-option:hover {
    border-color: var(--primary-color);
}

.payment-option.active {
    border-color: var(--secondary-color);
    background-color: #faf7f5;
}

.payment-option.active i {
    color: var(--secondary-color);
}

/* QR Code Styling */
.qr-payment-container {
    text-align: center;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px dashed #ddd;
    animation: fadeIn 0.4s ease;
}

.qr-code-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 1.5rem auto;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
}

.qr-overlay {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.qr-instruction {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 1.5rem 0;
    line-height: 1.6;
}

/* Order Summary Sticky */
.order-summary-sticky {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
}

.checkout-cart-items {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.item-img-box {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.item-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #eee;
}

.qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--text-dark);
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-info h4 {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.item-info p {
    font-size: 0.85rem;
    color: var(--text-light);
}

.item-total {
    margin-left: auto;
    font-weight: 600;
}

.summary-breakdown {
    margin-bottom: 2rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: var(--text-light);
}

.summary-line.total {
    border-top: 1px solid #eee;
    padding-top: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
}

.place-order-btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

.secure-text {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1.5rem;
}

.secure-text i {
    color: #2ecc71;
    margin-right: 5px;
}

/* Responsive Checkout */
@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .checkout-right {
        order: -1;
        /* Summary on top for mobile */
    }

    .order-summary-sticky {
        position: static;
        margin-bottom: 2rem;
    }
}

/* Search Modal Styles */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    padding-top: 5vh;
}

.search-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-modal {
    width: 90%;
    max-width: 800px;
    height: fit-content;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--primary-color);
}

.search-input-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-box i {
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.search-input-box input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-size: 2rem;
    font-family: var(--font-heading);
    padding: 0.5rem 0.5rem 0.5rem 3rem;
    color: var(--text-dark);
}

.search-input-box input::placeholder {
    color: #ccc;
}

.close-search {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
}

.close-search:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.search-results-container {
    padding: 2rem 0;
    overflow-y: auto;
}

.search-suggestions h3 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.suggestion-tags {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.suggestion-tags .tag {
    background-color: var(--primary-color);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.suggestion-tags .tag:hover {
    background-color: var(--secondary-color);
}

.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.search-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeUp 0.5s ease forwards;
    cursor: pointer;
}

.search-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.search-item-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.search-item-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.no-results {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-light);
}

/* Custom Sleek Dialogs */
.sns-dialog-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}
.sns-dialog-overlay.active {
    opacity: 1; visibility: visible;
}
.sns-dialog-box {
    background-color: var(--bg-white);
    width: 90%; max-width: 400px;
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.sns-dialog-overlay.active .sns-dialog-box {
    transform: translateY(0) scale(1);
}
.sns-dialog-icon {
    font-size: 3rem; margin-bottom: 1rem; color: var(--text-dark);
}
.sns-dialog-title {
    font-family: var(--font-heading); font-size: 1.8rem; color: var(--text-dark); margin-bottom: 0.5rem;
}
.sns-dialog-message {
    color: var(--text-light); font-size: 1rem; margin-bottom: 2rem; line-height: 1.5;
}
.sns-dialog-actions {
    display: flex; gap: 1rem; justify-content: center;
}
.sns-dialog-btn {
    padding: 0.8rem 1.5rem; border-radius: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; transition: all 0.3s ease; border: none; font-family: var(--font-body); flex: 1;
}
.sns-btn-confirm { background-color: var(--text-dark); color: var(--bg-white); }
.sns-btn-confirm:hover { background-color: var(--accent-color); color: var(--text-dark); }
.sns-btn-cancel { background-color: #f5f5f5; color: var(--text-light); }
.sns-btn-cancel:hover { background-color: #e0e0e0; color: var(--text-dark); }

/* Order Items in Profile - Detailed View */
.order-items-summary {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ordered-item-mini {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(248, 249, 250, 0.5);
    padding: 10px;
    border-radius: 12px;
    transition: var(--transition);
}

.ordered-item-mini:hover {
    background: var(--primary-color);
    transform: translateX(5px);
}

.ordered-item-mini img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: #fff; /* Small Canvas Border */
    border: 2px solid #fff;
    flex-shrink: 0;
}

.item-mini-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    overflow: hidden;
}

.item-mini-info .name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-mini-info .details {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.order-card-profile .order-details {
    margin-bottom: 1rem;
}

/* Animations for new items */
@keyframes fadeInSide {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.ordered-item-mini {
    animation: fadeInSide 0.4s ease forwards;
}

/* --- Product Details Modal --- */
.product-details-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); display: flex; justify-content: center; align-items: center;
    z-index: 3000; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(5px);
}
.product-details-overlay.active { opacity: 1; visibility: visible; }
.product-details-modal {
    background: var(--bg-white, #fff); width: 90%; max-width: 900px; height: 85vh;
    border-radius: 15px; position: relative; transform: translateY(30px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.product-details-overlay.active .product-details-modal { transform: translateY(0); }
.close-details-modal {
    position: absolute; top: 15px; right: 20px; background: white; border: none; font-size: 1.5rem;
    cursor: pointer; color: var(--text-dark); z-index: 10; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.close-details-modal:hover { background: var(--accent-color); transform: rotate(90deg); color: var(--text-dark); }
.details-content { display: flex; flex-wrap: wrap; height: 100%; overflow-y: auto; }
.details-image-section {
    flex: 1; min-width: 300px; background: #f9f9f9; padding: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.main-image-container { width: 100%; height: 350px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.main-image-container img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: opacity 0.3s; }
.thumbnail-gallery { display: flex; gap: 10px; overflow-x: auto; width: 100%; padding: 10px 0; justify-content: center; flex-wrap: wrap;}
.detail-thumb { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; transition: all 0.3s ease; opacity: 0.6; }
.detail-thumb:hover { opacity: 1; }
.detail-thumb.active { border-color: var(--secondary-color); opacity: 1; transform: scale(1.05); }
.details-info-section { flex: 1; min-width: 300px; padding: 3rem; display: flex; flex-direction: column; background: white; }
.detail-category { font-size: 0.8rem; color: var(--secondary-color); letter-spacing: 2px; margin-bottom: 10px; text-transform: uppercase; font-weight: 600;}
#detailTitle { font-family: var(--font-primary); font-size: 2.2rem; color: var(--text-dark); margin-bottom: 15px; line-height: 1.2; }
.detail-price { font-size: 1.5rem; color: var(--text-light); margin-bottom: 15px; }
.detail-stock { font-size: 0.9rem; margin-bottom: 25px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.detail-description {
    flex-grow: 1; margin-bottom: 30px; color: var(--text-light); line-height: 1.8; font-size: 1rem;
    max-height: 250px; overflow-y: auto; padding-right: 15px; font-family: var(--font-body);
}
.detail-description::-webkit-scrollbar { width: 6px; }
.detail-description::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.detail-description::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.detail-description::-webkit-scrollbar-thumb:hover { background: #aaa; }
.detail-add-btn { width: 100%; padding: 1.2rem; font-size: 1.1rem; border-radius: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; transition: all 0.3s ease; margin-top: auto;}

@media (max-width: 768px) {
    .product-details-modal { width: 100%; height: 100%; border-radius: 0; transform: translateY(100%); }
    .details-content { flex-direction: column; }
    .details-image-section { padding: 1.5rem; }
    .main-image-container { height: 250px; }
    .details-info-section { padding: 2rem; }
    #detailTitle { font-size: 1.8rem; }
}