/* Common Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --body-bg: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--body-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: #0056b3;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: #0056b3;
    color: var(--white);
}

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

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Form Elements */
input, select, textarea {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    width: 100%;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: var(--dark-color);
    padding: 8px 0;
    color: var(--white);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--white);
    font-size: 14px;
}

.top-bar a:hover {
    color: var(--primary-color);
}

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

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

.logo h1 {
    font-size: 28px;
    color: var(--primary-color);
}

.search-bar {
    flex: 1;
    max-width: 500px;
    margin: 0 30px;
    position: relative;
}

.search-bar form {
    display: flex;
}

.search-bar input {
    border-radius: 25px 0 0 25px;
    border-right: none;
    padding-left: 20px;
}

.search-bar button {
    border-radius: 0 25px 25px 0;
    padding: 0 20px;
    background-color: var(--primary-color);
    color: var(--white);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    box-shadow: var(--shadow);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

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

.suggestion-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.suggestion-icon {
    color: var(--secondary-color);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.suggestion-name {
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
}

.suggestion-shop {
    font-size: 12px;
    color: var(--secondary-color);
    font-style: italic;
}

.suggestion-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 14px;
}

/* Vendor Shop Page Styles */
.vendor-shop-page {
    padding: 60px 0 40px;
    min-height: calc(100vh - 200px);
    margin-top: 20px; /* Add margin to prevent header overlap */
}

.vendor-header {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 20px;
    padding: 50px 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.vendor-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="20" cy="80" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.vendor-info {
    position: relative;
    z-index: 1;
}

.vendor-name {
    font-size: 3rem;
    color: var(--white);
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.vendor-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.vendor-products-section {
    background: var(--white);
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.products-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.products-header h2 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-count {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    color: var(--secondary-color);
}

.no-products-icon {
    font-size: 4rem;
    color: var(--border-color);
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.no-products p {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.product-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #0056b3);
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 123, 255, 0.2);
}

.product-card:hover::before {
    opacity: 1;
}

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

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

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

.no-image {
    background: var(--light-color);
    color: var(--secondary-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.no-image i {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-description {
    color: var(--secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

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

.current-price, .sale-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sale-price {
    color: var(--danger-color);
    margin-right: 10px;
}

.original-price {
    color: var(--secondary-color);
    text-decoration: line-through;
    font-size: 1rem;
    font-weight: 400;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .vendor-shop-page {
        padding: 40px 0 20px;
        margin-top: 10px;
    }
    
    .vendor-header {
        padding: 40px 25px;
        margin-bottom: 30px;
        border-radius: 15px;
    }
    
    .vendor-name {
        font-size: 2.2rem;
        letter-spacing: 0;
    }
    
    .vendor-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .vendor-products-section {
        padding: 35px 25px;
        border-radius: 15px;
    }
    
    .products-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .products-header h2 {
        font-size: 1.8rem;
    }
    
    .product-count {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .product-card {
        border-radius: 15px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .vendor-header {
        padding: 30px 20px;
    }
    
    .vendor-name {
        font-size: 1.8rem;
    }
    
    .vendor-products-section {
        padding: 25px 20px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .products-header h2 {
        font-size: 1.5rem;
    }
}

/* Navigation */
.main-nav {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-color);
    padding: 15px 0;
    display: block;
    font-weight: 500;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* ============================================
   Footer Styles
   ============================================ */
.site-footer {
    margin-top: 0;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Newsletter Strip */
.footer-newsletter {
    background: linear-gradient(135deg, #e41e31 0%, #ff4757 100%);
    padding: 0;
}

.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 32px 0;
}

.newsletter-text {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #fff;
    flex: 1;
}

.newsletter-icon {
    font-size: 28px;
    opacity: 0.85;
    flex-shrink: 0;
}

.newsletter-text h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #fff;
}

.newsletter-text p {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.newsletter-form {
    display: flex;
    gap: 0;
    flex-shrink: 0;
    max-width: 420px;
    width: 100%;
}

.newsletter-input {
    flex: 1;
    padding: 13px 18px;
    border: 2px solid rgba(255,255,255,0.25);
    border-right: none;
    border-radius: 12px 0 0 12px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.55);
}

.newsletter-input:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.18);
}

.newsletter-btn {
    padding: 13px 28px;
    background: #fff;
    color: #e41e31;
    border: none;
    border-radius: 0 12px 12px 0;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: #1a1a2e;
    color: #fff;
}

/* Main Footer */
.footer-main {
    background: #0f0f1a;
    padding: 60px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col {
    min-width: 0;
}

/* Brand Column */
.footer-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-logo img {
    height: 38px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-about-text {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.5);
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    background: #e41e31;
    color: #fff;
    transform: translateY(-2px);
}

/* Footer Headings */
.footer-heading {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: #e41e31;
    border-radius: 2px;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.footer-links a::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 1px;
    background: #e41e31;
    margin-right: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.footer-links a:hover::before {
    width: 12px;
    margin-right: 8px;
}

/* Footer Contact */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    align-items: flex-start;
}

.footer-contact li i {
    color: #e41e31;
    font-size: 13px;
    margin-top: 4px;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.footer-contact a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #fff;
}

/* App Download Strip */
.footer-app {
    background: #0a0a14;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
}

.footer-app-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-app-text {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.footer-app-text i {
    font-size: 22px;
    color: #e41e31;
}

.footer-app-text strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 1px;
}

.footer-app-text span {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.footer-app-buttons {
    display: flex;
    gap: 12px;
}

.app-badge {
    display: inline-block;
    transition: all 0.3s ease;
}

.app-badge:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

.app-badge img {
    height: 40px;
    width: auto;
}

/* Bottom Bar */
.footer-bottom {
    background: #080812;
    padding: 18px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: rgba(255,255,255,0.7);
}

/* ---- Footer Responsive ---- */
@media (max-width: 1100px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 32px;
    }

    .footer-grid .footer-col:nth-child(4),
    .footer-grid .footer-col:nth-child(5) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .newsletter-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 28px 0;
    }

    .newsletter-text {
        flex-direction: column;
        gap: 10px;
    }

    .newsletter-form {
        max-width: 100%;
    }

    .footer-main {
        padding: 48px 0 36px;
}

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 24px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-logo img {
        height: 32px;
    }

    .footer-social {
        justify-content: flex-start;
    }

    .footer-app-inner {
        flex-direction: column;
    text-align: center;
        gap: 16px;
}

    .footer-app-text {
        justify-content: center;
}

    .footer-app-buttons {
        justify-content: center;
}

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        padding: 0 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
}

    .footer-brand {
        grid-column: 1;
    }

    .newsletter-input {
        padding: 12px 14px;
        font-size: 13px;
}

    .newsletter-btn {
        padding: 12px 20px;
        font-size: 13px;
}

    .app-badge img {
        height: 36px;
    }
}

@media (pointer: coarse) {
    .footer-links a {
        padding: 6px 0;
    }
    
    .footer-social-link {
        width: 40px;
        height: 40px;
    }
}

/* Responsive Design (legacy) */
@media (max-width: 992px) {
    .main-header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-bar {
        margin: 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Main Content Styles */
main {
    padding: 30px 0;
    min-height: 500px;
}

.page-heading {
    margin-bottom: 20px;
    color: #333;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    position: relative;
}

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

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

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.product-image .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-card:hover .product-image .primary-image {
    opacity: 0;
}

.product-card:hover .product-image .hover-image {
    opacity: 1;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 16px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.product-category {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.product-price {
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.product-gallery {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-main-image {
    margin-bottom: 20px;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumbnail-item {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail-item:hover,
.thumbnail-item.active {
    opacity: 1;
    border-color: #007bff;
}

.product-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-title-large {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-price-large {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 20px;
}

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

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

.product-meta p {
    margin-bottom: 5px;
}

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

.quantity-selector input {
    width: 60px;
    text-align: center;
    margin: 0 10px;
}

.quantity-selector button {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Cart Styles */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cart-table th {
    background-color: #f8f9fa;
}

.cart-product {
    display: flex;
    align-items: center;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

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

.cart-quantity {
    display: flex;
    align-items: center;
}

.cart-quantity input {
    width: 60px;
    text-align: center;
    margin: 0 10px;
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-coupon {
    display: flex;
    max-width: 400px;
}

.cart-coupon input {
    border-radius: 4px 0 0 4px;
    border-right: none;
}

.cart-coupon button {
    border-radius: 0 4px 4px 0;
}

.cart-totals {
    width: 400px;
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.cart-totals-table {
    width: 100%;
    margin-bottom: 20px;
}

.cart-totals-table th, .cart-totals-table td {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.cart-totals-table th {
    text-align: left;
}

.cart-totals-table td {
    text-align: right;
}

.cart-totals-table tr:last-child th, .cart-totals-table tr:last-child td {
    border-bottom: none;
    font-weight: bold;
    font-size: 18px;
}

.checkout-button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    background-color: #28a745;
}

.checkout-button:hover {
    background-color: #218838;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    padding: 30px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-actions {
    margin-top: 30px;
}

/* Home Page Specific Styles */
.hero-slider {
    margin-bottom: 30px;
    position: relative;
    height: 400px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s;
}

.hero-slide.active {
    opacity: 1;
}

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

.hero-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    max-width: 500px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

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

.section-title h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
}

.featured-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
}

.category-card {
    position: relative;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
}

.category-content h3 {
    margin-bottom: 5px;
}

.banner {
    margin-bottom: 50px;
    position: relative;
    height: 200px;
    border-radius: 4px;
    overflow: hidden;
}

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

.banner-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    max-width: 500px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.banner-content h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.banner-content p {
    margin-bottom: 15px;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Loading indicator for AJAX actions */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Alert messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 300px;
    z-index: 9999;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.3s ease-in-out;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

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