/* Base Styles */
:root {
    --primary-color: #e75a87;
    --secondary-color: #f8e3e8;
    --text-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --light-bg: #f9f9f9;
    --border-color: #eeeeee;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    display: flex;
    flex: 1;
}

.main-content {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
    gap: 0.5rem;
}

.btn i {
    margin-left: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #d04b76;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--light-bg);
    transform: translateY(-2px);
}

.btn-text {
    padding: 0;
    color: var(--primary-color);
    background: none;
    font-weight: 600;
}

.btn-text:hover {
    color: #d04b76;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* Header Styles */
header {
    position: sticky;
    top: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    /* padding: 8px 24px; */
    width: 100%;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    box-shadow: var(--shadow);
    border-radius: 8px;
    padding: 12px 0;
    min-width: 235px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}


/* Show the direct child menu when hovering over a dropdown container */
.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-menu a {
    display: block;
    padding: 8px 20px;
}

.dropdown-submenu {
    position: relative;
    padding: 8px 0;
}

.dropdown-submenu > .dropdown-menu {
    top: 0;
    left: 100%;
    transform: translateX(-10px)
}

/* Adjust transform for nested submenus on hover */
.dropdown-submenu:hover > .dropdown-menu {
    transform: translateX(0);
}

.dropdown-menu a {
    display: block;
    padding: 8px 24px;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}


.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    position: relative;
    width: 250px;
}

.search-bar input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-bar input:focus {
    border-color: var(--primary-color);
}

.search-bar button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--light-text);
    cursor: pointer;
}

.icon-btn {
    font-size: 20px;
    color: var(--text-color);
}

.icon-btn:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: var(--white);
    border-right: 1px solid var(--border-color);
    padding: 20px;
    height: 100%;
    overflow-y: auto;
    position: fixed;
    left: -280px;
    top: 0;
    bottom: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-size: 20px;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--light-text);
}

.close-sidebar:hover {
    color: var(--primary-color);
}

.sidebar-section {
    margin-bottom: 25px;
}

.sidebar-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.sidebar-menu li {
    margin-bottom: 10px;
}

.sidebar-menu a {
    display: block;
    padding: 5px 0;
    transition: var(--transition);
}

.sidebar-menu a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.sidebar-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:hover {
    background-color: #d04b76;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.tag {
    display: inline-flex;
    align-items: center;
    background-color: rgba(231, 90, 135, 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.tag i {
    margin-right: 6px;
    font-size: 12px;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero h1 .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 18px;
    color: var(--light-text);
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Categories Section */
.categories {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    margin-top: 50px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    padding-bottom: 20px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-img {
    height: 200px;
    overflow: hidden;
    margin-bottom: 15px;
}

.category-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.category-card:hover .category-img img {
    transform: scale(1.05);
}

.category-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

/* Featured Products Section */
.featured-products {
    padding: 80px 0;
    background-color: var(--light-bg);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 columns by default for desktop */
    gap: 2rem;
    padding: 1rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}



.product-action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Add to your styles.css */

.product-action-btn.favorite-btn.active .fa-heart,
.product-action-btn.cart-btn.active .fa-shopping-cart {
    color: var(--primary-color); /* Pink color */
}

.product-action-btn.favorite-btn.active:hover .fa-heart,
.product-action-btn.cart-btn.active:hover .fa-shopping-cart {
    color: var(--white); /* White color on hover */
}

/* Optional: Add a subtle transition for a smoother effect */
.product-action-btn i {
    transition: color 0.2s ease-in-out;
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.product-price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    /* display: flex; */
    align-items: center;
    justify-content: space-between;
    padding: 2px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #ffc107;
    font-size: 14px;
}

/* Newsletter Section */
.newsletter {
    padding: 40px 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.newsletter p {
    margin-bottom: 30px;
    color: var(--light-text);
}

.form-group.newsletter {
    display: flex;
    max-width: 500px;
    gap:0;
    margin: 0 auto;
}

.form-group input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    /* border-radius: 50px 0 0 50px; */
    font-size: 16px;
    outline: none;
}

.form-group-newsletter {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px 0 0 50px;
    font-size: 16px;
    outline: none;
}

.form-group button {
    border-radius: 0 50px 50px 0;
}

/* Footer Styles */
footer {
    background-color: #f8f9fa;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-col h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    color: var(--light-text);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-info li i {
    margin-top: 5px;
    color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    gap: 20px;
}

/* Contact Page Styles */
.contact-section {
    padding: 2rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.category-list .hidden-categories {
    margin-top: 5px;
}

.category-list .hidden-categories a {
    display: block;
    margin: 5px 0;
}

.category-list .show-more {
    margin-top: 10px;
}

.category-list .show-more a {
    color: #666;
}

.show-more a i {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.show-more a:hover i {
    transform: translateY(2px);
}
/* Company Info - Single Row */
.company-info-single-row {
    width: 100%;
    margin-bottom: 2rem;
}

.info-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: space-between;
}

.info-card {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: flex-start;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    padding-top: 0.25rem;
}

.info-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.info-content p {
    margin: 0;
    color: #666;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.contact-form .form-group {
    display: block;
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* Map Container */
.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}


.checkout-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

/* Left Side - Form */
.checkout-form {
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.checkout-section {
    margin-bottom: 40px;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px;
}

.section-number {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.checkout-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.section-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.form-group {
    /* display: grid; */
    /* grid-template-columns: repeat(2, 1fr); 2 columns */
    gap: 20px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #4a4a4a;
}

.form-control {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
    background: #fff;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(214,51,132,0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Right Side - Order Summary */
.checkout-products {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    height: fit-content;
    position: sticky;
    top: 20px;
}

.summary-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1.5px solid var(--border);
}

.product-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.product-image {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1;
}

.product-name {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
}

.product-quantity {
    color: #666;
    font-size: 0.9rem;
}

.product-price {
    font-weight: 600;
    color: var(--text);
}

.summary-subtotal {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1.5px solid var(--border);
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #4a4a4a;
}

.summary-line.total {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 15px;
}

.summary-note {
    margin: 15px 0;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Required Field Indicator */
.required {
    color: var(--primary);
    margin-left: 2px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    position: relative;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    transition: all 0.2s;
}

.payment-method:hover {
    border-color: var(--primary);
}

.payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1;
    margin: 0;
}

.payment-method label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    cursor: pointer;
}

.payment-method input[type="radio"]:checked + label {
    background: rgba(214,51,132,0.05);
    border-radius: 8px;
}

.payment-method i {
    font-size: 1.5rem;
    color: var(--primary);
    width: 32px;
    text-align: center;
}

.payment-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.payment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-title {
    font-weight: 500;
    color: var(--text);
}

.payment-description {
    font-size: 0.9rem;
    color: #666;
}

/* Breadcrumbs */
.breadcrumb-container {
    background: white;
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.breadcrumbs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #b52b6d;
}

.breadcrumbs .separator {
    color: #999;
    margin: 0 5px;
}



/* Responsive Styles */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 42px;
    }
    
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .tag {
        margin: 0 auto 20px;
    }
    
    .sidebar {
        /* width: 100%; */
        max-width: 300px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns */
        gap: 1.25rem;
    }
}



@media (max-width: 768px) {
    .nav-links, .search-bar {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .main-content {
        margin-left: 0;
    }

    /* Contact Page Responsive */
    .info-cards-container {
        flex-direction: column;
    }
    
    .info-card {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 column */
        gap: 1rem;
    }

    .product-card{
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        border-radius: 50px;
        margin-bottom: 10px;
    }
    
    .form-group button {
        border-radius: 50px;
        width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr; /* 1 columns */
        gap: 1.25rem;
    }

    .product-card {
        max-width: 350px !important;
    }
}

@media (max-width: 900px) {
        .checkout-container {
            grid-template-columns: 1fr;
            gap: 30px;
        }

        .checkout-products {
            position: static;
            order: -1;
        }

        .form-row {
            grid-template-columns: 1fr;
            gap: 15px;
        }
    }

    .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.service-card {
    text-align: center;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-img img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}


/* Add this CSS */
.service-grid {
    /* display: flex; */
    flex-wrap: wrap; /* allow wrapping on smaller screens */
    gap: 20px;       /* spacing between items */
    justify-content: center; /* center the items */
    margin-bottom: 50px;
}

.service-card {
    flex: 1 1 calc(25% - 20px); /* 4 in a row, adjusts with gap */
    max-width: 250px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;
    transition: transform 0.2s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-card {
    flex: 1 1 calc(25% - 20px);
    max-width: 250px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 15px;
    transition: transform 0.2s;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-img img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-info {
    margin-top: 10px;
}

.product-info .price {
    font-weight: bold;
    color: var(--primary-color);
}


/* Login and Register Pages */
.login, .register {
    padding: 40px 0;
}
.form-group {
    max-width: 500px;
    margin: 0 auto;
}
.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
}
.form-group .btn-primary {
    /* background-color: #007bff; */
    border: none;
    padding: 12px 20px;
    font-size: 18px;
    cursor: pointer;
    width: 60%;
    border-radius: 50px;
    justify-content: center;
}

.register-here{
    text-align: center;
    justify-content: center;
    margin-top: 10px;
}

.register-here a{
    color: var(--primary-color);
    font-size: 16px;
}

.register-here a:hover{
    color: var(--secondary-color)
}

.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}
.alert-error {
    background-color: #f8d7da;
    color: #721c24;
}
.alert-success {
    background-color: #d4edda;
    color: #155724;
}

/* Checkout Page */
.checkout {
    padding: 40px 0;
}
.order-summary, .billing-shipping, .payment {
    margin-bottom: 30px;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}
.table td {
    background-color: #fff;
}
.table strong {
    font-weight: 600;
}

/* Checkout Page Styles */
.page {
    padding: 40px 0;
}

.cart table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cart table th {
    background: #f8f9fa;
    font-weight: 600;
    text-align: center;
    padding: 12px;
}

.cart table td {
    vertical-align: middle;
    text-align: center;
    padding: 12px;
}

.cart img {
    max-width: 80px;
    border-radius: 8px;
}

.total-text {
    text-align: right;
    font-weight: 600;
}

.total-amount {
    font-weight: bold;
    color: #d9534f;
}

.billing-address {
    margin-top: 40px;
}

.bill-address {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.bill-address td {
    padding: 10px;
}

.special {
    margin: 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-size: 20px;
    font-weight: bold;
}

.cart-buttons {
    margin-top: 20px;
    text-align: right;
}

.btn-primary {
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-danger {
    border-radius: 30px;
    padding: 10px 20px;
    font-size: 14px;
}

.btn-container{
    display: flex;
    justify-content: center;
    width: 100%;
}
.profile-form {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}
.profile-form .form-group {
    margin-bottom: 15px;
}
.profile-form label {
    font-weight: 600;
}
.profile-form input,
.profile-form textarea {
    border-radius: 8px;
}

/* WhatsApp Menu */
.whatsapp-menu {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
}

.whatsapp-btn {
    background: #25d366;
    color: #fff;
    padding: 10px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    font-size: 16px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.whatsapp-btn i {
    margin-right: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.product-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 12px;
  text-align: center;
}

.product-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.product-info .price {
  font-size: 15px;
  color: #e63946;
  font-weight: 600;
}

@media (max-width: 500px) {
  .service-grid {
    grid-template-columns: unset;  /* removes the defined columns */
    display: flex;                 /* optional: centers content nicely */
    flex-direction: column;        /* stack cards vertically */
    align-items: center;           /* centers the cards */
  }
}

@media (max-width: 534px) {
    .product-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px; /* spacing between cards 
    }

    .product-card {
        width: 90%; /* make cards narrower and centered 
        max-width: 300px; /* optional max width 
    }
}


@media (max-width: 768px) {
  .page-wrapper {
    flex-direction: column; /* stack sidebar on top */
            width: fit-content;
  }

  .page-sidebar {
    width: 100%; /* sidebar takes full width */
  }

  .page-content {
    width: 100%; /* content also full width */
    flex: 1;
  }
  
  .service-grid {
    display: grid;
    gap: 20px;
}
}


@media (max-width: 768px) {
    /* Prevent zoom on input focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    textarea,
    select {
        font-size: 16px;
        transform: scale(1);
        max-height: 44px; /* Minimum touch target size */
    }
    
    /* Ensure buttons are easily tappable */
    .btn, button {
        min-height: 44px;
        min-width: 44px;
    }
}
