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

body {
    font-family: 'Tajawal', 'Cairo', sans-serif;
    direction: rtl;
    background-color: #f6edd3;
    color: #282323;
    line-height: 1.6;
}

/* Force English numbers globally */
body, input, textarea, select, button, span, div, p, h1, h2, h3, h4, h5, h6 {
    font-variant-numeric: lining-nums;
    -webkit-font-feature-settings: "lnum";
    font-feature-settings: "lnum";
}

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

/* Header Styles */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background: linear-gradient(135deg, #b27db7, #76cac2);
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
}

.main-header {
    padding: 15px 0;
}

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

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #282323;
}

.logo-image {
    height: 50px;
    width: auto;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav a {
    text-decoration: none;
    color: #282323;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: #b27db7;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1000;
}

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

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #282323;
    text-decoration: none;
    transition: background 0.3s;
}

.dropdown-menu a:hover {
    background: #f6edd3;
}

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

.header-btn {
    background: none;
    border: none;
    color: #282323;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s;
    position: relative;
}

.header-btn:hover {
    background: #f6edd3;
    color: #b27db7;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #eee;
    padding: 20px 0;
}

.mobile-menu nav a {
    display: block;
    padding: 12px 0;
    color: #282323;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f6edd3, white);
    padding: 80px 0;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #b27db7, #76cac2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #b27db7, #76cac2);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 125, 183, 0.4);
}

.btn-secondary {
    background: white;
    color: #282323;
    border: 2px solid #ddd;
}

.btn-secondary:hover {
    background: #f6edd3;
    border-color: #b27db7;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
}

.categories-section {
    padding: 80px 0;
    background: white;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

.category-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f0f0f0;
    color: #282323;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
}

.category-tab:hover,
.category-tab.active {
    background: linear-gradient(135deg, #b27db7, #76cac2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 125, 183, 0.3);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.products-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #282323;
}

.product-info a {
    text-decoration: none;
    color: inherit;
}

.product-info a:hover h3 {
    color: #b27db7;
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #b27db7;
}

.old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
}

.product-actions {
    display: flex;
    gap: 8px;
}

.product-actions .btn {
    flex: 1;
}

.product-actions .btn-icon {
    flex: none;
}

/* Latest Products */
.latest-products {
    padding: 80px 0;
    background: #f6edd3;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.blog-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-date {
    font-size: 14px;
    color: #999;
    margin-bottom: 10px;
}

.blog-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #282323;
}

.blog-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.read-more {
    color: #b27db7;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #282323;
    color: white;
    padding: 40px 0;
    text-align: center;
}

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

.footer-logo-image {
    height: 50px;
    width: auto;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    background: linear-gradient(135deg, #b27db7, #76cac2);
    transform: translateY(-2px);
}

.copyright {
    font-size: 14px;
    color: #ccc;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close:hover {
    color: #282323;
}

.modal-body {
    padding: 20px;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #b27db7;
}

/* Cart Modal */
.cart-modal {
    max-width: 400px;
}

.cart-total {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
}

.cart-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Product Detail Page */
.product-detail {
    padding: 40px 0;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #b27db7;
    text-decoration: none;
}

.breadcrumb span {
    margin: 0 10px;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
}

.image-thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnail.active {
    border-color: #b27db7;
}

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

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.product-price {
    margin-bottom: 20px;
}

.product-price .current-price {
    font-size: 2rem;
    font-weight: bold;
    color: #282323;
}

.product-price .old-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 15px;
}

.savings {
    background: #e74c3c;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: bold;
}

.product-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.product-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.feature i {
    color: #b27db7;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 2px solid #ddd;
    border-radius: 8px;
}

.quantity-controls button {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
}

.quantity-controls input {
    border: none;
    width: 60px;
    text-align: center;
    padding: 10px 5px;
    font-size: 16px;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.stock-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    font-weight: 500;
}

/* Product Tabs */
.product-tabs {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 60px;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #b27db7, #76cac2);
    color: white;
}

.tab-content {
    padding: 30px;
}

.tab-pane {
    display: none;
}

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

.tab-header {
    margin-bottom: 20px;
}

.tab-header h3 {
    font-size: 1.3rem;
    color: #282323;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.feature-box {
    background: #f6edd3;
    padding: 20px;
    border-radius: 10px;
}

.feature-box h4 {
    margin-bottom: 15px;
    color: #282323;
}

.feature-box ul {
    list-style: none;
}

.feature-box li {
    padding: 5px 0;
    position: relative;
    padding-right: 20px;
}

.feature-box li::before {
    content: '•';
    color: #b27db7;
    position: absolute;
    right: 0;
}

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

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
}

.spec-label {
    font-weight: 500;
    color: #282323;
}

.spec-value {
    color: #666;
    font-weight: 500;
}

.related-products {
    margin-top: 60px;
}

.related-products h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

/* Enhanced Login/Register Modal Styles */
.login-modal {
    max-width: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.4s ease-out;
}

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

.modal-header {
    background: linear-gradient(135deg, #b27db7, #76cac2);
    color: white;
    padding: 25px 30px;
    border-bottom: none;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-header .close {
    color: white;
    opacity: 0.8;
    font-size: 28px;
    transition: all 0.3s;
}

.modal-header .close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

.auth-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.auth-tabs::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 3px;
    width: 50%;
    background: linear-gradient(135deg, #b27db7, #76cac2);
    transition: transform 0.3s ease;
}

.auth-tabs.register-active::after {
    transform: translateX(-100%);
}

.auth-tab {
    flex: 1;
    padding: 15px 5px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.auth-tab::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #b27db7, #76cac2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.auth-tab.active {
    color: #b27db7;
}

.auth-tab.active::before {
    transform: scaleX(1);
}

.auth-tab:hover {
    color: #b27db7;
}

.auth-tab i {
    margin-left: 8px;
    font-size: 18px;
}

.guest-option {
    text-align: center;
    margin-bottom: 25px;
    position: relative;
}

.guest-btn {
    width: 100%;
    margin-bottom: 15px;
    background: #f8f9fa;
    color: #495057;
    border: 2px solid #e9ecef;
    font-weight: 600;
    padding: 14px;
    transition: all 0.3s;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.guest-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-2px);
}

.guest-btn i {
    color: #6c757d;
}

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

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #eee;
}

.divider span {
    background: white;
    padding: 0 15px;
    color: #999;
    font-size: 0.9rem;
    position: relative;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #282323;
    font-size: 15px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-group input:focus {
    outline: none;
    border-color: #b27db7;
    background: white;
    box-shadow: 0 0 0 4px rgba(178, 125, 183, 0.1);
}

.form-group small {
    display: block;
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.85rem;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-left: 45px;
}

.password-toggle {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #adb5bd;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s;
    z-index: 2;
}

.password-toggle:hover {
    color: #b27db7;
}

.password-toggle.active {
    color: #b27db7;
}

.login-form button[type="submit"],
.register-form button[type="submit"],
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #b27db7, #76cac2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.login-form button[type="submit"]:hover,
.register-form button[type="submit"]:hover,
.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(178, 125, 183, 0.4);
}

/* User menu */
.user-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 250px;
    z-index: 1000;
    overflow: hidden;
    animation: fadeIn 0.3s ease-out;
}

.user-menu-content {
    padding: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.user-info i {
    font-size: 2rem;
    color: #b27db7;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* Desktop/Mobile Category Visibility */
.desktop-tabs {
    display: flex;
}

.mobile-pills {
    display: none;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0 5px;
    border-top: 1px solid #eee;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    position: relative;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.nav-item.active {
    color: #b27db7;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category Carousel */
.category-carousel {
    margin-bottom: 30px;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding: 10px 0;
    gap: 12px;
}

.carousel-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.category-pill {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    min-width: 90px;
    cursor: pointer;
    transition: all 0.3s;
}

.category-pill.active {
    background: linear-gradient(135deg, #b27db7, #76cac2);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(178, 125, 183, 0.3);
}

.pill-icon {
    font-size: 1.5rem;
}

.pill-text {
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* Mobile Filter/Sort Dropdown */
.mobile-filter-sort {
    display: none;
    margin-bottom: 20px;
}

.mobile-filter-sort select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    font-size: 16px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' 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: left 15px center;
    background-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .mobile-menu.active {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .category-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-features {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .specifications-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .logo-image {
        height: 40px;
    }
    
    .footer-logo-image {
        height: 60px;
    }
    
    /* Show mobile category carousel, hide desktop tabs */
    .desktop-tabs {
        display: none;
    }
    
    .mobile-pills {
        display: block;
    }
    
    /* Show mobile filter/sort */
    .mobile-filter-sort {
        display: block;
    }
    
    /* Show mobile bottom navigation */
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to bottom of page for mobile nav */
    body {
        padding-bottom: 60px;
    }
    
    /* Enhanced mobile login modal */
    .login-modal {
        width: 95%;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 20px;
        max-height: calc(90vh - 80px);
        overflow-y: auto;
    }
    
    .auth-tab {
        padding: 12px 5px;
        font-size: 15px;
    }
    
    .form-group input {
        padding: 12px 14px;
    }
    
    .guest-btn, 
    .login-form button[type="submit"],
    .register-form button[type="submit"],
    .btn-submit {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .logo-image {
        height: 35px;
    }
    
    .footer-logo-image {
        height: 50px;
    }
    
    /* Further enhanced mobile login modal */
    .modal-header {
        padding: 20px;
    }
    
    .modal-body {
        padding: 15px;
        max-height: calc(90vh - 70px);
    }
    
    .auth-tab {
        font-size: 14px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 14px;
    }
    
    .form-group input {
        font-size: 15px;
        padding: 12px;
    }
}

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

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

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 10px 0 5px;
    border-top: 1px solid #eee;
}

.mobile-bottom-nav {
    display: none;
    justify-content: space-around;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #666;
    font-size: 0.8rem;
    position: relative;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.nav-item.active {
    color: #b27db7;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* View All Section */
.view-all-section {
    text-align: center;
    margin-top: 40px;
}

/* Loading Spinner */
.products-loading {
    text-align: center;
    padding: 40px 0;
}

.loading-spinner {
    display: inline-block;
}

.loading-spinner i {
    font-size: 2rem;
    color: #b27db7;
    margin-bottom: 15px;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 40px 0;
    color: #e74c3c;
}

.error-message i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* No Products Message */
.no-products-message {
    text-align: center;
    padding: 60px 0;
    grid-column: 1 / -1;
}

.no-products-message i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

.no-products-message h3 {
    font-size: 1.5rem;
    color: #282323;
    margin-bottom: 10px;
}

.no-products-message p {
    color: #666;
    margin-bottom: 20px;
}

/* Cart Item Styles */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

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

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.item-price {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

.quantity-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
}

/* Lazy Loading */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img.loaded {
    opacity: 1;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    /* Hero Section Mobile Enhancements */
    .hero {
        padding: 40px 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
        padding: 0 15px;
    }
    
    .hero-image {
        order: 1;
        position: relative;
    }
    
    .hero-image::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50%;
        background: linear-gradient(to top, rgba(246, 237, 211, 0.8), transparent);
        border-radius: 0 0 20px 20px;
        z-index: 1;
    }
    
    .hero-image img {
        height: 300px;
        border-radius: 20px;
        object-position: center 20%;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero-text p {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 15px;
    }
    
    /* Show mobile category carousel, hide desktop tabs */
    .desktop-tabs {
        display: none;
    }
    
    .mobile-pills {
        display: block;
    }
    
    /* Show mobile filter/sort */
    .mobile-filter-sort {
        display: block;
    }
    
    /* Enhanced Product Card Spacing */
    .products-grid, 
    .products-grid-4 {
        gap: 25px;
        padding: 10px 5px;
    }
    
    .product-card {
        margin-bottom: 5px;
    }
    
    .product-info {
        padding: 20px;
    }
    
    .product-info h3 {
        font-size: 1.05rem;
        margin-bottom: 12px;
    }
    
    .product-price {
        margin-bottom: 18px;
    }
    
    .product-actions {
        gap: 12px;
    }
    
    .product-actions .btn {
        padding: 12px;
    }
    
    /* Show mobile bottom navigation */
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* Add padding to bottom of page for mobile nav */
    body {
        padding-bottom: 60px;
    }
    
    /* Blog section adjustments */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        margin-bottom: 10px;
    }
    
    /* Login modal adjustments */
    .login-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-body {
        max-height: calc(90vh - 80px);
        overflow-y: auto;
        padding-bottom: 30px;
    }
}