/* Ihe Holdings Limited - Main Stylesheet */
/* Color Scheme: Gold (#D4AF37), Off-White (#FAFAFA), Jet Black (#121212), Charcoal Black (#1C1C1C), Maroon (#861D1D), Blue-Gray (#4A4A6A), Light Gold (#E8C25A) */

/* 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: #121212;
    background-color: #FAFAFA !important;
}

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

/* Header and Navigation */
.navbar {
    background-color: #1C1C1C !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid #D4AF37 !important;
}

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

.nav-logo .logo {
    height: 50px;
    width: auto;
    max-width: 200px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: #FAFAFA;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #E8C25A;
    border-bottom-color: #E8C25A;
}

.nav-cart {
    position: relative;
    color: #FAFAFA;
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-count {
    background-color: #D4AF37;
    color: #121212;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #FAFAFA;
    cursor: pointer;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

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

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: #1C1C1C;
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid #333;
    padding: 8px 0;
    margin-top: 8px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #1C1C1C;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #FAFAFA;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid #333;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: #D4AF37;
    color: #121212;
    padding-left: 25px;
}

.dropdown-menu a:active {
    background-color: #E8C25A;
    color: #121212;
}

/* Settings dropdown specific styling */
.dropdown .nav-link {
    position: relative;
}

.dropdown .nav-link::after {
    content: ' ▾';
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Mobile responsive dropdown */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        background-color: transparent;
        width: 100%;
    }
    
    .dropdown-menu::before {
        display: none;
    }
    
    .dropdown-menu a {
        padding: 10px 30px;
        border-bottom: 1px solid #333;
        font-size: 0.9rem;
    }
    
    .dropdown-menu a:hover {
        background-color: #D4AF37;
        color: #121212;
        padding-left: 35px;
    }
}

/* Hero Sections */
.hero {
    background: linear-gradient(135deg, #D4AF37 0%, #861D1D 100%);
    color: #121212;
    padding: 140px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-shop {
    background: linear-gradient(135deg, #D4AF37 0%, #861D1D 100%);
}

.hero-affiliate {
    background: linear-gradient(135deg, #1C1C1C 0%, #D4AF37 100%);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    min-width: 150px;
    /* Enhanced touch interactions */
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.btn-primary {
    background-color: #D4AF37;
    color: #121212;
    border: 2px solid #D4AF37;
}

.btn-primary:hover {
    background-color: #E8C25A;
    border-color: #E8C25A;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: #121212;
    border: 2px solid #121212;
}

.btn-secondary:hover {
    background-color: #121212;
    color: #D4AF37;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #D4AF37;
    border: 2px solid #D4AF37;
}

.btn-outline:hover {
    background-color: #D4AF37;
    color: #121212;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: #1C1C1C;
    color: #FAFAFA;
    border: 2px solid #1C1C1C;
}

.btn-dark:hover {
    background-color: #121212;
    border-color: #121212;
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #121212;
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #4A4A6A;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Shop Styles */
.shop-hero {
    background: linear-gradient(135deg, #D4AF37 0%, #861D1D 100%);
    color: #121212;
    padding: 120px 0 80px;
    text-align: center;
}

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

.product-card {
    background: #FAFAFA;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #E5E5E5;
}

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

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #F5F5F5;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #121212;
    margin-bottom: 10px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 15px;
}

.product-description {
    color: #4A4A6A;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

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

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    background-color: #F5F5F5;
}

.product-detail-info h1 {
    font-size: 2.5rem;
    color: #121212;
    margin-bottom: 20px;
}

.product-detail-price {
    font-size: 2rem;
    color: #D4AF37;
    font-weight: 700;
    margin-bottom: 20px;
}

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

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

.quantity-input {
    width: 80px;
    padding: 10px;
    border: 2px solid #E5E5E5;
    border-radius: 5px;
    text-align: center;
    font-size: 1.1rem;
}

/* Cart Styles */
.cart-container {
    padding: 40px 0;
}

.cart-items {
    background: #FAFAFA;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid #E5E5E5;
    align-items: center;
}

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

.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background-color: #F5F5F5;
}

.cart-item-info h3 {
    color: #121212;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.cart-item-price {
    color: #D4AF37;
    font-weight: 600;
    font-size: 1.1rem;
}

.cart-item-quantity input {
    width: 60px;
    padding: 8px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    text-align: center;
}

.remove-item {
    background: none;
    border: none;
    color: #D4AF37;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-summary {
    background: #F8F9FA;
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: #121212;
    margin-bottom: 20px;
}

/* Checkout Styles */
.checkout-container {
    padding: 40px 0;
}

.checkout-form {
    background: #FAFAFA;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
}

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

/* Affiliate Styles */
.affiliate-hero {
    background: linear-gradient(135deg, #1C1C1C 0%, #D4AF37 100%);
    color: #121212;
    padding: 120px 0 80px;
    text-align: center;
}

.affiliate-features {
    background: #FAFAFA;
    padding: 80px 0;
}

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

.feature-card {
    background: #FAFAFA;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
    border-top: 4px solid #D4AF37;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #121212;
    margin-bottom: 15px;
}

.feature-card p {
    color: #4A4A6A;
    line-height: 1.6;
}

/* Admin Styles */
.admin-container {
    padding: 40px 0;
    min-height: calc(100vh - 80px);
}

.admin-login {
    max-width: 400px;
    margin: 100px auto;
    background: #FAFAFA;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.admin-dashboard {
    background: #FAFAFA;
    min-height: calc(100vh - 80px);
    padding: 40px 0;
}

/* Enhanced Admin Form Styles */
.admin-form {
    background: #FAFAFA;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 60px; /* Increased bottom margin for footer spacing */
    min-height: calc(100vh - 200px); /* Ensure minimum height */
}

.admin-form h3 {
    color: #121212;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    border-bottom: 2px solid #D4AF37;
    padding-bottom: 10px;
}

.admin-form .form-group {
    margin-bottom: 25px;
}

.admin-form .form-group label {
    display: block;
    color: #121212;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.admin-form .form-group input,
.admin-form .form-group select,
.admin-form .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E5E5E5;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fff;
}

.admin-form .form-group input:focus,
.admin-form .form-group select:focus,
.admin-form .form-group textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.admin-form .form-group small {
    color: #666;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* Admin Form Action Buttons */
.admin-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    margin-bottom: 60px;
    padding-top: 30px;
    border-top: 2px solid #D4AF37;
    justify-content: flex-start;
    align-items: center;
}

.admin-form-actions .btn {
    min-width: 150px;
    font-size: 1.1rem;
    padding: 15px 30px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.admin-form-actions .btn-primary {
    background-color: #D4AF37;
    color: #121212;
    border: 2px solid #D4AF37;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.admin-form-actions .btn-primary:hover {
    background-color: #E8C25A;
    border-color: #E8C25A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.admin-form-actions .btn-outline {
    background-color: transparent;
    color: #D4AF37;
    border: 2px solid #D4AF37;
}

.admin-form-actions .btn-outline:hover {
    background-color: #D4AF37;
    color: #121212;
    transform: translateY(-2px);
}

.admin-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* Admin Image Management Styles */
.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.admin-image-card {
    border: 1px solid #E5E5E5;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.admin-image-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.admin-image-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.admin-image-actions {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}

.admin-image-actions .btn {
    font-size: 0.8rem;
    padding: 5px 10px;
}

.admin-primary-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
    font-weight: 500;
}

.admin-btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.admin-btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.admin-btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Admin Image Management Page Specific Styles */
.admin-images-upload-section {
    margin-bottom: 30px;
}

.admin-images-current-section {
    min-height: 200px;
}

.admin-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.admin-empty-state p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.admin-empty-state p:last-child {
    margin-bottom: 0;
    font-size: 1rem;
    opacity: 0.8;
}

.admin-image-status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-image-status-primary {
    background: #28a745;
    color: white;
}

.admin-image-status-secondary {
    background: #6c757d;
    color: white;
}

.admin-image-meta {
    font-size: 0.8rem;
    color: #666;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

@media (max-width: 768px) {
    .admin-form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .admin-form {
        padding: 30px 20px;
    }
    
    .admin-image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
}

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

.dashboard-card {
    background: #FAFAFA;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 4px solid #D4AF37;
}

.dashboard-card h3 {
    color: #121212;
    font-size: 2rem;
    margin-bottom: 10px;
}

.dashboard-card p {
    color: #4A4A6A;
    font-size: 1.1rem;
}

/* Page Content */
.page-content {
    padding: 40px 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-content h1 {
    font-size: 2.5rem;
    color: #121212;
    margin-bottom: 20px;
}

.page-content h2 {
    font-size: 2rem;
    color: #121212;
    margin-bottom: 15px;
    margin-top: 30px;
}

.page-content p {
    color: #4A4A6A;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.page-content ul,
.page-content ol {
    color: #4A4A6A;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    padding-left: 30px;
}

/* Contact Form */
.contact-form {
    background: #FAFAFA;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 40px;
}

/* Footer */
footer {
    background-color: #1C1C1C;
    color: #FAFAFA;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #FAFAFA;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p,
.footer-section a {
    color: #CCCCCC;
    text-decoration: none;
    line-height: 1.6;
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: #E8C25A;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #4A4A6A;
    color: #4A4A6A;
}

/* Promo Banner Styles */
.promo-banner {
    background-color: #861D1D;
    color: #FAFAFA;
    padding: 15px 0;
    text-align: center;
    font-weight: 600;
    position: relative;
    z-index: 999;
}

.promo-banner a {
    color: #FAFAFA;
    text-decoration: none;
}

.promo-banner a:hover {
    color: #E8C25A;
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

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

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

.alert-warning {
    background-color: #861D1D;
    color: #FAFAFA;
    border: 1px solid #861D1D;
}

/* Enhanced Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #FAFAFA;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.mobile-menu-overlay.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #1C1C1C;
        box-shadow: -5px 0 20px rgba(0,0,0,0.3);
        flex-direction: column;
        padding: 80px 0 20px;
        gap: 0;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        display: flex;
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid #333;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        display: block;
        padding: 20px 30px;
        font-size: 1.1rem;
        border-bottom: none;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: #D4AF37;
        color: #121212;
        padding-left: 40px;
    }
    
    .nav-cart {
        padding: 20px 30px;
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-item {
        grid-template-columns: 80px 1fr;
        gap: 15px;
    }
    
    .cart-item-price,
    .cart-item-quantity,
    .remove-item {
        grid-column: 2;
    }
    
    .cart-item-quantity {
        margin-top: 10px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
}

/* Mobile-specific button enhancements */
@media (max-width: 768px) {
    .btn {
        min-height: 48px; /* Minimum touch target size */
        padding: 12px 24px;
        font-size: 1rem;
        min-width: 120px;
    }
    
    .btn-lg {
        min-height: 52px;
        padding: 16px 32px;
        font-size: 1.1rem;
    }
    
    /* Enhanced form inputs for mobile */
    .form-group input,
    .form-group select,
    .form-group textarea {
        min-height: 48px;
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }
    
    /* Touch-friendly navigation */
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    /* Improved cart interactions */
    .cart-item {
        padding: 15px;
        gap: 15px;
    }
    
    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    /* Better product card layout */
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-actions .btn {
        width: 100%;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 70px;
    }
    
    .main-content {
        margin-top: 70px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .checkout-form,
    .contact-form {
        padding: 30px 20px;
    }
    
    .admin-login {
        margin: 50px auto;
        padding: 30px 20px;
    }
    
    /* Extra small screens */
    .btn {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
}

/* Admin Products Table Specific Styles */
.admin-products-table {
    table-layout: fixed;
    width: 100%;
    min-width: 1000px; /* Ensure minimum width for proper display */
}

.admin-products-table th,
.admin-products-table td {
    padding: 12px 8px;
    vertical-align: middle;
}

.admin-products-table th:nth-child(1),
.admin-products-table td:nth-child(1) {
    width: 35%; /* Product column */
}

.admin-products-table th:nth-child(2),
.admin-products-table td:nth-child(2) {
    width: 15%; /* SKU column */
}

.admin-products-table th:nth-child(3),
.admin-products-table td:nth-child(3) {
    width: 12%; /* Price column */
}

.admin-products-table th:nth-child(4),
.admin-products-table td:nth-child(4) {
    width: 15%; /* Stock column */
}

.admin-products-table th:nth-child(5),
.admin-products-table td:nth-child(5) {
    width: 8%; /* Status column */
}

.admin-products-table th:nth-child(6),
.admin-products-table td:nth-child(6) {
    width: 15%; /* Actions column */
    min-width: 200px; /* Ensure enough space for buttons */
}

/* Small button styles for admin tables */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
    min-width: auto;
    border-radius: 4px;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: 1px solid #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Admin action buttons container */
.admin-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.admin-actions .btn {
    white-space: nowrap;
    min-width: 60px;
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Product image in table */
.admin-product-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.admin-product-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0; /* Allow text to wrap */
}

.admin-product-details {
    min-width: 0;
    flex: 1;
}

.admin-product-name {
    font-weight: 600;
    margin-bottom: 2px;
    word-break: break-word;
}

.admin-product-type {
    color: #666;
    font-size: 0.85rem;
    word-break: break-word;
}

/* Stock input styling */
.admin-stock-input {
    width: 70px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.875rem;
    text-align: center;
}

/* Status badges */
.admin-status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-status-active {
    background: #d4edda;
    color: #155724;
}

.admin-status-inactive {
    background: #fff3cd;
    color: #856404;
}

.admin-status-discontinued {
    background: #f8d7da;
    color: #721c24;
}

/* 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; }
.mb-40 { margin-bottom: 40px; }

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

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

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

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: 8px; }
.shadow { box-shadow: 0 5px 20px rgba(0,0,0,0.1); }

.text-primary { color: #D4AF37; }
.text-secondary { color: #4A4A6A; }
.text-dark { color: #121212; }
.text-light { color: #FAFAFA; }

.bg-primary { background-color: #D4AF37; }
.bg-secondary { background-color: #4A4A6A; }
.bg-light { background-color: #FAFAFA; }
.bg-white { background-color: #FAFAFA; }

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

.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #D4AF37;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Shop Filters */
.shop-filters {
    background-color: #FAFAFA;
    padding: 30px 0;
    margin-top: 100px;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #121212;
}

.filter-group input,
.filter-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
}

/* Products Grid */
.products {
    padding: 40px 0;
}

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

.products-sort select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

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

.product-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.product-badge.out-of-stock {
    background-color: #dc3545;
    color: white;
}

.product-badge.low-stock {
    background-color: #ffc107;
    color: #000;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 10px;
    color: #121212;
}

.product-price {
    font-size: 1.4em;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 10px;
}

.product-description {
    color: #4A4A6A;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #4A4A6A;
    margin-bottom: 15px;
}

.product-sku {
    font-weight: 500;
}

.product-stock {
    color: #28a745;
}

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

.product-actions .btn {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination .btn {
    padding: 8px 12px;
    min-width: 40px;
    text-align: center;
}

/* No Products */
.no-products {
    text-align: center;
    padding: 60px 20px;
}

.no-products h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #121212;
}

.no-products p {
    color: #4A4A6A;
    margin-bottom: 20px;
}

/* Product Detail Page */
.breadcrumb {
    background-color: #FAFAFA;
    padding: 15px 0;
    margin-top: 100px;
}

.breadcrumb-nav {
    font-size: 14px;
    color: #4A4A6A;
}

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

.breadcrumb-nav a:hover {
    color: #E8C25A;
    text-decoration: underline;
}

.product-detail {
    padding: 40px 0;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.product-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
}

.thumbnail-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #D4AF37;
}

.product-detail-info h1 {
    font-size: 2em;
    margin-bottom: 15px;
    color: #121212;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #4A4A6A;
}

.product-detail-price {
    font-size: 2.2em;
    font-weight: 700;
    color: #D4AF37;
    margin-bottom: 15px;
}

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

.in-stock {
    color: #28a745;
    font-weight: 600;
}

.out-of-stock {
    color: #dc3545;
    font-weight: 600;
}

.product-detail-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #121212;
}

.add-to-cart-form {
    margin-bottom: 30px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.quantity-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

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

.btn-lg {
    padding: 12px 30px;
    font-size: 1.1em;
}

.btn-disabled {
    background-color: #6c757d;
    color: white;
    cursor: not-allowed;
}

.message {
    padding: 10px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

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

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

/* Share Buttons */
.share-buttons {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.share-buttons h4 {
    margin-bottom: 15px;
    color: #121212;
}

.share-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background-color: #3b5998;
    color: white;
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn.whatsapp {
    background-color: #25d366;
    color: white;
}

.share-btn.copy {
    background-color: #6c757d;
    color: white;
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Product Tabs */
.product-tabs {
    background-color: #FAFAFA;
    padding: 40px 0;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
    margin-bottom: 30px;
}

.tab-button {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: #4A4A6A;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-button:hover {
    color: #E8C25A;
}

.tab-button.active {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

.tab-panel {
    display: none;
}

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

.tab-panel h3 {
    margin-bottom: 20px;
    color: #121212;
}

.tab-panel ul {
    list-style: none;
    padding: 0;
}

.tab-panel li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.tab-panel li:last-child {
    border-bottom: none;
}

/* Related Products */
.related-products {
    padding: 40px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2em;
    color: #121212;
}

/* Cart Page Styles */
.cart-section {
    padding: 40px 0;
    margin-top: 100px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #121212;
}

.empty-cart p {
    color: #4A4A6A;
    margin-bottom: 20px;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto auto;
    gap: 20px;
    align-items: center;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.item-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details h3 {
    font-size: 1.1em;
    margin-bottom: 5px;
    color: #121212;
}

.item-sku {
    font-size: 0.9em;
    color: #4A4A6A;
    margin-bottom: 5px;
}

.item-price {
    font-weight: 600;
    color: #D4AF37;
}

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

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

.quantity-form label {
    font-size: 0.9em;
    color: #4A4A6A;
}

.quantity-form input {
    width: 60px;
    padding: 5px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

.item-subtotal {
    text-align: right;
    font-weight: 600;
    color: #121212;
}

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

.cart-summary {
    background: #FAFAFA;
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.cart-summary h3 {
    margin-bottom: 20px;
    color: #121212;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 0;
}

.summary-row.total {
    border-top: 2px solid #D4AF37;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 1.1em;
}

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

.cart-actions .btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
}

/* Responsive Design for Shop and Product Pages */
@media (max-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Admin Products Table Mobile Responsive */
    .admin-products-table {
        min-width: 800px;
    }
    
    .admin-products-table th:nth-child(1),
    .admin-products-table td:nth-child(1) {
        width: 40%; /* Increase product column width on mobile */
    }
    
    .admin-products-table th:nth-child(2),
    .admin-products-table td:nth-child(2) {
        width: 12%; /* Reduce SKU column width */
    }
    
    .admin-products-table th:nth-child(3),
    .admin-products-table td:nth-child(3) {
        width: 10%; /* Reduce price column width */
    }
    
    .admin-products-table th:nth-child(4),
    .admin-products-table td:nth-child(4) {
        width: 12%; /* Reduce stock column width */
    }
    
    .admin-products-table th:nth-child(5),
    .admin-products-table td:nth-child(5) {
        width: 6%; /* Reduce status column width */
    }
    
    .admin-products-table th:nth-child(6),
    .admin-products-table td:nth-child(6) {
        width: 20%; /* Increase actions column width */
        min-width: 180px;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 3px;
    }
    
    .admin-actions .btn {
        min-width: 55px;
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .admin-product-info {
        gap: 8px;
    }
    
    .admin-product-image {
        width: 40px;
        height: 40px;
    }
    
    .admin-product-name {
        font-size: 0.9rem;
    }
    
    .admin-product-type {
        font-size: 0.8rem;
    }
    
    .admin-stock-input {
        width: 60px;
        font-size: 0.8rem;
    }
    
    /* Admin Form Mobile Responsive */
    .admin-form-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .admin-form-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    .admin-form {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
}
    
    .product-gallery {
        position: static;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
    }
    
    .products-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .share-links {
        flex-direction: column;
    }
    
    .tabs {
        flex-wrap: wrap;
    }
    
    .tab-button {
        flex: 1;
        min-width: 120px;
    }
    
    .cart-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }
    
    .item-image {
        justify-self: center;
    }
    
    .cart-summary {
        position: static;
    }
}

/* Admin Materials Page Styles */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #E5E5E5;
}

.page-header-content h1 {
    color: #1C1C1C;
    margin-bottom: 10px;
}

.page-header-actions {
    display: flex;
    gap: 15px;
}

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

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D4AF37, #E8C25A);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1C1C1C;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.9rem;
}

.filters-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 600;
    color: #1C1C1C;
}

.filter-group input,
.filter-group select {
    padding: 10px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 0.9rem;
}

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

.material-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.material-card:hover {
    transform: translateY(-2px);
}

.material-preview {
    height: 150px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.preview-icon {
    font-size: 3rem;
    color: #ccc;
}

.material-info {
    padding: 20px;
}

.material-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1C1C1C;
    margin-bottom: 10px;
}

.material-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.material-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.material-category,
.material-platform,
.material-dimensions {
    background: #f0f0f0;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.material-category {
    background: #D4AF37;
    color: white;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #1C1C1C;
}

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

.modal-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

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

.modal-header h2 {
    margin: 0;
    color: #1C1C1C;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #1C1C1C;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 0.9rem;
}

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

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    padding-top: 20px;
    border-top: 1px solid #E5E5E5;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-link {
    padding: 8px 12px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.2s ease;
}

.pagination-link:hover,
.pagination-link.active {
    background: #D4AF37;
    color: white;
    border-color: #D4AF37;
}

/* Responsive Design for Materials */
@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .filters-form {
        grid-template-columns: 1fr;
    }
    
    .materials-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
}

/* Current File Info Styles */
.current-file-info {
    background: #f8f9fa;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 10px;
}

.current-file-info strong {
    color: #1C1C1C;
    font-weight: 600;
}

.current-file-info div {
    line-height: 1.5;
    color: #666;
    font-size: 0.9rem;
}

/* Enhanced Materials System Styles */
.enhanced .material-card {
    position: relative;
    overflow: visible;
}

.version-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.analytics-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    display: flex;
    gap: 8px;
}

.material-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 500;
}

.material-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.material-actions .btn {
    font-size: 0.7rem;
    padding: 4px 8px;
}

/* Tabs */
.tabs {
    display: flex;
    border-bottom: 2px solid #E5E5E5;
    margin-bottom: 30px;
    gap: 0;
}

.tab-button {
    background: none;
    border: none;
    padding: 15px 25px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
}

.tab-button:hover,
.tab-button.active {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
    background: #f8f9fa;
}

.tab-content {
    display: none;
}

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

/* Collections */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.collection-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #E5E5E5;
}

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

.collection-header h3 {
    margin: 0;
    color: #1C1C1C;
    font-size: 1.1rem;
}

.collection-count {
    background: #D4AF37;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.collection-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.collection-materials {
    margin-bottom: 15px;
}

.collection-material {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    font-size: 0.8rem;
    color: #666;
}

.collection-material i {
    color: #D4AF37;
    width: 16px;
}

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

/* Analytics */
.analytics-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.analytics-table {
    overflow-x: auto;
}

.analytics-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.analytics-table th,
.analytics-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #E5E5E5;
}

.analytics-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1C1C1C;
}

.analytics-table tr:hover {
    background: #f8f9fa;
}

/* Bulk Upload */
.bulk-upload-area {
    border: 2px dashed #D4AF37;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bulk-upload-area:hover,
.bulk-upload-area.drag-over {
    border-color: #B8860B;
    background: #fff3cd;
}

.bulk-upload-area i {
    font-size: 3rem;
    color: #D4AF37;
    margin-bottom: 15px;
}

.bulk-upload-area h3 {
    margin: 0 0 10px 0;
    color: #1C1C1C;
}

.bulk-upload-area p {
    margin: 0;
    color: #666;
}

.bulk-upload-area button {
    background: #D4AF37;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.bulk-progress {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #E5E5E5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #E8C25A);
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #1C1C1C;
}

.bulk-results {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

/* Enhanced Material Cards */
.material-card.enhanced .material-preview {
    position: relative;
    overflow: hidden;
}

.material-card.enhanced .preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.material-card.enhanced:hover .preview-image {
    transform: scale(1.05);
}

/* File Type Icons */
.fa-file-image { color: #28a745; }
.fa-file-video { color: #dc3545; }
.fa-file-pdf { color: #dc3545; }
.fa-file-word { color: #007bff; }
.fa-file-powerpoint { color: #fd7e14; }
.fa-file-alt { color: #6c757d; }

/* Additional Mobile Optimizations */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
    }
    
    /* Improve text readability */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Better spacing for mobile */
    .container {
        padding: 0 16px;
    }
    
    /* Optimize tables for mobile */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Improve modal responsiveness */
    .modal-content {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
    }
    
    /* Better form layouts */
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Optimize product grids */
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    /* Better cart layout */
    .cart-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Improve admin tables */
    .admin-products-table {
        font-size: 0.8rem;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .admin-actions .btn {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 480px) {
    /* Even more compact layouts */
    .hero-content h1 {
        font-size: 1.6rem;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Compact forms */
    .checkout-form,
    .contact-form,
    .admin-form {
        padding: 20px 15px;
    }
    
    /* Smaller buttons for very small screens */
    .btn {
        min-height: 42px;
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Compact navigation */
    .nav-container {
        height: 60px;
    }
    
    .nav-logo .logo {
        height: 40px;
    }
    
    .main-content {
        margin-top: 60px;
    }
    
    /* Compact product cards */
    .product-card {
        margin-bottom: 15px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-title {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
}

/* Landscape orientation optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-container {
        height: 60px;
    }
    
    .main-content {
        margin-top: 60px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp text and images on retina displays */
    .nav-logo .logo,
    .product-image,
    .cart-item-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
