:root {
    --primary-color: #ff6b6b;
    /* Vibrant coral/pink */
    --primary-light: #ffebf0;
    /* Soft pink top bar */
    --primary-dark: #e85656;
    /* Darker primary for hover */
    --secondary-color: #4CAF50;
    /* Green accents */
    --text-dark: #2c3e50;
    --text-light: #6c7a89;
    --bg-color: #ffffff;
    --bg-alt: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-light);
    color: var(--text-dark);
    padding: 10px 0;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.top-bar-left {
    display: flex;
    gap: 30px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.top-bar-right {
    display: flex;
    gap: 25px;
    align-items: center;
}

.top-login-btn {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.top-login-btn i {
    color: var(--primary-color);
}

.top-login-btn:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.currency-wrapper {
    background: white;
    border-radius: 50px;
    padding: 6px 14px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.currency-wrapper:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.currency-selector {
    background: transparent;
    color: var(--text-dark);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    outline: none;
    font-family: inherit;
    appearance: none;
    padding-right: 18px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232d3436%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 10px auto;
}

.currency-selector option {
    background: white;
    color: var(--text-dark);
}

/* Header */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: relative;
    z-index: 100;
}

.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.logo-box h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-transform: uppercase;
    display: inline-block;
}

.logo-box span {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--primary-color);
}

.main-nav {
    background-color: #faf7eb;
    padding: 6px;
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10%;
    justify-content: center;
    width: 100%;
}

.main-nav a {
    font-size: 16px;
    padding: 8px 12px;
    line-height: 1;
    text-decoration: none;
    display: inline-block;
    color: #000;
    transition: var(--transition);
}

.main-nav a:hover {
    color: var(--primary-color);
}

.mobile-menu-header {
    display: none;
}

.search-cart-bar {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

.categories-btn {
    background: var(--text-dark);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.categories-btn:hover {
    background: #1a252f;
}

.categories-dropdown {
    position: relative;
    display: inline-block;
}

.categories-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 10px 0;
    margin: 0;
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.categories-dropdown:hover .categories-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.categories-menu li {
    border-bottom: 1px solid #f0f0f0;
}

.categories-menu li:last-child {
    border-bottom: none;
}

.categories-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s;
}

.categories-menu a:hover {
    background-color: #faf7eb;
    color: var(--primary-color);
    padding-left: 25px;
}

.search-bar {
    flex: 1;
    display: flex;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.search-bar button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.2rem;
    color: var(--text-light);
    cursor: pointer;
}

.cart-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
}

.cart-popup {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 15px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    cursor: default;
}

.cart-info:hover .cart-popup,
.cart-info.show-popup .cart-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-icon {
    position: relative;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--text-dark);
    color: white;
    font-size: 0.75rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
}

.cart-price {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 20px;
    margin-top: 30px;
    margin-bottom: 50px;
    height: 480px;
}

.hero-main {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #fdf2e9;
    display: flex;
    align-items: center;
}

.carousel-inner {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    opacity: 1;
}

/* No longer needed since we use transform to slide, but kept for cleanup */
.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 40px;
    transform: translateY(-50%);
    max-width: 50%;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #e67e22;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    font-weight: 500;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: #fa5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.btn-outline {
    border: 2px solid var(--border-color);
    color: var(--text-dark);
}

.btn-outline:hover {
    border-color: var(--text-dark);
    background: var(--text-dark);
    color: white;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 3;
}

.carousel-btn:hover {
    background: var(--primary-color);
    color: white;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-banner {
    flex: 1;
    border-radius: var(--border-radius);
    padding: 30px 25px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
}

.side-banner:hover {
    transform: translateY(-3px);
}

.light-blue {
    background: #e3f2fd;
}

.light-purple {
    background: #f3e5f5;
}

.side-banner h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.side-banner a {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: underline;
    position: relative;
    z-index: 2;
}

.floating-img {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 150px;
    opacity: 0.8;
    z-index: 1;
}

/* Sections */
section {
    margin-top: 80px;
    margin-bottom: 70px;
}

.section-header,
.section-title {
    margin-bottom: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title {
    text-align: center;
    font-size: 2rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 15px;
    position: relative;
    transition: var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    z-index: 2;
}

.badge-sale {
    background: var(--primary-color);
}

.badge-new {
    background: var(--secondary-color);
}

.product-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 1;
    background: var(--bg-alt);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: white;
    color: var(--text-dark);
    font-size: 1.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.product-info {
    text-align: center;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
}

.old-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.9rem;
    font-weight: 400;
    margin-left: 5px;
}

/* Icon Grid (Occasions) */
.icon-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.icon-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.icon-wrapper {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: white;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.icon-card:hover .icon-wrapper {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.bg-pink {
    background: #ff9ff3;
}

.bg-red {
    background: #ff6b6b;
}

.bg-blue {
    background: #48dbfb;
}

.bg-green {
    background: #1dd1a1;
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    aspect-ratio: 4/3;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.category-card span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Promo Banners */
.promo-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.promo-banner {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
}

.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.promo-banner:hover img {
    transform: scale(1.05);
}

.promo-content {
    position: absolute;
    inset: 0;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
}

.promo-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: white;
}

.discount-badge {
    background: white;
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 10px;
}

/* Testimonials */
.testimonials {
    background: var(--bg-alt);
    padding: 70px 0;
    margin-bottom: 0;
    /* Removing bottom margin to connect to next section cleanly if needed */
}

.testimonial-carousel {
    overflow: hidden;
    width: 100%;
}

.testimonial-grid {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    /* Show 3 cards at a time */
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 4rem;
    color: var(--primary-light);
    font-family: serif;
    line-height: 1;
}

.stars {
    color: #f1c40f;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 20px;
}

.customer-info {
    display: flex;
    flex-direction: column;
}

.platform {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: space-around;
    padding: 50px 0;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 30px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-circle {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.badge-text h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.badge-text p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* Newsletter & Footer */
.main-footer {
    background: var(--bg-alt);
}

.newsletter-section {
    background: var(--text-dark);
    padding: 40px 0;
    color: white;
}

.newsletter-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.newsletter-text h3 {
    color: white;
    margin-bottom: 5px;
}

.newsletter-form {
    display: flex;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 50px 0 0 50px;
    font-family: inherit;
    outline: none;
}

.newsletter-form button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0 30px;
    border-radius: 0 50px 50px 0;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: #fa5252;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding: 60px 20px;
}

.footer-col h4 {
    margin-bottom: 25px;
    font-size: 1.1rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul li {
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-side {
        flex-direction: row;
    }

    .promo-banners {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .search-cart-bar {
        flex-wrap: wrap;
    }

    .categories-btn {
        width: 100%;
        justify-content: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-side {
        flex-direction: column;
    }

    .newsletter-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ==========================================================
   AUTH PAGE STYLES (Merged from auth.css)
   ========================================================== */

:root {
    --auth-bg: #f9f6f0;
    --auth-primary: #ff6b6b;
    --auth-primary-dark: #fa5252;
    --auth-text: #2d3436;
    --auth-text-light: #636e72;
    --auth-border: #dfe6e9;
    --auth-shadow: 0 14px 28px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.05);
}

body.auth-page {
    background: var(--auth-bg) url('assets/images/pink_roses.png') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 20px;
    position: relative;
}

body.auth-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.auth-header {
    position: absolute;
    top: 30px;
    left: 40px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    width: calc(100% - 80px);
    align-items: center;
}

.back-home {
    text-decoration: none;
    color: var(--auth-text);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--auth-shadow);
    transition: transform 0.2s ease;
}

.back-home:hover {
    transform: translateY(-2px);
    color: var(--auth-primary);
}

.auth-wrapper {
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 50px;
}

.auth-container {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: var(--auth-shadow);
    position: relative;
    overflow: hidden;
    width: 900px;
    max-width: 100%;
    min-height: 650px;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.sign-in-container {
    left: 0;
    width: 50%;
    z-index: 2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-container.right-panel-active .sign-in-container {
    transform: translateX(100%);
    opacity: 0;
    z-index: 1;
}

.sign-up-container {
    left: 0;
    width: 50%;
    opacity: 0;
    z-index: 1;
    padding: 40px;
    overflow-y: auto;
}

.auth-container.right-panel-active .sign-up-container {
    transform: translateX(100%);
    opacity: 1;
    z-index: 5;
    animation: show 0.6s;
}

@keyframes show {

    0%,
    49.99% {
        opacity: 0;
        z-index: 1;
    }

    50%,
    100% {
        opacity: 1;
        z-index: 5;
    }
}

.auth-form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.auth-title {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--auth-text);
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--auth-text-light);
    margin-bottom: 30px;
}

.scrollable-form {
    max-height: 450px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 15px;
    margin-bottom: 20px;
}

.scrollable-form::-webkit-scrollbar {
    width: 6px;
}

.scrollable-form::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.scrollable-form::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.form-section-title {
    font-size: 1.1rem;
    color: var(--auth-primary);
    margin-top: 20px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--auth-border);
    padding-bottom: 5px;
}

.form-section-title:first-child {
    margin-top: 0;
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.input-group.full-width {
    grid-column: span 2;
}

.input-group label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--auth-text);
}

.input-group input,
.input-group select {
    background-color: #f4f8f7;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    width: 100%;
}

.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-wrapper input {
    padding-right: 45px;
    /* Space for the eye icon */
}

.toggle-password {
    position: absolute;
    right: 15px;
    font-size: 1.2rem;
    color: var(--auth-text-light);
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: var(--auth-primary);
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--auth-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.readonly-input {
    background-color: #e9ecef !important;
    color: #6c757d;
    cursor: not-allowed;
}

.radio-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.radio-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--auth-text);
}

.captcha-group {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.captcha-box {
    background: repeating-linear-gradient(45deg, #f3e5f5, #f3e5f5 10px, #e3f2fd 10px, #e3f2fd 20px);
    padding: 12px 20px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 5px;
    color: #2d3436;
    border: 1px dashed var(--auth-primary);
}

.forgot-password {
    color: var(--auth-text-light);
    font-size: 0.9rem;
    text-decoration: none;
    margin: 15px 0;
    align-self: flex-start;
}

.forgot-password:hover {
    text-decoration: underline;
    color: var(--auth-text);
}

.auth-btn {
    border-radius: 50px;
    border: 1px solid var(--auth-primary);
    background-color: var(--auth-primary);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: bold;
    padding: 15px 45px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
    align-self: center;
    margin-top: 15px;
}

.auth-btn:active {
    transform: scale(0.95);
}

.auth-btn:focus {
    outline: none;
}

.auth-btn.ghost {
    background-color: transparent;
    border-color: #FFFFFF;
}

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}

.auth-container.right-panel-active .overlay-container {
    transform: translateX(-100%);
}

.overlay {
    background: var(--auth-primary);
    background: linear-gradient(to right, #ff9ff3, var(--auth-primary));
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 0 0;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.auth-container.right-panel-active .overlay {
    transform: translateX(50%);
}

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}

.overlay-panel h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.overlay-panel p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.overlay-left {
    transform: translateX(-20%);
}

.auth-container.right-panel-active .overlay-left {
    transform: translateX(0);
}

.overlay-right {
    right: 0;
    transform: translateX(0);
}

.auth-container.right-panel-active .overlay-right {
    transform: translateX(20%);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .auth-container {
        min-height: 800px;
        flex-direction: column;
        width: 100%;
    }

    .form-container,
    .overlay-container {
        width: 100%;
    }

    .sign-in-container,
    .sign-up-container {
        width: 100%;
        padding: 20px;
    }

    .overlay-container {
        display: none;
        /* Simplify on mobile by hiding overlay, or switch to stacking */
    }

    /* Mobile needs a different layout entirely if overlay is hidden, so typically we show auth forms as stacked or tabs */
    .sign-up-container {
        position: relative;
        opacity: 1;
        z-index: 1;
    }

    .sign-in-container {
        position: relative;
    }
}

/* ==========================================================
   PRODUCT PAGE STYLES
   ========================================================== */

.breadcrumb-nav {
    padding: 20px 0;
    font-size: 0.95rem;
    color: var(--text-light);
}

.breadcrumb-nav a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-nav a:hover {
    color: var(--primary-color);
}

.breadcrumb-nav .current {
    color: var(--primary-color);
    font-weight: 500;
}

/* Product Detail Layout */
.product-detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

/* Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.main-image-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #f9f9f9;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-image-container img:hover {
    transform: scale(1.05);
    /* Simple zoom effect */
}

.thumbnail-gallery {
    display: flex;
    gap: 15px;
    overflow-x: auto;
}

.thumbnail-gallery img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.thumbnail-gallery img.active-thumb {
    border-color: var(--primary-color);
}

/* Product Info Details */
.product-info-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.product-main-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.product-reviews-summary {
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-reviews-summary .stars i {
    color: #f1c40f;
    font-size: 1.1rem;
}

.product-reviews-summary .review-count {
    color: var(--text-light);
    font-size: 0.95rem;
}

.product-price-large {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-price-large .current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-price-large .old-price {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.discount-badge {
    background: var(--accent-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.product-short-desc {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.product-delivery-highlights {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--text-dark);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Actions Bar */
.product-actions-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 50px;
    overflow: hidden;
}

.qty-btn {
    background: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 1rem;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #f1f1f1;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    pointer-events: none;
}

.btn-add-cart {
    flex: 1;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.1s;
}

.btn-add-cart:hover {
    background: var(--primary-dark);
}

.btn-buy-now {
    flex: 1;
    padding: 15px 30px;
    background: var(--text-dark);
    color: white;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-buy-now:hover {
    background: #000;
}

.product-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-meta a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-meta a:hover {
    text-decoration: underline;
}

/* Tabs */
.product-tabs-section {
    margin-bottom: 60px;
}

.tabs-nav {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 30px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    padding: 15px 0;
    cursor: pointer;
    position: relative;
    font-family: inherit;
}

.tab-btn.active {
    color: var(--text-dark);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.tab-content-container {
    color: var(--text-light);
    line-height: 1.8;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.tab-pane ul {
    padding-left: 20px;
    margin-top: 15px;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.review-item .stars i {
    color: #f1c40f;
}

.review-text {
    font-style: italic;
    margin: 10px 0;
}

.review-author {
    font-weight: 600;
    color: var(--text-dark);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .product-detail-section {
        grid-template-columns: 1fr;
    }

    .product-actions-bar {
        flex-direction: column;
    }

    .btn-add-cart,
    .btn-buy-now,
    .quantity-selector {
        width: 100%;
    }
}

/* ==========================================================
   GLOBAL RESPONSIVENESS & MOBILE LAYOUTS
   ========================================================== */

/* Max Width 1024px - Tablets */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }

    .main-nav {
        gap: 15px;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .search-cart-bar {
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-section {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .hero-main,
    .hero-side {
        width: 100%;
    }

    .hero-main {
        height: 400px;
    }

    .hero-side {
        flex-direction: row;
        height: 200px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .icon-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Max Width 768px - Large Phones / Small Tablets */
@media (max-width: 768px) {
    .header-container {
        position: relative;
        padding-top: 10px;
    }

    .logo {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        margin-bottom: 15px;
    }

    .logo img {
        margin: 0 auto;
        display: block;
    }

    .top-bar-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .top-bar-left,
    .top-bar-right {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .top-login-btn {
        justify-content: center;
    }

    .currency-wrapper {
        margin: 0 auto;
    }

    /* Mobile Menu Toggle */
    .mobile-menu-btn {
        display: block;
        font-size: 2rem;
        cursor: pointer;
        color: var(--text-dark);
        position: absolute;
        left: 20px;
        top: 25px;
        z-index: 50;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: 100vh;
        background: white;
        padding: 20px;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.1);
        align-items: flex-start;
        justify-content: flex-start;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .mobile-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 1px solid #eee;
    }

    .close-menu-btn {
        font-size: 1.8rem;
        cursor: pointer;
        color: var(--text-dark);
        transition: color 0.3s ease;
    }

    .close-menu-btn:hover {
        color: var(--primary-color);
    }

    .mobile-nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        /* Pushes socials to the bottom */
    }

    .mobile-nav-links a {
        width: 100%;
        padding: 15px 10px;
        border-bottom: 1px solid #f5f5f5;
        font-size: 1.1rem;
        text-align: left;
    }

    .mobile-menu-socials {
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 20px;
        padding-top: 20px;
        margin-top: auto;
        border-top: 1px solid #eee;
    }

    .mobile-menu-socials a {
        width: auto;
        padding: 10px;
        border: none;
        font-size: 1.8rem;
        color: var(--text-dark);
        transition: color 0.3s ease;
    }

    .mobile-menu-socials a:hover {
        color: var(--primary-color);
        background: transparent;
    }

    .search-cart-bar {
        flex-direction: column;
        width: 100%;
    }

    .categories-dropdown {
        width: 100%;
    }

    .categories-btn {
        width: 100%;
        justify-content: space-between;
    }

    .categories-menu {
        width: 100%;
        position: relative;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .categories-dropdown:hover .categories-menu,
    .categories-dropdown:active .categories-menu {
        display: block;
        transform: none;
    }

    .search-bar {
        width: 100%;
    }

    .cart-info {
        position: absolute;
        right: 20px;
        top: 25px;
        width: auto;
        padding: 0;
        z-index: 50;
    }

    .cart-price {
        display: none;
    }

    .hero-side {
        flex-direction: column;
        height: auto;
    }

    .hero-side .side-banner {
        height: 200px;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .icon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tabs-nav {
        flex-direction: column;
        gap: 10px;
    }

    .tab-btn {
        text-align: left;
        padding: 10px;
        border: 1px solid #eee;
    }

    .tab-btn.active::after {
        display: none;
    }

    .tab-btn.active {
        background: var(--primary-light);
    }

    .newsletter-form {
        flex-direction: column;
        background: transparent;
        border-radius: 0;
        gap: 10px;
    }

    .newsletter-form input {
        border-radius: 50px;
        width: 100%;
        padding: 15px 25px !important;
    }

    .newsletter-form button {
        border-radius: 50px;
        width: 100%;
        padding: 15px 25px !important;
    }
}

/* Max Width 480px - Small Mobile Phones */
@media (max-width: 480px) {
    .top-bar-left span {
        display: block;
        margin-bottom: 5px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .icon-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Ensure mobile menu button is hidden on desktop */
@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.whatsapp-message {
    background-color: #fff;
    color: #2c3e50;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    animation: bounceMessage 2s infinite;
    cursor: pointer;
}

.whatsapp-message::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    border-width: 8px 0 8px 8px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

.whatsapp-float {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float-container:hover .whatsapp-float {
    background-color: #128c7e;
    transform: translateY(-5px);
    box-shadow: 0px 6px 20px rgba(18, 140, 126, 0.5);
    color: #fff;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes bounceMessage {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}