/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    min-height: 100vh;
    transition: all 0.3s ease;
}

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

/* Banner Styles */
.banner-container {
    position: relative;
    height: 150px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 15px;
}

.banner-slider {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.banner-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    border-radius: 15px;
}

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

.view-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Discount Popup */
.discount-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    padding: 10px;
    text-align: center;
    z-index: 10000;
    display: none;
    animation: slideDown 0.5s ease-out;
}

.discount-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.close-popup {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

.discount-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    font-size: 14px;
}

/* PWA Install Prompt */
.pwa-install-prompt {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease-out;
}

.pwa-content {
    position: relative;
    text-align: center;
}

.close-pwa {
    position: absolute;
    right: 0;
    top: -5px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
}

.pwa-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 14px;
}

.install-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    margin-left: 10px;
}

/* Free Website Offer Button */
.free-website-offer {
    margin: 20px 0;
    text-align: center;
}

.free-website-btn {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    max-width: 300px;
}

.free-website-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.4);
}

/* User Auth Section */
.user-auth-section {
    margin: 20px 0;
    text-align: center;
}

.auth-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.auth-btn {
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.user-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Header Styles */
.header-section {
    text-align: center;
    padding: 20px 0;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    border-radius: 20px;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo img {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    object-fit: cover;
}

.logo-placeholder {
    font-size: 40px;
}

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

.company-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.director-name {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.director-title {
    font-size: 1rem;
    opacity: 0.8;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border: none;
    border-radius: 50px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 70px;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.action-btn i {
    font-size: 20px;
    margin-bottom: 5px;
}

.action-btn span {
    font-size: 12px;
    font-weight: 600;
}

.call-btn { background: #3b82f6; }
.whatsapp-btn { background: #10b981; }
.direction-btn { background: #ef4444; }
.mail-btn { background: #8b5cf6; }
.website-btn { background: #6366f1; }

/* Contact Details */
.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--card-bg);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-item i {
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* Share Section */
.share-section {
    margin-bottom: 30px;
}

.whatsapp-share {
    display: flex;
    margin-bottom: 20px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.whatsapp-share input {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 25px 0 0 25px;
    background: white;
    color: #333;
    font-size: 16px;
}

.whatsapp-share-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 0 25px 25px 0;
    background: #10b981;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.whatsapp-share-btn:hover {
    background: #059669;
}

.action-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.action-btn-secondary {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: var(--card-bg);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.action-btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Social Media */
.social-media {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 20px;
}

.social-icon:hover {
    transform: scale(1.1);
}

.facebook { background: #1877f2; }
.youtube { background: #ff0000; }
.twitter { background: #1da1f2; }
.instagram { background: #e4405f; }
.linkedin { background: #0077b5; }
.pinterest { background: #bd081c; }
.telegram { background: #0088cc; }
.zomato { background: #e23744; }

/* Theme Selector */
.theme-selector {
    margin-bottom: 30px;
}

.theme-selector h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.theme-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    max-width: 600px;
    margin: 0 auto;
}

.theme-btn {
    padding: 12px 15px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 12px;
}

.theme-btn:hover,
.theme-btn.active {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

/* QR Section */
.qr-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#qrcode {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* PDF Section */
.pdf-section {
    margin-bottom: 40px;
}

.pdf-section h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.pdf-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.pdf-btn {
    padding: 15px 20px;
    border: none;
    border-radius: 15px;
    background: var(--accent-color);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
}

.pdf-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Products Section */
.products-section {
    margin-bottom: 40px;
}

.products-section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

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

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

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

.product-image-container {
    position: relative;
}

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

.product-gallery-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.product-description {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 0.9rem;
}

.discount-price,
.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--accent-color);
}

.whatsapp-inquiry {
    background: #10b981;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-inquiry:hover {
    transform: scale(1.1);
}

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

.add-to-cart-btn,
.inquiry-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
}

.inquiry-btn.secondary {
    background: var(--secondary-color);
}

.add-to-cart-btn:hover,
.inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Gallery Section */
.gallery-section {
    margin-bottom: 40px;
}

.gallery-section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

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

/* Videos Section */
.videos-section {
    margin-bottom: 40px;
}

.videos-section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

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

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Reviews Section */
.reviews-section {
    margin-bottom: 40px;
}

.reviews-section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.review-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #fbbf24;
}

.stars i:not(.active) {
    color: #6b7280;
}

.reviewer-name {
    font-weight: 600;
}

.review-comment {
    line-height: 1.6;
    opacity: 0.9;
}

/* Add Review Form */
.add-review-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.add-review-form h4 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.rating-input {
    text-align: center;
    margin-bottom: 20px;
}

.stars-input {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.stars-input i {
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
}

.stars-input i:hover,
.stars-input i.active {
    color: #fbbf24;
    transform: scale(1.1);
}

.add-review-form input,
.add-review-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.add-review-form input::placeholder,
.add-review-form textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.add-review-form button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-review-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    padding: 8px 5px;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-radius: 10px;
    font-size: 10px;
}

.nav-item:hover,
.nav-item.active {
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.1);
}

.nav-item i {
    font-size: 16px;
    margin-bottom: 2px;
}

/* Floating Cart */
.floating-cart {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-cart:hover {
    transform: translateY(-50%) scale(1.1);
}

.floating-cart i {
    color: white;
    font-size: 24px;
}

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

/* Floating Inquiry */
.floating-inquiry {
    position: fixed;
    top: calc(50% + 80px);
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-inquiry:hover {
    transform: scale(1.1);
}

.floating-inquiry i {
    color: white;
    font-size: 24px;
}

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

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header h3 {
    font-size: 1.3rem;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-cart:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cart-items {
    padding: 20px;
    min-height: 200px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--accent-color);
    font-weight: 600;
}

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

.quantity-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    transform: scale(1.1);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Mobile Cart Layout */
@media (max-width: 768px) {
    .cart-content {
        max-width: 95vw;
        margin: 10px;
    }
    
    .cart-item {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px 0;
    }
    
    .cart-item img {
        width: 50px;
        height: 50px;
    }
    
    .cart-item-info {
        flex: 1;
        min-width: 0;
    }
    
    .cart-item-title {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .cart-item-price {
        font-size: 13px;
    }
    
    .quantity-controls {
        flex-shrink: 0;
        gap: 8px;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

/* Inquiry Modal */
.inquiry-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.inquiry-modal.active {
    display: flex;
}

.inquiry-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.inquiry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inquiry-header h3 {
    font-size: 1.3rem;
}

.close-inquiry {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-inquiry:hover {
    background: rgba(255, 255, 255, 0.1);
}

.inquiry-items {
    padding: 20px;
    min-height: 200px;
}

.inquiry-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.inquiry-item:last-child {
    border-bottom: none;
}

.inquiry-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}

.inquiry-item-info {
    flex: 1;
}

.inquiry-item-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.inquiry-item-price {
    color: var(--accent-color);
    font-weight: 600;
}

.remove-inquiry-btn {
    background: #ef4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.remove-inquiry-btn:hover {
    transform: scale(1.1);
}

.inquiry-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.send-inquiry-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* UPI Payment Modal */
.upi-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.upi-modal.active {
    display: flex;
}

.upi-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.upi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.upi-header h3 {
    font-size: 1.3rem;
}

.close-upi {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-upi:hover {
    background: rgba(255, 255, 255, 0.1);
}

.upi-body {
    padding: 20px;
    text-align: center;
}

.upi-qr-container {
    margin-bottom: 20px;
}

.upi-qr-container canvas {
    border-radius: 10px;
    background: white;
    padding: 10px;
}

.upi-details {
    margin-bottom: 20px;
    text-align: left;
}

.upi-details p {
    margin-bottom: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.upi-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pay-now-btn,
.payment-done-btn {
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pay-now-btn {
    background: var(--primary-color);
    color: white;
}

.payment-done-btn {
    background: var(--accent-color);
    color: white;
}

.pay-now-btn:hover,
.payment-done-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Auth Modals */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.auth-modal.active {
    display: flex;
}

.auth-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    padding: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.auth-header h3 {
    font-size: 1.5rem;
}

.close-auth {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-auth:hover {
    background: rgba(255, 255, 255, 0.1);
}

.auth-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.auth-content input {
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-content input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.auth-content button {
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.auth-content p {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.auth-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.auth-content a:hover {
    text-decoration: underline;
}

/* Free Website Modal */
.free-website-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.free-website-modal.active {
    display: flex;
}

.free-website-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.free-website-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.free-website-header h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
}

.close-free-website {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-free-website:hover {
    background: rgba(255, 255, 255, 0.1);
}

.free-website-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.free-website-content input,
.free-website-content textarea {
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    resize: vertical;
}

.free-website-content input::placeholder,
.free-website-content textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.free-website-content button {
    padding: 15px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.free-website-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

/* User Dashboard Modal */
.user-dashboard-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.user-dashboard-modal.active {
    display: flex;
}

.user-dashboard-content {
    background: var(--card-bg);
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.user-dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.user-dashboard-header h3 {
    font-size: 1.3rem;
}

.close-user-dashboard {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-user-dashboard:hover {
    background: rgba(255, 255, 255, 0.1);
}

.user-dashboard-body {
    padding: 20px;
}

.dashboard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 10px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-content {
    display: none;
    padding: 20px 0;
}

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

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px 100px;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
}

.footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

.made-by {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Animations */
@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);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 2px solid var(--accent-color);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Success/Error Messages */
.message {
    padding: 15px 20px;
    border-radius: 10px;
    margin: 15px 0;
    text-align: center;
    font-weight: 600;
}

.message.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.hidden { display: none; }
.visible { display: block; }

.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }

.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }

/* Responsive Design */
@media (max-width: 1024px) {
    body:not(.login-page) {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "header"
            "main";
        grid-template-rows: 70px 1fr;
    }
    
    .admin-sidebar {
        position: fixed;
        left: -280px;
        top: 0;
        bottom: 0;
        width: 280px;
        z-index: 1000;
        transition: left 0.3s ease;
    }
    
    .sidebar-open .admin-sidebar {
        left: 0;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .banner-container {
        height: 120px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 16px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banner-container {
        height: 100px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .auth-buttons {
        flex-direction: column;
    }
    
    .user-welcome {
        flex-direction: column;
        gap: 10px;
    }
    
    .floating-cart,
    .floating-inquiry {
        width: 50px;
        height: 50px;
        right: 15px;
    }
    
    .floating-cart i,
    .floating-inquiry i {
        font-size: 20px;
    }
    
    .cart-count,
    .inquiry-count {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 24px;
    }
    
    .header-title {
        display: none;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .table th,
    .table td {
        padding: 8px;
    }
    
    .banner-container {
        height: 80px;
    }
    
    .discount-popup {
        padding: 8px;
    }
    
    .discount-text {
        font-size: 12px;
    }
    
    .free-website-btn {
        padding: 12px 20px;
        font-size: 12px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --background: #0f0f23;
        --card-bg: rgba(255, 255, 255, 0.05);
        --text-color: #ffffff;
        --text-secondary: #a0a0a0;
        --primary-color: #3b82f6;
        --accent-color: #10b981;
        --border-color: rgba(255, 255, 255, 0.1);
    }
}

/* Print styles */
@media print {
    .admin-sidebar,
    .admin-header,
    .floating-cart,
    .floating-inquiry,
    .bottom-nav {
        display: none !important;
    }
    
    .main-content {
        grid-area: auto;
        padding: 0;
    }
    
    .dashboard-card,
    .stat-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .discount-popup,
    .pwa-install-prompt,
    .floating-cart,
    .floating-inquiry {
        display: none !important;
    }
}