* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modal de Bienvenida */
.welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease-in-out;
}

.welcome-modal {
    background: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.5s ease-out;
}

.welcome-modal h2 {
    color: #FF8000;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.welcome-modal p {
    color: #333;
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.welcome-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.welcome-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.welcome-btn.yes {
    background: #FF8000;
    color: white;
}

.welcome-btn.yes:hover {
    background: #e67300;
    transform: translateY(-2px);
}

.welcome-btn.no {
    background: #f0f0f0;
    color: #333;
    border: 2px solid #ddd;
}

.welcome-btn.no:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.welcome-message {
    color: #FF8000;
    font-size: 20px;
    font-weight: bold;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInMessage 0.5s ease-in-out 0.3s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInMessage {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Analytics Dashboard Styles */
.analytics-section {
    margin-bottom: 30px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-card {
    background: white;
    border: 2px solid #FF8000;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.analytics-card h4 {
    color: #FF8000;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.analytics-tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.analytics-tab {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.analytics-tab.active {
    background: #FF8000;
    color: white;
    border-color: #FF8000;
}

.analytics-tab:hover:not(.active) {
    background: #e9ecef;
}

.analytics-value {
    font-size: 32px;
    font-weight: bold;
    color: #333;
    margin: 10px 0;
}

.analytics-subtitle {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.analytics-unit {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

.analytics-searches {
    background: white;
    border: 2px solid #FF8000;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.analytics-searches h4 {
    color: #FF8000;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.search-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.search-list h5 {
    color: #333;
    font-size: 16px;
    margin-bottom: 15px;
    text-align: center;
}

.analytics-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.analytics-list li {
    padding: 8px 12px;
    margin-bottom: 5px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #FF8000;
    font-size: 14px;
}

.analytics-list li:nth-child(1) { border-left-color: #FF8000; }
.analytics-list li:nth-child(2) { border-left-color: #e67300; }
.analytics-list li:nth-child(3) { border-left-color: #cc6600; }
.analytics-list li:nth-child(4) { border-left-color: #b35900; }
.analytics-list li:nth-child(5) { border-left-color: #994d00; }

.analytics-chart {
    background: white;
    border: 2px solid #FF8000;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.analytics-chart h4 {
    color: #FF8000;
    font-size: 18px;
    margin-bottom: 20px;
    text-align: center;
}

.chart-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.chart-period {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.chart-period.active {
    background: #FF8000;
    color: white;
    border-color: #FF8000;
}

.chart-period:hover:not(.active) {
    background: #e9ecef;
}

.chart-container {
    position: relative;
    height: 300px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    overflow: hidden;
}

.analytics-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.analytics-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    background: #FF8000;
    color: white;
}

.analytics-btn:hover {
    background: #e67300;
    transform: translateY(-2px);
}

.analytics-btn.danger {
    background: #dc3545;
}

.analytics-btn.danger:hover {
    background: #c82333;
}

/* Responsive Analytics */
@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .search-lists {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .analytics-tabs {
        flex-direction: column;
    }
    
    .chart-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .analytics-controls {
        flex-direction: column;
        align-items: center;
    }
}

/* Screen reader only labels */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Progressive Image Loading Styles */
.progressive-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    margin: 0.75rem;
    width: calc(100% - 1.5rem);
    overflow: hidden;
}

.progressive-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    filter: blur(8px);
    transform: scale(1.1); /* Slightly larger to hide blur edges */
    transition: opacity 0.3s ease;
}

.progressive-catalog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: opacity 0.3s ease;
    z-index: 1;
}

/* Loading indicator for lazy loading */
.loading-indicator {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loading-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FF8000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product card animations for lazy loading */
.product-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.product-card.lazy-loaded {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple products */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }
.product-card:nth-child(9) { animation-delay: 0.9s; }
.product-card:nth-child(10) { animation-delay: 1.0s; }
.product-card:nth-child(11) { animation-delay: 1.1s; }
.product-card:nth-child(12) { animation-delay: 1.2s; }

.end-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #888;
    font-style: italic;
    border-top: 1px solid #eee;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.end-message p {
    margin: 0;
    font-size: 0.9rem;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.3;
    color: #333;
    background-color: #f4f4f4;
    overflow-y: scroll; /* Force scrollbar to always be visible */
}

header {
    background: #FF8000;
    color: white;
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100px;
}

.header-spacer {
    width: 50px; /* Adjust to match the icon button width */
}

.company-logo {
    height: 73px;
    max-width: 293px;
    object-fit: contain;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.admin-icon-btn {
    background: transparent;
    color: white;
    border: 2px solid white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.admin-icon-btn:hover {
    background: white;
    color: #FF8000;
    transform: scale(1.05);
}

.admin-icon-btn svg {
    width: 24px;
    height: 24px;
}

/* ==================== NEWS BAR STYLES ==================== */

.news-bar {
    background: #FF8000;
    color: black;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    border-bottom: 1px solid #e67300;
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-bar.hidden {
    display: none;
}

.news-content {
    width: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.news-text {
    display: inline-block;
    padding: 0 1rem;
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 0.765rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    opacity: 0;
    animation: fadeInOut 5s ease-in-out infinite;
    line-height: 1.3;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.news-text:hover {
    animation-play-state: paused;
}

/* Multiple news items spacing */
.news-item {
    display: inline-block;
    margin-right: 4rem;
}

/* ==================== NEWS MANAGEMENT STYLES ==================== */

.news-section {
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-list {
    margin-top: 1rem;
}

.admin-news-item {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    gap: 1rem;
}

.admin-news-info {
    flex: 1;
}

.admin-news-content {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.admin-news-meta {
    font-size: 0.8rem;
    color: #666;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-news-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.news-status-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.news-status-badge.active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.news-status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* News Form Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label .checkmark {
    font-weight: normal;
}

/* News Modal Textarea */
#newsContent {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

#newsContent:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Navigation Bar */
.navigation-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 0.5rem 0;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.nav-btn:hover {
    color: #FF8000;
    background: rgba(255, 128, 0, 0.1);
}

.nav-btn.active {
    color: #FF8000;
    background: rgba(255, 128, 0, 0.15);
    border-bottom: 2px solid #FF8000;
}

/* Content Sections */
.content-section {
    min-height: calc(100vh - 230px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.content-section.hidden {
    display: none;
}

.maintenance-message {
    text-align: center;
    color: #666;
    max-width: 400px;
}

.maintenance-message svg {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.maintenance-message h2 {
    color: #FF8000;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.maintenance-message p {
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Old admin button styles removed - now using admin-icon-btn */

.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    transition: margin-left 0.3s ease;
}

/* List View Styles */
.catalog.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1000px;
}

.catalog.list-view .product-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    gap: 1.5rem;
    min-height: 120px;
}

.catalog.list-view .product-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 8px;
}

.catalog.list-view .product-info {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.catalog.list-view .product-name {
    font-size: 1.3rem;
    margin-bottom: 0.25rem;
}

.catalog.list-view .product-brand {
    font-size: 1rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 0.75rem;
    margin-top: -0.15rem;
    font-style: italic;
}

.catalog.list-view .price-info {
    margin: 0.1rem 0;
}

.catalog.list-view .bcv-price {
    margin-bottom: 0.3rem;
    display: inline-block;
    width: auto;
    max-width: fit-content;
    flex-shrink: 0;
}

/* List view description box positioning */
.catalog.list-view .description-box-container {
    margin: 0;
}

.filter-toggle {
    position: fixed;
    top: 220px;
    left: 20px;
    background: #FF8000;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    z-index: 100;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.filter-toggle.scrolled {
    top: 20px;
}

.filter-toggle:hover {
    background: #e6720a;
}

/* Cart Toggle Button */
.cart-toggle {
    position: fixed;
    top: 220px; /* Below header + nav + search bar */
    right: 20px;
    background: #FF8000;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    z-index: 100;
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.cart-toggle.scrolled {
    top: 20px;
}

.cart-toggle:hover {
    background: #e6720a;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 190px;
    right: -350px;
    width: 350px;
    height: calc(100vh - 190px);
    background: white;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    z-index: 200;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    margin: 0;
    color: #2c3e50;
}

.cart-header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.clear-cart {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.clear-cart:hover {
    background: #7f8c8d;
}

.hide-cart {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.hide-cart:hover {
    background: #c0392b;
}

.cart-items {
    margin-bottom: 1rem;
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    position: relative;
    min-height: 80px;
}

.cart-item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
    margin-right: 60px; /* Add margin to prevent overlap with controls */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 60px; /* Ensure consistent height */
}

.cart-item-name {
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    line-height: 1.2;
}

.cart-item-price {
    color: #000;
    font-weight: bold;
    background: #FF8000;
    border-radius: 10px;
    padding: 0.085rem 0.34rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.595rem;
    height: 24px;
    box-sizing: border-box;
    width: fit-content;
    margin-top: auto; /* Push to bottom of flex container */
}

.cart-item-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    align-items: flex-end;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.425rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.17rem;
    height: 24px;
    box-sizing: border-box;
}

.quantity-btn {
    background: #FF8000;
    color: white;
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.quantity-btn:hover {
    background: #e6720a;
}

.quantity-display {
    min-width: 26px;
    text-align: center;
    font-weight: bold;
    font-size: 0.765rem;
}

.remove-item-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    color: #e74c3c;
    border: none;
    width: 23px;
    height: 23px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.remove-item-btn:hover {
    color: #c0392b;
}

.cart-empty {
    text-align: center;
    color: #666;
    padding: 2rem;
}

.cart-empty p {
    margin: 0.5rem 0;
}

.cart-totals {
    border-top: 2px solid #FF8000;
    padding-top: 1rem;
    margin-top: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
}

.cart-total-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    text-align: center;
}

.cart-total-item {
    margin: 0.5rem 0;
    text-align: center;
}

.cart-total-bcv {
    color: #000;
    font-weight: bold;
    background: #FF8000;
    border-radius: 10px;
    padding: 0.2rem 0.8rem;
    display: inline-block;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-total-bs, .cart-total-promo {
    color: #2c3e50;
    font-weight: bold;
    font-size: 0.9rem;
    display: block;
    margin: 0.3rem 0;
}

/* Add to Cart Button */
.add-to-cart-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #FF8000;
    color: white;
    border: none;
    width: 32px; /* Reduced from 40px */
    height: 32px; /* Reduced from 40px */
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem; /* Adjusted proportionally for smaller button */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 128, 0, 0.3);
    z-index: 10;
}

.add-to-cart-btn:hover {
    background: #e6720a;
    transform: scale(1.1);
}

.add-to-cart-btn:active {
    transform: scale(0.95);
}

.add-to-cart-btn.added {
    background: #27ae60;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.add-to-cart-btn.added:hover {
    background: #219a52;
    transform: scale(1.1);
}

.add-to-cart-btn.added:hover::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #c0392b;
    border-radius: 50%;
    animation: pulse-remove 0.6s infinite;
}

@keyframes pulse-remove {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* Adjust catalog when cart is open */
.catalog.cart-open {
    margin-right: 350px;
    transition: margin-right 0.3s ease;
}

/* Product card positioning for add to cart button */
.product-card {
    position: relative;
}

/* Filter Sidebar */
.filter-sidebar {
    position: fixed;
    top: 140px; /* Adjust to match new header height + nav bar */
    left: -300px;
    width: 300px;
    height: calc(100vh - 140px); /* Adjust height to account for new header height + nav bar */
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 200;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

.filter-sidebar.open {
    left: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.filter-header h3 {
    margin: 0;
    color: #2c3e50;
}

.filter-header-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.clear-filters {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.clear-filters:hover {
    background: #7f8c8d;
}

.hide-filters {
    background: #e74c3c;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.hide-filters:hover {
    background: #c0392b;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h4 {
    margin-bottom: 0.5rem;
    color: #34495e;
    font-size: 1rem;
}

.filter-section select,
.filter-section input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.price-range {
    display: flex;
    gap: 0.5rem;
}

.price-range input {
    flex: 1;
}

/* Adjust catalog when filters are open */
.catalog.filtered {
    margin-left: 300px;
    transition: margin-left 0.3s ease;
}

/* Overlay for mobile */
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 150;
    display: none;
}

.filter-overlay.show {
    display: block;
}

.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    margin: 0.75rem;
    width: calc(100% - 1.5rem);
}

/* When product-image is used as a class for the progressive container */
.progressive-image-container.product-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    margin: 0.75rem;
    width: calc(100% - 1.5rem);
    overflow: hidden;
}

.product-info {
    padding: 0 0.75rem 0.75rem 0.75rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.2rem;
    color: #2c3e50;
}

.product-brand {
    font-size: 0.9rem;
    font-weight: 300;
    color: #666;
    margin-bottom: 0.5rem;
    margin-top: -0.3rem;
    font-style: italic;
}

.price-info {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

.bcv-price {
    color: #000;
    font-weight: bold;
    background: #FF8000;
    border: 1px solid #FF8000;
    border-radius: 20px;
    padding: 0.2rem 0.8rem;
    display: inline-block;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.total-bs {
    color: #000;
    font-weight: bold;
    font-size: 0.9rem;
}

.promo-price {
    color: #000000;
    font-weight: bold;
}

.product-tag {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin: 0.2rem 0;
    padding: 0.2rem 0.5rem;
    background: #ecf0f1;
    border-radius: 3px;
    display: inline-block;
    margin-right: 0.5rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow-y: auto;
    padding: 20px 0;
}

.modal-content {
    background-color: white;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    box-sizing: border-box;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: black;
}

/* Bulk Edit Modal Styles */
.bulk-edit-modal {
    max-width: 800px;
    width: 95%;
}

.bulk-edit-step {
    margin-bottom: 1rem;
}

.bulk-select-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    flex-wrap: wrap;
}

/* Bulk Edit View Toggle Styles */
.bulk-view-toggle-container {
    margin-left: auto;
}

.bulk-view-toggle {
    display: flex;
    background: white;
    border: 2px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bulk-view-toggle-btn {
    background: white;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
}

.bulk-view-toggle-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.bulk-view-toggle-btn.active {
    background: #FF8000;
    color: white;
}

.bulk-view-toggle-btn svg {
    width: 16px;
    height: 16px;
}

.bulk-control-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.bulk-control-btn:hover {
    background: #2980b9;
}

.selected-count {
    font-weight: bold;
    color: #2c3e50;
    margin-left: auto;
}

.bulk-products-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

/* Grid View for Bulk Edit */
.bulk-products-list.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    padding: 1rem;
    max-height: 400px;
}

.bulk-product-item.grid-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
    position: relative;
}

.bulk-product-item.grid-view:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.bulk-product-item.grid-view.selected {
    border-color: #FF8000;
    background: #fff5e6;
    box-shadow: 0 2px 8px rgba(255, 128, 0, 0.3);
}

/* Hidden products styling */
.bulk-product-item.hidden-product {
    opacity: 0.4;
}

.bulk-product-item.hidden-product::after {
    content: '👁️‍🗨️';
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 1;
}

.bulk-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.bulk-product-name-grid {
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    color: #333;
    line-height: 1.2;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Hide checkbox in grid view */
.bulk-products-list.grid-view .bulk-product-checkbox {
    display: none;
}

/* List view styles (existing) */
.bulk-products-list:not(.grid-view) .bulk-product-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
    position: relative;
}

.bulk-products-list:not(.grid-view) .bulk-product-item:hover {
    background: #f8f9fa;
}

.bulk-products-list:not(.grid-view) .bulk-product-item:last-child {
    border-bottom: none;
}

/* Hidden products in list view */
.bulk-products-list:not(.grid-view) .bulk-product-item.hidden-product {
    opacity: 0.4;
}

.bulk-products-list:not(.grid-view) .bulk-product-item.hidden-product::before {
    content: '👁️‍🗨️';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    z-index: 1;
}

.bulk-products-list:not(.grid-view) .bulk-product-item.hidden-product .bulk-product-checkbox {
    margin-left: 1.5rem;
}

.bulk-product-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}

.bulk-product-item:hover {
    background: #f8f9fa;
}

.bulk-product-item:last-child {
    border-bottom: none;
}

.bulk-product-checkbox {
    margin-right: 1rem;
    transform: scale(1.2);
}

.bulk-product-info {
    flex: 1;
}

.bulk-product-name {
    font-weight: bold;
    color: #2c3e50;
}

.bulk-product-details {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

.bulk-step-actions, .bulk-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.bulk-cancel-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.bulk-cancel-btn:hover {
    background: #7f8c8d;
}

.bulk-proceed-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.bulk-proceed-btn:hover:not(:disabled) {
    background: #229954;
}

.bulk-proceed-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.bulk-save-btn {
    background: #e67e22;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.bulk-save-btn:hover {
    background: #d35400;
}

.bulk-delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.bulk-delete-btn:hover {
    background: #c0392b;
}

.bulk-delete-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.bulk-visibility-btn {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.bulk-visibility-btn:hover {
    background: #8e44ad;
}

.bulk-visibility-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.bulk-back-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.bulk-back-btn:hover {
    background: #2980b9;
}

.selected-products-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}

.bulk-field-group {
    margin-bottom: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.bulk-field-checkbox {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.bulk-field-checkbox:hover {
    background: #e9ecef;
}

.bulk-field-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.bulk-field-content {
    padding: 1rem;
    background: white;
    border-top: 1px solid #ddd;
}

.bulk-field-content input, .bulk-field-content select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.bulk-tags-container {
    margin-bottom: 1rem;
}

.bulk-tag-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.bulk-tag-select {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bulk-tag-value {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-bulk-tag {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.remove-bulk-tag:hover {
    background: #c0392b;
}

.add-bulk-tag-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-bulk-tag-btn:hover {
    background: #229954;
}

/* Bulk Upload Modal Styles */
.bulk-upload-modal {
    max-width: 1200px; /* Increased width */
    width: 95%;
}

/* Image zoom overlay for bulk upload */
.image-zoom-overlay {
    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;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.image-zoom-overlay.show {
    opacity: 1;
    visibility: visible;
}

.image-zoom-container {
    max-width: 70%;
    max-height: 70vh;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.image-zoom-overlay.show .image-zoom-container {
    transform: scale(1);
}

.image-zoom-container img {
    width: 100%;
    height: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-zoom-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #FF8000;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 1;
}

.image-zoom-close:hover {
    background: #e67300;
}

/* Bulk product image hover effect */
.bulk-product-image {
    flex-shrink: 0;
    width: 120px; /* Slightly larger image */
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bulk-product-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 128, 0, 0.3);
}

.bulk-product-image::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bulk-product-image:hover::after {
    opacity: 1;
}

.bulk-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: filter 0.3s ease;
}

.bulk-product-image:hover img {
    filter: brightness(0.8);
}

.bulk-upload-step {
    margin-bottom: 1rem;
}

.bulk-upload-zone {
    margin-bottom: 1.5rem;
}

.upload-drop-zone {
    border: 2px dashed #3498db;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-drop-zone:hover {
    border-color: #2980b9;
    background: #e3f2fd;
}

.upload-drop-zone.dragover {
    border-color: #27ae60;
    background: #e8f5e8;
}

.upload-icon {
    margin-bottom: 1rem;
    color: #3498db;
}

.upload-drop-zone p {
    margin: 0.5rem 0;
    color: #2c3e50;
}

.select-images-btn {
    background: none;
    border: none;
    color: #3498db;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
}

.select-images-btn:hover {
    color: #2980b9;
}

.upload-hint {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

.selected-images-preview {
    margin-top: 1.5rem;
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

.image-preview-item {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.image-preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.image-preview-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.image-preview-remove:hover {
    background: #c0392b;
}

.image-preview-name {
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #666;
    text-align: center;
    word-break: break-word;
}

.bulk-upload-actions, .bulk-upload-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.products-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #e8f5e8;
    border-radius: 6px;
    border-left: 4px solid #27ae60;
}

.global-settings {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.global-settings h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.global-field-group {
    margin-bottom: 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.global-field-checkbox {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}

.global-field-checkbox:hover {
    background: #f8f9fa;
}

.global-field-checkbox input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.global-field-content {
    padding: 1rem;
    background: white;
    border-top: 1px solid #ddd;
}

.global-field-content input, .global-field-content select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.global-field-content small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-style: italic;
}

.global-tags-container {
    margin-bottom: 1rem;
}

.global-tag-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.global-tag-select, .global-tag-value {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.remove-global-tag {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.remove-global-tag:hover {
    background: #c0392b;
}

.add-global-tag-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-global-tag-btn:hover {
    background: #229954;
}

.apply-global-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 1rem;
}

.apply-global-btn:hover {
    background: #2980b9;
}

.products-data-container {
    margin-top: 2rem;
}

.products-data-container h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.bulk-products-data-list {
    max-height: 600px; /* Increased height */
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
}

.bulk-product-data-item {
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.bulk-product-data-item:last-child {
    border-bottom: none;
}

.bulk-product-image {
    flex-shrink: 0;
    width: 120px; /* Slightly larger image */
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.bulk-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bulk-product-form {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
    gap: 1.5rem;
    align-items: start;
}

.bulk-form-field {
    display: flex;
    flex-direction: column;
}

.bulk-form-field.full-width {
    grid-column: 1 / -1;
}

.bulk-form-field label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
    font-size: 0.9rem;
}

.bulk-form-field input, .bulk-form-field textarea {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.bulk-form-field input:focus, .bulk-form-field textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.bulk-form-field.required label::after {
    content: " *";
    color: #e74c3c;
}

.bulk-product-tags {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

.bulk-product-tags-container {
    margin-top: 0.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.75rem;
}

.bulk-product-tag-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.bulk-product-tag-select, .bulk-product-tag-value {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    min-width: 120px;
}

.remove-product-tag {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.3s;
    flex-shrink: 0;
}

.remove-product-tag:hover {
    background: #c0392b;
}

.add-product-tag-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    margin-top: 0.5rem;
    align-self: start;
}

.add-product-tag-btn:hover {
    background: #229954;
}

/* Admin Panel Styles */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 999;
}

.admin-header {
    background: #34495e;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.switch-user-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.switch-user-btn:hover {
    background: #2980b9;
}

.logout-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

.admin-content {
    padding: 2rem;
    height: calc(100vh - 80px);
    overflow-y: auto;
}

.settings-section, .products-section, .tags-section {
    margin-bottom: 2rem;
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.section-header h3 {
    margin: 0;
    color: #2c3e50;
    user-select: none;
}

.section-toggle {
    background: #3498db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1rem;
    pointer-events: auto;
    z-index: 10;
    position: relative;
}

.section-toggle:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.section-toggle.expanded .toggle-icon {
    transform: rotate(180deg);
}

.toggle-icon {
    transition: transform 0.3s ease;
    pointer-events: none;
}

.section-content {
    overflow: hidden;
    transition: all 0.3s ease;
}

.section-content.expanded {
    display: block !important;
}

.tags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tags-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.sync-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.sync-btn:hover {
    background: #2980b9;
}

.sync-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

.setting-item {
    margin-bottom: 1rem;
}

.setting-item label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.setting-item input {
    width: 200px;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.settings-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.settings-buttons button {
    flex: 1;
    min-width: 200px;
}

.cleanup-btn {
    background: #e74c3c !important;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.cleanup-btn:hover {
    background: #c0392b !important;
}

.cleanup-btn:disabled {
    background: #95a5a6 !important;
    cursor: not-allowed;
}

.thumbnail-btn {
    background: #3498db !important;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.thumbnail-btn:hover {
    background: #2980b9 !important;
}

.thumbnail-btn:disabled {
    background: #95a5a6 !important;
    cursor: not-allowed;
}

.regenerate-btn {
    background: #f39c12 !important;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.regenerate-btn:hover {
    background: #e67e22 !important;
}

.regenerate-btn:disabled {
    background: #95a5a6 !important;
    cursor: not-allowed;
}

.check-btn {
    background: #9b59b6 !important;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.check-btn:hover {
    background: #8e44ad !important;
}

.check-btn:disabled {
    background: #95a5a6 !important;
    cursor: not-allowed;
}

.fix-btn {
    background: #e67e22 !important;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.fix-btn:hover {
    background: #d35400 !important;
}

.fix-btn:disabled {
    background: #95a5a6 !important;
    cursor: not-allowed;
}

.add-btn, #saveSettings {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    transition: background 0.3s;
}

.add-btn:hover, #saveSettings:hover {
    background: #219a52;
}

/* AI Analysis Button */
.analyze-btn {
    background: #9b59b6;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 1rem;
    transition: background 0.3s;
}

.analyze-btn:hover {
    background: #8e44ad;
}

.products-list {
    margin-top: 1rem;
}

/* Admin product item styles */
.admin-product-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
}

.admin-product-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Hidden products in admin list */
.admin-product-item.hidden-product {
    opacity: 0.4;
}

.admin-product-item.hidden-product::before {
    content: '👁️‍🗨️';
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    z-index: 1;
}

.admin-product-item.hidden-product .admin-product-thumbnail {
    margin-left: 1.5rem;
}

.tags-list {
    margin-top: 1rem;
}

.admin-product-item {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    gap: 1rem;
}

.admin-product-thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.admin-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.admin-product-info {
    flex: 1;
}

.admin-product-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn, .delete-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.edit-btn {
    background: #3498db;
    color: white;
}

.edit-btn:hover {
    background: #2980b9;
}

.delete-btn {
    background: #e74c3c;
    color: white;
}

.delete-btn:hover {
    background: #c0392b;
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

/* Section headers in forms */
.form-group h4 {
    display: block;
    margin: 0 0 0.5rem 0;
    font-weight: bold;
    font-size: 1rem;
    color: inherit;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Brand Input Styling */
.brand-input-container {
    position: relative;
}

.brand-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.brand-suggestion-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.brand-suggestion-item:hover {
    background: #f8f9fa;
}

.brand-suggestion-item:last-child {
    border-bottom: none;
}

.brand-suggestion-item.highlighted {
    background: #e3f2fd;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.form-actions button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.form-actions button[type="submit"] {
    background: #27ae60;
    color: white;
}

.form-actions button[type="submit"]:hover {
    background: #219a52;
}

.form-actions button[type="button"] {
    background: #95a5a6;
    color: white;
}

.form-actions button[type="button"]:hover {
    background: #7f8c8d;
}

.hidden {
    display: none !important;
}

/* Login Form */
#loginForm {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#loginForm input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

#loginForm button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

#loginForm button:hover {
    background: #2980b9;
}
/* Tag Management Styles */
.admin-tag-item {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.admin-tag-info {
    flex: 1;
}

.admin-tag-actions {
    display: flex;
    gap: 0.5rem;
}

.tag-options {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    min-height: 100px;
    background: #f9f9f9;
}

.tag-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.tag-option-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.25rem;
    font-size: 0.9rem;
}

.tag-option-input:focus {
    outline: none;
    background: #f0f0f0;
}

.remove-option-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.remove-option-btn:hover {
    background: #c0392b;
}

.add-option-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.add-option-btn:hover {
    background: #219a52;
}

.tag-options-display {
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.25rem;
}

.tag-option-badge {
    display: inline-block;
    background: #ecf0f1;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

/* Special Tag Styling */
.special-tag {
    border: 2px solid #f39c12;
    background: #fef9e7;
}

.special-indicator {
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.special-tag-label {
    background: #f39c12;
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Dynamic product fields */
.dynamic-field {
    margin-bottom: 1rem;
}

.dynamic-field label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.dynamic-field select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Perfume Decant Options */
.decant-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.decant-option {
    flex: 1;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.decant-option label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: 0.9rem;
}

.decant-option input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

/* Bulk Edit Decant Options */
.bulk-decant-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.bulk-decant-option {
    flex: 1;
}

.bulk-decant-option label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.bulk-decant-option input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Global Decant Options for Bulk Upload */
.global-decant-options {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.global-decant-option {
    flex: 1;
}

.global-decant-option label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.global-decant-option input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Decant Display in Description */
.decant-prices-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem auto;
    max-width: 90%;
    padding: 1rem;
    background: rgba(255, 128, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 128, 0, 0.15);
}

.decant-prices-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FF8000;
    color: #FF8000;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    width: 100%;
    text-align: center;
}

.decant-prices-title::before {
    content: "💧";
    font-size: 1.2rem;
    color: #FF8000;
}

.decant-prices-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.decant-price-box {
    flex: 1;
    min-width: 160px;
    max-width: 200px;
    text-align: center;
    background: white;
    line-height: 0.2rem;
    padding: 1.2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 128, 0, 0.2);
}

.decant-size-title {
    color: #FF8000;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 0.5px;
}

.decant-bottle-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.decant-bottle-icon svg {
    fill: #FF8000;
    opacity: 0.8;
    margin-top: 0.4rem;
    width: 53px;
    height: 58px;
}

.decant-price-item {
    text-align: center;
}

.decant-bcv-price {
    color: #000 !important;
    font-weight: bold !important;
    background: #FF8000 !important;
    border: 1px solid #FF8000 !important;
    border-radius: 20px !important;
    padding: 0.6rem !important;
    display: inline-block !important;
    font-size: 0.85rem !important;
    margin-bottom: -0rem !important;
    box-shadow: none !important;
}

.decant-total-bs {
    color: #000 !important;
    font-weight: bold !important;
    font-size: 0.75rem !important;
    margin: 0.65rem 0 !important;
}

.decant-promo-price {
    color: #000000 !important;
    font-weight: bold !important;
    font-size: 0.75rem !important;
    margin: 0.15rem 0 !important;
}

/* ==================== PERFUME ANALYSIS SECTIONS ==================== */

.perfume-sections {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    max-width: 90%;
    padding: 1.5rem;
    background: rgba(255, 128, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 128, 0, 0.15);
    min-height: 200px;
}

.perfume-section {
    text-align: center;
    background: white;
    border-radius: 10px;
    padding: 0rem 1rem 0rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 128, 0, 0.2);
}

.section-header {
    display: flex;
    margin-top: -1rem;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-bottom: 2px solid #FF8000;
}

.section-icon {
    font-size: 1rem;
    color: #FF8000;
}

.section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #FF8000;
    letter-spacing: 0.5px;
}

/* When to Use Section */
.usage-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.9rem;
}

.usage-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.usage-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: -1.6rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8000;
}

.usage-label {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.usage-bar {
    width: 80px;
    height: 10px;
    background-color: rgba(255, 128, 0, 0.15);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 128, 0, 0.2);
}

.usage-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
    width: 0%;
}

/* Ensure inline styles take precedence */
.usage-fill[style*="width"] {
    width: var(--bar-width, 0%) !important;
}

/* Ensure bars are visible even with small percentages */
.usage-fill:not([style*="width: 0%"]) {
    min-width: 2px;
}

/* Force specific width values for testing */
.usage-fill[style*="width: 1"],
.usage-fill[style*="width: 2"],
.usage-fill[style*="width: 3"],
.usage-fill[style*="width: 4"],
.usage-fill[style*="width: 5"] {
    min-width: 4px !important;
}

/* Colors for usage bars using the main orange palette */
.cold-fill {
    background: linear-gradient(90deg, #4A90E2, #6BB6FF) !important;
}

.heat-fill {
    background: linear-gradient(90deg, #FF8000, #FFB347) !important;
}

.day-fill {
    background: linear-gradient(90deg, #FFD700, #FFA500) !important;
}

.night-fill {
    background: linear-gradient(90deg, #2C3E50, #34495E) !important;
}

/* Performance Section */
.performance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    justify-items: center;
}

.performance-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.performance-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: -1.6rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FF8000;
}

.performance-label {
    font-family: 'Rubik', sans-serif;
    font-weight: 500;
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.performance-bar {
    width: 80px;
    height: 10px;
    background-color: rgba(255, 128, 0, 0.15);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 128, 0, 0.2);
}

.performance-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 5px;
    transition: width 0.8s ease;
    width: 0%;
}

/* Ensure inline styles take precedence for performance bars */
.performance-fill[style*="width"] {
    width: var(--bar-width, 0%) !important;
}

/* Ensure performance bars are visible even with small percentages */
.performance-fill:not([style*="width: 0%"]) {
    min-width: 2px;
}

/* Force specific width values for testing */
.performance-fill[style*="width: 1"],
.performance-fill[style*="width: 2"],
.performance-fill[style*="width: 3"],
.performance-fill[style*="width: 4"],
.performance-fill[style*="width: 5"] {
    min-width: 4px !important;
}

.duration-fill {
    background: linear-gradient(90deg, #FF8000, #FF6B35) !important;
}

.projection-fill {
    background: linear-gradient(90deg, #FF4500, #FF8000) !important;
}

/* Specific width classes for reliable bar filling */
.bar-width-0 { width: 0% !important; }
.bar-width-5 { width: 5% !important; }
.bar-width-10 { width: 10% !important; }
.bar-width-15 { width: 15% !important; }
.bar-width-20 { width: 20% !important; }
.bar-width-25 { width: 25% !important; }
.bar-width-30 { width: 30% !important; }
.bar-width-35 { width: 35% !important; }
.bar-width-40 { width: 40% !important; }
.bar-width-45 { width: 45% !important; }
.bar-width-50 { width: 50% !important; }
.bar-width-55 { width: 55% !important; }
.bar-width-60 { width: 60% !important; }
.bar-width-65 { width: 65% !important; }
.bar-width-70 { width: 70% !important; }
.bar-width-75 { width: 75% !important; }
.bar-width-80 { width: 80% !important; }
.bar-width-85 { width: 85% !important; }
.bar-width-90 { width: 90% !important; }
.bar-width-95 { width: 95% !important; }
.bar-width-100 { width: 100% !important; }

/* Mobile responsiveness */
@media (max-width: 768px) {
    .perfume-sections {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem auto;
        padding: 1rem;
        align-items: center;
        min-height: auto;
    }
    
    .perfume-section {
        padding: 1rem 0.75rem;
    }
    
    .usage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .usage-icon {
        font-size: 1.2rem;
        height: 1.5rem;
    }
    
    .performance-icon {
        font-size: 1.5rem;
        height: 2rem;
    }
    
    .usage-bar {
        width: 50px;
        height: 5px;
    }
    
    .performance-bar {
        width: 70px;
        height: 6px;
    }
    
    .section-title {
        font-size: 0.8rem;
    }
    
    /* Decant mobile responsiveness */
    .decant-prices-container {
        margin: 1rem auto;
        padding: 0.75rem;
    }
    
    .decant-prices-title {
        margin-bottom: 0.75rem;
        padding-bottom: 0.4rem;
        font-size: 0.85rem;
    }
    
    .decant-prices-grid {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .decant-price-box {
        min-width: auto;
        max-width: none;
        padding: 0.75rem 0.5rem;
    }
    
    .decant-size-title {
        margin-bottom: 0.3rem;
        font-size: 0.8rem;
    }
    
    .decant-bottle-icon {
        margin-bottom: 0.3rem;
    }
    
    .decant-bottle-icon svg {
        width: 35px;
        height: 45px;
    }
    
    .decant-price-item {
        margin: 0.15rem 0;
    }
    
    .decant-bcv-price {
        font-size: 0.8rem !important;
        padding: 0.25rem 0.5rem !important;
        margin-bottom: 0.2rem !important;
    }
}

/* Product Tags Container */
.product-tags-container {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    margin-bottom: 1rem;
    min-height: 60px;
    background: #f9f9f9;
}

.product-tag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}

.product-tag-selects {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.product-tag-selects select {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.25rem;
    font-size: 0.9rem;
}

.product-tag-selects select:focus {
    outline: none;
    background: #f0f0f0;
}

.remove-product-tag-btn {
    background: #e74c3c;
    color: white;
    border: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.5rem;
}

.remove-product-tag-btn:hover {
    background: #c0392b;
}
/* Visibility Toggle Switch */
.visibility-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    margin-right: 0.5rem;
}

.visibility-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.visibility-switch input:checked + .switch-slider {
    background-color: #27ae60;
}

.visibility-switch input:checked + .switch-slider:before {
    transform: translateX(26px);
}

.switch-slider:hover {
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

/* Visibility Badge */
.visibility-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.visibility-badge.visible {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.visibility-badge.hidden {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Admin Product Actions Layout */
.admin-product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
/* Image Source Selection Buttons */
.image-source-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.image-source-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
    gap: 0.5rem;
}

.image-source-btn:hover {
    border-color: #3498db;
    background: #f8f9fa;
}

.image-source-btn.active {
    border-color: #3498db;
    background: #e3f2fd;
    color: #3498db;
}

.image-source-btn svg {
    width: 32px;
    height: 32px;
}

.image-source-btn span {
    font-weight: 500;
    font-size: 0.9rem;
}

.image-input-container {
    margin-bottom: 1rem;
}

.image-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    display: none;
}

.image-input.active {
    display: block;
}

.image-input[type="file"] {
    cursor: pointer;
}

.image-input[type="file"]::-webkit-file-upload-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 0.5rem;
}

.image-input[type="file"]::-webkit-file-upload-button:hover {
    background: #2980b9;
}
/* Image Upload Button */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.upload-image-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border: 2px dashed #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-height: 60px;
}

.upload-image-btn:hover {
    border-color: #3498db;
    background: #f0f8ff;
    color: #3498db;
}

.upload-image-btn svg {
    width: 24px;
    height: 24px;
}

.selected-file-name {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-left: 0.5rem;
}

.selected-file-name:not(:empty) {
    color: #27ae60;
    font-weight: 500;
}

/* Image Preview Styles */
.image-preview {
    margin-top: 1rem;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border: 2px solid #ddd;
    border-radius: 4px;
    object-fit: cover;
}
/* Product Search Styles */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.products-header .add-btn {
    white-space: nowrap;
}

.products-header .add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}



/* NEW PRODUCT BADGE - Distinctive visual element for products added in last 72 hours */
.new-product-badge {
    position: absolute;
    bottom: 1.2rem;
    right: 0.75rem;
    background: linear-gradient(45deg, #FF8000, #FF4500, #FF6B35, #FF8000);
    background-size: 300% 300%;
    color: white;
    font-weight: bold;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    animation: colorPulseOnly 2s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Color animation for the NEW badge - Only color, no scale */
@keyframes colorPulseOnly {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Ensure product cards have relative positioning for absolute badge */
.product-card {
    position: relative;
}

/* Mobile adjustments for NEW badge */
@media (max-width: 768px) {
    .new-product-badge {
        font-size: 0.6rem;
        padding: 3px 6px;
        bottom: 1.1rem;
        right: 0.75rem;
    }
}

/* Tag Search Bar - Same design as Product Search */
.tag-search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tag-search-bar:focus-within {
    border-color: #FF8000;
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.2);
}

.tag-search-input {
    width: 100%;
    padding: 12px 50px 12px 50px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: transparent;
    outline: none;
    color: #333;
}

.tag-search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.tag-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    z-index: 1;
}

.tag-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
    line-height: 1;
}

.tag-clear-btn:hover {
    background: #c0392b;
    transform: translateY(-50%);
}

.tag-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* News Search Bar - Same design as Product Search */
.news-search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-search-bar:focus-within {
    border-color: #FF8000;
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.2);
}

.news-search-input {
    width: 100%;
    padding: 12px 50px 12px 50px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: transparent;
    outline: none;
    color: #333;
}

.news-search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.news-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    z-index: 1;
}

.news-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
    line-height: 1;
}

.news-clear-btn:hover {
    background: #c0392b;
    transform: translateY(-50%);
}

.news-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Product Search Bar - Admin Panel */
.product-search-bar {
    position: relative;
    flex: 1;
    max-width: 400px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.product-search-bar:focus-within {
    border-color: #FF8000;
    box-shadow: 0 4px 12px rgba(255, 128, 0, 0.2);
}

.product-search-input {
    width: 100%;
    padding: 12px 50px 12px 50px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    background: transparent;
    outline: none;
    color: #333;
}

.product-search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.product-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    z-index: 1;
}

.product-clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
    line-height: 1;
}

.product-clear-btn:hover {
    background: #c0392b;
    transform: translateY(-50%);
}

.product-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
}
.no-products-found {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.loading-indicator {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-style: italic;
}

.search-results-count {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-header .add-btn {
        margin-bottom: 0.5rem;
    }
    
    .search-container {
        max-width: none;
    }
}
/* Product Description Textarea */
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Product Card Interactions */
.product-card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, border 0.3s;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.product-card.selected {
    border-color: #FF8000;
    box-shadow: 0 4px 15px rgba(255, 128, 0, 0.3);
}

/* Description Box */
.description-box {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    margin: 1rem 0;
    overflow: hidden;
    opacity: 0;
    max-height: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e0e0e0;
}

.description-box.open {
    opacity: 1;
    max-height: fit-content;
}

.description-header {
    background: #FF8000;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Admin Quick Edit Button */
.admin-quick-edit-btn {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.admin-quick-edit-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.admin-quick-edit-btn:active {
    transform: scale(0.95);
}

.admin-quick-edit-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Recently edited product highlight */
.product-card.recently-edited {
    animation: recentlyEditedPulse 2s ease-in-out;
    box-shadow: 0 0 20px rgba(255, 128, 0, 0.6);
    border: 2px solid #FF8000;
}

/* Preloading image indicator */
.product-card.preloading-image {
    opacity: 0.7;
    position: relative;
}

.product-card.preloading-image::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #FF8000;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
}

@keyframes recentlyEditedPulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 128, 0, 0.6);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 128, 0, 0.8);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 128, 0, 0.6);
        transform: scale(1);
    }
}

.description-title {
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
    background: #000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: left;
    display: inline-block;
    width: auto;
}

.description-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.description-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.description-content {
    padding: 1.5rem;
    line-height: 1.3;
    white-space: pre-line;
    word-wrap: break-word;
    text-indent: 0;
    margin-top: -1.8rem;
}

.description-content > * {
    margin-top: 0;
}

.description-content > *:first-child {
    margin-top: 20px;
    padding: 1rem;
}

/* Remove any leading whitespace from text nodes */
.description-content::first-line {
    text-indent: 0;
}

/* No Description Message */
.no-description {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 2rem;
    margin: 0;
}

/* Catalog Grid Adjustments */
.catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    transition: margin-left 0.3s ease;
}

/* Description Box Positioning */
.description-box-container {
    grid-column: 1 / -1;
    margin: 0 -1rem;
}
/* USER CONTROLS CONTAINER - Centered Layout */
.user-controls-container {
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

/* Catalog Search Bar - User Interface */
.catalog-search-bar {
    position: relative;
    width: 400px; /* 33% wider than original 300px */
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 22px;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 44px;
    display: flex;
    align-items: center;
}

.catalog-search-bar:focus-within {
    border-color: #FF8000;
    box-shadow: 0 3px 10px rgba(255, 128, 0, 0.15);
}

.catalog-search-input {
    width: 100%;
    height: 100%;
    padding: 0 45px 0 45px;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    background: transparent;
    outline: none;
    color: #333;
}

.catalog-search-input::placeholder {
    color: #999;
    font-weight: 400;
}

.catalog-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
    z-index: 1;
}

.catalog-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: #e74c3c;
    color: white;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.2s ease;
    line-height: 1;
}

.catalog-clear-btn:hover {
    background: #c0392b;
    transform: translateY(-50%);
}

.catalog-clear-btn:active {
    transform: translateY(-50%) scale(0.9);
}

/* Mobile User Controls */
@media (max-width: 768px) {
    .user-controls-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .catalog-search-bar {
        width: 100%;
        max-width: none;
        height: 46px;
    }
    
    .catalog-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0 48px 0 48px;
    }
    
    .catalog-search-icon {
        left: 16px;
    }
    
    .catalog-clear-btn {
        width: 28px;
        height: 28px;
        right: 10px;
    }
    
    .view-toggle,
    .sort-select {
        height: 46px;
    }
    
    .sort-select {
        width: 100%;
        min-width: auto;
    }
}

/* View Toggle Styles - Standalone */

.view-toggle {
    display: flex;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 44px; /* Match search bar height */
}

.view-toggle-btn {
    background: white;
    border: none;
    padding: 0 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #666;
    height: 100%;
}

.view-toggle-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.view-toggle-btn.active {
    background: #FF8000;
    color: white;
}

.view-toggle-btn svg {
    width: 20px;
    height: 20px;
}

/* Sort Container Styles */
.sort-container {
    display: flex;
    align-items: center;
}

.sort-select {
    padding: 0 0.5rem 0 0.5rem; /* Reduced right padding to make more compact */
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: auto; /* Remove min-width constraint */
    height: 44px; /* Match search bar height */
    text-align: center; /* Center only the selected text in closed state */
    background-position: calc(100% - 12px) center; /* Position arrow 12px from right edge */
}

/* Reset text alignment for dropdown options */
.sort-select option {
    text-align: left; /* Left-align dropdown options */
    padding: 0.5rem;
}

.sort-select:hover {
    border-color: #FF8000;
}

.sort-select:focus {
    outline: none;
    border-color: #FF8000;
    box-shadow: 0 0 0 3px rgba(255, 128, 0, 0.1);
}

/* USER SEARCH INPUT REMOVED */



/* Mobile Search Bars - Admin Panel */
@media (max-width: 768px) {
    .product-search-bar,
    .tag-search-bar,
    .news-search-bar {
        max-width: none;
        margin: 0;
    }
    
    .product-search-input,
    .tag-search-input,
    .news-search-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 14px 50px 14px 50px;
    }
    
    .product-clear-btn,
    .tag-clear-btn,
    .news-clear-btn {
        width: 32px;
        height: 32px;
        right: 10px;
    }
}

/* Search Results Info */
.search-results-info {
    text-align: center;
    color: #666;
    font-style: italic;
    grid-column: 1 / -1;
}

.search-results-count {
    background: #FF8000;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: -1rem;
    margin-top: -1rem;
    font-size: 0.9rem;
}

/* Adjust filter sidebar position */
.filter-sidebar {
    position: fixed;
    top: 190px; /* Adjust for search bar + nav bar */
    left: -300px;
    width: 300px;
    height: calc(100vh - 190px); /* Adjust height for search bar + nav bar */
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 200;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .user-search-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .user-search-wrapper {
        padding: 0.6rem;
        max-width: none;
        width: 100%;
    }
}

/* ==================== LOCATION SECTION STYLES ==================== */

.location-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.location-header {
    text-align: center;
    margin-bottom: 3rem;
}

.location-header h2 {
    color: #FF8000;
    font-size: 2.0rem;
    margin-bottom: 0.5rem;
}

.location-header p {
    color: #666;
    font-size: 1.1rem;
    margin-top: -0.7rem;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.address-card, .hours-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.address-icon, .hours-icon {
    background: #fff5e6;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.address-details h3, .hours-details h3 {
    color: #333;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.address-details p, .hours-details p {
    color: #666;
    margin-bottom: 0.3rem;
    line-height: 1.1
    ;
}

.closed-day {
    color: #e74c3c !important;
    font-style: italic;
}

.map-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.map-header {
    padding: 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-header h3 {
    color: #333;
    margin: 0;
}

.open-maps-btn {
    background: #FF8000;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.open-maps-btn:hover {
    background: #e67300;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.map-footer p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* ==================== LOCATION GALLERY STYLES ==================== */

.location-gallery {
    margin: 3rem 0 0 0;
}

.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-header h3 {
    color: #FF8000;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.gallery-header p {
    color: #666;
    font-size: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item.exterior,
    .gallery-item.interior {
        grid-column: 1;
    }
    
    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-item img {
        height: 180px;
    }
    
    .gallery-overlay {
        padding: 1.5rem 1rem 1rem;
    }
}

/* ==================== CONTACT SECTION STYLES ==================== */

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h2 {
    color: #FF8000;
    font-size: 2.0rem;
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: #666;
    font-size: 1.1rem;
    margin-top: -0.7rem;
}

.social-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-button-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-button-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.social-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.facebook-btn {
    background: #1877f2;
    color: white;
}

.facebook-btn:hover {
    background: #166fe5;
    transform: scale(1.05);
}

.instagram-btn {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.instagram-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(188, 24, 136, 0.3);
}

.whatsapp-btn {
    background: #25d366;
    color: white;
}

.whatsapp-btn:hover {
    background: #22c55e;
    transform: scale(1.05);
}

.email-btn {
    background: #ea4335;
    color: white;
}

.email-btn:hover {
    background: #d93025;
    transform: scale(1.05);
}

.social-info {
    text-align: center;
}

.social-handle {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.social-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.0;
}

.contact-footer {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    border: 1px solid #e0e0e0;
}

.contact-cta h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.contact-cta p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
}

/* ==================== LAZY LOADING STYLES ==================== */

/* Placeholder images with loading animation */
img[data-placeholder="true"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: 4px;
}

@keyframes loading-shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Smooth transition when image loads */
img.loaded {
    transition: opacity 0.3s ease-in-out;
}

/* Admin thumbnail loading states */
.admin-thumbnail-img[data-placeholder="true"] {
    opacity: 0.7;
}

.admin-thumbnail-img.loaded {
    opacity: 1;
}

/* Cart item image loading states */
.cart-item-image[data-placeholder="true"] {
    opacity: 0.7;
}

.cart-item-image.loaded {
    opacity: 1;
}

/* Bulk product image loading states */
.bulk-product-image[data-placeholder="true"] {
    opacity: 0.7;
}

.bulk-product-image.loaded {
    opacity: 1;
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    /* Hide news bar on mobile to save space */
    .news-bar {
        display: none !important;
    }
    
    /* Mobile Header Adjustments - 10% smaller */
    header {
        padding: 0.9rem 1rem; /* Reduced from 1rem */
        min-height: 63px; /* Reduced from 70px (10% smaller) */
    }
    
    .company-logo {
        height: 45px; /* Reduced proportionally */
        max-width: 180px; /* Reduced proportionally */
    }
    
    .admin-icon-btn {
        width: 36px; /* Reduced proportionally */
        height: 36px; /* Reduced proportionally */
    }
    
    .admin-icon-btn svg {
        width: 23px; /* Reduced proportionally */
        height: 23px; /* Reduced proportionally */
    }
    
    .header-spacer {
        width: 36px; /* Match admin button size */
    }
    
    /* Adjust fixed positioned elements for optimized mobile layout */
    .filter-toggle {
        top: 185px; /* Recalculated: header(85px) + nav(20px) + search(80px) */
        left: 10px;
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }
    
    .cart-toggle {
        top: 185px; /* Recalculated for even thinner navigation */
        right: 10px;
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }
    
    /* When scrolled, move to top but avoid overlapping products */
    .filter-toggle.scrolled {
        top: 15px;
    }
    
    .cart-toggle.scrolled {
        top: 15px;
    }
    
    .cart-sidebar {
        top: 120px; /* Adjusted for smaller header and no news bar */
        height: calc(100vh - 120px);
    }
    
    .filter-sidebar {
        top: 120px; /* Adjusted for smaller header and no news bar */
        height: calc(100vh - 120px);
    }
    
    /* Mobile Navigation Bar Adjustments - Made even thinner */
    .navigation-bar {
        padding: 0.08rem 0; /* Minimal vertical padding */
        gap: 1rem; /* Further reduced gap */
    }
    
    .nav-btn {
        font-size: 0.6rem; /* Further reduced from 0.68rem */
        padding: 0.25rem 1rem; /* Adjusted as requested */
        letter-spacing: 0.2px; /* Further reduced letter spacing */
        font-weight: 700; /* Slightly bolder to maintain readability */
        line-height: 1.2; /* Tighter line height */
    }
    
    /* Slightly center the "catalogo" and "contacto" buttons more */
    .navigation-bar {
        justify-content: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Mobile News Bar Adjustments */
    .news-bar {
        min-height: 28px;
    }
    
    .news-text {
        font-size: 0.65rem;
        padding: 0 0.8rem;
        letter-spacing: 0.3px;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .address-card, .hours-card {
        padding: 1.5rem;
    }
    
    .location-header h2, .contact-header h2 {
        font-size: 2rem;
    }
    
    .map-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .social-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-button-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .location-container, .contact-container {
        padding: 1rem;
    }
    
    .location-header h2, .contact-header h2 {
        font-size: 1.8rem;
    }
    
    .address-card, .hours-card {
        flex-direction: row;
        text-align: left;
        padding: 1rem;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .address-icon, .hours-icon {
        width: 40px;
        height: 40px;
        margin-top: 0.25rem;
    }
    
    .address-details, .hours-details {
        flex: 1;
    }
    
    .address-details h3, .hours-details h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }
    
    .address-details p, .hours-details p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .map-wrapper {
        height: 250px;
    }
}
/* ==================== IMAGE MODAL STYLES ==================== */

.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1001;
    transition: opacity 0.3s ease;
}

.image-modal-close:hover {
    opacity: 0.7;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-caption {
    color: white;
    margin-top: 1rem;
    font-size: 1.1rem;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
/* ==================== DEVICE DETECTION STYLES ==================== */

/* ==================== RESPONSIVE DESIGN ==================== */

/* Base responsive styles - layout adaptation only */

/* Mobile-first responsive design */
@media (max-width: 768px) {
    /* Catalog responsive layout */
    .catalog {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 3.2rem 1rem 1rem 1rem;
    }
    
    .product-card .product-image,
    .product-card .progressive-image-container.product-image {
        height: 140px;
    }
    
    .product-card .progressive-image-container.product-image .progressive-thumbnail,
    .product-card .progressive-image-container.product-image .progressive-catalog {
        object-fit: cover;
    }
    
    .product-card .product-info {
        padding: 0.75rem;
    }
    
    .product-card .product-name {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
    }
    
    .product-card .product-price {
        font-size: 0.85rem;
    }
    
    .product-card .product-tags {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }
    
    .product-card .product-tag {
        padding: 0.2rem 0.4rem;
        font-size: 0.65rem;
    }
    
    /* Button and input improvements for touch */
    button, .btn {
        min-height: 44px; /* iOS recommended touch target */
        padding: 0.75rem 1rem;
    }
    
    input, textarea, select {
        min-height: 44px;
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 0.75rem;
    }
    
    /* Filter and cart toggles */
    .filter-toggle,
    .cart-toggle {
        padding: 1rem 1.25rem;
        font-size: 1.1rem;
    }
    
    /* Gallery items */
    .gallery-item img {
        height: 220px;
    }
    
    /* News text */
    .news-text {
        font-size: 0.65rem;
    }
    
    /* Admin button adjustments */
    .admin-icon-btn svg {
        width: 26px;
        height: 26px;
    }
    
    /* View toggle button */
    .view-toggle-btn {
        padding: 0.5rem;
    }
    
    .view-toggle-btn svg {
        width: 18px;
        height: 18px;
    }
}

.touch-device .gallery-overlay {
    transform: translateY(0) !important; /* Always show overlay on touch devices */
    opacity: 0.9;
}

.no-touch .gallery-overlay {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.no-touch .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ==================== RESPONSIVE MEDIA QUERIES ==================== */

/* Mobile Portrait */
@media (max-width: 480px) and (orientation: portrait) {
    /* Extra small mobile screens - 2 columns, more compact */
    .catalog {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 3.2rem 0.75rem 0.75rem 0.75rem;
    }
    
    .product-card .product-image,
    .product-card .progressive-image-container.product-image {
        height: 120px;
    }
    
    .product-card .progressive-image-container.product-image .progressive-thumbnail,
    .product-card .progressive-image-container.product-image .progressive-catalog {
        object-fit: cover;
    }
    
    .product-card .product-info {
        padding: 0.5rem;
    }
    
    .product-card .product-name {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .product-card .product-price {
        font-size: 0.75rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) and (orientation: landscape) {
    /* Mobile landscape - 3 products per row for better use of horizontal space */
    .catalog {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 3.2rem 1rem 1rem 1rem;
    }
    
    .product-card .product-image,
    .product-card .progressive-image-container.product-image {
        height: 100px;
    }
    
    .product-card .progressive-image-container.product-image .progressive-thumbnail,
    .product-card .progressive-image-container.product-image .progressive-catalog {
        object-fit: cover;
    }
    
    .product-card .product-name {
        font-size: 0.8rem;
    }
    
    .product-card .product-price {
        font-size: 0.75rem;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Tablet responsive layout */
    .catalog {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .filter-toggle,
    .cart-toggle {
        padding: 0.9rem 1.1rem;
    }
}

/* Desktop */
@media (min-width: 1025px) {
    /* Add hover effects on larger screens */
    button:hover {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}



/* ==================== MANUAL ANALYSIS EDITING ==================== */

.analysis-manual-edit {
    background: #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #444;
    margin-top: 0.5rem;
}

.analysis-category {
    margin-bottom: 1.5rem;
}

.analysis-category:last-child {
    margin-bottom: 0;
}

.analysis-category h5 {
    color: #FFD700;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.analysis-input {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.analysis-input label {
    color: #ccc;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.analysis-input input {
    background: #1a1a1a;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.analysis-input input:focus {
    outline: none;
    border-color: #FF8000;
    box-shadow: 0 0 0 2px rgba(255, 128, 0, 0.2);
}

.analysis-input input::-webkit-outer-spin-button,
.analysis-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.analysis-input input[type=number] {
    -moz-appearance: textfield;
}

.analysis-note {
    background: #1a1a1a;
    border: 1px solid #555;
    border-radius: 4px;
    padding: 0.75rem;
    margin-top: 1rem;
}

.analysis-note small {
    color: #aaa;
    font-size: 0.8rem;
    line-height: 1.4;
}

.analysis-note strong {
    color: #FFD700;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .analysis-inputs {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .analysis-input {
        gap: 0.25rem;
    }
    
    .analysis-input label {
        font-size: 0.8rem;
    }
    
    .analysis-input input {
        padding: 0.4rem;
        font-size: 0.85rem;
    }
}

/* Additional button styling for regenerate button */
.regenerate-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.regenerate-btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.regenerate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.3);
}