* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    color: #667eea;
    margin-bottom: 10px;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-primary {
    background: #667eea;
    color: white;
    width: 100%;
}

.btn-success {
    background: #25D366;
    color: white;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

.register-link {
    text-align: center;
    margin-top: 20px;
}

.navbar {
    background: #667eea;
    color: white;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 15px;
    font-size: 18px;
}

.product-card p {
    padding: 0 15px 10px;
    color: #666;
}

.price {
    color: #667eea;
    font-size: 20px;
    font-weight: bold;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.product-actions button {
    flex: 1;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.product-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-viewer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 1400px;
    margin: 30px auto;
}

.product-viewer .shop-logo-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.product-viewer h1 {
    font-size: 28px;
    margin-bottom: 5px;
    color: #333;
}

.product-viewer .shop-name {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-viewer .jewellery-price {
    font-size: 32px;
    font-weight: bold;
    color: #C9A961;
    margin: 15px 0;
}

.product-viewer .description {
    margin: 20px 0;
    line-height: 1.6;
    color: #666;
}

.main-image img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail:hover {
    border-color: #667eea;
}

.product-specs {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.product-specs p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.product-specs strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-size: 13px;
}

.catalogue-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.catalogue-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
}

.catalogue-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.catalogue-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.catalogue-info {
    padding: 15px;
}

.catalogue-header {
    background: #667eea;
    color: white;
    padding: 30px;
    text-align: center;
}

.shop-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
}

.image-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.image-preview img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

@media (max-width: 768px) {
    .product-viewer {
        grid-template-columns: 1fr;
    }
    
    .main-image img {
        max-height: 70vh;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 10px;
    }
    
    .products-grid,
    .catalogue-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .jewellery-card .product-actions {
        flex-direction: column;
        gap: 6px;
    }
    
    .jewellery-card .btn-small {
        width: 100%;
        padding: 8px;
        font-size: 12px;
    }
    
    /* Dashboard overlay always visible on mobile */
    .dashboard-actions-overlay {
        opacity: 0.95;
        background: rgba(0, 0, 0, 0.75);
    }
    
    .dashboard-actions-overlay .btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .products-grid,
    .catalogue-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .jewellery-card .product-actions {
        flex-direction: column;
        gap: 5px;
    }
    
    .jewellery-card .btn-small {
        width: 100%;
        padding: 6px;
        font-size: 11px;
    }
    
    .dashboard-actions-overlay .btn {
        font-size: 12px;
        padding: 6px 12px;
        max-width: 150px;
    }
}

/* Jewellery Catalogue Styles */
.catalogue-header {
    background: linear-gradient(135deg, #C9A961 0%, #8B7355 100%);
    color: white;
    padding: 25px 20px 20px;
    text-align: center;
    position: relative;
}

.catalogue-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 12px 0 18px;
    letter-spacing: 0.3px;
}

.shop-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin: 0 auto 12px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    display: block;
}

.rates-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 18px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rate-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rate-label {
    font-size: 11px;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.rate-value {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.catalogue-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.jewellery-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.jewellery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.jewellery-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f8f8f8;
}

.jewellery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

/* WhatsApp Share Button on Image */
.whatsapp-share-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.whatsapp-share-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.whatsapp-share-btn:active {
    transform: scale(0.95);
}

.whatsapp-share-btn svg {
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.jewellery-card:hover .jewellery-image img {
    transform: scale(1.05);
}

/* Dashboard Card Action Overlay */
.dashboard-card .jewellery-image {
    position: relative;
}

.dashboard-actions-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 5;
}

.dashboard-card:hover .dashboard-actions-overlay {
    opacity: 1;
}

.dashboard-actions-overlay .btn {
    width: 100%;
    max-width: 200px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.dashboard-actions-overlay .btn-primary {
    background: #667eea;
    color: white;
}

.dashboard-actions-overlay .btn-primary:hover {
    background: #5568d3;
    transform: scale(1.05);
}

.dashboard-actions-overlay .btn:not(.btn-primary):not(.btn-danger) {
    background: #6c757d;
    color: white;
}

.dashboard-actions-overlay .btn:not(.btn-primary):not(.btn-danger):hover {
    background: #5a6268;
    transform: scale(1.05);
}

.dashboard-actions-overlay .btn-danger {
    background: #dc3545;
    color: white;
}

.dashboard-actions-overlay .btn-danger:hover {
    background: #c82333;
    transform: scale(1.05);
}

.jewellery-info {
    padding: 8px;
    transition: all 0.3s ease;
}

.jewellery-info h3 {
    font-size: 14px;
    margin-bottom: 4px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

.jewellery-specs {
    display: flex;
    gap: 6px;
    margin: 6px 0;
    flex-wrap: wrap;
}

.spec-item {
    background: #f5f5f5;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #666;
}

.jewellery-price {
    font-size: 15px;
    font-weight: bold;
    color: #C9A961;
    margin: 6px 0 0 0;
}

.btn-share {
    width: 100%;
    padding: 10px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.btn-share:hover {
    background: #20BA5A;
}

@media (max-width: 768px) {
    .catalogue-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
        padding: 10px;
    }
    
    .jewellery-info h3 {
        font-size: 13px;
        margin-bottom: 3px;
    }
    
    .jewellery-price {
        font-size: 14px;
    }
    
    .jewellery-specs {
        gap: 4px;
        margin: 4px 0;
    }
    
    .spec-item {
        padding: 2px 6px;
        font-size: 10px;
    }
    
    .rates-banner {
        gap: 15px;
        flex-wrap: wrap;
    }
}

.rates-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 15px;
    background: #f8f8f8;
}

.rate-box {
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    font-weight: 600;
    color: #C9A961;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.product-meta {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.product-meta span {
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
}


.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.rate-box {
    font-size: 14px;
}

.rate-value {
    font-size: 16px;
}


.auto-calculated-rates {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 2px solid #C9A961;
}

.auto-calculated-rates h3 {
    margin-bottom: 15px;
    color: #C9A961;
    font-size: 18px;
}

.rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.rate-calc-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rate-calc-item strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.rate-calc-item span {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #C9A961;
}


/* Checkbox styling */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

label {
    cursor: pointer;
}

.overlay-preview {
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #C9A961;
}

.overlay-preview h4 {
    margin-bottom: 10px;
    color: #C9A961;
}

.overlay-sample {
    background: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 12px;
    line-height: 1.6;
}


/* Menu Button and Side Menu */
.menu-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
}

.menu-btn:active {
    transform: scale(0.98);
}

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1002;
    overflow-y: auto;
}

.side-menu.active {
    left: 0;
}

.menu-header {
    background: linear-gradient(135deg, #C9A961 0%, #8B7355 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h3 {
    margin: 0;
    font-size: 20px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
}

.menu-content {
    padding: 10px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.menu-item:hover {
    background: #f8f8f8;
}

.menu-item svg {
    flex-shrink: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1001;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.catalogue-header {
    position: relative;
}


/* Shop Profile Page */
.profile-container {
    min-height: 100vh;
    background: #f5f5f5;
}

.profile-header {
    background: linear-gradient(135deg, #C9A961 0%, #8B7355 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-content {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.profile-logo {
    text-align: center;
    margin-bottom: 20px;
}

.profile-logo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #C9A961;
}

.shop-title {
    text-align: center;
    color: #C9A961;
    margin-bottom: 30px;
    font-size: 24px;
}

.profile-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.profile-item:last-of-type {
    border-bottom: none;
}

.profile-item svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.profile-item label {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.profile-item p {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s;
}

.action-btn:hover {
    transform: translateY(-2px);
}

.call-btn {
    background: #4CAF50;
    color: white;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

@media (max-width: 768px) {
    .profile-content {
        padding: 15px;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .profile-actions {
        grid-template-columns: 1fr;
    }
}


/* Live Indicator */
.live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 20px;
    margin-right: 15px;
}

.live-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
}

.live-text {
    font-size: 11px;
    font-weight: bold;
    color: #ff0000;
    letter-spacing: 1px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    background: white;
    overflow-x: auto;
    white-space: nowrap;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    -webkit-overflow-scrolling: touch;
}

.category-filter::-webkit-scrollbar {
    height: 4px;
}

.category-filter::-webkit-scrollbar-thumb {
    background: #C9A961;
    border-radius: 4px;
}

.category-btn {
    padding: 8px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    flex-shrink: 0;
}

.category-btn:hover {
    border-color: #C9A961;
    color: #C9A961;
}

.category-btn.active {
    background: #C9A961;
    color: white;
    border-color: #C9A961;
}

/* Filter Toggle Button in Category Bar */
.filter-toggle-btn {
    padding: 8px 20px;
    border: 2px solid #C9A961;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #C9A961;
    transition: all 0.3s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.filter-toggle-btn:hover {
    background: #C9A961;
    color: white;
}

.filter-toggle-btn svg {
    flex-shrink: 0;
}

.filter-count {
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Filter Popup Modal */
.filter-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.filter-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.filter-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.filter-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #C9A961 0%, #8B7355 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.filter-popup-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-popup-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-popup-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.close-popup-btn svg {
    fill: white;
}

.filter-popup-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.filter-popup-footer {
    display: flex;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #e0e0e0;
    background: #f8f8f8;
    border-radius: 0 0 12px 12px;
}

.clear-filters-btn {
    flex: 1;
    padding: 12px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.apply-filters-btn {
    flex: 1;
    padding: 12px 20px;
    background: #C9A961;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.apply-filters-btn:hover {
    background: #8B7355;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group > label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    font-size: 15px;
}

.filter-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-inputs input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filter-inputs input:focus {
    outline: none;
    border-color: #C9A961;
}

.filter-inputs span {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.filter-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.filter-checkboxes label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    padding: 8px;
    border-radius: 6px;
    transition: background 0.2s;
}

.filter-checkboxes label:hover {
    background: #f8f8f8;
}

.filter-checkboxes input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #C9A961;
}

/* Masonry Grid for Different Image Sizes */
.masonry-grid {
    column-count: 4;
    column-gap: 15px;
    padding: 20px;
}

.masonry-grid .jewellery-card {
    break-inside: avoid;
    margin-bottom: 15px;
    display: inline-block;
    width: 100%;
}

.masonry-grid .jewellery-image {
    padding-bottom: 100%;
}

.masonry-grid .jewellery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobile Responsive Improvements */
@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 10px;
        padding: 10px;
    }
    
    .masonry-grid .jewellery-card {
        margin-bottom: 10px;
    }
    
    .whatsapp-share-btn {
        width: 28px;
        height: 28px;
        top: 6px;
        right: 6px;
    }
    
    .whatsapp-share-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .category-filter {
        padding: 10px 15px;
        gap: 8px;
    }
    
    .filter-popup {
        width: 95%;
        max-height: 90vh;
    }
    
    .filter-popup-header {
        padding: 15px;
    }
    
    .filter-popup-header h3 {
        font-size: 16px;
    }
    
    .filter-popup-content {
        padding: 15px;
    }
    
    .filter-group {
        margin-bottom: 15px;
    }
    
    .filter-inputs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-inputs span {
        text-align: center;
    }
    
    .filter-checkboxes {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .category-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .rates-banner {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        margin-top: 15px;
    }
    
    .live-badge {
        align-self: center;
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .rate-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 10px 15px;
        background: rgba(255, 255, 255, 0.15);
        border-radius: 8px;
        gap: 10px;
    }
    
    .rate-label {
        font-size: 10px;
    }
    
    .rate-value {
        font-size: 15px;
    }
    
    .catalogue-header {
        padding: 20px 15px 18px;
    }
    
    .catalogue-header h1 {
        font-size: 20px;
        margin: 10px 0 15px;
    }
    
    .shop-logo {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .menu-btn {
        width: 40px;
        height: 40px;
    }
    
    .catalogue-header h1 {
        font-size: 20px;
    }
    
    .shop-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 2;
        column-gap: 8px;
        padding: 8px;
    }
    
    .jewellery-info {
        padding: 6px;
    }
    
    .jewellery-info h3 {
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .jewellery-specs {
        gap: 3px;
        margin: 3px 0;
    }
    
    .spec-item {
        padding: 2px 5px;
        font-size: 9px;
    }
    
    .jewellery-price {
        font-size: 13px;
        margin: 4px 0 0 0;
    }
    
    .jewellery-price {
        font-size: 16px;
    }
    
    .btn-share {
        padding: 8px;
        font-size: 12px;
    }
    
    .rate-value {
        font-size: 14px;
    }
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .jewellery-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }
    
    .category-btn {
        min-height: 44px;
    }
    
    .menu-btn {
        min-width: 44px;
        min-height: 44px;
    }
}


/* Category Manager */
.category-manager {
    max-width: 800px;
    margin: 0 auto;
}

.add-category-form {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.add-category-form h3 {
    margin-bottom: 15px;
}

.add-category-form .form-row {
    display: flex;
    gap: 10px;
}

.add-category-form input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.categories-list {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.categories-list h3 {
    margin-bottom: 15px;
}

.category-table {
    width: 100%;
    border-collapse: collapse;
}

.category-table th,
.category-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #f0f0f0;
}

.category-table th {
    background: #f8f8f8;
    font-weight: 600;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.visible {
    background: #d4edda;
    color: #155724;
}

.status-badge.hidden {
    background: #f8d7da;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-name-display {
    font-weight: 500;
    color: #333;
}

.category-table input[type="text"] {
    padding: 6px 10px;
    border: 2px solid #667eea;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

.category-table input[type="text"]:focus {
    border-color: #5568d3;
}

/* Faster animations */
.menu-btn,
.category-btn,
.btn-share,
.action-btn {
    transition: all 0.15s ease;
}

.side-menu {
    transition: left 0.2s ease;
}

.menu-overlay {
    transition: all 0.2s ease;
}

.jewellery-info {
    transition: all 0.15s ease;
}


/* Bulk Upload Styles */
.bulk-upload-container {
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
}

.upload-instructions {
    background: linear-gradient(135deg, #C9A961 0%, #8B7355 100%);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.upload-instructions h3 {
    margin-bottom: 10px;
    font-size: 24px;
}

.upload-instructions p {
    margin-bottom: 15px;
    opacity: 0.95;
}

.upload-instructions ul {
    margin: 15px 0 0 20px;
    line-height: 1.8;
}

.upload-instructions li {
    margin: 8px 0;
}

.common-fields {
    background: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px solid #f0f0f0;
}

.common-fields h3 {
    margin-bottom: 10px;
    color: #C9A961;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.common-fields > p {
    margin-bottom: 25px;
    color: #666;
    font-size: 14px;
}

.bulk-preview-container {
    margin: 30px 0;
}

.bulk-preview-container > h3 {
    margin-bottom: 25px;
    color: #333;
    font-size: 20px;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.bulk-product-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 2px solid #f5f5f5;
    transition: all 0.2s;
}

.bulk-product-card:hover {
    border-color: #C9A961;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.2);
}

.bulk-product-image {
    position: relative;
}

.bulk-product-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #C9A961 0%, #8B7355 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.bulk-product-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group label {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 13px;
    color: #555;
}

.field-group input,
.field-group textarea,
.field-group select {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
}

.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
    border-color: #C9A961;
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.field-group textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 60px;
}

.btn-large {
    padding: 16px 40px;
    font-size: 17px;
    font-weight: 600;
    width: 100%;
    margin-top: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.2s;
}

.btn-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Image Upload Section */
.form-group[style*="background: white"] {
    border: 3px dashed #C9A961;
    background: #fffef8 !important;
    transition: all 0.2s;
}

.form-group[style*="background: white"]:hover {
    border-color: #8B7355;
    background: #fff !important;
}

.form-group input[type="file"] {
    padding: 15px;
    font-size: 15px;
    cursor: pointer;
    border: none;
    background: transparent;
}

.form-group label strong {
    font-size: 18px;
    color: #333;
}

.form-group small {
    color: #999;
    font-size: 13px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .bulk-upload-container {
        padding: 0 10px 30px;
    }
    
    .upload-instructions {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .upload-instructions h3 {
        font-size: 20px;
    }
    
    .upload-instructions ul {
        margin-left: 15px;
        font-size: 14px;
    }
    
    .common-fields {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .common-fields h3 {
        font-size: 18px;
        margin-bottom: 8px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .bulk-product-card {
        grid-template-columns: 1fr;
        padding: 15px;
        margin-bottom: 15px;
        gap: 15px;
    }
    
    .bulk-product-image img {
        height: 250px;
    }
    
    .field-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .field-group label {
        font-size: 14px;
    }
    
    .field-group input,
    .field-group textarea,
    .field-group select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px;
    }
    
    .btn-large {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    /* Bulk visibility controls mobile */
    .bulk-visibility-controls > div {
        padding: 15px !important;
    }
    
    .bulk-visibility-controls .toggle-option {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    
    .bulk-visibility-controls input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 480px) {
    .upload-instructions {
        padding: 15px;
    }
    
    .upload-instructions h3 {
        font-size: 18px;
    }
    
    .upload-instructions ul {
        font-size: 13px;
        margin-left: 12px;
    }
    
    .common-fields {
        padding: 15px;
    }
    
    .common-fields h3 {
        font-size: 16px;
    }
    
    .bulk-product-card {
        padding: 12px;
    }
    
    .bulk-product-image img {
        height: 200px;
    }
    
    .product-number {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .field-group input,
    .field-group textarea,
    .field-group select {
        padding: 10px;
    }
    
    .visibility-options {
        padding: 12px !important;
    }
    
    .checkbox-group {
        gap: 8px !important;
    }
    
    .checkbox-label {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
}


.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}


/* Field Toggle Styles */
.field-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.field-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.field-toggle label {
    cursor: pointer;
    font-weight: 600;
    margin: 0;
    font-size: 13px;
    color: #555;
}

.field-toggle input[type="checkbox"]:checked + label {
    color: #C9A961;
}

/* Auto-select text styling */
input:focus,
textarea:focus {
    outline: 2px solid #C9A961;
    outline-offset: 2px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-size: 14px;
    animation: slideDown 0.2s ease-out;
}

.alert-error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.alert-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    color: #004085;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* No Products Message */
.no-products-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #999;
    min-height: 300px;
}

.no-products-message svg {
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-products-message p {
    font-size: 18px;
    margin: 0;
    color: #666;
}

/* Profile Form Styles */
.profile-form {
    max-width: 900px;
    margin: 0 auto;
}

.form-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.form-section h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #C9A961;
    padding-bottom: 10px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-upload-box {
    text-align: center;
}

.photo-upload-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.photo-preview {
    width: 100%;
    height: 200px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-box input[type="file"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid #C9A961;
    outline-offset: 2px;
    border-color: #C9A961;
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #5a6268;
}

#map {
    border: 2px solid #ddd;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* Shop Profile Photos */
.shop-photos {
    margin-bottom: 20px;
}

.shop-photo-main {
    width: 100%;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.shop-photo-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.owner-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #C9A961;
}

.shop-map-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.shop-map-section h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 18px;
}

#shopMap {
    border: 2px solid #ddd;
}

/* Visibility Options in Bulk Upload */
.visibility-options {
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    margin-top: 10px;
}

.checkbox-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    user-select: none;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #C9A961;
    font-weight: 600;
}

/* Bulk Visibility Controls */
.bulk-visibility-controls .toggle-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
}

.bulk-visibility-controls .toggle-option:hover {
    border-color: #C9A961;
    background: #fffef8;
}

.bulk-visibility-controls .toggle-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
}

.bulk-visibility-controls .toggle-option input[type="checkbox"]:checked + span {
    color: #C9A961;
}

.bulk-visibility-controls .toggle-option span {
    user-select: none;
    color: #555;
}

/* Related Products Section */
.related-products-section {
    max-width: 1400px;
    margin: 50px auto 0;
    padding: 0;
    background: white;
}

.related-products-section .catalogue-container {
    padding: 30px 20px;
}

.related-products-section .masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding: 0;
}

.related-products-section .jewellery-card {
    cursor: pointer;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.related-products-section .jewellery-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #f8f8f8;
}

.related-products-section .jewellery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-products-section .jewellery-info {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-products-section .jewellery-info h3 {
    font-size: 14px;
    margin: 0;
    color: #333;
    line-height: 1.3;
}

.related-products-section .jewellery-specs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.related-products-section .jewellery-price {
    font-size: 15px;
    font-weight: bold;
    color: #C9A961;
    margin: 4px 0 0 0;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding: 15px 20px;
    border-bottom: 2px solid #e0e0e0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

.related-header.scrolled {
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.related-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.related-header h2 {
    font-size: 26px;
    margin: 0;
    color: #333;
}

.view-all-link {
    color: #C9A961;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
    white-space: nowrap;
}

.view-all-link:hover {
    color: #B8954A;
    transform: translateX(5px);
}

.related-header .filter-toggle-btn {
    margin-left: auto;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.related-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.related-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.related-product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f8f8;
    position: relative;
}

.related-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.related-product-card:hover .related-product-image img {
    transform: scale(1.15);
}

.related-product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.related-product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    min-height: 42px;
}

.related-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #C9A961;
    margin: 5px 0;
}

.related-product-meta {
    font-size: 13px;
    color: #999;
    margin: 0;
    display: flex;
    gap: 5px;
}

/* Mobile Responsive for Related Products */
@media (max-width: 768px) {
    .related-products-section {
        margin: 30px auto 0;
        padding: 0;
    }
    
    .related-products-section .catalogue-container {
        padding: 15px;
    }
    
    .related-products-section .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 10px;
    }
    
    .related-header {
        flex-wrap: wrap;
        padding: 12px 15px;
        gap: 10px;
    }
    
    .related-header-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .related-header h2 {
        font-size: 20px;
    }
    
    .related-header .filter-toggle-btn {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .view-all-link {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .related-products-section .catalogue-container {
        padding: 10px;
    }
    
    .related-products-section .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .related-products-grid {
        gap: 10px;
    }
    
    .related-product-image {
        height: 140px;
    }
}

@media (min-width: 1400px) {
    .related-products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Product Name Field Toggle */
.product-name-field,
.weight-field,
.price-field,
.size-field,
.description-field {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-name-field[style*="display: none"],
.weight-field[style*="display: none"],
.price-field[style*="display: none"],
.size-field[style*="display: none"],
.description-field[style*="display: none"] {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}

/* Mobile-specific improvements for Step 1 */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group select,
    .form-group input[type="number"] {
        width: 100%;
        font-size: 16px; /* Prevents iOS zoom */
        padding: 12px;
        border: 2px solid #ddd;
        border-radius: 8px;
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 12px;
    }
    
    .form-group input[type="number"] {
        background-image: none;
    }
    
    .field-toggle {
        margin-bottom: 10px;
        padding: 8px 0;
    }
    
    .field-toggle label {
        font-size: 14px;
    }
    
    .field-toggle input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
    
    /* Image upload section mobile */
    .form-group[style*="background: white"] {
        padding: 20px 15px !important;
        margin: 15px 0 !important;
    }
    
    .form-group input[type="file"] {
        padding: 12px;
        font-size: 14px;
        border: 2px dashed #C9A961;
        border-radius: 8px;
        background: #fffef8;
        cursor: pointer;
    }
    
    .form-group label strong {
        font-size: 16px;
        display: block;
        margin-bottom: 12px;
    }
    
    .form-group small {
        display: block;
        margin-top: 8px;
        font-size: 13px;
        color: #666;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .common-fields p {
        font-size: 13px;
    }
    
    .form-group select,
    .form-group input[type="number"] {
        padding: 10px;
    }
    
    .field-toggle label {
        font-size: 13px;
    }
}

/* Touch-friendly improvements */
@media (hover: none) and (pointer: coarse) {
    .field-toggle {
        min-height: 44px; /* iOS touch target */
        display: flex;
        align-items: center;
    }
    
    .field-toggle input[type="checkbox"] {
        min-width: 44px;
        min-height: 44px;
    }
    
    .form-group select,
    .form-group input {
        min-height: 44px;
    }
    
    .btn-large {
        min-height: 50px;
        font-size: 18px;
    }
}

/* Field Clear Notification */
.field-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.field-notification.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .field-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        text-align: center;
    }
}


/* Product Side Panel - Google Images Style */
.product-side-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    z-index: 9999;
    transition: right 0.3s ease;
}

.product-side-panel.active {
    right: 0;
}

.panel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.panel-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    max-width: 90%;
    height: 100%;
    background: white;
    z-index: 2;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
}

.panel-close-btn {
    position: sticky;
    top: 10px;
    right: 10px;
    float: right;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    transition: all 0.2s;
}

.panel-close-btn:hover {
    background: #000;
    transform: scale(1.1);
}

.panel-body {
    padding: 20px;
    clear: both;
}

.panel-loading {
    text-align: center;
    padding: 50px;
    color: #999;
    font-size: 18px;
}

.panel-product-details {
    padding: 20px 0;
}

.panel-images img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.panel-info h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

.panel-price {
    font-size: 32px;
    font-weight: bold;
    color: #C9A961;
    margin-bottom: 20px;
}

.panel-specs {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.panel-specs p {
    margin: 8px 0;
    font-size: 15px;
}

.panel-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #666;
}

.panel-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.panel-actions .btn {
    flex: 1;
    text-align: center;
    padding: 14px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .panel-content {
        width: 100%;
        max-width: 100%;
    }
}


/* Dashboard Product Cards - Consistent with Catalogue */
.products-grid.catalogue-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.jewellery-card .product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.jewellery-card .product-actions .btn-small {
    flex: 1;
    min-width: 60px;
    padding: 8px 10px;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s;
}

.jewellery-card .product-actions .btn-primary {
    background: #667eea;
    color: white;
}

.jewellery-card .product-actions .btn-primary:hover {
    background: #5568d3;
}

/* Product Code Badge on Cards */
.product-code-badge-card {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 255, 255, 0.85);
    color: #333;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    z-index: 5;
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .product-code-badge-card {
        font-size: 10px;
        padding: 2px 6px;
    }
}


/* Loading Indicator for Infinite Scroll */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 15px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C9A961;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #999;
    font-size: 14px;
    margin: 0;
}

/* No Products Message */
.no-products-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 15px;
    text-align: center;
}

.no-products-message p {
    color: #999;
    font-size: 16px;
    margin: 0;
}


/* Category Manager Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.