/* DabDash Frontend Styles
 * Modern glassmorphism design for customer-facing components
 */

/* Modern Design System Variables */
:root {
    --sv-background: hsl(120, 10%, 5%);
    --sv-foreground: hsl(0, 0%, 95%);
    --sv-card: hsl(120, 10%, 7%);
    --sv-muted: hsl(120, 10%, 15%);
    --sv-border: hsl(120, 10%, 20%);
    --sv-primary-green: #1F7A3A;
    --sv-amber: #FFB938;
    --sv-radius: 0.75rem;
    --sv-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dabdash-location-widget,
.dabdash-delivery-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--sv-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: var(--glass-shadow);
    color: var(--sv-foreground);
    transition: all 0.3s var(--sv-ease);
}

.dabdash-location-widget.prominent {
    border-color: var(--sv-amber);
    box-shadow: 0 0 0 2px rgba(255, 185, 56, 0.3),
                var(--glass-shadow);
    animation: sv-pulse 3s infinite;
}

@keyframes sv-pulse {
    0%, 100% {
        box-shadow: 0 0 0 2px rgba(255, 185, 56, 0.3),
                    var(--glass-shadow);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(255, 185, 56, 0.5),
                    0 12px 40px rgba(0, 0, 0, 0.4);
        transform: scale(1.01);
    }
}

/* Location Header */
.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.location-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--sv-foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, var(--sv-amber), var(--sv-primary-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.location-header .dashicons {
    background: linear-gradient(135deg, var(--sv-amber), var(--sv-primary-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(255, 185, 56, 0.3));
}

/* Override detect-location-btn with glassmorphism design when using dabdash-btn */
.detect-location-btn.dabdash-btn {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: linear-gradient(135deg, var(--sv-primary-green), var(--sv-amber)) !important;
    color: var(--sv-foreground) !important;
    border: none !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: calc(var(--sv-radius) - 4px) !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(31, 122, 58, 0.3) !important;
}

.detect-location-btn.dabdash-btn:hover {
    background: linear-gradient(135deg, var(--sv-amber), var(--sv-primary-green)) !important;
    color: var(--sv-foreground) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 185, 56, 0.4) !important;
}

.detect-location-btn.dabdash-btn .dashicons {
    color: white !important;
    font-size: 16px !important;
}

/* Current Zone Display */
.current-zone {
    background: rgba(31, 122, 58, 0.1);
    border: 1px solid rgba(31, 122, 58, 0.3);
    border-radius: calc(var(--sv-radius) - 2px);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(31, 122, 58, 0.15);
}

.current-zone strong {
    color: var(--sv-foreground);
    font-weight: 700;
}

.zone-name {
    background: linear-gradient(135deg, var(--sv-amber), var(--sv-primary-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    margin-left: 0.5rem;
}

/* Override change-zone-btn with glassmorphism design when using dabdash-btn */
.change-zone-btn.dabdash-btn {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--sv-foreground) !important;
    padding: 0.5rem 1rem !important;
    border-radius: calc(var(--sv-radius) - 4px) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

.change-zone-btn.dabdash-btn:hover {
    background: rgba(255, 185, 56, 0.1) !important;
    border-color: var(--sv-amber) !important;
    color: var(--sv-foreground) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 185, 56, 0.2) !important;
}

/* Zone Selector */
.zone-selector {
    margin-top: 15px;
}

.zone-selector label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--sv-foreground);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.zone-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: calc(var(--sv-radius) - 2px);
    background: var(--glass-bg);
    color: var(--sv-foreground);
    font-weight: 500;
    transition: all 0.3s var(--sv-ease);
}

/* Status Messages */
.location-status {
    margin-top: 15px;
}

.status-message {
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 14px;
    display: none;
}

.status-message.success {
    background: rgba(31, 122, 58, 0.1);
    border: 1px solid rgba(31, 122, 58, 0.3);
    color: var(--sv-foreground);
    border-left: 3px solid var(--sv-primary-green);
}

.status-message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--sv-foreground);
    border-left: 3px solid #ef4444;
}

.loading-spinner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sv-foreground);
    font-size: 0.875rem;
    font-weight: 500;
    opacity: 0.8;
}

.loading-spinner .dashicons {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Location Notice */
.dabdash-location-notice {
    background: linear-gradient(135deg,
        var(--sv-primary-green) 0%,
        var(--sv-amber) 100%);
    color: var(--sv-foreground);
    padding: 1.25rem 1.5rem;
    border-radius: var(--sv-radius);
    margin-bottom: 1.5rem;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.notice-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.notice-content .dashicons {
    color: white;
    font-size: 20px;
}

.detect-location-inline {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--sv-foreground);
    padding: 0.5rem 1rem;
    border-radius: calc(var(--sv-radius) - 4px);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s var(--sv-ease);
}

.detect-location-inline:hover {
    background: rgba(255, 185, 56, 0.2);
    border-color: var(--sv-amber);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 185, 56, 0.3);
}

/* Delivery Info Widget */
.dabdash-delivery-widget {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--sv-radius);
    margin-bottom: 1rem;
    box-shadow: var(--glass-shadow);
}

.delivery-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.delivery-available {
    color: var(--sv-foreground);
    font-weight: 600;
}

.delivery-available .dashicons {
    color: var(--sv-primary-green);
    filter: drop-shadow(0 2px 4px rgba(31, 122, 58, 0.3));
}

.delivery-unavailable {
    color: var(--sv-foreground);
    font-weight: 600;
    opacity: 0.9;
}

.delivery-unavailable .dashicons {
    color: #ef4444;
    filter: drop-shadow(0 2px 4px rgba(239, 68, 68, 0.3));
}

.delivery-unknown {
    color: var(--sv-foreground);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.9;
}

.delivery-unknown .dashicons {
    color: var(--sv-amber);
    filter: drop-shadow(0 2px 4px rgba(255, 185, 56, 0.3));
}

.zone-info {
    font-style: italic;
    opacity: 0.8;
}

.zone-price {
    margin-top: 5px;
    font-weight: 600;
    color: #0073aa;
}

.set-location-btn {
    background: #ffc107;
    border: 1px solid #ffcd39;
    color: #000;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.set-location-btn:hover {
    background: #ffcd39;
}

/* Zone Availability on Product Pages */
.dabdash-zone-availability {
    background: #f8f9fa;
    border: 1px solid #e2e4e7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.dabdash-zone-availability h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #1d2327;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zones-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zone-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.zone-name {
    font-weight: 500;
}

.zone-price {
    color: #0073aa;
    font-weight: 600;
}

.zone-stock {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
}

.zone-stock.instock {
    background: #d1e7dd;
    color: #0f5132;
}

.zone-stock.outofstock {
    background: #f8d7da;
    color: #721c24;
}

.zone-stock.onbackorder {
    background: #fff3cd;
    color: #664d03;
}


/* Responsive Design */
@media (max-width: 768px) {
    .location-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .detect-location-btn {
        align-self: center;
    }
    
    .current-zone {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        text-align: center;
    }
    
    .notice-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .delivery-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .zone-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* Integration with WooCommerce */
.woocommerce .dabdash-location-widget {
    margin-bottom: 30px;
}

.woocommerce .dabdash-delivery-widget {
    margin: 10px 0 20px 0;
}

/* Cart and Checkout Integration */
.woocommerce-cart .dabdash-location-widget,
.woocommerce-checkout .dabdash-location-widget {
    background: white;
    border: 1px solid #e2e4e7;
    padding: 20px;
    border-radius: 6px;
}

/* Product Loop Integration */
.woocommerce ul.products li.product .dabdash-zone-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #0073aa;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
}

/* Accessibility */
.dabdash-location-widget:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.detect-location-btn:focus,
.change-zone-btn:focus,
.zone-select:focus,
.set-location-btn:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .dabdash-location-widget,
    .dabdash-delivery-widget {
        border-width: 2px;
    }
    
    .current-zone {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .loading-spinner .dashicons {
        animation: none;
    }

    .dabdash-location-widget.prominent {
        animation: none;
    }

    * {
        transition: none !important;
        animation: none !important;
    }
}

/* ==========================================================================
   DabDash Isolated Component System
   ========================================================================== */

/* Self-Contained Button System - No Theme Dependencies */
.dabdash-btn {
    display: inline-block !important;
    padding: 0.75rem 1.5rem !important;
    background: #007cba !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    white-space: nowrap !important;
    user-select: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.dabdash-btn:hover {
    background: #005a87 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.dabdash-btn:focus {
    outline: 2px solid #0073aa !important;
    outline-offset: 2px !important;
    background: #005a87 !important;
    color: #ffffff !important;
}

.dabdash-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.dabdash-btn:disabled {
    background: #cccccc !important;
    color: #666666 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Button Variants */
.dabdash-btn-primary {
    background: #007cba !important;
    color: #ffffff !important;
}

.dabdash-btn-primary:hover {
    background: #005a87 !important;
}

.dabdash-btn-secondary {
    background: #f8f9fa !important;
    color: #495057 !important;
    border: 1px solid #dee2e6 !important;
}

.dabdash-btn-secondary:hover {
    background: #e9ecef !important;
    color: #495057 !important;
    border-color: #adb5bd !important;
}

.dabdash-btn-success {
    background: #28a745 !important;
    color: #ffffff !important;
}

.dabdash-btn-success:hover {
    background: #218838 !important;
}

.dabdash-btn-warning {
    background: #ffc107 !important;
    color: #212529 !important;
}

.dabdash-btn-warning:hover {
    background: #e0a800 !important;
}

.dabdash-btn-danger {
    background: #dc3545 !important;
    color: #ffffff !important;
}

.dabdash-btn-danger:hover {
    background: #c82333 !important;
}

/* Button Sizes */
.dabdash-btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

.dabdash-btn-lg {
    padding: 1rem 2rem !important;
    font-size: 1.125rem !important;
}

/* Self-Contained Notice System - No Theme Dependencies */
.dabdash-notice {
    padding: 1rem 1.5rem !important;
    margin: 1rem 0 !important;
    border-radius: 6px !important;
    border: 1px solid transparent !important;
    box-sizing: border-box !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
}

.dabdash-notice-info {
    background: #e7f3ff !important;
    border-color: #0073aa !important;
    color: #0073aa !important;
}

.dabdash-notice-success {
    background: #d1ecf1 !important;
    border-color: #bee5eb !important;
    color: #0c5460 !important;
}

.dabdash-notice-warning {
    background: #fff3cd !important;
    border-color: #ffeaa7 !important;
    color: #856404 !important;
}

.dabdash-notice-error {
    background: #f8d7da !important;
    border-color: #f1b0b7 !important;
    color: #721c24 !important;
}

/* Notice with Icons */
.dabdash-notice-with-icon {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
}

.dabdash-notice-icon {
    flex-shrink: 0 !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    margin-top: 0.125rem !important;
}

/* Self-Contained Icon System - Fallback for Dashicons */
.dabdash-icon {
    display: inline-block !important;
    width: 1em !important;
    height: 1em !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

.dabdash-icon-location::before {
    content: "📍" !important;
}

.dabdash-icon-check::before {
    content: "✅" !important;
}

.dabdash-icon-warning::before {
    content: "⚠️" !important;
}

.dabdash-icon-error::before {
    content: "❌" !important;
}

.dabdash-icon-info::before {
    content: "ℹ️" !important;
}

/* Specific Styling for No Products Message */
.dabdash-no-zone-message {
    text-align: center !important;
    padding: 3rem 2rem !important;
    margin: 2rem 0 !important;
}

.dabdash-no-zone-message .dabdash-notice-icon {
    font-size: 3rem !important;
    margin-bottom: 1rem !important;
    opacity: 0.7 !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.dabdash-no-zone-message .dabdash-notice-content {
    max-width: 100% !important;
}

.dabdash-no-zone-message .dabdash-message-title {
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin: 0 0 1rem 0 !important;
    color: inherit !important;
}

.dabdash-no-zone-message .dabdash-message-text {
    font-size: 1rem !important;
    margin: 0 0 1.5rem 0 !important;
    line-height: 1.5 !important;
    color: inherit !important;
    opacity: 0.8 !important;
}

.dabdash-no-zone-message .dabdash-btn {
    margin-top: 0.5rem !important;
}

/* ==========================================================================
   Modern Frontend Enhancements
   ========================================================================== */

/* Add hover effects for interactive elements */
.zone-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 185, 56, 0.2);
    border-color: var(--sv-amber);
}

.dabdash-location-widget:hover,
.dabdash-delivery-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(255, 185, 56, 0.15),
                var(--glass-shadow);
}

/* Enhanced focus states for accessibility */
.detect-location-btn:focus,
.change-zone-btn:focus,
.zone-select:focus,
.set-location-btn:focus,
.zone-option:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 185, 56, 0.4);
    transform: translateY(-1px);
}

/* Modern gradient text for prices */
.zone-price {
    background: linear-gradient(135deg, var(--sv-amber), var(--sv-primary-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Zone Map Styling */
#zone-selection-map {
    border-radius: var(--sv-radius);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

/* Zone Polygon Enhanced Tooltips */
.leaflet-tooltip.zone-tooltip {
    background: var(--sv-card) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px !important;
    color: var(--sv-foreground) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    padding: 8px 12px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    opacity: 0.95 !important;
}

.leaflet-tooltip.zone-tooltip::before {
    border-top-color: var(--sv-card) !important;
}

/* Zone Polygon Styling Enhancements */
.leaflet-interactive.zone-polygon {
    cursor: pointer !important;
    transition: all 0.3s var(--sv-ease) !important;
}

.leaflet-interactive.zone-polygon:hover {
    filter: brightness(1.2) !important;
}

/* Map Controls Styling */
.leaflet-control-zoom a {
    background: var(--sv-card) !important;
    border: 1px solid var(--glass-border) !important;
    color: var(--sv-foreground) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--sv-muted) !important;
    border-color: var(--sv-primary-green) !important;
}

/* Map Instructions Styling */
.map-instructions {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: var(--sv-foreground) !important;
    font-size: 0.875rem !important;
    text-align: center !important;
    margin-top: 12px !important;
    opacity: 0.9 !important;
}

/* Frontend Store Markers */
.frontend-store-marker-container {
    background: none !important;
    border: none !important;
}

.frontend-store-marker {
    background: white;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.frontend-store-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.frontend-store-marker .store-icon {
    font-size: 16px;
    line-height: 1;
}

/* Frontend Store Popup */
.frontend-store-popup-container .leaflet-popup-content-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.frontend-store-popup-container .leaflet-popup-tip {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.frontend-store-popup {
    padding: 4px;
}

.frontend-store-popup h4 {
    margin: 0 0 12px 0;
    color: #1a1a1a;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.frontend-store-popup p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.frontend-store-popup strong {
    color: #1a1a1a;
}

.store-status-active {
    color: #22c55e;
    font-weight: 600;
}

.store-status-inactive {
    color: #ef4444;
    font-weight: 600;
}

/* ==========================================================================
   Zone Switcher Navigation Button Styling
   ========================================================================== */

/* Zone Switcher Wrapper */
.dabdash-zone-switcher-wrapper {
    display: inline-block;
    position: relative;
}

/* Base Zone Switcher Button Styling - Sleek Silicon Valley/Apple Design */
.dabdash-zone-switcher {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: #ffffff !important;
    color: #1d1d1f !important;
    border: 1px solid transparent !important;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease !important;
    box-shadow: none !important;
    position: relative !important;
    min-width: 320px !important;
    max-width: 380px !important;
}

/* Zone Switcher Hover Effects - Minimal Apple-style */
.dabdash-zone-switcher:hover {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    color: #1d1d1f !important;
    text-decoration: none !important;
}

/* Zone Switcher Focus State */
.dabdash-zone-switcher:focus {
    outline: none !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    color: #1d1d1f !important;
}

/* Zone Switcher Icon - Show as subtle pin when no zone is selected */
.dabdash-zone-switcher .dashicons {
    color: #999999 !important;
    font-size: 16px !important;
    margin-right: 8px !important;
}

/* Hide icon when zone badge is present */
.dabdash-zone-switcher:has(.current-zone-badge) .dashicons {
    display: none !important;
}

/* Zone Switcher Text - Always flex but center when no badge */
.dabdash-zone-switcher .zone-switcher-text {
    color: #1d1d1f !important;
    font-weight: 400 !important;
    flex: 1 !important;
    text-align: center !important;
}

/* Zone Switcher Text - Show and left align when badge is present */
.dabdash-zone-switcher:has(.current-zone-badge) .zone-switcher-text {
    display: inline-block !important;
    text-align: left !important;
}

/* Current Zone Badge (Chip Style) - Right side with pin icon */
.dabdash-zone-switcher .current-zone-badge {
    background: #f2f2f7 !important;
    color: #1d1d1f !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-left: 12px !important;
    border: none !important;
    letter-spacing: -0.01em !important;
    text-transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Pin icon for zone badge */
.dabdash-zone-switcher .current-zone-badge::before {
    content: "📍" !important;
    font-size: 12px !important;
    margin-right: 2px !important;
}

/* Menu Zone Switcher Specific Styling - Inherit main styling */
.dabdash-menu-item-wrapper {
    display: inline-block !important;
}

/* Menu zone switcher inherits main styling - no overrides needed for consistency */

/* Active/Selected State - Apple-style */
.dabdash-zone-switcher.active,
.dabdash-zone-switcher[aria-expanded="true"] {
    border: 1px solid #007aff !important;
    box-shadow: 0 0 0 2px rgba(0, 122, 255, 0.2) !important;
}

/* Loading State */
.dabdash-zone-switcher.loading {
    opacity: 0.6 !important;
    cursor: wait !important;
    pointer-events: none !important;
}

.dabdash-zone-switcher.loading .zone-switcher-text::after {
    content: '...' !important;
    animation: loading-dots 1.5s infinite !important;
}

@keyframes loading-dots {
    0%, 20% { opacity: 0; }
    50% { opacity: 1; }
    80%, 100% { opacity: 0; }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .dabdash-zone-switcher {
        min-width: 240px !important;
        max-width: 100% !important;
        font-size: 14px !important;
    }

    .dabdash-zone-switcher .current-zone-badge {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .dabdash-zone-switcher {
        border: 2px solid white !important;
    }

    .dabdash-zone-switcher .current-zone-badge {
        border: 2px solid white !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .dabdash-zone-switcher,
    .dabdash-zone-switcher::before {
        transition: none !important;
        animation: none !important;
    }

    .dabdash-zone-switcher:hover {
        transform: none !important;
    }
}

/* =================================================================
   DABDASH FILTER FORM COMPONENT
   Minimalist glassmorphism design with isolated CSS classes
   ================================================================= */

.dabdash-filters-container {
    background: var(--glass-bg) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--sv-radius) !important;
    padding: 1.5rem !important;
    margin-bottom: 2rem !important;
    position: relative !important;
    transition: all 0.3s var(--sv-ease) !important;
}

.dabdash-filters-form {
    display: flex !important;
    gap: 1rem !important;
    flex-wrap: wrap !important;
    align-items: flex-end !important;
}

.dabdash-filter-field {
    flex: 1 !important;
    min-width: 200px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.dabdash-filter-field--compact {
    min-width: 150px !important;
    flex: 0 0 auto !important;
}

.dabdash-filter-label {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.025em !important;
    margin: 0 !important;
    text-transform: uppercase !important;
}

.dabdash-filter-input,
.dabdash-filter-select {
    width: 100% !important;
    padding: 0.75rem 1rem !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    color: var(--sv-foreground) !important;
    font-size: 0.875rem !important;
    font-weight: 400 !important;
    transition: all 0.2s var(--sv-ease) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

.dabdash-filter-input:focus,
.dabdash-filter-select:focus {
    outline: none !important;
    border-color: var(--sv-primary-green) !important;
    box-shadow: 0 0 0 3px rgba(31, 122, 58, 0.3),
                inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

.dabdash-filter-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic !important;
}

.dabdash-filter-select option {
    background: var(--sv-card) !important;
    color: var(--sv-foreground) !important;
    padding: 0.5rem !important;
}

.dabdash-filter-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.875rem 2rem !important;
    background: linear-gradient(135deg, var(--sv-primary-green) 0%, #2a8a4a 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 25px !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    cursor: pointer !important;
    transition: all 0.3s var(--sv-ease) !important;
    position: relative !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 14px rgba(31, 122, 58, 0.4) !important;
}

.dabdash-filter-btn:hover {
    background: linear-gradient(135deg, #2a8a4a 0%, var(--sv-primary-green) 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(31, 122, 58, 0.6) !important;
}

.dabdash-filter-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 14px rgba(31, 122, 58, 0.4) !important;
}

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

.dabdash-filter-btn:hover::before {
    left: 100% !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dabdash-filters-form {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    .dabdash-filter-field,
    .dabdash-filter-field--compact {
        min-width: 100% !important;
        flex: 1 !important;
    }

    .dabdash-filter-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }
}

@media (max-width: 480px) {
    .dabdash-filters-container {
        padding: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .dabdash-filters-form {
        gap: 1rem !important;
    }

    .dabdash-filter-input,
    .dabdash-filter-select {
        padding: 0.75rem !important;
    }
}

/* Dark theme compatibility - DISABLED to prevent conflicts with theme styling */
/* @media (prefers-color-scheme: dark) {
    :root {
        --sv-background: hsl(120, 10%, 3%);
        --sv-card: hsl(120, 10%, 5%);
        --sv-muted: hsl(120, 10%, 10%);
    }
} */

/* ==========================================================================
   Cart Icon Navigation Styling
   ========================================================================== */

.dabdash-cart-icon-wrapper {
    display: inline-block;
    position: relative;
}

.dabdash-cart-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    color: #1d1d1f !important;
    text-decoration: none !important;
    cursor: pointer !important;
    padding: 4px !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    font-size: 24px !important;
    opacity: 1 !important;
}

/* Ensure dashicons are visible */
.dabdash-cart-icon::before {
    color: inherit !important;
}

.dabdash-cart-icon:hover {
    opacity: 0.7 !important;
}

.dabdash-cart-icon .dashicons,
.dabdash-cart-icon .dashicons-cart {
    width: 24px !important;
    height: 24px !important;
    font-size: 24px !important;
    line-height: 1 !important;
    color: #1d1d1f !important;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-family: dashicons !important;
    vertical-align: middle !important;
}

/* Force the icon to show with specific content */
.dabdash-cart-icon .dashicons-cart::before {
    content: "\f174" !important;
    display: inline-block !important;
    color: #1d1d1f !important;
    font-size: 24px !important;
    width: 24px !important;
    height: 24px !important;
    line-height: 1 !important;
}

.cart-count-badge {
    position: absolute !important;
    top: -8px !important;
    right: -10px !important;
    background: #1F7A3A !important;
    color: #ffffff !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    min-width: 18px !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

/* Menu Integration */
.dabdash-menu-item-wrapper.dabdash-cart-wrapper {
    display: inline-block;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dabdash-cart-icon {
        font-size: 22px !important;
    }

    .dabdash-cart-icon .dashicons,
    .dabdash-cart-icon .dashicons-cart {
        width: 22px !important;
        height: 22px !important;
        font-size: 22px !important;
    }

    .dabdash-cart-icon .dashicons-cart::before {
        font-size: 22px !important;
        width: 22px !important;
        height: 22px !important;
    }

    .cart-count-badge {
        font-size: 10px !important;
        padding: 1px 5px !important;
        min-width: 16px !important;
    }
}

/* ============================================
   Product Page Inventory Messages
   ============================================ */

/* Inventory message container */
.dabdash-inventory-message {
    margin: 1rem 0;
    padding: 0;
    display: none;
}

/* Base message styling */
.dabdash-inventory-message > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--sv-radius, 0.75rem);
    font-size: 0.875rem;
    line-height: 1.5;
}

.dabdash-inventory-message .dashicons {
    flex-shrink: 0;
    font-size: 1.25rem;
    width: 1.25rem;
    height: 1.25rem;
}

.dabdash-inventory-message .message {
    flex: 1;
}

/* Out of stock warning */
.dabdash-out-of-stock-message .dabdash-stock-warning {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.dabdash-out-of-stock-message .dashicons {
    color: #f87171;
}

/* No zone selected warning */
.dabdash-no-zone-message .dabdash-zone-warning {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.08));
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: #fcd34d;
    flex-wrap: wrap;
}

.dabdash-no-zone-message .dashicons {
    color: #fbbf24;
}

.dabdash-select-zone-btn {
    background: linear-gradient(135deg, var(--sv-primary-green, #1F7A3A), var(--sv-amber, #FFB938));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: calc(var(--sv-radius, 0.75rem) - 4px);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s var(--sv-ease, ease);
    margin-left: auto;
}

.dabdash-select-zone-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 122, 58, 0.3);
}

/* Error message */
.dabdash-error-message .dabdash-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(239, 68, 68, 0.08));
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.dabdash-error-message .dashicons {
    color: #f87171;
}

/* Availability info (in stock but limited) */
.dabdash-availability-info .dabdash-stock-info {
    background: transparent;
    border: none;
    color: #1F7A3A;
}

.dabdash-availability-info .dashicons {
    color: #1F7A3A;
}

/* Add to cart button states */
.single_add_to_cart_button.dabdash-checking-inventory {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.single_add_to_cart_button.dabdash-checking-inventory::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: dabdash-spin 0.8s linear infinite;
}

@keyframes dabdash-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

.single_add_to_cart_button.dabdash-out-of-stock {
    opacity: 0.5;
    cursor: not-allowed;
    background: #6b7280 !important;
}

.single_add_to_cart_button.dabdash-out-of-stock:hover {
    transform: none;
    box-shadow: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .dabdash-inventory-message > div {
        flex-wrap: wrap;
        padding: 0.75rem;
    }

    .dabdash-select-zone-btn {
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 0;
    }
}

/* Mix & Match Frontend Styles */
.dabdash-mix-match-notice {
    background: linear-gradient(135deg, rgba(31, 122, 58, 0.15), rgba(255, 185, 56, 0.08));
    border: 1px solid rgba(31, 122, 58, 0.3);
    border-radius: var(--sv-radius, 0.75rem);
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    color: var(--sv-foreground, #f5f5f5);
}

.dabdash-mix-match-notice .mix-match-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.dabdash-mix-match-notice .mix-match-header .dashicons {
    color: var(--sv-amber, #FFB938);
}

.dabdash-mix-match-notice .mix-match-details {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.dabdash-mix-match-notice .mix-match-progress {
    margin-top: 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 9999px;
    height: 6px;
    overflow: hidden;
}

.dabdash-mix-match-notice .mix-match-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--sv-primary-green, #1F7A3A), var(--sv-amber, #FFB938));
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.dabdash-mix-match-notice.qualified {
    background: linear-gradient(135deg, rgba(31, 122, 58, 0.25), rgba(31, 122, 58, 0.1));
    border-color: rgba(31, 122, 58, 0.5);
}

.dabdash-mix-match-notice.qualified .mix-match-header {
    color: #4ade80;
}

.dabdash-mix-match-notice.qualified .dashicons {
    color: #4ade80;
}

/* Cart page mix & match savings */
.woocommerce-cart .dabdash-mix-match-savings-notice {
    background: linear-gradient(135deg, #1F7A3A 0%, #16a34a 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: var(--sv-radius, 0.75rem);
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(31, 122, 58, 0.3);
}

.woocommerce-cart .dabdash-mix-match-savings-notice .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Cart item mix & match indicator */
.woocommerce-cart .cart_item .dabdash-mm-applied {
    display: inline-block;
    background: var(--sv-amber, #FFB938);
    color: #000;
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Cart item mix & match badge and discount */
.dabdash-mix-match-cart-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.dabdash-mix-match-badge {
    display: inline-block;
    background: linear-gradient(135deg, #1F7A3A 0%, #FFB938 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(31, 122, 58, 0.3);
}

.dabdash-mix-match-discount {
    display: inline-block;
    color: #1F7A3A;
    font-weight: 600;
    font-size: 0.875rem;
}

.dabdash-mix-match-discount .woocommerce-Price-amount {
    font-weight: 700;
}

.dabdash-mix-match-partial {
    display: inline-block;
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
}

/* Ensure the variation data displays nicely */
.woocommerce-cart .variation dt,
.woocommerce-cart .variation dd {
    display: inline;
}

.woocommerce-cart .variation dd p {
    display: inline;
    margin: 0;
}

/* ===== Modern WooCommerce Variant Dropdowns ===== */
.woocommerce div.product form.cart .variations,
body.single-product .variations {
    margin-bottom: 1.5rem !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.woocommerce div.product form.cart .variations td.label,
body.single-product .variations td.label {
    vertical-align: middle !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    background: transparent !important;
}

.woocommerce div.product form.cart .variations td.label label,
.woocommerce div.product form.cart .variations label,
body.single-product .variations label {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    line-height: 52px !important;
    margin: 0 !important;
    background: transparent !important;
}

.woocommerce div.product form.cart .variations td.value,
body.single-product .variations td.value {
    padding-right: 1rem !important;
    background: transparent !important;
}

.woocommerce div.product form.cart .variations select,
.woocommerce .variations select,
.woocommerce div.product form.cart .variations td.value select,
body.single-product .variations select,
body.single-product select#pa_weight,
body.single-product select[name^="attribute_"] {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 52px !important;
    padding: 0 2.5rem !important;
    margin: 0 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-align: center !important;
    text-align-last: center !important;
    box-shadow: none !important;
}

.woocommerce div.product form.cart .variations select:hover,
.woocommerce .variations select:hover,
body.single-product .variations select:hover {
    border-color: #1F7A3A !important;
}

.woocommerce div.product form.cart .variations select:focus,
.woocommerce .variations select:focus,
body.single-product .variations select:focus {
    outline: none !important;
    border-color: #1F7A3A !important;
    box-shadow: 0 0 0 3px rgba(31, 122, 58, 0.15) !important;
}

.woocommerce div.product form.cart .variations select option,
body.single-product .variations select option {
    text-align: center !important;
    background: #fff !important;
}

/* Reset variation link - hidden, not needed */
.woocommerce div.product form.cart .reset_variations,
body.single-product .reset_variations,
.variations .reset_variations,
a.reset_variations {
    display: none !important;
}

/* Variation price display */
.woocommerce div.product form.cart .woocommerce-variation-price,
body.single-product .woocommerce-variation-price {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.woocommerce div.product form.cart .woocommerce-variation-price .price,
body.single-product .woocommerce-variation-price .price {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
}

/* Compact single variation wrap */
body.single-product .single_variation_wrap,
.woocommerce div.product .single_variation_wrap {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

body.single-product .single_variation_wrap > *,
.woocommerce div.product .single_variation_wrap > * {
    margin: 0 !important;
}

body.single-product .single_variation,
.woocommerce div.product .single_variation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

body.single-product .single_variation > *,
.woocommerce div.product .single_variation > * {
    margin: 0 !important;
}

/* Inventory availability message styling */
.dabdash-inventory-message,
.dabdash-inventory-message.dabdash-availability-info {
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 0.9rem !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.dabdash-availability-info,
.dabdash-availability-info .dabdash-stock-info {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.dabdash-stock-info {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #1F7A3A !important;
    font-weight: 500 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.dabdash-stock-info .dashicons {
    color: #1F7A3A !important;
}

.dabdash-stock-info .message {
    color: #1F7A3A !important;
}

/* Product page mix & match notice */
.dabdash-mix-match-product-notice {
    display: block;
    width: 100%;
    clear: both;
    float: none;
    background: linear-gradient(135deg, rgba(31, 122, 58, 0.15), rgba(255, 185, 56, 0.1));
    border: 1px solid rgba(31, 122, 58, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    animation: mix-match-fade-in 0.3s ease;
}

/* Ensure add-to-cart section has proper spacing when mix-match follows */
/* ===== Modern Add to Cart & Quantity Styles ===== */

/* Add to cart wrapper */
.woocommerce-variation-add-to-cart,
.woocommerce div.product form.cart {
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
}

/* Quantity wrapper - scoped to single product pages only */
body.single-product .woocommerce div.product form.cart .quantity,
body.single-product .quantity {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    border-radius: 12px !important;
    border: 2px solid #e5e7eb !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
    box-shadow: none !important;
    min-width: 150px !important;
}

body.single-product .woocommerce div.product form.cart .quantity:focus-within,
body.single-product .quantity:focus-within {
    border-color: #1F7A3A !important;
    box-shadow: 0 0 0 3px rgba(31, 122, 58, 0.15) !important;
}

/* Quantity input field - scoped to single product pages only */
body.single-product .woocommerce div.product form.cart .quantity input.qty,
body.single-product .quantity input.qty,
body.single-product input[name="quantity"] {
    width: 60px !important;
    height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    text-align: center !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    box-shadow: none !important;
}

body.single-product .woocommerce div.product form.cart .quantity input.qty::-webkit-outer-spin-button,
body.single-product .woocommerce div.product form.cart .quantity input.qty::-webkit-inner-spin-button,
body.single-product .quantity input.qty::-webkit-outer-spin-button,
body.single-product .quantity input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

body.single-product .woocommerce div.product form.cart .quantity input.qty:focus,
body.single-product .quantity input.qty:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Quantity stepper buttons (plus/minus) - scoped to single product pages only */
body.single-product .woocommerce div.product form.cart .quantity .qty-btn,
body.single-product .woocommerce div.product form.cart .quantity .plus,
body.single-product .woocommerce div.product form.cart .quantity .minus,
body.single-product .quantity .plus,
body.single-product .quantity .minus,
body.single-product .quantity button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    color: #374151 !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    user-select: none !important;
    box-shadow: none !important;
}

body.single-product .woocommerce div.product form.cart .quantity .minus,
body.single-product .quantity .minus {
    border-right: 1px solid #e5e7eb !important;
}

body.single-product .woocommerce div.product form.cart .quantity .plus,
body.single-product .quantity .plus {
    border-left: 1px solid #e5e7eb !important;
}

body.single-product .woocommerce div.product form.cart .quantity .qty-btn:hover,
body.single-product .woocommerce div.product form.cart .quantity .plus:hover,
body.single-product .woocommerce div.product form.cart .quantity .minus:hover,
body.single-product .quantity .plus:hover,
body.single-product .quantity .minus:hover {
    background: #e5e7eb !important;
    background-color: #e5e7eb !important;
    color: #1F7A3A !important;
}

body.single-product .woocommerce div.product form.cart .quantity .qty-btn:active,
body.single-product .woocommerce div.product form.cart .quantity .plus:active,
body.single-product .woocommerce div.product form.cart .quantity .minus:active,
body.single-product .quantity .plus:active,
body.single-product .quantity .minus:active {
    background: #d1d5db !important;
    background-color: #d1d5db !important;
    transform: scale(0.95) !important;
}

/* Add to Cart button - Big & Modern */
.woocommerce div.product form.cart .single_add_to_cart_button,
.single_add_to_cart_button,
body.single-product .single_add_to_cart_button,
body.single-product button.single_add_to_cart_button,
body.single-product form.cart button[type="submit"] {
    flex: 1 !important;
    min-width: 200px !important;
    height: 56px !important;
    padding: 0 2rem !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #1F7A3A 0%, #16a34a 100%) !important;
    background-color: #1F7A3A !important;
    color: #fff !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 14px rgba(31, 122, 58, 0.35) !important;
    text-transform: uppercase !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover,
.single_add_to_cart_button:hover,
body.single-product .single_add_to_cart_button:hover,
body.single-product button.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #166534 0%, #15803d 100%) !important;
    background-color: #166534 !important;
    box-shadow: 0 6px 20px rgba(31, 122, 58, 0.45) !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
}

.woocommerce div.product form.cart .single_add_to_cart_button:active,
.single_add_to_cart_button:active,
body.single-product .single_add_to_cart_button:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(31, 122, 58, 0.3) !important;
}

/* Disabled state */
.woocommerce div.product form.cart .single_add_to_cart_button:disabled,
.woocommerce div.product form.cart .single_add_to_cart_button.disabled,
.single_add_to_cart_button:disabled,
.single_add_to_cart_button.disabled,
body.single-product .single_add_to_cart_button:disabled {
    background: #9ca3af !important;
    background-color: #9ca3af !important;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Responsive adjustments - scoped to single product pages only */
@media (max-width: 768px) {
    body.single-product .woocommerce div.product form.cart,
    body.single-product .woocommerce-variation-add-to-cart {
        flex-direction: column !important;
    }

    body.single-product .woocommerce div.product form.cart .quantity,
    body.single-product .quantity {
        width: 100% !important;
        min-width: 150px !important;
        justify-content: center !important;
    }

    body.single-product .woocommerce div.product form.cart .quantity input.qty,
    body.single-product .quantity input.qty {
        flex: 1 !important;
    }

    body.single-product .woocommerce div.product form.cart .single_add_to_cart_button,
    body.single-product .single_add_to_cart_button,
    body.single-product button.single_add_to_cart_button {
        width: 100% !important;
        min-width: unset !important;
        height: 56px !important;
        padding: 0 2rem !important;
        border: none !important;
        border-radius: 12px !important;
        background: linear-gradient(135deg, #1F7A3A 0%, #16a34a 100%) !important;
        background-color: #1F7A3A !important;
        color: #fff !important;
        font-size: 1.125rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        box-shadow: 0 4px 14px rgba(31, 122, 58, 0.35) !important;
    }
}

@keyframes mix-match-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dabdash-mix-match-product-notice .mix-match-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #1F7A3A;
}

.dabdash-mix-match-product-notice .mix-match-header .dashicons {
    color: #FFB938;
}

.dabdash-mix-match-product-notice .mix-match-details {
    font-size: 0.9rem;
    color: #333;
    line-height: 1.5;
}


/* Dark theme support for product page */
.woocommerce.single-product .dabdash-mix-match-product-notice {
    background: linear-gradient(135deg, rgba(31, 122, 58, 0.2), rgba(255, 185, 56, 0.1));
}

.woocommerce.single-product .dabdash-mix-match-product-notice .mix-match-details {
    color: inherit;
}

/* Mix & Match Progress Bar */
.dabdash-mix-match-product-notice .mix-match-progress-section {
    margin: 1rem 0 0.5rem 0;
}

.dabdash-mix-match-product-notice .mix-match-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.dabdash-mix-match-product-notice .mix-match-progress-text .progress-label {
    font-weight: 500;
}

.dabdash-mix-match-product-notice .mix-match-progress-text .progress-count {
    font-weight: 600;
    color: #1F7A3A;
}

.dabdash-mix-match-product-notice .mix-match-progress-bar-container {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    height: 8px;
    overflow: hidden;
}

.dabdash-mix-match-product-notice .mix-match-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #1F7A3A, #2d9e4d);
    border-radius: 20px;
    transition: width 0.3s ease;
}

.dabdash-mix-match-product-notice .mix-match-progress-bar.complete {
    background: linear-gradient(90deg, #FFB938, #ffc94d);
}

.dabdash-mix-match-product-notice .mix-match-progress-section.complete .progress-count {
    color: #b8860b;
}

/* Mix & Match Products Grid */
.dabdash-mix-match-products {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 122, 58, 0.2);
}

/* Mix match products header with search */
.mix-match-products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.mix-match-products-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.mix-match-search {
    flex-shrink: 0;
    position: relative;
}

.mix-match-search-input {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 25px;
    font-size: 0.875rem;
    width: 220px;
    background: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mix-match-search-input:hover {
    border-color: #d1d5db;
}

.mix-match-search-input:focus {
    outline: none;
    border-color: #1F7A3A;
    box-shadow: 0 0 0 3px rgba(31, 122, 58, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mix-match-search-input::placeholder {
    color: #9ca3af;
}

/* Mobile: full width search */
@media (max-width: 768px) {
    .mix-match-products-header {
        flex-direction: column;
        align-items: stretch;
    }

    .mix-match-search {
        width: 100%;
    }

    .mix-match-search-input {
        width: 100%;
    }
}

/* Pagination */
.mix-match-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(31, 122, 58, 0.1);
}

.mix-match-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mix-match-page-btn:hover:not(:disabled) {
    border-color: #1F7A3A;
    color: #1F7A3A;
}

.mix-match-page-btn.active {
    background: #1F7A3A;
    border-color: #1F7A3A;
    color: #fff;
}

.mix-match-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.mix-match-page-dots {
    color: #9ca3af;
    padding: 0 4px;
}

.dabdash-mix-match-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
}

.dabdash-mix-match-product-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.dabdash-mix-match-product-item:hover {
    border-color: #1F7A3A;
    box-shadow: 0 2px 8px rgba(31, 122, 58, 0.15);
    transform: translateY(-2px);
}

.dabdash-mix-match-product-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.dabdash-mix-match-product-item .product-name {
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0.25rem;
}

.dabdash-mix-match-product-item .product-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1F7A3A;
}

/* Mix & Match Complete State */
.dabdash-mix-match-product-notice.mix-match-complete {
    background: linear-gradient(135deg, rgba(255, 185, 56, 0.2), rgba(31, 122, 58, 0.15));
    border-color: #FFB938;
}

.dabdash-mix-match-product-notice.mix-match-complete .mix-match-header {
    color: #b8860b;
}

.dabdash-mix-match-product-notice .mix-match-complete-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #FFB938;
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 0.5rem;
    text-transform: uppercase;
}

/* Quantity Input Lock State */
.dabdash-qty-locked {
    opacity: 0.6;
    pointer-events: none;
}

.dabdash-qty-locked input {
    background: #f3f4f6 !important;
    cursor: not-allowed;
}

.single_add_to_cart_button.dabdash-mix-match-locked {
    background: #9ca3af !important;
    border-color: #9ca3af !important;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Locked Message */
.dabdash-mix-match-locked-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 185, 56, 0.2);
    border: 1px solid #FFB938;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #92400e;
}

.dabdash-mix-match-locked-message .dashicons {
    color: #FFB938;
}

/* In Cart Badge on Mix & Match Products */
.dabdash-mix-match-product-item .in-cart-badge {
    display: inline-block;
    background: #1F7A3A;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    margin-top: 0.25rem;
}

/* No Products Message */
.dabdash-mix-match-no-products {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

/* Loading State */
.mix-match-products-loading {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* ===== ULTRA AGGRESSIVE WooCommerce Product Page Overrides ===== */
/* These styles use maximum specificity to override any theme styles */

/* WooCommerce Stock/Availability Messages - ALL variants */
body.single-product .woocommerce-variation-availability,
body.single-product .woocommerce-variation-availability p,
body.single-product .woocommerce-variation-availability .stock,
body.single-product .stock,
body.single-product p.stock,
body.single-product .in-stock,
body.single-product p.in-stock,
body.single-product .out-of-stock,
body.single-product p.out-of-stock,
.woocommerce div.product .woocommerce-variation-availability,
.woocommerce div.product .woocommerce-variation-availability p,
.woocommerce div.product .stock,
.woocommerce div.product p.stock,
.woocommerce div.product .in-stock,
.woocommerce div.product p.in-stock,
.woocommerce div.product form.cart .woocommerce-variation-availability,
.woocommerce div.product form.cart .stock,
.woocommerce-variation-availability,
.woocommerce-variation-availability p,
.woocommerce-variation-availability .stock,
p.stock.in-stock,
p.stock.out-of-stock {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.25rem 0 !important;
    margin: 0.5rem 0 !important;
    color: #1F7A3A !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
}

body.single-product .out-of-stock,
body.single-product p.out-of-stock,
.woocommerce div.product .out-of-stock,
p.stock.out-of-stock {
    color: #dc2626 !important;
}

/* Variation table - hide background and borders */
body.single-product .variations,
body.single-product table.variations,
body.single-product .variations tbody,
body.single-product .variations tr,
body.single-product .variations th,
body.single-product .variations td,
.woocommerce div.product form.cart .variations,
.woocommerce div.product form.cart .variations tr,
.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    padding: 0.5rem 0 !important;
}

/* Variation table cell containing dropdown */
body.single-product .variations td.value,
body.single-product .variations .value,
.woocommerce div.product form.cart .variations td.value {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding-right: 1rem !important;
}

/* Select wrapper if theme uses one */
body.single-product .variations td.value > *,
body.single-product .variations .value > div,
.woocommerce div.product form.cart .variations td.value > div {
    width: 100% !important;
    background: transparent !important;
}

/* Force dropdown styling with maximum specificity */
html body.single-product .woocommerce div.product form.cart .variations select,
html body.single-product .woocommerce .variations select,
html body.single-product select#pa_weight,
html body.single-product select[name^="attribute_"],
html body.single-product table.variations select,
html body.single-product .variations td select,
html body.single-product .variations td.value select,
html body .woocommerce div.product .variations select,
html body .woocommerce div.product form.cart .variations td.value select {
    width: 100% !important;
    max-width: none !important;
    height: 52px !important;
    padding: 0 2.5rem !important;
    margin: 0 !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 1rem center !important;
    background-size: 20px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #111827 !important;
    cursor: pointer !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    text-align: center !important;
    text-align-last: center !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Dropdown hover */
html body.single-product .variations select:hover,
html body .woocommerce div.product .variations select:hover {
    border-color: #1F7A3A !important;
}

/* Dropdown focus */
html body.single-product .variations select:focus,
html body .woocommerce div.product .variations select:focus {
    border-color: #1F7A3A !important;
    box-shadow: 0 0 0 3px rgba(31, 122, 58, 0.15) !important;
    outline: none !important;
}

/* Force Add to Cart button styling */
html body.single-product button.single_add_to_cart_button,
html body.single-product .single_add_to_cart_button,
html body.single-product form.cart button[type="submit"],
html body .woocommerce div.product form.cart button.single_add_to_cart_button,
html body .woocommerce div.product form.cart .single_add_to_cart_button,
html body .woocommerce div.product button.single_add_to_cart_button {
    flex: 1 !important;
    min-width: 200px !important;
    height: 56px !important;
    padding: 0 2rem !important;
    border: none !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #1F7A3A 0%, #16a34a 100%) !important;
    background-color: #1F7A3A !important;
    color: #fff !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.025em !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(31, 122, 58, 0.35) !important;
    text-transform: uppercase !important;
    transition: all 0.2s ease !important;
}

html body.single-product button.single_add_to_cart_button:hover,
html body.single-product .single_add_to_cart_button:hover,
html body .woocommerce div.product form.cart button.single_add_to_cart_button:hover {
    background: linear-gradient(135deg, #166534 0%, #15803d 100%) !important;
    background-color: #166534 !important;
    box-shadow: 0 6px 20px rgba(31, 122, 58, 0.45) !important;
    transform: translateY(-2px) !important;
    color: #fff !important;
}

/* Force Quantity wrapper styling - scoped to single product pages only */
html body.single-product .quantity,
html body.single-product form.cart .quantity,
html body.single-product .woocommerce div.product form.cart .quantity {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    background: #f3f4f6 !important;
    background-color: #f3f4f6 !important;
    border-radius: 12px !important;
    border: 2px solid #e5e7eb !important;
    overflow: hidden !important;
    box-shadow: none !important;
    min-width: 150px !important;
}

/* Force Quantity input styling - scoped to single product pages only */
html body.single-product .quantity input.qty,
html body.single-product .quantity input[type="number"],
html body.single-product input[name="quantity"],
html body.single-product .woocommerce div.product form.cart .quantity input.qty {
    width: 60px !important;
    height: 56px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    background-color: transparent !important;
    text-align: center !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
    box-shadow: none !important;
    outline: none !important;
}

/* DabDash inventory message override */
html body.single-product .dabdash-inventory-message,
html body.single-product .dabdash-availability-info,
html body.single-product .dabdash-stock-info,
html body .dabdash-inventory-message,
html body .dabdash-availability-info,
html body .dabdash-stock-info {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

html body.single-product .dabdash-stock-info,
html body .dabdash-stock-info {
    color: #1F7A3A !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

html body.single-product .dabdash-stock-info .dashicons,
html body.single-product .dabdash-stock-info .message,
html body .dabdash-stock-info .dashicons,
html body .dabdash-stock-info .message {
    color: #1F7A3A !important;
}

/* DabDash Shop Page - Theme-neutral styling */
.dabdash-shop-page-wrapper {
    min-height: 100vh;
    padding: 20px 0;
}

.dabdash-shop-page-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.dabdash-shop-header {
    background: linear-gradient(135deg, #1F7A3A 0%, #16a34a 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

.dabdash-shop-header h1 {
    margin: 0 0 10px 0;
    font-size: 2.5em;
    color: #fff;
}

.dabdash-shop-header .shop-description {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 1.1em;
    color: #fff;
}

.dabdash-shop-header .shop-tagline {
    margin: 0;
    opacity: 0.8;
    color: #fff;
}

/* Dark Mode Support - Cart icon stays dark #1d1d1f on all backgrounds */