/* DreamyBloom Modern E-Commerce Styles */

:root {
    --primary-color: #9B5D8F;
    --primary-dark: #7A4A71;
    --primary-light: #C291B4;
    --accent-color: #E8B4D9;
    --bg-pink: #F5E6F0;
    --bg-light-pink: #FAF0F6;
    --text-dark: #2C2C2C;
    --text-gray: #666666;
    --text-light: #999999;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 10px rgba(155, 93, 143, 0.1);
    --shadow-hover: 0 5px 20px rgba(155, 93, 143, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

/* Header Styles */
.top-bar {
    background: var(--bg-light-pink);
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.top-bar a {
    color: var(--text-dark);
    text-decoration: none;
    margin: 0 10px;
}

.top-bar i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Main Header */
header {
    background: var(--primary-color);
    padding: 15px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    padding: 5px;
}

.logo-text h1 {
    color: var(--white);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 600;
}

.logo-text p {
    color: var(--bg-light-pink);
    font-size: 0.85rem;
    margin: 0;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    outline: none;
}

.search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icons a {
    color: var(--white);
    font-size: 1.2rem;
    position: relative;
    text-decoration: none;
    transition: transform 0.3s;
}

.header-icons a:hover {
    transform: scale(1.1);
}

.header-icons .login-btn {
    background: var(--white);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.header-icons .login-btn:hover {
    background: var(--bg-light-pink);
    transform: translateY(-2px);
}

/* Navigation */
nav {
    background: var(--primary-dark);
    padding: 0;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 15px 0;
}

nav ul li a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.nav-active {
    color: var(--accent-color) !important;
}

.nav-active::after {
    width: 100% !important;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: var(--accent-color);
}

/* Mobile-only menu items */
.mobile-only {
    display: none;
}

@media (max-width: 968px) {
    .mobile-only {
        display: block;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--bg-pink) 0%, var(--bg-light-pink) 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(155, 93, 143, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(155, 93, 143, 0.4);
}

.hero-image {
    flex: 1;
    text-align: right;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.1));
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feature-card {
    background: var(--accent-color);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(155, 93, 143, 0.25);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-light) 100%);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 50px;
    height: 50px;
}

.feature-card h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Product Grid */
.products-section {
    padding: 60px 0;
    background: var(--bg-light-pink);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(155, 93, 143, 0.25);
    border-color: var(--primary-light);
}

.product-image {
    width: 100%;
    height: 200px;
    background: var(--bg-pink);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

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

.product-info {
    padding: 20px;
    flex: 1;
}

.product-category {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-description {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}

.product-actions-bottom {
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
}

.product-actions-bottom form {
    flex: 1;
}

.btn-buy-now {
    flex: 1;
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    display: block;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-buy-now:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(155, 93, 143, 0.4);
}

.btn-cart {
    flex: 1;
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--bg-pink);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    display: block;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(232, 180, 217, 0.3);
}

.btn-cart:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(232, 180, 217, 0.5);
}

/* Category Cards */
.categories-section {
    padding: 60px 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.category-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    display: block;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(155, 93, 143, 0.8) 100%);
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 35px rgba(155, 93, 143, 0.3);
}

.category-card:hover::before {
    background: linear-gradient(180deg, transparent 0%, rgba(155, 93, 143, 0.95) 100%);
}

.category-image {
    width: 100%;
    height: 100%;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: var(--white);
    font-size: 1.3rem;
    margin: 0;
}

/* Testimonials */
.testimonials-section {
    padding: 60px 0;
    background: var(--bg-light-pink);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 2px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(155, 93, 143, 0.2);
    border-color: var(--primary-light);
}

.testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.testimonial-rating {
    color: #FFD700;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
    font-style: italic;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: var(--bg-light-pink);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: var(--bg-light-pink);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--white);
}

.footer-section ul li i {
    margin-right: 10px;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--bg-light-pink);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    position: relative;
    animation: slideUp 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-gray);
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bg-pink);
    color: var(--primary-color);
}

.modal-content h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(155, 93, 143, 0.1);
    transform: translateY(-1px);
}

.form-group input:hover {
    border-color: var(--primary-light);
}

.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
}

.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(155, 93, 143, 0.1);
    transform: translateY(-1px);
}

.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-google {
    width: 100%;
    background: var(--white);
    color: var(--text-dark);
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    transition: all 0.3s;
}

.btn-google:hover {
    background: var(--bg-pink);
    border-color: var(--primary-color);
}

.divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: var(--border-color);
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.modal-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-gray);
}

.modal-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.modal-footer a:hover {
    text-decoration: underline;
}

/* Cart Page */
.cart-section {
    padding: 60px 0;
    background: var(--bg-light-pink);
}

.cart-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
}

.cart-items {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 20px;
    padding: 20px;
    background: var(--bg-pink);
    border-radius: 12px;
    margin-bottom: 15px;
    align-items: center;
    transition: var(--transition);
    border: 2px solid transparent;
}

.cart-item:hover {
    background: var(--white);
    border-color: var(--primary-light);
    box-shadow: 0 5px 20px rgba(155, 93, 143, 0.15);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: contain;
}

.cart-item-details h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.cart-item-details p {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.cart-item-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border-radius: 8px;
    padding: 5px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color 0.3s;
}

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

.cart-summary {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: none;
}

.btn-checkout {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-checkout:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.payment-methods {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.payment-methods h4 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.payment-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-icons img {
    height: 30px;
}

/* Responsive Design */

/* Large Laptops and Desktops (1440px and up) */
@media (min-width: 1440px) {
    html {
        font-size: 16px;
    }
    
    .container {
        max-width: 1400px;
    }
}

/* Standard Laptops (1024px to 1439px) */
@media (min-width: 1024px) and (max-width: 1439px) {
    html {
        font-size: 15px;
    }
    
    .container {
        max-width: 1200px;
    }
    
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    h3 { font-size: 1.4rem; }
}

/* Small Laptops and Tablets (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }
}

@media (max-width: 968px) {
    .cart-container {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    nav ul {
        gap: 20px;
    }

    .search-container {
        display: none !important;
    }

    header .container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .header-icons {
        gap: 15px;
    }

    .header-icons a span {
        display: none;
    }

    .header-icons .register-btn,
    .header-icons .login-btn {
        display: none !important;
    }

    /* Mobile navigation */
    .mobile-menu-toggle {
        display: block !important;
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin-left: auto;
    }

    nav ul {
        display: none !important;
        flex-direction: column;
        gap: 0;
        padding: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        z-index: 999;
    }

    nav ul.mobile-menu-active {
        display: flex !important;
    }

    nav ul li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        width: 100%;
    }

    nav ul li a::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

    .cart-item {
        grid-template-columns: 80px 1fr;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        justify-content: space-between;
    }

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

    /* Top bar responsive */
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .top-bar a {
        font-size: 0.85rem;
    }

    /* Header responsive */
    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo-text h1 {
        font-size: 1.3rem;
    }

    .logo-text p {
        font-size: 0.75rem;
    }

    .header-icons {
        gap: 10px;
    }

    .header-icons .register-btn,
    .header-icons .login-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .header-icons a {
        font-size: 1rem;
    }

    /* Features grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Section padding */
    .features-section,
    .products-section,
    .categories-section,
    .testimonials-section {
        padding: 40px 0;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }
}

/* Loading Spinner */
.spinner {
    border: 3px solid var(--bg-pink);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animation utilities */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden {
    display: none;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    animation: slideInRight 0.3s ease-out;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert .btn-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.alert .btn-close:hover {
    opacity: 1;
}
