/* Village Vendor Plugin Styles */

/* ============================================================================
   MODERN DASHBOARD HEADER STYLES
   ============================================================================ */

/* Modern dashboard header layout */
.modern-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.header-right {
    display: flex;
    align-items: center;
    position: relative;
}

/* Profile button styling */
.profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.profile-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-icon {
    font-size: 18px;
    filter: grayscale(20%);
}

.profile-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* View Toggle Styles */
.view-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 4px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
}

.toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
    justify-content: center;
}

.toggle-btn:hover {
    color: #475569;
    background: rgba(255, 255, 255, 0.5);
}

.toggle-btn.active {
    background: #ffffff;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.toggle-icon {
    font-size: 16px;
    filter: grayscale(20%);
}

.toggle-btn.active .toggle-icon {
    filter: none;
}

.toggle-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    letter-spacing: 0.3px;
}

/* Responsive toggle styles */
@media (max-width: 768px) {
    .modern-dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-left, .header-right {
        justify-content: center;
    }
    
    .header-center {
        order: -1;
    }
    
    .view-toggle {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    
    .toggle-btn {
        min-width: auto;
        flex: 1;
        padding: 10px 16px;
    }
    
    .toggle-text {
        font-size: 13px;
    }
}

/* ADD button styling with gradient */
.add-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 25px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-btn:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.add-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.add-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

.add-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Popup menu styling */
.add-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 8px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 1px solid #e2e8f0;
}

.add-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Menu items styling */
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.menu-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #1f2937;
    transform: translateX(4px);
}

.menu-item:active {
    transform: translateX(2px);
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
}

.menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.menu-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    flex: 1;
}

/* Mobile responsiveness for modern header */
@media (max-width: 768px) {
    .modern-dashboard-header {
        padding: 15px 0;
        margin-bottom: 20px;
    }
    
    .profile-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .add-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .add-menu {
        min-width: 180px;
        right: -10px;
    }
    
    .menu-item {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .user-icon, .add-icon {
        font-size: 16px;
    }
    
    .menu-icon {
        font-size: 14px;
        width: 18px;
    }
    
    .popularity-badge {
        top: 8px;
        right: 8px;
        padding: 3px 6px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .modern-dashboard-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .header-left, .header-right {
        justify-content: center;
    }
    
    .add-menu {
        right: 50%;
        transform: translateX(50%) translateY(-10px);
    }
    
    .add-menu.show {
        transform: translateX(50%) translateY(0);
    }
}

/* ============================================================================
   REAL-TIME PROFILE UPDATE NOTIFICATION STYLES
   ============================================================================ */

/* Profile update notification */
.profile-update-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.profile-update-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 20px;
    animation: rotate 2s linear infinite;
}

.notification-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Profile update success message */
.profile-update-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(86, 171, 47, 0.3);
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 320px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.profile-update-success.show {
    transform: translateX(0);
    opacity: 1;
}

.success-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-icon {
    font-size: 18px;
    animation: pulse 1.5s ease-in-out infinite;
}

.success-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

/* Animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mobile responsiveness for notifications */
@media (max-width: 768px) {
    .profile-update-notification,
    .profile-update-success {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .profile-update-notification.show,
    .profile-update-success.show {
        transform: translateY(0);
    }
}

/* ============================================================================
   ENHANCED PRODUCT PRICE INPUT FIELD STYLES
   ============================================================================ */

/* Product Price Input - Enhanced Modern Styling */
#product_price {
    width: 100% !important;
    max-width: 300px;
    padding: 16px 20px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    background: linear-gradient(145deg, #ffffff, #f8fafc) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
    box-sizing: border-box;
}

#product_price::placeholder {
    color: #94a3b8;
    font-weight: 500;
    font-size: 15px;
}

#product_price:focus {
    border-color: #667eea !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 8px 20px rgba(102, 126, 234, 0.1) !important;
    background: #ffffff !important;
    transform: translateY(-2px);
}

#product_price:hover:not(:focus) {
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), inset 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transform: translateY(-1px);
}

/* Price Input Label Enhancement */
label[for="product_price"] {
    font-weight: 700 !important;
    color: #374151 !important;
    font-size: 15px !important;
    margin-bottom: 12px !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

label[for="product_price"]::before {
    content: "₹";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}

/* Price Input Container Enhancement */
.form-group:has(#product_price) {
    position: relative;
    margin-bottom: 28px !important;
}

.form-group:has(#product_price)::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 20%, #e2e8f0 80%, transparent 100%);
    border-radius: 1px;
}

/* Responsive Design for Price Input */
@media (max-width: 768px) {
    #product_price {
        max-width: 100%;
        padding: 14px 18px !important;
        font-size: 15px !important;
    }
    
    label[for="product_price"] {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    label[for="product_price"]::before {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    #product_price {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 10px !important;
    }
    
    label[for="product_price"] {
        font-size: 13px !important;
    }
    
    label[for="product_price"]::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

/* General Styles */
.village-vendor-dashboard {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Enhanced Auth Container Styles */
.village-vendor-auth-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: linear-gradient(145deg, #ffffff, #f5f7fa);
    position: relative;
    overflow: hidden;
}

.village-vendor-auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

/* ============================================================================
   URL ROUTING AND SHARE FUNCTIONALITY STYLES
   ============================================================================ */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumb-item {
    color: #6c757d;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.breadcrumb-item:hover {
    background: #e9ecef;
    color: #495057;
}

.breadcrumb-item.active {
    color: #007bff;
    font-weight: 600;
    background: #e7f3ff;
}

.breadcrumb-separator {
    color: #adb5bd;
    font-weight: normal;
    user-select: none;
}

/* Browser Header with Share Button */
.browser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Share Button */
.share-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.share-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.share-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

.share-icon {
    font-size: 16px;
    line-height: 1;
}

/* Share Toast Notification */
.share-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10000;
    max-width: 300px;
}

.share-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    font-size: 18px;
    line-height: 1;
}

.toast-message {
    font-size: 14px;
}

/* Responsive Design for Share Elements */
@media (max-width: 768px) {
    .breadcrumb-nav {
        padding: 8px 12px;
        font-size: 13px;
        margin-bottom: 16px;
    }
    
    .browser-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .browser-header h2 {
        margin: 0;
        text-align: center;
    }
    
    .header-actions {
        justify-content: center;
    }
    
    .share-button {
        padding: 10px 16px;
        font-size: 14px;
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
    
    .share-toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .share-toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .breadcrumb-nav {
        padding: 6px 8px;
        font-size: 12px;
        gap: 4px;
    }
    
    .breadcrumb-item {
        padding: 2px 6px;
    }
    
    .share-button {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .share-icon {
        font-size: 14px;
    }
}

.village-vendor-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.form-group {
    margin-bottom: 22px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 15px;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
    background-color: white;
}

.village-vendor-button {
    background: linear-gradient(145deg, #0073aa, #005c87);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    width: 100%;
    margin-top: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.village-vendor-button:hover {
    background: linear-gradient(145deg, #005c87, #004c70);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.village-vendor-button.secondary {
    background-color: #f7f7f7;
    color: #555;
    border: 1px solid #ccc;
    margin-left: 10px;
}

.village-vendor-button.secondary:hover {
    background-color: #e7e7e7;
    transform: translateY(-1px);
}

/* Delete button styles */
.village-vendor-delete-button {
    position: absolute;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    color: #e74c3c;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.delete-shop-button {
    top: 10px;
    right: 10px;
}

.delete-product-button {
    top: 10px;
    right: 10px;
}

.village-vendor-delete-button:hover {
    background-color: #e74c3c;
    color: white;
    transform: scale(1.1);
}

/* Deleting state */
.village-vendor-shop-card.deleting,
.village-vendor-product.deleting {
    opacity: 0.6;
    pointer-events: none;
}

.village-vendor-shop-card.deleting .village-vendor-delete-button,
.village-vendor-product.deleting .village-vendor-delete-button {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.village-vendor-button .button-icon {
    margin-right: 8px;
}

.message-container {
    margin-top: 20px;
    padding: 14px;
    border-radius: 8px;
    display: none;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-container.success {
    background-color: #e7f7ed;
    color: #0c6e3d;
    border: 1px solid #c3e6cb;
    display: block;
}

.message-container.error {
    background-color: #fbeaea;
    color: #a51b1b;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Auth Form Styles */
.village-vendor-form-wrapper {
    margin-bottom: 20px;
}

.village-vendor-form-wrapper .form-group {
    text-align: left;
}

.village-vendor-form-wrapper .form-group label {
    text-align: left;
    display: block;
}

.auth-form-title {
    margin: 0 0 30px 0;
    color: #1e293b;
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.auth-form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

.village-vendor-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: none;
    position: relative;
    justify-content: center;
    gap: 10px;
}

.village-vendor-tab {
    padding: 12px 30px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.village-vendor-tab.active {
    color: white;
    border-bottom: none;
    background-color: #0073aa;
    box-shadow: 0 4px 10px rgba(0, 115, 170, 0.3);
}

.village-vendor-tab:hover:not(.active) {
    color: #0073aa;
    background-color: rgba(0, 115, 170, 0.08);
    transform: translateY(-2px);
}

.village-vendor-tab-content {
    display: none;
}

.village-vendor-tab-content.active {
    display: block;
}

/* Enhanced Dashboard Styles */
.village-vendor-dashboard {
    max-width: 1200px;
    padding: 40px 30px;
    margin: 0 auto;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background-color: #f8fafc;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.village-vendor-dashboard::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #2563eb);
    z-index: 1;
}

.village-vendor-dashboard h2 {
    margin-bottom: 35px;
    color: #1e293b;
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.village-vendor-dashboard h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

/* Shop Cards Grid */
.village-vendor-shops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Shop Card Styles */
.village-vendor-shop-card {
    height: 240px;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

/* Personal Popularity Badge Styles - Hidden */
.popularity-badge {
    display: none !important;
}

/* Apply gradient backgrounds to shop cards */
.village-vendor-shop-card:nth-child(8n+1) {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.village-vendor-shop-card:nth-child(8n+2) {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.village-vendor-shop-card:nth-child(8n+3) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.village-vendor-shop-card:nth-child(8n+4) {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.village-vendor-shop-card:nth-child(8n+5) {
    background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
}

.village-vendor-shop-card:nth-child(8n+6) {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
}

.village-vendor-shop-card:nth-child(8n+7) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.village-vendor-shop-card:nth-child(8n+8) {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.village-vendor-shop-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.village-vendor-shop-card-content {
    height: 100%;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.village-vendor-shop-card-content h3 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.village-vendor-shop-card-content p {
    margin: 10px 0 0;
    font-size: 16px;
    opacity: 0.95;
    max-width: 90%;
    line-height: 1.5;
}

.village-vendor-shop-card-icon {
    font-size: 40px;
    margin-top: auto;
    align-self: flex-end;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.village-vendor-shop-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(79, 70, 229, 0.2);
    backdrop-filter: blur(3px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.village-vendor-shop-card-overlay span {
    background-color: rgba(255, 255, 255, 0.95);
    color: #1e293b;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

.village-vendor-shop-card:hover .village-vendor-shop-card-overlay {
    opacity: 1;
}

.village-vendor-shop-card:hover .village-vendor-shop-card-overlay span {
    transform: translateY(0);
}

/* Shop Detail View - Redesigned */
.village-vendor-shop-detail {
    display: none;
    background-color: white;
    border-radius: 20px;
    padding: 32px;
    margin-top: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
}

.village-vendor-shop-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

/* ============================================================================
   MODERN SHOP DETAIL HEADER - CARD DESIGN
   ============================================================================ */

.village-vendor-shop-detail-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.village-vendor-shop-detail-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    z-index: 1;
}

.village-vendor-shop-detail-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Header Left Side - Shop Info with Icon */
.village-vendor-shop-detail-left {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 1;
}


.village-vendor-shop-detail-title {
    flex: 1;
}

.village-vendor-shop-detail-title h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.8px;
    line-height: 1.2;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shop-owner-info {
    margin: 8px 0 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shop-owner-name {
    color: #64748b;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}


/* Header Right Side - Action Buttons */
.village-vendor-shop-detail-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

/* Primary Action Button - Add Product */
.add-product-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    text-transform: none;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
    min-width: 160px;
    justify-content: center;
}

.add-product-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.add-product-button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.add-product-button:hover::before {
    left: 100%;
}

.add-product-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.add-product-icon {
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
}

/* Secondary Action Button - Return to Dashboard */
.village-vendor-back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #64748b;
    border: 2px solid #e2e8f0;
    border-radius: 50px;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: 0.2px;
    min-width: 140px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.village-vendor-back-button::before {
    content: "←";
    margin-right: 6px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.village-vendor-back-button:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.village-vendor-back-button:hover::before {
    transform: translateX(-2px);
}

.village-vendor-back-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.village-vendor-back-button {
    display: inline-flex;
    align-items: center;
}

.village-vendor-back-button:before {
    content: "←";
    margin-right: 8px;
    font-size: 18px;
}

/* Empty state */
.village-vendor-empty-state {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin: 30px 0;
}

.village-vendor-empty-state h3 {
    margin: 0 0 15px;
    color: #333;
    font-size: 22px;
}

.village-vendor-empty-state p {
    color: #666;
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .village-vendor-auth-container {
        padding: 20px;
        margin: 20px auto;
    }
    
    .village-vendor-form {
        padding: 20px;
    }
    
    .village-vendor-tab {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Tablet Responsive Design */
@media (max-width: 1024px) and (min-width: 769px) {
    .village-vendor-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .village-vendor-shops-grid {
        grid-template-columns: 1fr;
    }
    
    /* Shop Detail Responsive */
    .village-vendor-shop-detail {
        padding: 24px;
        margin-top: 24px;
    }
    
    .village-vendor-shop-detail-header {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
        margin-bottom: 24px;
        padding: 24px;
    }
    
    .village-vendor-shop-detail-left {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .village-vendor-shop-detail-title h3 {
        font-size: 28px;
    }
    
    .village-vendor-shop-detail-actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }
    
    .add-product-button,
    .village-vendor-back-button {
        width: 100%;
        min-width: auto;
        padding: 16px 24px;
    }
}

/* Products Grid - Fully Responsive Design */
.village-vendor-products {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    overflow: visible;
}

/* Product Card - Modern Design */
.village-vendor-product {
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-radius: 16px;
    background-color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    min-height: 320px;
}

.village-vendor-product::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: 1;
}

.village-vendor-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

.village-vendor-product:hover::before {
    transform: scaleX(1);
}

/* Product Image - Responsive & Consistent */
.village-vendor-product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 16px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.village-vendor-product:hover .village-vendor-product-image {
    transform: scale(1.02);
}

/* Product Details - Enhanced Typography */
.village-vendor-product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.village-vendor-product-details h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    letter-spacing: -0.2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.village-vendor-product-details p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.village-vendor-product-price {
    font-weight: 700;
    color: #667eea;
    font-size: 18px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 4px;
}

.village-vendor-product-price::before {
    content: '₹';
    font-size: 16px;
    opacity: 0.8;
}

.village-vendor-no-products {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.loading {
    text-align: center;
    padding: 24px;
    color: #666;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading:before {
    content: "";
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #ddd;
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Product Image Upload and Preview Styles */
.product-images-container {
    margin-bottom: 20px;
}

.product-image-preview-container {
    margin-bottom: 15px;
}

.product-image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

/* Modern File Upload Section */
.product-image-upload {
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.product-image-upload:hover {
    border-color: #0073aa;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 115, 170, 0.1);
}

.product-image-upload::before {
    content: '📸';
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.product-image-upload:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.product-image-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.product-image-upload .upload-label {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    pointer-events: none;
}

.product-image-upload .upload-sublabel {
    display: block;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
    pointer-events: none;
}

.product-image-upload .upload-button {
    display: inline-block;
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
}

.product-image-upload:hover .upload-button {
    background: linear-gradient(135deg, #005a87 0%, #004666 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.3);
}

.product-image-upload .help-text {
    font-size: 13px;
    color: #64748b;
    margin: 8px 0 0 0;
    line-height: 1.4;
    pointer-events: none;
}

.product-image-upload .help-text:first-of-type {
    margin-top: 16px;
}

/* Upload section when files are selected */
.product-image-upload.has-files {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
}

.product-image-upload.has-files::before {
    content: '✅';
}

.product-image-upload.has-files .upload-label {
    color: #059669;
}

/* Responsive design for upload section */
@media (max-width: 768px) {
    .product-image-upload {
        padding: 24px 16px;
    }
    
    .product-image-upload::before {
        font-size: 36px;
        margin-bottom: 12px;
    }
    
    .product-image-upload .upload-label {
        font-size: 16px;
    }
    
    .product-image-upload .upload-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Selected Image Preview */
.selected-image-preview {
    margin-top: 20px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.selected-image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.selected-image-preview img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .selected-image-preview {
        padding: 12px;
        margin-top: 16px;
    }
    
    .selected-image-preview img {
        max-height: 200px;
    }
}

.product-image-preview {
    position: relative;
    width: 90px;
    height: 90px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-image-preview:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.product-image-preview.selected {
    border: 2px solid #0073aa;
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.product-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 10px;
    padding: 3px 5px;
    text-align: center;
}

.selected-image-preview {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.selected-image-preview img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

/* Product Gallery Styles */
.village-vendor-product-gallery {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 15px;
}

.village-vendor-product-featured-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.village-vendor-product-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.village-vendor-product-thumbnail {
    width: 50px;
    height: 50px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #ddd;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.village-vendor-product-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.village-vendor-product-thumbnail[data-featured="true"] {
    border: 2px solid #0073aa;
}

/* Add Product Form */
#village-vendor-add-product-form {
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background-color: white;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

#village-vendor-add-product-form h3 {
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

#village-vendor-add-product-form h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
}

/* Form Elements Enhancement */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #475569;
    font-size: 15px;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 16px;
    background-color: #f8fafc;
    color: #1e293b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Form note styling */
.form-note {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    line-height: 1.4;
}

/* Button styling */
.village-vendor-button {
    background: linear-gradient(145deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 16px 28px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    width: 100%;
    margin-top: 15px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}

.village-vendor-button:hover {
    background: linear-gradient(145deg, #4338ca, #6d28d9);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.village-vendor-button:active {
    transform: translateY(-1px);
}

.village-vendor-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.village-vendor-button:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

.village-vendor-button.secondary {
    background: white;
    color: #4f46e5;
    border: 1px solid #e2e8f0;
    margin-left: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.village-vendor-button.secondary:hover {
    background-color: #f8fafc;
    border-color: #4f46e5;
    color: #4338ca;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

/* Add New Shop Button Enhancement */
#add-shop-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#add-shop-button:before {
    content: "➕";
    margin-right: 8px;
    font-size: 16px;
}

#add-shop-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Add Product Button Enhancement */
.add-product-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.add-product-button:before {
    content: "➕";
    margin-right: 8px;
    font-size: 14px;
}

/* Responsive Styles */
/* Mobile Responsive Design */
@media (max-width: 768px) {
    .village-vendor-shop-detail {
        padding: 20px;
        margin-top: 20px;
        border-radius: 16px;
    }
    
    .village-vendor-shop-detail-header {
        margin-bottom: 20px;
        padding: 20px;
    }
    
    .village-vendor-shop-detail-left {
        gap: 12px;
    }
    
    .village-vendor-shop-detail-title h3 {
        font-size: 24px;
    }
    
    .shop-owner-name {
        font-size: 14px;
    }
    
    
    .add-product-button,
    .village-vendor-back-button {
        padding: 12px 20px;
        font-size: 13px;
    }
    
    .add-product-icon {
        font-size: 16px;
    }
    
    .village-vendor-shop-detail-title h3 {
        font-size: 24px;
    }
    
    /* Products Grid - Mobile (1 column) */
    .village-vendor-products {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .village-vendor-product {
        padding: 16px;
        min-height: 280px;
    }
    
    .village-vendor-product-image {
        aspect-ratio: 1 / 1;
        margin-bottom: 12px;
    }
    
    .village-vendor-button {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .village-vendor-button.secondary {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .village-vendor-product {
        flex-direction: column;
    }
    
    .village-vendor-product-gallery {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .village-vendor-product-featured-image {
        width: 100%;
        height: 200px;
    }
    
    .village-vendor-shop-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .village-vendor-shop-header .add-product-button {
        margin-top: 12px;
        width: 100%;
    }
    
    .village-vendor-tabs {
        flex-direction: column;
    }
    
    .village-vendor-tab {
        width: 100%;
        text-align: center;
    }
}

/* Village Shop Browser Styles */
.village-shop-browser {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.village-browser-container {
    display: none;
}

/* Like/Dislike System Styles */
.vote-buttons {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.vote-button {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 5px 8px;
    margin-right: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.vote-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.vote-button.active-like {
    color: #4CAF50;
    font-weight: bold;
}

.vote-button.active-dislike {
    color: #F44336;
    font-weight: bold;
}

.vote-count {
    margin-left: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #4CAF50; /* Green color for vote counts */
}

.vote-button-icon {
    font-size: 18px;
    margin-right: 2px;
}

.village-browser-container.active {
    display: block;
}

.browser-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* Search container styles */
.search-container {
    width: 100%;
    padding: 16px 20px;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-container:hover::after {
    opacity: 1;
}

.search-container.sticky {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Search icon for single input */
.search-container::before {
    content: '';
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.search-container:focus-within::before {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.1);
}


/* Modern search input field */
.search-input {
    width: 100%;
    max-width: 500px;
    padding: 16px 24px 16px 64px;
    border: 2px solid transparent;
    border-radius: 9999px; /* rounded-full */
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
    box-sizing: border-box;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    letter-spacing: 0.025em;
}

/* Placeholder styling - lighter gray */
.search-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
    font-style: normal;
    opacity: 1;
}

/* Hover effects */
.search-input:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

/* Focus effects - smooth and modern */
.search-input:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 8px 24px rgba(102, 126, 234, 0.12);
    transform: translateY(-2px);
}

/* Active state */
.search-input:active {
    transform: translateY(-1px);
}

/* Responsive design for single search input */
@media (min-width: 1024px) {
    .search-container {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        padding: 20px 24px;
    }
    
    .search-input {
        max-width: 600px;
        padding: 18px 28px 18px 68px;
        font-size: 17px;
    }
    
    .search-container::before {
        left: 40px;
        width: 22px;
        height: 22px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .search-container {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
        padding: 18px 22px;
    }
    
    .search-input {
        max-width: 500px;
        padding: 16px 24px 16px 64px;
        font-size: 16px;
    }
}

@media (max-width: 767px) {
    .search-container {
        margin: 0 16px 24px 16px;
        padding: 16px 20px;
        border-radius: 20px;
        width: auto;
    }
    
    .search-input {
        max-width: none;
        padding: 14px 20px 14px 56px;
        font-size: 16px; /* Prevent zoom on iOS */
        border-radius: 50px;
    }
    
    .search-container::before {
        left: 32px;
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .search-container {
        margin: 0 12px 20px 12px;
        padding: 12px 16px;
        border-radius: 18px;
    }
    
    .search-input {
        padding: 12px 18px 12px 48px;
        font-size: 16px;
        border-radius: 40px;
    }
    
    .search-container::before {
        left: 28px;
        width: 16px;
        height: 16px;
    }
}


.no-results-message {
    text-align: center;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 8px;
    margin: 20px 0;
    color: #666;
    font-size: 16px;
}

.browser-header h2 {
    margin: 0;
    font-size: 28px;
    color: #333;
}

/* Village Cards Grid */
.village-cards-grid,
.shop-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Village Card Styles */
.village-card,
.shop-card {
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.village-card:hover,
.shop-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.village-card-content,
.shop-card-content {
    height: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.shop-view-count {
    display: flex;
    align-items: center;
    margin-top: 5px;
    font-size: 14px;
    color: black !important;
}

.view-count-icon {
    margin-right: 5px;
    font-size: 0.9em;
    font-weight: normal;
}

.village-card-content h3,
.shop-card-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
}

/* Village ZIP code styling */
.village-zip-code {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

/* Village State styling */
.village-state {
    font-size: 14px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 12px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
}

.shop-card-content p {
    margin: 10px 0 0;
    color: black;
    text-shadow: none;
}

.village-card-icon,
.shop-card-icon {
    font-size: 36px;
    margin-top: auto;
    align-self: flex-end;
}

.village-card-overlay,
.shop-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.village-card-overlay span,
.shop-card-overlay span {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.village-card:hover .village-card-overlay,
.shop-card:hover .shop-card-overlay {
    opacity: 1;
}

.village-card:hover .village-card-overlay span,
.shop-card:hover .shop-card-overlay span {
    transform: translateY(0);
}

/* Gradient Backgrounds */
.gradient-1 {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #ff9a9e 0%, #fad0c4 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-4 {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.gradient-5 {
    background: linear-gradient(135deg, #0ba360 0%, #3cba92 100%);
}

.gradient-6 {
    background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%);
}

.gradient-7 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.gradient-8 {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* ============================================================================
   THEME-INDEPENDENT PRODUCT LAYOUT SYSTEM
   ============================================================================ */

/* Product Cards Grid - Isolated & Theme-Independent */
.product-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 24px !important;
    margin: 30px 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Product Card Container - Flexbox Column Layout */
.product-card {
    display: flex !important;
    flex-direction: column !important;
    background-color: #ffffff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.product-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12) !important;
    transform: translateY(-2px) !important;
    border-color: #d0d0d0 !important;
}

/* Product Gallery Container - Fixed Aspect Ratio */
.product-gallery {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    background-color: #f9f9f9 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

/* Product Image Container - Fixed 1:1 Aspect Ratio */
.product-image {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important;
    position: relative !important;
    background-color: #f5f5f5 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    overflow: hidden !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: zoom-in !important;
    transition: transform 0.2s ease !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.product-image:hover {
    transform: scale(1.02) !important;
}

/* Zoom hint indicator */
.product-image::after {
    content: '🔍' !important;
    position: absolute !important;
    bottom: 12px !important;
    right: 12px !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
    padding: 6px 10px !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.product-image:hover::after {
    opacity: 1 !important;
}

/* Product Image Element - Absolute Positioning */
.product-image img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Navigation Arrows */
.product-image-nav {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

.product-image-nav-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 18px !important;
    color: #333 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
    pointer-events: auto !important;
    z-index: 11 !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.product-image-nav-arrow:hover {
    background-color: rgba(255, 255, 255, 0.95) !important;
    transform: translateY(-50%) scale(1.1) !important;
}

.product-image-nav-arrow.prev {
    left: 8px !important;
}

.product-image-nav-arrow.next {
    right: 8px !important;
}

/* Product Thumbnails Container */
.product-thumbnails {
    display: flex !important;
    gap: 8px !important;
    padding: 12px !important;
    background-color: #f5f5f5 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: thin !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 0 !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    border-top: 1px solid #e5e5e5 !important;
}

.product-thumbnails::-webkit-scrollbar {
    height: 4px !important;
}

.product-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
}

.product-thumbnails::-webkit-scrollbar-thumb {
    background: #999 !important;
    border-radius: 4px !important;
}

/* Product Thumbnail Item */
.product-thumbnail {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    min-height: 50px !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    border: 2px solid transparent !important;
    flex-shrink: 0 !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.product-thumbnail.active {
    border-color: #0073aa !important;
    transform: scale(1.05) !important;
}

.product-thumbnail:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
}

.product-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

/* Product Details Container */
.product-details {
    display: flex !important;
    flex-direction: column !important;
    padding: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background-color: #ffffff !important;
    margin: 0 !important;
    flex-grow: 1 !important;
    position: relative !important;
}

/* Product Title */
.product-details h3 {
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-size: 16px !important;
    color: #1a1a1a !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    display: block !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Product Description */
.product-description {
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    color: #666666 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    max-height: 60px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    word-wrap: break-word !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
}

/* Product Price */
.product-price {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    font-weight: 700 !important;
    color: #0073aa !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    border: none !important;
    background: none !important;
    display: block !important;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS - TABLET & MOBILE\n   ============================================================================ */

/* Tablet Responsive (1024px and below) */
@media (max-width: 1024px) {
    .product-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 20px !important;
    }
    
    .product-card {
        display: flex !important;
        flex-direction: column !important;
    }
    
    .product-gallery {
        order: 1 !important;
    }
    
    .product-image {
        order: 1 !important;
    }
    
    .product-thumbnails {
        order: 2 !important;
    }
    
    .product-details {
        order: 3 !important;
    }
}

/* Mobile Responsive (768px and below) */
@media (max-width: 768px) {
    .product-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin: 20px 0 !important;
    }
    
    .product-card {
        border-radius: 10px !important;
    }
    
    .product-details {
        padding: 14px !important;
    }
    
    .product-details h3 {
        font-size: 15px !important;
        margin-bottom: 8px !important;
    }
    
    .product-price {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .product-description {
        font-size: 12px !important;
        max-height: 50px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
    
    .product-thumbnails {
        padding: 8px !important;
        gap: 6px !important;
    }
    
    .product-thumbnail {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    .product-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin: 16px 0 !important;
    }
    
    .product-card {
        border-radius: 8px !important;
    }
    
    .product-details {
        padding: 12px !important;
    }
    
    .product-details h3 {
        font-size: 14px !important;
        margin-bottom: 6px !important;
    }
    
    .product-price {
        font-size: 15px !important;
        margin-bottom: 10px !important;
    }
    
    .product-description {
        font-size: 11px !important;
        max-height: 40px !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
    
    .product-thumbnails {
        padding: 6px !important;
        gap: 4px !important;
    }
    
    .product-thumbnail {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
    }
}

/* ============================================================================
   ACTION BUTTONS - THEME INDEPENDENT
   ============================================================================ */

/* Add to Cart Button */
.cart-button,
.add-to-cart-btn,
.product-action-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 16px !important;
    margin: 8px 0 !important;
    background: linear-gradient(145deg, #28a745, #218838) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
    outline: none !important;
    user-select: none !important;
}

.cart-button:hover,
.add-to-cart-btn:hover,
.product-action-button:hover {
    background: linear-gradient(145deg, #218838, #1e7e34) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3) !important;
    text-decoration: none !important;
    color: #ffffff !important;
}

/* WhatsApp Button */
.whatsapp-button,
.order-whatsapp-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px 16px !important;
    margin: 8px 0 !important;
    background-color: #25D366 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    gap: 8px !important;
    box-sizing: border-box !important;
    min-height: 44px !important;
    outline: none !important;
    user-select: none !important;
}

.whatsapp-button:hover,
.order-whatsapp-btn:hover {
    background-color: #128C7E !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3) !important;
    text-decoration: none !important;
    color: #ffffff !important;
}

.whatsapp-button .button-icon,
.order-whatsapp-btn .button-icon,
.cart-button .button-icon,
.add-to-cart-btn .button-icon {
    font-size: 16px !important;
    margin: 0 !important;
}

/* WhatsApp Integration Styles */
.whatsapp-input-container {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.country-code {
    background-color: #f5f5f5 !important;
    padding: 10px !important;
    border: 1px solid #ddd !important;
    border-right: none !important;
    border-radius: 6px 0 0 6px !important;
    color: #333 !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
}

.whatsapp-input-container input {
    border-radius: 0 6px 6px 0 !important;
    flex: 1 !important;
    box-sizing: border-box !important;
}

/* WhatsApp Button Enhancements */
.whatsapp-button {
    width: 100%;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    border-radius: 8px;
    padding: 10px 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    box-sizing: border-box;
}

.whatsapp-button:hover {
    background-color: #128C7E; /* Darker WhatsApp green */
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.whatsapp-button .button-icon {
    margin-right: 8px;
    font-size: 18px;
}

/* Responsive adjustments for product cards */
@media (max-width: 768px) {
    .product-card {
        display: flex;
        flex-direction: column;
    }
    
    .product-details {
        padding: 15px;
    }
    
    .whatsapp-button {
        padding: 12px 15px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-card {
        margin-bottom: 20px;
    }
    
    .product-details h3 {
        font-size: 18px;
    }
    
    .product-description {
        font-size: 14px;
    }
    
    .whatsapp-button {
        padding: 10px;
    }
}

/* Cart System Styles */
.cart-button {
    background: linear-gradient(145deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    text-decoration: none;
}

.cart-button:hover {
    background: linear-gradient(145deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
    text-decoration: none;
    color: white;
}

.cart-button .button-icon {
    font-size: 16px;
}

/* Fixed Cart Icon */
.cart-icon-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #0073aa;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-size: 24px;
}

.cart-icon-fixed:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: cartBadgeAnimation 0.5s ease-in-out;
}

@keyframes cartBadgeAnimation {
    0% { transform: scale(0); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Cart Dropdown Blur Overlay */
.cart-blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-blur-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Cart Dropdown */
.cart-dropdown {
    position: fixed;
    top: 90px;
    right: 20px;
    width: 350px;
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 999;
    display: none;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
    flex-direction: column;
}

.cart-dropdown.show {
    display: flex;
}

.cart-dropdown.hide {
    animation: slideUp 0.3s ease-out forwards;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

.cart-dropdown-header {
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.cart-header-title {
    flex: 1;
}

.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-close-button {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
    color: #666;
    position: relative;
}

.cart-close-button:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    transform: scale(1.1);
}

.cart-close-button:active {
    transform: scale(0.95);
    background: rgba(220, 53, 69, 0.2);
}

.cart-close-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.cart-items {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    position: relative;
}

/* Custom scrollbar for webkit browsers */
.cart-items::-webkit-scrollbar {
    width: 6px;
}

.cart-items::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.cart-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.cart-items::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Scroll fade indicators */
.cart-items::before,
.cart-items::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 15px;
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.cart-items::before {
    top: 0;
    background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.cart-items::after {
    bottom: 0;
    background: linear-gradient(to top, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.cart-item {
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cart-item-info {
    flex: 1;
}

.cart-item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.quantity-btn {
    background: #f8f9fa;
    color: #333;
    border: none;
    border-right: 1px solid #e0e0e0;
    width: 32px;
    height: 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    user-select: none;
}

.quantity-btn:last-child {
    border-right: none;
    border-left: 1px solid #e0e0e0;
}

.quantity-btn:hover {
    background: #e9ecef;
    color: #0073aa;
}

.quantity-btn:active {
    background: #dee2e6;
    transform: scale(0.98);
}

.quantity-display {
    font-weight: 600;
    color: #333;
    min-width: 40px;
    text-align: center;
    font-size: 14px;
    padding: 0 8px;
    background: #fff;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}


.cart-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.cart-item-details {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.cart-item-price {
    font-weight: bold;
    color: #0073aa;
    font-size: 14px;
}

.cart-item-remove-small {
    font-size: 12px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    padding: 2px;
    border-radius: 3px;
    line-height: 1;
    flex-shrink: 0;
}

.cart-item-remove-small:hover {
    opacity: 1;
    background: rgba(220, 53, 69, 0.1);
    transform: scale(1.1);
}

.cart-item-remove-small:active {
    transform: scale(0.95);
}

.cart-dropdown-footer {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

/* Cart Subtotal Section */
.cart-subtotal-section {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
    order: 0;
}

.cart-subtotal-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-subtotal-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.3px;
}

.cart-subtotal-icon {
    font-size: 18px;
    color: #667eea;
}

.cart-subtotal-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.continue-order-button {
    background: linear-gradient(145deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.2);
    order: 2;
}

.continue-order-button:hover {
    background: linear-gradient(145deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.4);
}

.continue-order-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

.clear-cart-button {
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.clear-cart-button:hover {
    background: #f8f9fa;
    color: #dc3545;
    border-color: #dc3545;
}

.clear-cart-button span {
    font-size: 10px;
}

.cart-empty {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.cart-empty-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Fly to Cart Animation */
@keyframes flyToCart {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    50% {
        transform: scale(0.8) translate(50px, -50px);
        opacity: 0.8;
    }
    100% {
        transform: scale(0.3) translate(200px, -200px);
        opacity: 0;
    }
}

.fly-to-cart {
    animation: flyToCart 0.8s ease-in-out;
    position: absolute;
    z-index: 1001;
    pointer-events: none;
}

.fly-to-cart {
    animation: flyToCart 0.8s ease-in-out;
}

/* Cart Messages */
.cart-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.cart-message-success {
    background-color: #10b981;
}

.cart-message-info {
    background-color: #3b82f6;
}

.cart-message-error {
    background-color: #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Flying Cart Item Animation */
.flying-cart-item {
    position: fixed;
    font-size: 20px;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.8s ease-in-out;
}

/* Cart Badge Animation */
.cart-badge-animate {
    animation: cartBadgeAnimation 0.5s ease-in-out;
}

/* Responsive design for quantity controls */
@media (max-width: 768px) {
    .cart-item {
        padding: 12px 15px;
    }
    
    .cart-item-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .cart-item-controls {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 100%;
    }
    
    .quantity-controls {
        order: 1;
    }
    
    
    .cart-item-remove-small {
        font-size: 11px;
        padding: 1px;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cart-dropdown {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        top: 90px;
    }
    
    .cart-icon-fixed {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .cart-badge {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    /* Mobile Subtotal Section */
    .cart-subtotal-section {
        padding: 12px 0;
        margin-top: 6px;
    }
    
    .cart-subtotal-label {
        font-size: 14px;
    }
    
    .cart-subtotal-icon {
        font-size: 16px;
    }
    
    .cart-subtotal-amount {
        font-size: 18px;
    }
    
    /* Mobile Cart Header Actions */
    .cart-header-actions {
        gap: 8px;
    }
    
    .clear-cart-button {
        padding: 4px 8px;
        font-size: 10px;
        height: 24px;
        gap: 2px;
    }
    
    .clear-cart-button span {
        font-size: 9px;
    }
    
    .cart-close-button {
        padding: 6px;
        min-width: 32px;
        min-height: 32px;
        font-size: 14px;
    }
}

/* Modern Web Banner for Browser Header & Villages Container */
.browser-header,
#villages-container h2 {
    position: relative;
    padding: 25px 30px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #e6eeda 0%, #d5e0c2 50%, #c9d5b5 100%);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.browser-header:before,
#villages-container h2:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 75C63.8071 75 75 63.8071 75 50C75 36.1929 63.8071 25 50 25C36.1929 25 25 36.1929 25 50C25 63.8071 36.1929 75 50 75Z' fill='%23a7bd88' fill-opacity='0.1'/%3E%3Cpath d='M80 40C86.6274 40 92 34.6274 92 28C92 21.3726 86.6274 16 80 16C73.3726 16 68 21.3726 68 28C68 34.6274 73.3726 40 80 40Z' fill='%23879e68' fill-opacity='0.1'/%3E%3Cpath d='M20 70C26.6274 70 32 64.6274 32 58C32 51.3726 26.6274 46 20 46C13.3726 46 8 51.3726 8 58C8 64.6274 13.3726 70 20 70Z' fill='%23879e68' fill-opacity='0.1'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: 0.5;
    z-index: 0;
}

.browser-header h2,
#villages-container h2 {
    position: relative;
    z-index: 1;
    color: #4a5d23;
    font-size: 32px;
    font-weight: 600;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
}

.browser-header #selected-village-name,
.browser-header #selected-shop-name {
    color: #5e7630;
    font-weight: 700;
    position: relative;
}

.browser-header #selected-village-name:after,
.browser-header #selected-shop-name:after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #7b9144;
    border-radius: 2px;
}

.browser-header .village-vendor-button.secondary {
    position: relative;
    z-index: 1;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #a7bd88;
    color: #4a5d23;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.browser-header .village-vendor-button.secondary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#villages-container h2 {
    display: flex;
    align-items: center;
    padding: 30px;
}

#villages-container h2:after {
    content: "🏡";
    margin-left: 15px;
    font-size: 28px;
}

/* Shop icon for shops container */
.browser-header h2:before {
    content: "🛒";
    margin-right: 15px;
    font-size: 28px;
    display: inline-block;
}

/* Product icon for products container */
#products-container .browser-header h2:before {
    content: "📦";
}

/* Responsive adjustments for the banner */
@media (max-width: 768px) {
    .browser-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    
    .browser-header .village-vendor-button.secondary {
        margin-top: 15px;
        margin-left: 0;
    }
    
    .browser-header h2,
    #villages-container h2 {
        font-size: 24px;
    }
}

/* Rating System Styles */
.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 24px;
    color: #ddd;
    margin: 0 2px;
}

.star-rating-input label:before {
    content: '★';
}

.star-rating-input input:checked ~ label,
.star-rating-input label:hover,
.star-rating-input label:hover ~ label {
    color: #ffb700;
}

.comment-rating {
    display: flex;
    margin-top: 5px;
}

.comment-rating .star {
    margin-right: 2px;
}

.comment-rating .star.full {
    color: #ffb700;
}

.comment-rating .star.empty {
    color: #ddd;
}

.rating-display {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.rating-display .stars {
    display: flex;
    margin-right: 8px;
}

.rating-display .rating-score {
    font-weight: bold;
    margin-right: 5px;
}

.rating-display .review-count {
    color: #666;
    font-size: 0.9em;
}

/* Comment Form Styles */
.comment-form {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.comment-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-author-input {
    flex: 1;
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 15px;
    margin-bottom: 10px;
}

.rating-input-container {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-label {
    margin-right: 10px;
    font-weight: 500;
}

.comment-textarea {
    width: 100%;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
}

.submit-comment {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.submit-comment:hover {
    background-color: #005177;
}

/* Honeypot field for spam protection */
.honeypot-field {
    display: none !important;
    position: absolute;
    left: -9999px;
}

/* Comments List Styles */
.comments-list {
    margin-top: 20px;
}

.comment-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0073aa;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 12px;
    flex-shrink: 0;
}

.comment-meta {
    flex: 1;
}

.comment-author {
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

.comment-date {
    font-size: 0.85em;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.comment-body p {
    margin: 0;
    line-height: 1.5;
}

.no-comments {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
    text-align: center;
    color: #666;
}

.loading-comments {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Enhanced Password Field Styles */
.password-field-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.password-field-container input {
    width: 100%;
    padding-right: 45px; /* Space for the toggle button */
    box-sizing: border-box;
}

.password-toggle-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #666;
    padding: 0;
    transition: all 0.2s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    line-height: 1;
    box-sizing: border-box;
    flex-shrink: 0;
}

.password-toggle-btn:hover {
    color: #0073aa;
    background-color: rgba(0, 115, 170, 0.08);
}

.password-toggle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Service Provider Styles */
.village-vendor-dashboard-section {
    margin-bottom: 40px;
}

.multi-step-form .form-steps-indicator {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.multi-step-form .step-indicator {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    position: relative;
    cursor: default;
    font-weight: 500;
    color: #777;
}

.multi-step-form .step-indicator.active {
    color: #0073aa;
    font-weight: 600;
}

.multi-step-form .step-indicator.completed {
    color: #4CAF50;
}

.multi-step-form .step-indicator.active:after,
.multi-step-form .step-indicator.completed:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
}

.multi-step-form .form-step {
    display: none;
}

.multi-step-form .form-step.active {
    display: block;
}

.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.profile-photo-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-photo-preview {
    min-height: 150px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opening-hours-container {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 15px;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
}

.day-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    gap: 12px;
}

.day-row:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.day-row:hover {
    background-color: #f9f9f9;
}

.day-label {
    min-width: 100px;
    flex-shrink: 0;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.day-status {
    min-width: 100px;
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.day-status:hover {
    border-color: #0073aa;
    background-color: #fff;
}

.day-status:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

.time-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.time-inputs input[type="time"] {
    min-width: 110px;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    font-size: 14px;
}

.time-inputs input[type="time"]:hover {
    border-color: #0073aa;
    background-color: #fff;
}

.time-inputs input[type="time"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
    outline: none;
}

.time-inputs span {
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.time-inputs input[type="time"]:disabled {
    background-color: #f0f0f0;
    cursor: not-allowed;
    color: #999;
}

/* Mobile responsive styles for opening hours */
@media (max-width: 768px) {
    .opening-hours-container {
        padding: 10px;
        border-radius: 10px;
    }
    
    .day-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 8px;
    }
    
    .day-label {
        width: 100%;
        margin-bottom: 8px;
        font-size: 15px;
    }
    
    .day-status {
        width: 100%;
        margin: 0 0 8px 0;
    }
    
    .time-inputs {
        width: 100%;
        justify-content: space-between;
    }
    
    .time-inputs input[type="time"] {
        width: calc(50% - 20px);
    }
}

@media (max-width: 480px) {
    .opening-hours-container {
        padding: 8px;
    }
    
    .day-row {
        padding: 10px 5px;
    }
    
    .day-label {
        font-size: 14px;
    }
    
    .time-inputs span {
        font-size: 13px;
    }
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    align-items: center;
}

.checkbox-group label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.checkbox-group label:hover {
    color: #0073aa;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Responsive adjustments for checkbox groups */
@media (max-width: 768px) {
    .checkbox-group {
        gap: 15px;
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .checkbox-group {
        gap: 12px;
        padding: 10px;
    }
    
    .checkbox-group label {
        font-size: 14px;
    }
    
    .checkbox-group input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }
}

.village-vendor-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Enhanced Service Card Styling */
.village-vendor-service-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    margin-bottom: 15px;
}

.village-vendor-service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.village-vendor-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: linear-gradient(to bottom, #4f46e5, #7c3aed);
    transition: height 0.4s ease;
    z-index: 2;
}

.village-vendor-service-card:hover::before {
    height: 100%;
}

.village-vendor-service-card-content {
    padding: 25px;
    background-color: white;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    z-index: 1;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Profile Section Improvements */
.service-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.service-profile-photo,
.service-profile-photo-placeholder {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 15px;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.service-profile-photo::after,
.service-profile-photo-placeholder::after {
    content: '✓';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid white;
}

.service-profile-photo {
    background-size: cover;
    background-position: center;
}

.service-title {
    text-align: center;
    width: 100%;
}

.service-title h3 {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.village-vendor-service-card:hover .service-title h3 {
    color: #4f46e5;
}

.service-profession {
    font-size: 14px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 5px;
    background-color: #EEF2FF;
    color: #4F46E5;
}

.service-category {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-category::before {
    content: '🏷️';
    font-size: 12px;
}

/* Service Details Styling */
.service-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 12px;
}

.service-detail-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detail-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.detail-label::before {
    font-size: 14px;
}

.service-detail-row:nth-child(1) .detail-label::before { content: '📍'; }
.service-detail-row:nth-child(2) .detail-label::before { content: '💰'; }
.service-detail-row:nth-child(3) .detail-label::before { content: '💳'; }
.service-detail-row:nth-child(4) .detail-label::before { content: '🗣️'; }
.service-detail-row:nth-child(5) .detail-label::before { content: '⏱️'; }

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Service Description */
.service-description {
    margin: 15px 0;
    color: #475569;
    line-height: 1.6;
    font-size: 15px;
    flex: 1;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.service-price {
    font-weight: 700;
    color: #4f46e5;
    font-size: 18px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.service-price::before {
    content: '💰';
    font-size: 16px;
}

/* Action Buttons */
.service-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.book-now-button {
    flex: 1;
    background: linear-gradient(145deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.book-now-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}

.contact-button {
    flex: 1;
    background: white;
    color: #4f46e5;
    border: 1px solid #e2e8f0;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-button:hover {
    background-color: #f8fafc;
    border-color: #4f46e5;
    transform: translateY(-2px);
}

.service-hours-toggle {
    margin-top: 20px;
    background: linear-gradient(145deg, #4f46e5, #7c3aed);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    padding: 12px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    display: inline-block;
    width: 100%;
}

.service-hours-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.4);
}

.service-hours-container {
    margin-top: 15px;
    padding: 15px;
    background-color: #f8fafc;
    border-radius: 12px;
    font-size: 14px;
    border: 1px solid #e2e8f0;
}

.service-hours-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dotted #e2e8f0;
}

.service-hours-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-hours-row span {
    font-weight: 600;
    color: #4f46e5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-details {
        grid-template-columns: 1fr;
    }
    
    .service-detail-row {
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .service-detail-row:last-child {
        border-bottom: none;
    }
}

/* Color Coding for Professions */
.service-profession[data-profession*="electrician"],
.service-profession[data-profession*="electrical"] {
    background-color: #DBEAFE;
    color: #2563EB;
}

.service-profession[data-profession*="plumb"] {
    background-color: #DCFCE7;
    color: #16A34A;
}

.service-profession[data-profession*="carpenter"],
.service-profession[data-profession*="wood"] {
    background-color: #FEF3C7;
    color: #D97706;
}

.service-profession[data-profession*="paint"] {
    background-color: #FFE4E6;
    color: #E11D48;
}

/* Gradient backgrounds for service cards */
.gradient-1 {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.gradient-4 {
    background: linear-gradient(135deg, #fad0c4 0%, #ffd1ff 100%);
}

.gradient-5 {
    background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
}

.gradient-6 {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
}

.gradient-7 {
    background: linear-gradient(135deg, #fccb90 0%, #d57eeb 100%);
}

.gradient-8 {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

/* Animation for newly added service */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(0, 115, 170, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0); }
}

.service-added-highlight {
    animation: highlight-pulse 2s infinite;
}

/* Preloader Spinner Styles */
.preloader-spinner,
.button-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 115, 170, 0.3);
    border-radius: 50%;
    border-top-color: #0073aa;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.button-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Animation styles for product addition */
.animated-success {
    animation: successPulse 2s ease-in-out;
}

.success-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 20px;
    animation: checkmarkAppear 0.5s ease-in-out;
}

.product-added-highlight {
    animation: highlightProduct 3s ease-in-out;
    position: relative;
    z-index: 1;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    10% { transform: scale(1.05); }
    20% { transform: scale(1); }
    30% { transform: scale(1.03); }
    40% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes checkmarkAppear {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes highlightProduct {
    0% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0); }
    20% { box-shadow: 0 0 20px 5px rgba(0, 115, 170, 0.7); }
    70% { box-shadow: 0 0 20px 5px rgba(0, 115, 170, 0.7); }
    100% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0); }
}

/* Smooth transitions for form */
#village-vendor-add-product-form {
    transition: all 0.5s ease-in-out;
}

/* Enhance product card appearance for better animation effect */
.village-vendor-product {
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
}

/* Loading spinner for buttons */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border .75s linear infinite;
    margin-right: 8px;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Animation styles for product addition */
.animated-success {
    animation: successPulse 2s ease-in-out;
}

.success-icon {
    display: inline-block;
    margin-right: 10px;
    font-size: 20px;
    animation: checkmarkAppear 0.5s ease-in-out;
}

.product-added-highlight {
    animation: highlightProduct 3s ease-in-out;
    position: relative;
    z-index: 1;
}

@keyframes successPulse {
    0% { transform: scale(1); }
    10% { transform: scale(1.05); }
    20% { transform: scale(1); }
    30% { transform: scale(1.03); }
    40% { transform: scale(1); }
    100% { transform: scale(1); }
}

@keyframes checkmarkAppear {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes highlightProduct {
    0% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0); }
    20% { box-shadow: 0 0 20px 5px rgba(0, 115, 170, 0.7); }
    70% { box-shadow: 0 0 20px 5px rgba(0, 115, 170, 0.7); }
    100% { box-shadow: 0 0 0 0 rgba(0, 115, 170, 0); }
}

/* Smooth transitions for form */
#village-vendor-add-product-form {
    transition: all 0.5s ease-in-out;
}

/* Enhance product card appearance for better animation effect */
.village-vendor-product {
    transition: all 0.3s ease-in-out;
    border-radius: 8px;
    scroll-margin-top: 120px; /* Ensures proper scroll positioning */
}

/* Login Required Card Styles */
.login-required-card {
    max-width: 500px;
    margin: 50px auto;
    background: linear-gradient(135deg, #ffffff, #f5f7fa);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-required-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
}

.login-required-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #2563eb);
    z-index: 1;
}

.login-required-card-content {
    padding: 40px 30px;
    text-align: center;
}

.login-required-card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background-color: rgba(79, 70, 229, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #4f46e5;
}

.login-required-card h3 {
    margin: 0 0 15px;
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
}

.login-required-card p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.login-required-card .login-button {
    display: inline-block;
    background: linear-gradient(145deg, #4f46e5, #7c3aed);
    color: white;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
}

.login-required-card .login-button:hover {
    background: linear-gradient(145deg, #3730a3, #6366f1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
}

.login-required-card .signup-link {
    display: block;
    margin-top: 20px;
    color: #64748b;
    font-size: 14px;
}

.login-required-card .signup-link a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-required-card .signup-link a:hover {
    color: #4338ca;
    text-decoration: underline;
}

@media (max-width: 576px) {
    .login-required-card {
        margin: 30px 15px;
    }
    
    .login-required-card-content {
        padding: 30px 20px;
    }
}

/* Edit Profile Modal Styles */
#edit-profile-form-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

#edit-profile-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0073aa, #00a0d2);
}

#edit-profile-form-container h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    padding-top: 10px;
}

#edit-profile-form-container .form-group input {
    background-color: #f9f9f9;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

#edit-profile-form-container .form-group input:focus {
    border-color: #0073aa;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

#edit-profile-form-container .village-vendor-button.secondary {
    background: linear-gradient(145deg, #dc3545, #c82333);
    margin-left: 10px;
}

#edit-profile-form-container .village-vendor-button.secondary:hover {
    background: linear-gradient(145deg, #c82333, #bd2130);
}

/* Responsive Design for Edit Profile */
@media (max-width: 768px) {
    #edit-profile-form-container {
        margin: 10px;
        padding: 20px;
    }
    
    #edit-profile-form-container .village-vendor-button {
        width: 100%;
        margin: 5px 0;
    }
    
    #edit-profile-form-container .village-vendor-button.secondary {
        margin-left: 0;
    }
}

/* ============================================================================
   PRODUCT VARIANTS STYLES
   ============================================================================ */

/* Variant section in product form - Clean minimal styling */
.variants-section {
    margin: 20px 0;
}

.variants-section label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.variants-section .help-text {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Add Variant button */
#add-variant-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#add-variant-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* Individual variant forms - Clean minimal styling */
.variant-form {
    margin: 20px 0;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 20px;
}

.variant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.variant-header h4 {
    margin: 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.remove-variant-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
}

.remove-variant-btn:hover {
    background: #dc2626;
    transform: scale(1.1);
}

.variant-fields {
    padding: 0;
}

.variant-fields .form-group {
    margin-bottom: 22px;
}

.variant-fields label {
    font-weight: 600;
    color: #475569;
    margin-bottom: 10px;
    display: block;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.variant-fields input[type="text"],
.variant-fields input[type="number"] {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    font-size: 16px;
    background-color: #f8fafc;
    color: #1e293b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.variant-fields input[type="text"]:focus,
.variant-fields input[type="number"]:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
    background-color: white;
}

/* Specific styling for variant price input fields */
.variant-fields input[name*="variant_price"],
.variant-fields input[id*="variant_price"],
.variant-fields input.variant-price-input {
    min-width: 200px;
    max-width: 250px;
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    letter-spacing: 0.5px;
}

.variant-fields input[name*="variant_price"]:focus,
.variant-fields input[id*="variant_price"]:focus,
.variant-fields input.variant-price-input:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 8px 20px rgba(102, 126, 234, 0.1);
    background: #ffffff;
    transform: translateY(-2px);
}

.variant-fields input[name*="variant_price"]:hover:not(:focus),
.variant-fields input[id*="variant_price"]:hover:not(:focus),
.variant-fields input.variant-price-input:hover:not(:focus) {
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), inset 0 1px 3px rgba(0, 0, 0, 0.02);
    transform: translateY(-1px);
}

/* Variant Price Label Enhancement */
.variant-fields label[for*="variant_price"],
.variant-fields .variant-price-label {
    font-weight: 700;
    color: #374151;
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.variant-fields label[for*="variant_price"]::before,
.variant-fields .variant-price-label::before {
    content: "₹";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
}

/* Responsive Design for Variant Price Input */
@media (max-width: 768px) {
    .variant-fields input[name*="variant_price"],
    .variant-fields input[id*="variant_price"],
    .variant-fields input.variant-price-input {
        min-width: 180px;
        max-width: 100%;
        padding: 10px 14px;
        font-size: 15px;
        border-radius: 6px;
    }
    
    .variant-fields label[for*="variant_price"],
    .variant-fields .variant-price-label {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .variant-fields label[for*="variant_price"]::before,
    .variant-fields .variant-price-label::before {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .variant-fields input[name*="variant_price"],
    .variant-fields input[id*="variant_price"],
    .variant-fields input.variant-price-input {
        min-width: 150px;
        max-width: 100%;
        padding: 8px 12px;
        font-size: 14px;
        border-radius: 6px;
        text-align: left;
    }
    
    .variant-fields label[for*="variant_price"],
    .variant-fields .variant-price-label {
        font-size: 13px;
    }
    
    .variant-fields label[for*="variant_price"]::before,
    .variant-fields .variant-price-label::before {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
}

/* Variant image previews */
.variant-image-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.variant-image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.variant-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-image-preview .image-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 10px;
    padding: 2px 4px;
    text-align: center;
}

/* ============================================================================
   SIZE & VARIANTS ACCORDION STYLES
   ============================================================================ */

/* Accordion Container */
.product-variants-sizes-accordion {
    margin: 12px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Accordion Header */
.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: white;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.accordion-header:hover {
    background: #f8f9fa;
}

.accordion-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    letter-spacing: 0.025em;
}

.accordion-chevron {
    font-size: 12px;
    color: #6b7280;
    transition: transform 0.3s ease;
    font-weight: bold;
}

/* Expanded state */
.product-variants-sizes-accordion.expanded .accordion-header {
    border-bottom-color: #e5e7eb;
}

.product-variants-sizes-accordion.expanded .accordion-chevron {
    transform: rotate(90deg);
}

/* Accordion Content */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background: #fafbfc;
}

.accordion-content.expanded {
    max-height: 200px;
    padding: 16px 14px;
}

/* Dropdowns Container */
.accordion-dropdowns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Individual variant and size sections */
.product-variants,
.product-sizes {
    flex: 1;
    min-width: 200px;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

/* Compact labels */
.product-variants label,
.product-sizes label {
    font-weight: 500;
    color: #374151;
    margin-bottom: 4px;
    display: block;
    font-size: 13px;
    letter-spacing: 0.025em;
}

/* Modern compact dropdowns */
.variant-selector,
.size-selector {
    width: 100%;
    min-height: 40px;
    height: auto;
    padding: 8px 32px 8px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    vertical-align: top;
    box-sizing: border-box;
}

/* Hover and focus states */
.variant-selector:hover,
.size-selector:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.variant-selector:focus,
.size-selector:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1), 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Option styling */
.variant-selector option,
.size-selector option {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
    background: white;
    border: none;
}

/* Cross-browser compatibility fixes */
.variant-selector,
.size-selector {
    /* Standard property */
    appearance: none;
    /* Firefox specific fixes */
    -moz-appearance: none;
    /* Webkit specific fixes */
    -webkit-appearance: none;
    /* Ensure text is not clipped */
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* Fix for text alignment in different browsers */
.variant-selector::-ms-expand,
.size-selector::-ms-expand {
    display: none; /* Remove IE/Edge dropdown arrow */
}

/* Ensure proper text display in all browsers */
.variant-selector,
.size-selector {
    display: block;
    text-align: left;
    text-indent: 0;
}

/* Disabled state */
.variant-selector:disabled,
.size-selector:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
    border-color: #e5e7eb;
}

/* Active/selected state visual feedback */
.variant-selector:not([value=""]):not([value="default"]),
.size-selector:not([value=""]) {
    border-color: #4CAF50;
    background-color: #f0f9ff;
}

/* Tablet responsive styles */
@media (max-width: 1024px) and (min-width: 769px) {
    .accordion-dropdowns {
        gap: 10px;
    }
    
    .product-variants,
    .product-sizes {
        min-width: 180px;
    }
    
    .variant-selector,
    .size-selector {
        min-height: 38px;
        font-size: 13px;
        padding: 7px 30px 7px 10px;
        line-height: 1.3;
        background-size: 15px;
        background-position: right 7px center;
    }
    
    .accordion-title {
        font-size: 13px;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .product-card {
        display: flex;
        flex-direction: column;
    }
    
    .product-gallery {
        order: 1;
    }
    
    .product-image {
        order: 1;
        aspect-ratio: 1 / 1;
        padding: 0;
    }
    
    .product-thumbnails {
        order: 2;
        min-height: 40px;
        height: auto;
        flex-wrap: wrap;
        overflow-x: visible;
    }
    
    .product-variants-sizes-accordion {
        order: 3;
        margin: 8px 8px 0 8px !important;
    }
    
    .product-details {
        order: 4;
        padding: 12px 10px;
    }
    
    /* Mobile: Stack variants and sizes vertically */
    .accordion-dropdowns {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-variants,
    .product-sizes {
        min-width: unset;
    }
    
    .variant-selector,
    .size-selector {
        min-height: 36px;
        padding: 6px 28px 6px 10px;
        font-size: 13px;
        line-height: 1.3;
        background-size: 14px;
        background-position: right 6px center;
    }
    
    .accordion-header {
        padding: 8px 12px;
    }
    
    .accordion-title {
        font-size: 13px;
    }
    
    .accordion-content.expanded {
        padding: 12px;
    }
}

/* Dashboard Products - Responsive Layout Matching Product Cards Grid */
@media (max-width: 1024px) {
    .village-vendor-product {
        display: flex;
        flex-direction: column;
    }
    
    .product-gallery {
        order: 1;
    }
    
    .product-image {
        order: 1;
    }
    
    .product-thumbnails {
        order: 2;
    }
    
    .product-variants-sizes-accordion {
        order: 3;
        margin: 8px 0 !important;
    }
    
    .village-vendor-product-details {
        order: 4;
    }
}

/* Animation for variant forms */
.variant-form {
    animation: slideInVariant 0.3s ease-out;
}

@keyframes slideInVariant {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Legacy styles removed - using modern compact design */

/* Loading state for variant images */
.variant-image-preview.loading {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.variant-image-preview.loading::after {
    content: "⏳";
    font-size: 20px;
}

/* Smooth image transition effects */
.product-image {
    transition: opacity 0.3s ease-in-out;
}

.product-image.loading-transition {
    opacity: 0.7;
}

.product-thumbnails {
    transition: opacity 0.2s ease-in-out;
}

/* Enhanced variant selector with better visual feedback */
.variant-selector {
    position: relative;
}

.variant-selector:after {
    content: '▼';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #6b7280;
    font-size: 12px;
}

/* Variant selection feedback */
.product-card.variant-changing {
    position: relative;
}

.product-card.variant-changing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    animation: fadeInOut 0.6s ease-in-out;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Improved thumbnail navigation */
.product-thumbnail {
    transition: all 0.3s ease;
    cursor: pointer;
}

.product-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.product-thumbnail.active {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Mobile-specific improvements for variant switching */
@media (max-width: 768px) {
    .product-image.loading-transition {
        opacity: 0.8;
    }
    
    .product-thumbnails {
        flex-wrap: wrap;
        gap: 6px;
        overflow-x: visible;
        justify-content: flex-start;
        align-items: flex-start;
    }
    
    .product-thumbnail {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
}

/* Variant dropdown animation */
.variant-selector option {
    transition: background-color 0.2s ease;
}

/* Loading indicator for variant images */
.variant-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* No images messages */
.no-variant-images-message,
.no-images-message {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    margin-bottom: 10px;
}

.no-variant-images-message p,
.no-images-message p {
    margin: 0;
    color: #6c757d;
    font-size: 13px;
    font-style: italic;
}

.no-variant-images-message {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.no-variant-images-message p {
    color: #856404;
}

/* Enhanced loading transition */
.product-image.loading-transition {
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

/* ========================================
   LIGHTBOX STYLES - Premium E-commerce
   ======================================== */

/* Lightbox Overlay */
.product-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    cursor: zoom-out;
}

.product-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* Lightbox Content Container */
.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    animation: lightboxZoomIn 0.3s ease-out;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.product-lightbox.closing .lightbox-content {
    animation: lightboxZoomOut 0.3s ease-in;
}

@keyframes lightboxZoomOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Lightbox Image */
.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    will-change: transform;
}

/* Lightbox image container for pinch-to-zoom */
.lightbox-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: none;
}

/* Zoomed state */
.lightbox-image.zoomed {
    cursor: move;
    cursor: grab;
}

.lightbox-image.zoomed:active {
    cursor: grabbing;
}

/* Close Button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 300;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

/* Navigation Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    user-select: none;
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
    left: 30px;
}

.lightbox-nav.next {
    right: 30px;
}

.lightbox-nav.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* Image Counter */
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10001;
}

/* Zoom Indicator */
.lightbox-zoom-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    z-index: 10002;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox-zoom-indicator.show {
    opacity: 1;
}

/* Pinch hint for mobile */
.lightbox-pinch-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 10001;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.lightbox-pinch-hint.show {
    opacity: 1;
}

/* Loading Spinner */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: lightboxSpin 0.8s linear infinite;
}

@keyframes lightboxSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85vh;
        overflow: visible;
    }
    
    .lightbox-image {
        max-height: 85vh;
        border-radius: 4px;
    }
    
    /* Enable smooth pinch-to-zoom on mobile */
    .lightbox-image-wrapper {
        -webkit-overflow-scrolling: touch;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 45px;
        height: 45px;
        font-size: 28px;
        line-height: 41px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
    
    .lightbox-nav.prev {
        left: 10px;
    }
    
    .lightbox-nav.next {
        right: 10px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .lightbox-nav,
    .lightbox-close {
        background-color: rgba(255, 255, 255, 0.15);
    }
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Smooth thumbnail transitions */
.product-thumbnails {
    min-height: 60px;
    transition: opacity 0.2s ease-in-out;
}

@media (max-width: 768px) {
    .no-variant-images-message,
    .no-images-message {
        padding: 10px;
        font-size: 12px;
    }
    
    .product-thumbnails {
        min-height: 50px;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* ============================================================================
   VILLAGE SLIDER STYLES
   ============================================================================ */

/* Dashboard Slider Management */
.village-slider-management {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.village-slider-management h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #333;
}

.village-slider-management .help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.slider-upload-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.slider-upload-form .form-group {
    margin-bottom: 16px;
}

.slider-upload-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.slider-upload-form input[type="file"],
.slider-upload-form input[type="url"] {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.slider-upload-form input:focus {
    outline: none;
    border-color: #4CAF50;
}

.slider-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.slider-image-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.slider-image-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-image-preview {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.slider-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-image-details {
    padding: 16px;
}

.slider-image-link {
    margin-bottom: 12px;
}

.slider-image-link label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #555;
}

.slider-link-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    margin-bottom: 8px;
}

.update-link-btn {
    width: 100%;
    padding: 8px 16px;
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.update-link-btn:hover {
    background: #1976D2;
}

.delete-slider-image-btn {
    width: 100%;
    padding: 10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.delete-slider-image-btn:hover {
    background: #d32f2f;
}

/* Frontend Village Slider */
.village-slider-container {
    width: 100%;
    margin: 20px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.village-slider {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #000;
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.slider-slide a:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Slider Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.slider-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.slider-nav span {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.slider-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.slider-dot.active {
    background: #ffffff;
    border-color: #4CAF50;
    transform: scale(1.3);
}

/* Responsive Slider Styles */
@media (max-width: 1024px) {
    .village-slider {
        height: 350px;
    }
    
    .slider-nav {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
        max-width: 38px;
        max-height: 38px;
    }
    
    .slider-nav span {
        font-size: 22px;
    }
    
    .slider-prev {
        left: 15px;
    }
    
    .slider-next {
        right: 15px;
    }
}

@media (max-width: 768px) {
    .village-slider {
        height: 280px;
    }
    
    .slider-nav {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        max-width: 36px;
        max-height: 36px;
    }
    
    .slider-nav span {
        font-size: 20px;
    }
    
    .slider-prev {
        left: 10px;
    }
    
    .slider-next {
        right: 10px;
    }
    
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .slider-dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-images-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .village-slider {
        height: 220px;
    }
    
    .slider-nav {
        width: 32px;
        height: 32px;
        min-width: 32px;
        min-height: 32px;
        max-width: 32px;
        max-height: 32px;
    }
    
    .slider-nav span {
        font-size: 18px;
    }
    
    .slider-prev {
        left: 8px;
    }
    
    .slider-next {
        right: 8px;
    }
    
    .slider-dots {
        bottom: 10px;
        gap: 6px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .village-slider-management {
        padding: 16px;
    }
    
    .slider-upload-section {
        padding: 16px;
    }
}

/* Slider Animation Effects */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

/* Loading State */
.slider-images-grid .loading,
.slider-images-grid .no-results,
.slider-images-grid .error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.slider-images-grid .error {
    color: #f44336;
}

/* ===== VILLAGE SOCIAL INTERFACE STYLES ===== */

/* Social Button Styling */
.social-button {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: 10px;
}

.social-button:hover {
    background: linear-gradient(135deg, #ad1457, #7b1fa2);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.3);
}

.social-icon {
    font-size: 16px;
}

/* Modern Post Creator Button */
.modern-post-creator {
    padding: 20px;
    text-align: center;
}

.modern-post-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    min-width: 200px;
    justify-content: center;
}

.modern-post-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.post-btn-icon {
    font-size: 18px;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Post Modal Styles */
.post-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.post-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.post-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.post-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.post-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.post-modal-close {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: #333;
    transform: scale(1.1);
}

/* Category Selection */
.post-category-section {
    padding: 0 24px 24px;
}

.post-category-section label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 14px;
}

.category-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
}

.category-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.category-btn:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.category-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
}

.category-icon {
    font-size: 24px;
}

.category-label {
    font-size: 12px;
    font-weight: 500;
}

/* Content Section */
.post-content-section {
    padding: 0 24px 24px;
}

#modal-post-content {
    width: 100%;
    min-height: 120px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 16px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
    background: #fafbfc;
}

#modal-post-content:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.char-counter {
    text-align: right;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* Contact Fields Section */
.post-contact-section {
    padding: 0 24px 24px;
    border-top: 1px solid #e9ecef;
    margin-top: 16px;
    padding-top: 24px;
}

.contact-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-fields .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-fields label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 4px;
}

.contact-fields .required {
    color: #e74c3c;
    font-size: 12px;
}

.contact-fields input {
    width: 100%;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
    background: #fafbfc;
}

.contact-fields input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
}

.contact-fields input::placeholder {
    color: #999;
}

/* Media Upload Section */
.post-media-section {
    padding: 0 24px 24px;
}

.media-upload-area {
    margin-bottom: 16px;
}

.media-upload-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

.media-upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.upload-icon {
    font-size: 16px;
}

.media-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.media-preview-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
}

.media-preview-item img,
.media-preview-item video {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.media-caption-input {
    width: 100%;
    padding: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    border-top: 1px solid #eee;
}

.remove-media-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-link-section {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

#video-link-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

.add-link-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

.video-links-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.video-link-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remove-link-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

/* Modal Actions */
.post-modal-actions {
    padding: 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Progress Bar */
.upload-progress {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 8px;
}

.upload-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Category Tags */
.post-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: auto;
}

.post-category-tag.tweet {
    color: #1da1f2;
}

.post-category-tag.news {
    color: #ff6b35;
}

.post-category-tag.job {
    color: #0077b5;
}

.post-category-tag.event {
    color: #e91e63;
}

.category-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Media Carousel Styles */
.media-carousel {
    position: relative;
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.carousel-slide audio {
    width: 100%;
    margin: auto;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-indicators {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Single Media Styles */
.social-post-media {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
}

.post-media-single {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    cursor: pointer;
}

.media-caption {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 14px;
    color: #333;
    border-top: 1px solid #eee;
}

/* Video and Audio Embeds */
.video-embed,
.audio-embed {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-embed iframe,
.video-embed video {
    width: 100%;
    height: 300px;
    border: none;
}

.audio-embed audio {
    width: 100%;
    height: 54px;
}

.audio-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-size: 14px;
    font-weight: 500;
}

/* Post Header Enhancement */
.social-post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.social-post-info {
    flex: 1;
}

/* Modal Body Scroll Lock */
body.modal-open {
    overflow: hidden;
}

/* Responsive Design for Media */
@media (max-width: 768px) {
    .carousel-container {
        height: 300px;
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .video-embed iframe,
    .video-embed video {
        height: 200px;
    }
    
    .post-category-tag {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .category-text {
        font-size: 9px;
    }
    
    .media-previews {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .media-preview-item img,
    .media-preview-item video {
        height: 100px;
    }
}

/* Main Social Container */
.village-social-container {
    max-width: 600px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

/* Name Prompt Modal */
.social-name-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.social-name-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.social-name-modal h3 {
    margin: 0 0 10px 0;
    color: #1a1a1a;
    font-size: 24px;
    font-weight: 600;
}

.social-name-modal p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
}

.social-name-modal input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.social-name-modal input:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.social-btn-primary {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.social-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #ad1457, #7b1fa2);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.social-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Main Social Interface */
.village-social-main {
    background: white;
    min-height: 100vh;
}

/* Header */
.social-header {
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    padding: 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.social-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.social-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.social-user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.social-user-avatar {
    font-size: 18px;
}

.social-user-avatar-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.social-user-name {
    font-size: 14px;
    font-weight: 500;
}

.social-edit-profile-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.social-edit-profile-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Edit Profile Modal */
.edit-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.edit-profile-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.edit-profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.edit-profile-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.edit-profile-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.edit-profile-close:hover {
    background: #f0f2f5;
    color: #333;
}

.edit-profile-body {
    padding: 20px;
}

.profile-photo-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e5e9;
}

.profile-photo-preview {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-emoji {
    font-size: 48px;
}

.profile-photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.upload-photo-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-photo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.upload-photo-btn:active {
    transform: translateY(0);
}

.photo-hint {
    font-size: 12px;
    color: #999;
    margin: 0;
}

.edit-profile-field {
    margin-bottom: 20px;
}

.edit-profile-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.edit-profile-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.edit-profile-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.edit-profile-actions {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e1e5e9;
    background: #f8f9fa;
}

.btn-secondary {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e1e5e9;
    background: white;
    color: #333;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f0f2f5;
    border-color: #d0d4d8;
}

.btn-primary {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Post Creator */
.social-post-creator {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    background: white;
}

.post-creator-content {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.post-creator-avatar {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 50%;
    flex-shrink: 0;
}

#social-post-input {
    flex: 1;
    border: none;
    resize: none;
    font-size: 16px;
    font-family: inherit;
    padding: 12px 0;
    background: transparent;
    min-height: 60px;
}

#social-post-input:focus {
    outline: none;
}

#social-post-input::placeholder {
    color: #8e8e8e;
}

.post-creator-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 52px;
}

.post-char-count {
    font-size: 13px;
    color: #8e8e8e;
}

/* Posts Feed */
.social-posts-feed {
    background: white;
}

.social-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    color: #8e8e8e;
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #f0f2f5;
    border-top: 3px solid #e91e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.social-no-posts {
    text-align: center;
    padding: 60px 20px;
    color: #8e8e8e;
}

/* Individual Posts */
.social-post {
    padding: 20px;
    border-bottom: 1px solid #e1e5e9;
    transition: background-color 0.2s ease;
}

.social-post:hover {
    background: #f8f9fa;
}

.social-post-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.social-post-avatar {
    font-size: 20px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.post-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.social-post-info {
    flex: 1;
}

.social-post-author {
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.social-post-time {
    font-size: 13px;
    color: #8e8e8e;
}

.social-post-content {
    margin: 12px 0 16px 48px;
    font-size: 15px;
    line-height: 1.4;
    color: #1a1a1a;
    word-wrap: break-word;
}

/* Post Actions */
.social-post-actions {
    display: flex;
    gap: 20px;
    margin: 16px 0 0 48px;
}

.social-action-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    color: #8e8e8e;
    transition: all 0.2s ease;
}

.social-action-btn:hover {
    background: #f0f2f5;
    color: #1a1a1a;
}

.like-btn.liked {
    color: #e91e63;
}

.like-btn.liked:hover {
    background: rgba(233, 30, 99, 0.1);
}

.action-icon {
    font-size: 16px;
}

/* Social Post Contact Section */
.social-post-contact {
    display: flex;
    justify-content: center;
    margin: 10px 0 0 0;
    padding: 0 16px;
}

/* Contact Button - WhatsApp Green Theme */
.contact-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    color: white !important;
    border: none;
    border-radius: 25px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
    justify-content: center;
}

.contact-btn:hover {
    background: #128C7E !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.contact-btn .action-icon {
    font-size: 14px;
}

.contact-btn .action-text {
    font-size: 13px;
    font-weight: 600;
}

/* Post Creator Tools */
.post-creator-tools {
    display: flex;
    align-items: center;
    gap: 16px;
}

.post-tool-btn {
    background: none;
    border: none;
    font-size: 20px;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e91e63;
}

.post-tool-btn:hover {
    background: rgba(233, 30, 99, 0.1);
    transform: scale(1.1);
}

/* Image Upload Section */
.post-image-section {
    margin: 12px 0;
}

.post-image-preview {
    position: relative;
    margin: 12px 0;
    border-radius: 12px;
    overflow: hidden;
    max-width: 100%;
}

.post-image-preview img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-image-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* Post Images */
.social-post-image {
    margin: 12px 0 16px 48px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f2f5;
}

.post-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
}

.post-image:hover {
    transform: scale(1.02);
}

.post-image.lazy-load {
    opacity: 0;
}

/* Image Loading States */
.image-loading-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    min-height: 200px;
}

.image-loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e1e5e9;
    border-top: 3px solid #e91e63;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.image-error {
    color: #8e8e8e;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    cursor: default;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.lightbox-open {
    overflow: hidden;
}

/* Share Button Styling */
.share-btn:hover {
    background: rgba(29, 161, 242, 0.1);
    color: #1da1f2;
}

.action-count {
    font-size: 13px;
    font-weight: 500;
}

/* Comments */
.social-post-comments {
    margin: 16px 0 0 48px;
    border-top: 1px solid #f0f2f5;
    padding-top: 12px;
}

/* Scrollable comments container */
.comments-scrollable {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.comments-scrollable::-webkit-scrollbar {
    width: 6px;
}

.comments-scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.comments-scrollable::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.comments-scrollable::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.social-comment {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.social-comment.comment-reply {
    border-left: 2px solid #e91e63;
    padding-left: 8px;
    margin-top: 8px;
}

.social-comment-avatar {
    font-size: 16px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f2f5;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
}

.comment-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.social-comment-content {
    flex: 1;
    background: #f0f2f5;
    padding: 8px 12px;
    border-radius: 16px;
}

.social-comment-author {
    font-weight: 600;
    font-size: 13px;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.social-comment-text {
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.3;
    word-wrap: break-word;
}

.social-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
}

.social-comment-time {
    font-size: 11px;
    color: #8e8e8e;
}

.comment-reply-btn {
    background: none;
    border: none;
    color: #8e8e8e;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.comment-reply-btn:hover {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.reply-count {
    font-size: 11px;
    color: #8e8e8e;
    font-weight: 500;
}

/* Reply Form Styling */
.comment-reply-form {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e1e5e9;
}

.no-comments {
    font-size: 13px;
    color: #8e8e8e;
    text-align: center;
    padding: 12px;
}

/* Comment Form */
.social-comment-form {
    display: flex;
    gap: 10px;
    margin: 12px 0 0 48px;
    align-items: center;
}

.comment-input {
    flex: 1;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    font-family: inherit;
    background: #f8f9fa;
    transition: all 0.2s ease;
}

.comment-input:focus {
    outline: none;
    border-color: #e91e63;
    background: white;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.comment-submit {
    background: #e91e63;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.comment-submit:hover:not(:disabled) {
    background: #ad1457;
    transform: translateY(-1px);
}

.comment-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .village-social-container {
        max-width: 100%;
    }
    
    .social-name-modal-content {
        margin: 20px;
        padding: 24px;
    }
    
    /* Mobile Post Creator */
    .post-creator-tools {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .post-tool-btn {
        font-size: 18px;
        padding: 6px;
    }
    
    /* Mobile Image Preview */
    .post-image-preview img {
        max-height: 250px;
    }
    
    /* Mobile Post Images */
    .social-post-image {
        margin: 12px 0 16px 0;
    }
    
    .post-image {
        max-height: 300px;
    }
    
    .social-post-content {
        margin: 12px 0 16px 0;
    }
    
    .social-post-actions {
        margin: 16px 0 0 0;
        gap: 16px;
    }
    
    .social-post-comments {
        margin: 16px 0 0 0;
    }
    
    /* Mobile Lightbox */
    .lightbox-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .lightbox-close {
        top: -35px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .social-header {
        padding: 16px;
    }
    
    .social-header h2 {
        font-size: 18px;
    }
    
    .social-user-info {
        padding: 6px 10px;
    }
    
    .social-post-creator {
        padding: 16px;
    }
    
    .social-post {
        padding: 16px;
    }
    
    .social-post-content {
        margin-left: 44px;
    }
    
    .social-post-actions {
        margin-left: 44px;
        gap: 16px;
    }
    
    .social-post-contact {
        margin: 10px 0 0 44px;
        padding: 0 12px;
    }
    
    .contact-btn {
        width: 90%;
        margin: 0 auto;
        min-width: unset;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .social-post-comments {
        margin-left: 44px;
    }
    
    .social-comment-form {
        margin-left: 44px;
    }
}

@media (max-width: 480px) {
    .social-header-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .social-post-content {
        margin-left: 0;
        margin-top: 12px;
    }
    
    .social-post-actions {
        margin-left: 0;
        justify-content: space-around;
    }
    
    .social-post-contact {
        margin: 10px 0 0 0;
        padding: 0 8px;
    }
    
    .contact-btn {
        width: 90%;
        margin: 0 auto;
        min-width: unset;
        padding: 10px 16px;
        font-size: 12px;
    }
    
    .social-post-comments {
        margin-left: 0;
    }
    
    .social-comment-form {
        margin-left: 0;
    }
    
    .post-creator-actions {
        margin-left: 0;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
}

/* ============================================================================
   MEDIA PREVIEW STYLES (Images, Videos, Audio)
   ============================================================================ */

/* Media previews container */
.media-previews {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* Individual media preview item */
.media-preview-item {
    position: relative;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.media-preview-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Image preview */
.media-preview-item img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

/* Video preview */
.media-preview-item video {
    width: 100%;
    height: auto;
    max-height: 300px;
    background: #000;
}

/* Audio player preview */
.audio-player-preview {
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.audio-player-preview audio {
    width: 100%;
    height: 40px;
    outline: none;
}

/* Audio file info */
.audio-file-info {
    color: white;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    word-break: break-word;
    opacity: 0.9;
}

/* Media caption input */
.media-caption-input {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    font-family: inherit;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.media-caption-input:focus {
    outline: none;
    background: #fff;
    border-top-color: #3b82f6;
}

/* Remove media button */
.remove-media-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: 1px solid rgba(239, 68, 68, 0.95);
    border-radius: 4px;
    width: auto;
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.remove-media-btn:hover {
    background: #dc2626;
    border-color: #b91c1c;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.remove-media-btn:active {
    transform: scale(0.95);
}

/* Media upload area */
.media-upload-area {
    margin-bottom: 16px;
}

.media-upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px dashed rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-upload-btn:hover {
    border-color: rgba(102, 126, 234, 0.6);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.media-upload-btn:active {
    transform: translateY(0);
}

.upload-icon {
    font-size: 18px;
}

/* Responsive adjustments for media previews */
@media (max-width: 768px) {
    .media-preview-item {
        border-radius: 8px;
    }
    
    .media-preview-item img,
    .media-preview-item video {
        max-height: 250px;
    }
    
    .audio-player-preview {
        padding: 12px;
        gap: 10px;
    }
    
    .audio-player-preview audio {
        height: 36px;
    }
    
    .audio-file-info {
        font-size: 12px;
    }
    
    .remove-media-btn {
        width: auto;
        height: 30px;
        padding: 0 10px;
        font-size: 12px;
        top: 6px;
        right: 6px;
    }
    
    .media-caption-input {
        padding: 8px 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .media-preview-item {
        border-radius: 6px;
    }
    
    .media-preview-item img,
    .media-preview-item video {
        max-height: 200px;
    }
    
    .audio-player-preview {
        padding: 10px;
        gap: 8px;
    }
    
    .audio-player-preview audio {
        height: 32px;
    }
    
    .audio-file-info {
        font-size: 11px;
    }
    
    .remove-media-btn {
        width: auto;
        height: 28px;
        padding: 0 8px;
        font-size: 11px;
        top: 4px;
        right: 4px;
    }
    
    .media-caption-input {
        padding: 6px 8px;
        font-size: 11px;
    }
    
    .media-upload-btn {
        padding: 10px 12px;
        font-size: 13px;
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================================================
   VIDEO/AUDIO EMBED PREVIEW STYLES
   ============================================================================ */

/* Video link input section */
.video-link-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#video-link-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
}

#video-link-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.add-link-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.add-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.4);
}

.add-link-btn:active {
    transform: translateY(0);
}

/* Video link status messages */
.video-link-status {
    padding: 12px 16px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

.video-link-status.error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #dc2626;
}

.video-link-status.success {
    background-color: #dcfce7;
    color: #166534;
    border-left: 4px solid #16a34a;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video links preview container */
.video-links-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

/* Video link preview item */
.video-link-preview,
.audio-link-preview {
    position: relative;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-link-preview:hover,
.audio-link-preview:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Embed container for responsive sizing */
.embed-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.embed-container iframe,
.embed-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Audio player styling */
.audio-player {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.audio-player audio {
    width: 100%;
    height: 40px;
}

/* Remove button for embeds */
.remove-link-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: #ef4444;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.remove-link-btn:hover {
    background: #fff;
    color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.remove-link-btn:active {
    transform: scale(0.95);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-link-section {
        flex-direction: column;
    }
    
    .add-link-btn {
        width: 100%;
    }
    
    #video-link-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .embed-container {
        padding-bottom: 56.25%;
    }
    
    .audio-player {
        padding: 16px;
    }
    
    .remove-link-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
        top: 8px;
        right: 8px;
    }
}

@media (max-width: 480px) {
    .video-link-section {
        flex-direction: column;
        gap: 8px;
    }
    
    #video-link-input {
        padding: 10px 12px;
        font-size: 16px;
    }
    
    .add-link-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .video-link-status {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .embed-container {
        padding-bottom: 56.25%;
    }
    
    .audio-player {
        padding: 12px;
    }
    
    .audio-player audio {
        height: 36px;
    }
}

/* ============================================================================
   SOCIAL POST MEDIA STYLING (Feed Display)
   ============================================================================ */

/* Social post media container */
.social-post-media {
    position: relative;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
    margin: 12px 0;
}

/* Single media item */
.post-media-single {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
    background: #000;
}

/* Audio player in feed */
.post-media-single[controls] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 50px;
    padding: 8px;
}

/* Media carousel */
.media-carousel {
    position: relative;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    background: #000;
}

.carousel-slide video,
.carousel-slide audio {
    width: 100%;
    height: auto;
    display: block;
}

.carousel-slide audio {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 50px;
    padding: 8px;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* Carousel navigation buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 32px;
    height: 40px;
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

/* Carousel indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: rgba(255, 255, 255, 0.9);
    width: 24px;
    border-radius: 4px;
}

/* Media caption */
.media-caption {
    padding: 12px;
    background: #f8fafc;
    font-size: 13px;
    color: #475569;
    border-top: 1px solid #e2e8f0;
    word-break: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .social-post-media {
        border-radius: 6px;
        margin: 10px 0;
    }
    
    .post-media-single {
        max-height: 350px;
    }
    
    .post-media-single[controls] {
        height: 45px;
        padding: 6px;
    }
    
    .carousel-slide audio {
        height: 45px;
        padding: 6px;
    }
    
    .carousel-btn {
        width: 30px;
        height: 36px;
        font-size: 18px;
    }
    
    .media-caption {
        padding: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .social-post-media {
        border-radius: 4px;
        margin: 8px 0;
    }
    
    .post-media-single {
        max-height: 280px;
    }
    
    .post-media-single[controls] {
        height: 40px;
        padding: 4px;
    }
    
    .carousel-slide audio {
        height: 40px;
        padding: 4px;
    }
    
    .carousel-btn {
        width: 28px;
        height: 32px;
        font-size: 16px;
        top: 50%;
    }
    
    .carousel-prev {
        left: 8px;
    }
    
    .carousel-next {
        right: 8px;
    }
    
    .media-caption {
        padding: 8px;
        font-size: 11px;
    }
    
    .carousel-indicators {
        padding: 8px;
        gap: 6px;
    }
    
    .carousel-indicator {
        width: 6px;
        height: 6px;
    }
    
    .carousel-indicator.active {
        width: 20px;
    }
}

/* ============================================================================
   INSTAGRAM STORIES STYLING
   ============================================================================ */

/* Stories container */
.stories-container {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    margin-bottom: 20px;
}

.stories-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.stories-scroll::-webkit-scrollbar {
    height: 4px;
}

.stories-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.stories-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.stories-track {
    display: flex;
    gap: 12px;
    padding: 0 12px;
    min-width: min-content;
}

/* Story thumbnail */
.story-thumbnail {
    position: relative;
    width: 100px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.story-thumbnail:hover {
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.story-thumb-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.4) 100%);
}

.story-thumb-title {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.story-thumb-author {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    color: white;
    font-size: 9px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.8;
}

/* Story preview modal */
.story-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    cursor: pointer;
}

.story-preview-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    max-height: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    z-index: 10000;
}

.story-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.story-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.story-viewer {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.story-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease-in-out;
}

/* Swipe animation - fade in from right (next story) */
.story-content.swipe-next {
    animation: slideInFromRight 0.4s ease-out;
}

/* Swipe animation - fade in from left (previous story) */
.story-content.swipe-prev {
    animation: slideInFromLeft 0.4s ease-out;
}

/* Keyframe animations for smooth swipe transitions */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.story-header {
    padding: 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    position: relative;
    z-index: 10;
}

.story-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.story-title {
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.story-meta {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.story-media-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.story-media {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-audio-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
}

.story-audio-container audio {
    width: 100%;
    max-width: 400px;
}

/* Story navigation */
.story-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
    z-index: 10;
}

.story-prev-btn,
.story-next-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.story-prev-btn:hover,
.story-next-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.story-prev-btn:disabled,
.story-next-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Story progress bar */
.story-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    z-index: 10;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .story-thumbnail {
        width: 90px;
        height: 130px;
    }
    
    .story-preview-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .story-prev-btn,
    .story-next-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .stories-track {
        gap: 10px;
        padding: 0 10px;
    }
    
    .story-thumbnail {
        width: 80px;
        height: 120px;
    }
    
    .story-thumb-title {
        font-size: 10px;
    }
    
    .story-thumb-author {
        font-size: 8px;
    }
    
    .story-preview-content {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    
    .story-header {
        padding: 12px;
    }
    
    .story-title {
        font-size: 14px;
    }
    
    .story-meta {
        font-size: 11px;
    }
    
    .story-prev-btn,
    .story-next-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .story-close-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

/* ============================================================================
   STORY MODAL FORM STYLING
   ============================================================================ */

.story-section {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 16px;
}

.story-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.story-fields .form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.story-fields .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
}

.story-fields .form-group input {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.story-fields .form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.required {
    color: #ef4444;
}

/* ============================================================================
   VIDEO THUMBNAIL AND AUDIO STORY STYLING
   ============================================================================ */

.story-video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #667eea;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.story-audio-thumb {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.story-audio-thumb .audio-icon {
    font-size: 48px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}
