* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #1a1a2e;
    --secondary: #0f3460;
    --accent: #e94560;
    --light: #f7f7f7;
    --dark: #16213e;
    --gray: #8d99ae;
    --success: #38b000;
    --warning: #ff9e00;
    --info: #4361ee;
    --gradient-primary: linear-gradient(135deg, var(--secondary), var(--accent));
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    font-weight: 400;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--gray);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Header Styles */
header {
    background-color: var(--primary);
    color: white;
    padding: 15px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    margin-left: 10px;
    font-weight: 700;
    background: linear-gradient(45deg, #fff, var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.logo-icon {
    font-size: 2.2rem;
    color: var(--accent);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: width 0.3s;
}

nav ul li a:hover::before {
    width: 80%;
}

nav ul li a.active {
    background-color: var(--accent);
    color: white;
    box-shadow: 0 4px 8px rgba(233, 69, 96, 0.3);
}

nav ul li a:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-icons {
    display: flex;
    align-items: center;
}

.nav-icon {
    font-size: 1.2rem;
    color: white;
    margin-left: 20px;
    cursor: pointer;
    position: relative;
}

.cart-count,
.wishlist-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent);
    color: white;
    font-size: 0.7rem;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Search Bar */
.search-container {
    position: relative;
    margin-left: 20px;
}

.search-container input {
    padding: 10px 15px;
    border-radius: 30px;
    border: none;
    width: 250px;
    font-size: 0.9rem;
    padding-right: 40px;
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(26, 26, 46, 0.8), rgba(15, 52, 96, 0.9)), url('https://images.unsplash.com/photo-1607082350899-7e105aa886ae?q=80') center/cover no-repeat;
    height: 600px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(233, 69, 96, 0.2) 0%, transparent 70%);
    animation: pulse-bg 8s infinite;
}

@keyframes pulse-bg {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #ffffff, var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: float 6s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.5s);
}

.stat-item:nth-child(1) {
    --i: 0;
}

.stat-item:nth-child(2) {
    --i: 1;
}

.stat-item:nth-child(3) {
    --i: 2;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(233, 69, 96, 0.5);
}

.stat-text {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.8;
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 6px 15px rgba(233, 69, 96, 0.3);
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(233, 69, 96, 0.4);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(233, 69, 96, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid white;
    margin-left: 15px;
    box-shadow: 0 6px 15px rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background-color: white;
    color: var(--accent);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.btn-secondary {
    background-color: var(--secondary);
    box-shadow: 0 6px 15px rgba(15, 52, 96, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 20px rgba(15, 52, 96, 0.4);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark);
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    border-radius: 2px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
    animation: pulse-width 2s infinite;
}

@keyframes pulse-width {

    0%,
    100% {
        width: 40px;
    }

    50% {
        width: 80px;
    }
}

/* Categories */
.categories {
    margin: 80px 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.category-img {
    height: 250px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.category-card:hover .category-img {
    color: var(--accent);
}

.category-img i {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s;
}

.category-card:hover .category-img i {
    transform: scale(1.1);
}

.category-info {
    padding: 25px;
    text-align: center;
    position: relative;
    z-index: 2;
    transition: transform 0.3s;
}

.category-card:hover .category-info {
    transform: translateY(-5px);
}

.category-info h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 700;
    transition: color 0.3s;
}

.category-card:hover .category-info h3 {
    color: var(--accent);
}

.category-info p {
    color: var(--gray);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.category-card:hover .category-info p {
    color: var(--secondary);
}

/* Products */
.products {
    margin: 60px 0;
}

.product-filters {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-btn {
    padding: 10px 25px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, var(--secondary), var(--accent));
    transition: width 0.3s ease;
    z-index: -1;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    width: 100%;
}

.filter-btn:hover,
.filter-btn.active {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(15, 52, 96, 0.2);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 35px;
}

.product-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--accent);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 250px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    color: var(--gray);
    font-size: 0.85rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--dark);
    cursor: pointer;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s;
}

.product-title:hover {
    color: var(--accent);
}

.product-price {
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.old-price {
    text-decoration: line-through;
    color: var(--gray);
    font-size: 0.9rem;
    margin-left: 8px;
    font-weight: 400;
}

.product-rating {
    color: var(--warning);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.product-rating .reviews {
    margin-left: 8px;
    font-size: 0.85rem;
    color: var(--gray);
}

.size-select {
    margin-bottom: 15px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 100%;
    font-size: 0.9rem;
    background-color: #f8f9fa;
    cursor: pointer;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
}

.add-to-cart {
    flex-grow: 1;
    background-color: var(--secondary);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart i {
    font-size: 1rem;
}

.add-to-cart:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 69, 96, 0.3);
}

.wishlist {
    width: 45px;
    height: 45px;
    margin-left: 10px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.wishlist:hover {
    background-color: #ffeaea;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(233, 69, 96, 0.2);
}

.wishlist.active {
    background-color: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* Company Info */
.company-info {
    background-color: var(--primary);
    color: white;
    padding: 60px 0;
    margin-top: 60px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.info-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 8px;
}

.info-card h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.info-list li {
    margin-bottom: 10px;
    display: flex;
}

.info-list li i {
    margin-right: 10px;
    color: var(--accent);
}

.gst-badge {
    display: inline-block;
    background-color: var(--success);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: #bdc3c7;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--secondary), var(--accent), var(--secondary));
    background-size: 200% 100%;
    animation: gradient-shift 8s linear infinite;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    font-size: 1.3rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 30%;
    height: 2px;
    background-color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.footer-links li:hover {
    transform: translateX(5px);
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.footer-links a::before {
    content: '→';
    margin-right: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    margin-top: 25px;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: right 0.3s ease;
    padding: 20px;
    overflow-y: auto;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.cart-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-back-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--primary);
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s;
}

.cart-back-btn:hover {
    background-color: var(--light);
    color: var(--dark);
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s;
}

.close-cart:hover {
    color: var(--accent);
}

.cart-items {
    margin-bottom: 20px;
}

.cart-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-img {
    width: 80px;
    height: 80px;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 5px;
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.cart-item-size {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
}

.quantity-btn {
    width: 25px;
    height: 25px;
    background-color: #f1f1f1;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.quantity-input {
    width: 40px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 3px;
}

.remove-item {
    background: none;
    border: none;
    color: var(--accent);
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: all 0.3s;
}

.remove-item:hover {
    background-color: var(--accent);
    color: white;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 600;
    padding: 15px 0;
    margin: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.checkout-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--success);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #219653;
}

/* Profile Sidebar */
.profile-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1500;
    display: flex;
    flex-direction: column;
}

.profile-sidebar.active {
    right: 0;
}

.profile-sidebar-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.profile-details h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.profile-details p {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.close-profile-sidebar {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.close-profile-sidebar:hover {
    background: rgba(255, 255, 255, 0.1);
}

.profile-sidebar-nav {
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
    min-height: 200px;
}

.profile-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.profile-sidebar-item:hover {
    background: #e9ecef;
}

.profile-sidebar-item.active {
    background: white;
    color: var(--accent);
    border-right: 3px solid var(--accent);
}

.profile-sidebar-item.logout-btn {
    color: #dc3545;
    margin-top: auto;
}

.profile-sidebar-item.logout-btn:hover {
    background: #f8d7da;
}

.profile-sidebar-item i {
    width: 16px;
    text-align: center;
}

.profile-sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.profile-content-section {
    display: none;
}

.profile-content-section.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard Styles */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.stat-icon {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 24px;
    color: var(--text);
}

.stat-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.recent-activity {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.recent-activity h3 {
    margin-bottom: 15px;
    color: var(--text);
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.settings-tab {
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.settings-tab.active {
    background: white;
    color: var(--accent);
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.settings-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.settings-tab-content {
    display: none;
}

.settings-tab-content.active {
    display: block;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    cursor: pointer;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.4s;
    margin-right: 10px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

input:checked+.slider {
    background-color: var(--accent);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

/* Password Strength */
.password-strength {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.password-strength.weak {
    background: linear-gradient(to right, #dc3545 30%, #e9ecef 30%);
}

.password-strength.medium {
    background: linear-gradient(to right, #ffc107 60%, #e9ecef 60%);
}

.password-strength.strong {
    background: linear-gradient(to right, #28a745 100%, #e9ecef 100%);
}

.password-requirements {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.password-requirements h4 {
    margin-bottom: 10px;
    font-size: 14px;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    padding: 3px 0;
    font-size: 12px;
    color: #666;
}

.password-requirements li.valid {
    color: #28a745;
}

.password-requirements li.valid:before {
    content: "✓ ";
    font-weight: bold;
}

/* Analytics Styles */
.analytics-dashboard {
    display: grid;
    gap: 20px;
}

.analytics-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.analytics-card h4 {
    margin-bottom: 15px;
    color: var(--text);
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.chart-label {
    min-width: 80px;
    font-size: 12px;
}

.chart-bar {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.chart-fill {
    height: 100%;
    background: var(--accent);
    transition: width 0.3s ease;
}

.chart-value {
    min-width: 30px;
    font-size: 12px;
    font-weight: bold;
}

.usage-stats {
    display: grid;
    gap: 15px;
}

.usage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.usage-item:last-child {
    border-bottom: none;
}

/* Address Validation */
.validation-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.validation-result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.validation-result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.saved-addresses {
    margin-top: 30px;
}

.saved-addresses h3 {
    margin-bottom: 15px;
}

/* Order Filters */
.order-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.order-filters .form-control {
    flex: 1;
    min-width: 120px;
}

/* Wishlist Actions */
.wishlist-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

/* Activity Items */
.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.activity-details {
    flex: 1;
}

.activity-details p {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.activity-details p:last-child {
    color: #666;
    font-size: 12px;
}

.activity-status .status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.activity-status .status.pending {
    background: #fff3cd;
    color: #856404;
}

.activity-status .status.confirmed {
    background: #d4edda;
    color: #155724;
}

.activity-status .status.delivered {
    background: #d1ecf1;
    color: #0c5460;
}

/* Validation Results */
.validation-success,
.validation-error {
    text-align: center;
}

.validation-success i,
.validation-error i {
    font-size: 48px;
    margin-bottom: 15px;
}

.validation-success i {
    color: #28a745;
}

.validation-error i {
    color: #dc3545;
}

.validation-success h4,
.validation-error h4 {
    margin-bottom: 15px;
}

.validation-error ul {
    text-align: left;
    margin-top: 15px;
}

/* Address Actions */
.address-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Notification Groups */
.notification-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.notification-group:last-child {
    border-bottom: none;
}

.notification-group h4 {
    margin-bottom: 15px;
    color: var(--text);
}

/* Privacy Settings */
.privacy-settings {
    display: grid;
    gap: 20px;
}

.privacy-item h4 {
    margin-bottom: 10px;
    color: var(--text);
}

.privacy-item p {
    margin-bottom: 10px;
    color: #666;
    font-size: 14px;
}

/* Security Settings */
.security-settings {
    display: grid;
    gap: 25px;
}

.security-item {
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.security-item h4 {
    margin-bottom: 10px;
    color: var(--text);
}

.security-item p {
    margin-bottom: 15px;
    color: #666;
    font-size: 14px;
}

/* Responsive Design for Profile Sidebar */
@media (max-width: 768px) {
    .profile-sidebar {
        width: 100%;
        right: -100%;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .settings-tabs {
        flex-wrap: wrap;
    }

    .order-filters {
        flex-direction: column;
    }

    .wishlist-actions {
        flex-direction: column;
    }

    .activity-item {
        flex-direction: column;
        text-align: center;
    }

    .address-actions {
        justify-content: center;
    }

    .security-settings,
    .privacy-settings {
        gap: 15px;
    }
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.overlay.active {
    display: block;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--success);
    color: white;
    padding: 16px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1200;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast::before {
    content: '✓';
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Modern Design Elements */
.glass-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.gradient-text {
    background: linear-gradient(45deg, var(--secondary), var(--accent));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.floating-element {
    animation: float 6s ease-in-out infinite;
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    z-index: 2000;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    display: none;
}

.auth-modal.active {
    display: block;
}

.auth-header {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.auth-tabs {
    display: flex;
    background-color: #f1f1f1;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.auth-tab.active {
    background-color: white;
    color: var(--accent);
}

.auth-content {
    padding: 30px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Order History */
.order-history {
    margin: 40px 0;
    display: none;
}

.order-history.active {
    display: block;
}

.order-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.order-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
}

.order-details {
    padding: 20px;
}

.order-items {
    margin-bottom: 15px;
}

.order-item {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-img {
    width: 60px;
    height: 60px;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    border-radius: 5px;
}

.order-summary {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: 1px solid #eee;
}

.order-actions {
    padding: 15px 20px;
    text-align: right;
}

.invoice-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* Profile Section */
.profile-section {
    margin: 40px 0;
    display: none;
}

.profile-section.active {
    display: block;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.profile-icon {
    width: 80px;
    height: 80px;
    background-color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-right: 20px;
}

.profile-info h2 {
    margin-bottom: 10px;
}

.profile-nav {
    display: flex;
    background: #f1f1f1;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow-x: auto;
    gap: 5px;
    padding: 5px;
}

.profile-nav-item {
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    min-width: fit-content;
}

.profile-nav-item:hover {
    background: rgba(255, 255, 255, 0.5);
}

.profile-nav-item.active {
    background: white;
    color: var(--accent);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.profile-nav-item i {
    font-size: 16px;
}

.profile-tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.profile-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
}

.form-control:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* Wishlist Grid */
.wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.wishlist-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.wishlist-item:hover {
    transform: translateY(-2px);
}

.wishlist-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.wishlist-item h4 {
    margin-bottom: 8px;
    font-size: 16px;
}

.wishlist-item .price {
    color: var(--accent);
    font-weight: bold;
    margin-bottom: 10px;
}

/* Address Book */
.address-actions {
    margin-bottom: 20px;
}

.address-list {
    display: grid;
    gap: 15px;
}

.address-item {
    background: white;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    position: relative;
}

.address-item.default {
    border-color: var(--accent);
    background: rgba(var(--accent-rgb), 0.05);
}

.address-item h4 {
    margin-bottom: 10px;
    color: var(--text);
}

.address-item p {
    margin-bottom: 5px;
    color: #666;
}

.address-actions-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
}

.address-actions-btn button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.address-actions-btn button:hover {
    background: #f0f0f0;
}

/* Account Settings */
.settings-grid {
    display: grid;
    gap: 30px;
}

.setting-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.setting-item h3 {
    margin-bottom: 20px;
    color: var(--text);
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.notification-settings {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.account-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Order Items */
.order-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.order-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.confirmed {
    background: #d4edda;
    color: #155724;
}

.order-status.delivered {
    background: #d1ecf1;
    color: #0c5460;
}

.order-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.order-items {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.order-product {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 14px;
}

/* Address Modal */
.address-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.address-modal .modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.address-modal .modal-header {
    background: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.address-modal .modal-body {
    padding: 20px;
}

.address-modal .modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.address-modal .close-modal {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Wishlist Actions */
.wishlist-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 12px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-nav {
        flex-wrap: wrap;
    }

    .profile-nav-item {
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .profile-nav-item span {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .account-actions {
        flex-direction: column;
    }

    .wishlist-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    .order-details {
        grid-template-columns: 1fr;
    }

    .address-modal .modal-content {
        width: 95%;
        margin: 10px;
    }

    .wishlist-actions {
        flex-direction: column;
    }
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    z-index: 2000;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    display: none;
}

.payment-modal.active {
    display: block;
}

.payment-header {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-content {
    padding: 30px;
}

.payment-methods {
    margin: 20px 0;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    cursor: pointer;
}

.payment-method.active {
    border-color: var(--accent);
    background-color: #fff0f0;
}

.payment-method input {
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .cart-sidebar {
        width: 320px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
    }

    nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 10px;
    }

    .hero h2 {
        font-size: 2.2rem;
    }

    .hero {
        height: 400px;
    }

    .nav-icons {
        margin-top: 15px;
    }

    .search-container {
        margin: 15px 0;
        width: 100%;
    }

    .search-container input {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
}

.confirmation-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    z-index: 2000;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 500px;
    display: none;
}

.confirmation-modal.active {
    display: block;
}

.confirmation-header {
    background-color: var(--primary);
    color: white;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.confirmation-content {
    padding: 30px;
    text-align: center;
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 20px;
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.confirmation-actions .btn-outline {
    border-color: var(--primary);
    color: var(--primary);
}

.confirmation-actions .btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Add new styles for product images */
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Update the product image container */
.product-img {
    height: 200px;
    background-color: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Add new category icons */
.fa-male,
.fa-female,
.fa-child {
    font-size: 3.5rem;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.map-container iframe {
    display: block;
}

@media (max-width: 768px) {
    .map-container iframe {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .map-container iframe {
        height: 300px;
    }
}

/* Address Selection Styles */
.address-option {
    background: white;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.address-option.default {
    border-color: var(--accent);
    background: rgba(231, 76, 60, 0.05);
}

.address-option:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.address-details h4 {
    margin-bottom: 5px;
    color: var(--primary);
}

.address-details p {
    margin: 3px 0;
    font-size: 14px;
    color: #666;
}

.address-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.use-address-btn {
    background: var(--accent);
    color: white;
}

.set-default-btn,
.delete-address-btn {
    border-color: var(--primary);
    color: var(--primary);
}

.set-default-btn:hover,
.delete-address-btn:hover {
    background: var(--primary);
    color: white;
}

/* Address Form Toggle */
#savedAddressesContainer,
#addressFormContainer {
    transition: all 0.3s ease;
}

/* Save as default checkbox */
.save-default-container {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.save-default-container input {
    margin-right: 10px;
}

.input-error {
    border: 2px solid red !important;
}

/* ===== CHATBOT STYLES ===== */

/* Welcome Popup Styles */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.welcome-popup.show {
    opacity: 1;
}

.welcome-popup-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.welcome-popup.show .welcome-popup-content {
    transform: scale(1);
}

.close-welcome-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s;
}

.close-welcome-popup:hover {
    background: #f0f0f0;
    color: #333;
}

.welcome-popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.welcome-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.welcome-popup-header h2 {
    color: var(--primary);
    margin: 0;
    font-size: 1.8rem;
}

.welcome-popup-body {
    margin-bottom: 25px;
}

.welcome-popup-body p {
    margin: 10px 0;
    color: #555;
    line-height: 1.6;
}

.welcome-popup-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.welcome-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.welcome-btn.primary {
    background: var(--primary);
    color: white;
}

.welcome-btn.primary:hover {
    background: var(--dark);
    transform: translateY(-2px);
}

.welcome-btn.secondary {
    background: var(--light);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.welcome-btn.secondary:hover {
    background: var(--primary);
    color: white;
}

/* Chatbot Styles */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    z-index: 1000;
    color: white;
    font-size: 1.5rem;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
}

.chatbot-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.chatbot-title h3 {
    margin: 0;
    font-size: 1.1rem;
}

.chatbot-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.close-chatbot {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s;
}

.close-chatbot:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: 80%;
}

.chat-message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message.bot {
    align-self: flex-start;
}

.message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.chat-message.bot .message-avatar {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.chat-message.user .message-avatar {
    background: #e9ecef;
    color: #666;
}

.message-content {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 0.9rem;
}

.chat-message.user .message-content {
    background: var(--primary);
    color: white;
}

.chatbot-input {
    padding: 20px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.3s;
}

.chatbot-input input:focus {
    border-color: var(--primary);
}

.chatbot-input button {
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.chatbot-input button:hover {
    background: var(--dark);
    transform: scale(1.05);
}

/* Chat Options Styles */
.options-message {
    max-width: none !important;
}

.chat-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.chat-option {
    background: var(--light);
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 8px 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
    text-align: center;
}

.chat-option:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.2);
}

.chat-option i {
    font-size: 0.9rem;
}

/* Scrollbar styling for chatbot */
.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

/* Responsive Design for Chatbot */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        height: 450px;
    }

    .chatbot-toggle {
        right: 20px;
        bottom: 20px;
    }

    .welcome-popup-content {
        margin: 20px;
        width: calc(100% - 40px);
    }

    .welcome-popup-actions {
        flex-direction: column;
    }

    .chat-options {
        grid-template-columns: 1fr;
    }

    .chat-option {
        font-size: 0.85rem;
        padding: 10px 12px;
    }
}
