/**
 * Bouquet Builder Styles
 * Constructor de ramos personalizados - UX First
 *
 * @package Petalos_y_Raices
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
.bouquet-builder-page {
    --bb-primary: #8B9D83;
    --bb-primary-dark: #2d3a2e;
    --bb-primary-light: #a8b8a1;
    --bb-secondary: #D4B5B0;
    --bb-secondary-light: #e8d5d1;
    --bb-bg: #FDFCFB;
    --bb-bg-alt: #F8F6F4;
    --bb-border: #E8E4DF;
    --bb-border-light: #F0EDE9;
    --bb-text: #2C3E2F;
    --bb-text-light: #6B7B6E;
    --bb-text-muted: #9BA89D;
    --bb-success: #4CAF50;
    --bb-warning: #FF9800;
    --bb-error: #E57373;
    --bb-white: #FFFFFF;
    --bb-radius: 16px;
    --bb-radius-sm: 8px;
    --bb-radius-full: 50px;
    --bb-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --bb-shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --bb-shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --bb-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --bb-transition-fast: 0.15s ease;
}

/* ==========================================================================
   Base / Reset
   ========================================================================== */
.bouquet-builder-page {
    background: var(--bb-bg);
    min-height: 100vh;
}

.bouquet-builder-page *,
.bouquet-builder-page *::before,
.bouquet-builder-page *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.bb-hero {
    background: linear-gradient(135deg, var(--bb-primary) 0%, var(--bb-primary-dark) 100%);
    color: var(--bb-white);
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bb-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.bb-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 600;
    margin: 0 0 12px;
    position: relative;
}

.bb-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    line-height: 1.5;
}

/* ==========================================================================
   Main Layout
   ========================================================================== */
.bb-wrapper {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    padding: 40px 0 100px;
    align-items: start;
}

/* ==========================================================================
   Filters
   ========================================================================== */
.bb-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--bb-border-light);
}

.bb-filter-btn {
    padding: 10px 22px;
    border: 2px solid var(--bb-border);
    border-radius: var(--bb-radius-full);
    background: var(--bb-white);
    color: var(--bb-text);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--bb-transition);
    white-space: nowrap;
}

.bb-filter-btn:hover {
    border-color: var(--bb-primary);
    color: var(--bb-primary-dark);
    transform: translateY(-1px);
}

.bb-filter-btn.active {
    background: var(--bb-primary-dark);
    border-color: var(--bb-primary-dark);
    color: var(--bb-white);
    box-shadow: var(--bb-shadow-sm);
}

.bb-filter-btn:focus-visible {
    outline: 3px solid var(--bb-primary-light);
    outline-offset: 2px;
}

/* ==========================================================================
   Flowers Grid
   ========================================================================== */
.bb-flowers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

/* Flower Card */
.bb-flower-card {
    background: var(--bb-white);
    border-radius: var(--bb-radius);
    border: 2px solid var(--bb-border);
    padding: 16px;
    text-align: center;
    transition: var(--bb-transition);
    position: relative;
    cursor: pointer;
}

.bb-flower-card:hover:not(.out-of-stock) {
    border-color: var(--bb-primary);
    box-shadow: var(--bb-shadow);
    transform: translateY(-4px);
}

.bb-flower-card.selected {
    border-color: var(--bb-primary-dark);
    background: linear-gradient(to bottom, rgba(139, 157, 131, 0.08), var(--bb-white));
    box-shadow: var(--bb-shadow);
}

/* Pulse animation when adding */
.bb-flower-card.pulse {
    animation: cardPulse 0.3s ease;
}

@keyframes cardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Out of stock */
.bb-flower-card.out-of-stock {
    opacity: 0.6;
    cursor: not-allowed;
}

.bb-flower-card.out-of-stock .bb-flower-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.5);
    border-radius: var(--bb-radius-sm);
}

.bb-stock-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: var(--bb-radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.bb-stock-badge.bb-out-of-stock {
    background: var(--bb-error);
    color: var(--bb-white);
}

/* Flower Image */
.bb-flower-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--bb-radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
    position: relative;
    background: var(--bb-bg-alt);
}

.bb-flower-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bb-flower-card:hover:not(.out-of-stock) .bb-flower-image img {
    transform: scale(1.08);
}

.bb-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bb-text-muted);
}

.bb-no-image svg {
    width: 48px;
    height: 48px;
}

/* Flower Info */
.bb-flower-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 500;
    margin: 0 0 6px;
    color: var(--bb-text);
    line-height: 1.3;
}

.bb-flower-price {
    font-size: 0.95rem;
    color: var(--bb-primary-dark);
    font-weight: 600;
    margin: 0 0 14px;
}

.bb-price-unit {
    font-weight: 400;
    color: var(--bb-text-light);
    font-size: 0.85rem;
}

/* Quantity Controls */
.bb-flower-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.bb-qty-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--bb-border);
    background: var(--bb-white);
    cursor: pointer;
    transition: var(--bb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.bb-qty-btn svg {
    width: 16px;
    height: 16px;
    color: var(--bb-text);
    transition: var(--bb-transition-fast);
}

.bb-qty-btn:hover:not(:disabled) {
    background: var(--bb-primary);
    border-color: var(--bb-primary);
}

.bb-qty-btn:hover:not(:disabled) svg {
    color: var(--bb-white);
}

.bb-qty-btn:active:not(:disabled) {
    transform: scale(0.92);
}

.bb-qty-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.bb-qty-btn:focus-visible {
    outline: 3px solid var(--bb-primary-light);
    outline-offset: 2px;
}

.bb-qty-value {
    font-weight: 700;
    font-size: 1.15rem;
    min-width: 28px;
    color: var(--bb-text);
    transition: var(--bb-transition-fast);
}

.bb-flower-card.selected .bb-qty-value {
    color: var(--bb-primary-dark);
}

/* Pop animation for quantity */
.bb-qty-value.pop {
    animation: qtyPop 0.25s ease;
}

@keyframes qtyPop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Quantity Badge */
.bb-qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 28px;
    height: 28px;
    background: var(--bb-primary-dark);
    color: var(--bb-white);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--bb-shadow-sm);
    border: 2px solid var(--bb-white);
    animation: badgeBounce 0.3s ease;
}

.bb-flower-card.selected .bb-qty-badge {
    display: flex;
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ==========================================================================
   Summary Sidebar
   ========================================================================== */
.bb-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
    z-index: 10;
}

.bb-summary-handle {
    display: none;
}

.bb-summary-inner {
    background: var(--bb-white);
    border-radius: var(--bb-radius);
    border: 1px solid var(--bb-border);
    padding: 28px;
    box-shadow: var(--bb-shadow);
}

.bb-summary-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin: 0 0 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--bb-border-light);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--bb-text);
}

.bb-summary-title svg {
    width: 24px;
    height: 24px;
    color: var(--bb-primary);
}

/* Progress Bar */
.bb-progress {
    margin-bottom: 24px;
    padding: 16px;
    background: var(--bb-bg-alt);
    border-radius: var(--bb-radius-sm);
}

.bb-progress-bar {
    height: 8px;
    background: var(--bb-border);
    border-radius: var(--bb-radius-full);
    overflow: hidden;
    margin-bottom: 10px;
}

.bb-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--bb-primary), var(--bb-primary-dark));
    border-radius: var(--bb-radius-full);
    width: 0%;
    transition: width 0.4s ease;
}

.bb-progress.complete .bb-progress-fill {
    background: var(--bb-success);
}

.bb-progress-text {
    margin: 0;
    font-size: 0.85rem;
    color: var(--bb-text-light);
    text-align: center;
}

.bb-progress-text span {
    font-weight: 700;
    color: var(--bb-text);
}

/* Empty State */
.bb-empty-state {
    text-align: center;
    padding: 30px 20px;
}

.bb-empty-icons {
    font-size: 2rem;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.bb-empty-icons span {
    animation: floatIcon 2s ease-in-out infinite;
}

.bb-empty-icons span:nth-child(2) {
    animation-delay: 0.2s;
}

.bb-empty-icons span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.bb-empty-text {
    color: var(--bb-text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0 0 12px;
}

.bb-empty-arrow {
    font-size: 1.5rem;
    color: var(--bb-primary);
    animation: bounceArrow 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes bounceArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Selected Items */
.bb-selected-items {
    max-height: 220px;
    overflow-y: auto;
    margin-bottom: 20px;
    scrollbar-width: thin;
    scrollbar-color: var(--bb-primary-light) transparent;
}

.bb-selected-items::-webkit-scrollbar {
    width: 6px;
}

.bb-selected-items::-webkit-scrollbar-thumb {
    background: var(--bb-primary-light);
    border-radius: 3px;
}

.bb-selected-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bb-bg-alt);
    border-radius: var(--bb-radius-sm);
    margin-bottom: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.bb-selected-item.removing {
    animation: slideOut 0.25s ease forwards;
}

@keyframes slideOut {
    to {
        opacity: 0;
        transform: translateX(10px);
        height: 0;
        padding: 0;
        margin: 0;
    }
}

.bb-selected-image {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.bb-selected-info {
    flex: 1;
    min-width: 0;
}

.bb-selected-name {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bb-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bb-selected-qty {
    font-size: 0.8rem;
    color: var(--bb-text-light);
}

.bb-selected-total {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--bb-primary-dark);
    white-space: nowrap;
}

.bb-remove-item {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--bb-text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--bb-transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.bb-remove-item:hover {
    opacity: 1;
    color: var(--bb-error);
    background: rgba(229, 115, 115, 0.1);
}

/* Extras Section */
.bb-extras {
    margin-bottom: 20px;
    padding: 20px;
    background: var(--bb-bg-alt);
    border-radius: var(--bb-radius-sm);
}

.bb-extras-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 14px;
    color: var(--bb-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bb-extras-title svg {
    width: 18px;
    height: 18px;
    color: var(--bb-secondary);
}

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

.bb-extra-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bb-white);
    border-radius: var(--bb-radius-sm);
    cursor: pointer;
    transition: var(--bb-transition-fast);
    border: 1px solid transparent;
}

.bb-extra-item:hover {
    border-color: var(--bb-primary-light);
}

.bb-extra-item input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bb-extra-check,
.bb-message-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--bb-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--bb-transition-fast);
    flex-shrink: 0;
}

.bb-extra-check svg,
.bb-message-check svg {
    width: 14px;
    height: 14px;
    color: var(--bb-white);
    opacity: 0;
    transform: scale(0.5);
    transition: var(--bb-transition-fast);
}

.bb-extra-item input:checked ~ .bb-extra-check,
.bb-message-toggle input:checked ~ .bb-message-check {
    background: var(--bb-primary-dark);
    border-color: var(--bb-primary-dark);
}

.bb-extra-item input:checked ~ .bb-extra-check svg,
.bb-message-toggle input:checked ~ .bb-message-check svg {
    opacity: 1;
    transform: scale(1);
}

.bb-extra-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--bb-text);
}

.bb-extra-price {
    font-size: 0.85rem;
    color: var(--bb-primary-dark);
    font-weight: 600;
}

/* Message Section */
.bb-message-section {
    margin-bottom: 20px;
    padding: 16px;
    background: var(--bb-bg-alt);
    border-radius: var(--bb-radius-sm);
}

.bb-message-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--bb-text);
}

.bb-message-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.bb-message-icon {
    width: 18px;
    height: 18px;
    color: var(--bb-text-light);
}

.bb-message-input {
    margin-top: 14px;
}

.bb-message-input textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-sm);
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: border-color var(--bb-transition-fast);
}

.bb-message-input textarea:focus {
    outline: none;
    border-color: var(--bb-primary);
}

.bb-char-count {
    display: block;
    text-align: right;
    font-size: 0.75rem;
    color: var(--bb-text-muted);
    margin-top: 6px;
}

/* Totals */
.bb-totals {
    border-top: 1px solid var(--bb-border-light);
    padding-top: 20px;
    margin-bottom: 20px;
}

.bb-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--bb-text);
}

.bb-totals-row.bb-grand-total {
    font-size: 1.25rem;
    font-weight: 700;
    border-top: 2px solid var(--bb-border);
    margin-top: 12px;
    padding-top: 16px;
    color: var(--bb-primary-dark);
}

/* Add to Cart Button */
.bb-add-to-cart {
    width: 100%;
    padding: 18px 28px;
    background: var(--bb-primary-dark);
    color: var(--bb-white);
    border: none;
    border-radius: var(--bb-radius-full);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--bb-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.bb-add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.bb-add-to-cart:not(:disabled):hover::before {
    left: 100%;
}

.bb-add-to-cart:hover:not(:disabled) {
    background: var(--bb-primary);
    transform: translateY(-2px);
    box-shadow: var(--bb-shadow);
}

.bb-add-to-cart:active:not(:disabled) {
    transform: translateY(0);
}

.bb-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.bb-add-to-cart svg {
    width: 20px;
    height: 20px;
}

.bb-btn-loading,
.bb-btn-success {
    display: none;
}

.bb-spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

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

/* Button success state */
.bb-add-to-cart.success {
    background: var(--bb-success);
}

.bb-add-to-cart.success .bb-btn-text {
    display: none;
}

.bb-add-to-cart.success .bb-btn-success {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Minimum Message */
.bb-min-message {
    text-align: center;
    font-size: 0.8rem;
    color: var(--bb-text-muted);
    margin: 12px 0 0;
    transition: var(--bb-transition-fast);
}

.bb-min-message.hidden {
    opacity: 0;
    visibility: hidden;
}

/* View Premade Link */
.bb-view-premade {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--bb-border-light);
    font-size: 0.85rem;
    color: var(--bb-text-light);
    text-decoration: none;
    transition: var(--bb-transition-fast);
}

.bb-view-premade:hover {
    color: var(--bb-primary-dark);
}

/* ==========================================================================
   Mobile Toggle Button
   ========================================================================== */
.bb-mobile-toggle {
    display: none;
}

/* ==========================================================================
   No Products State
   ========================================================================== */
.bb-no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--bb-white);
    border-radius: var(--bb-radius);
    border: 2px dashed var(--bb-border);
}

.bb-no-products p {
    color: var(--bb-text-light);
    margin-bottom: 20px;
}

.bb-btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--bb-white);
    border: 2px solid var(--bb-primary-dark);
    border-radius: var(--bb-radius-full);
    color: var(--bb-primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--bb-transition);
}

.bb-btn-secondary:hover {
    background: var(--bb-primary-dark);
    color: var(--bb-white);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .bb-wrapper {
        grid-template-columns: 1fr;
        padding-bottom: 180px;
    }

    .bb-summary {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        z-index: 1000;
        padding: 0;
        transform: translateY(calc(100% - 80px));
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .bb-summary.expanded {
        transform: translateY(0);
    }

    .bb-summary-handle {
        display: flex;
        justify-content: center;
        padding: 12px;
        cursor: grab;
    }

    .bb-summary-handle span {
        width: 40px;
        height: 4px;
        background: var(--bb-border);
        border-radius: 2px;
    }

    .bb-summary-inner {
        border-radius: var(--bb-radius) var(--bb-radius) 0 0;
        max-height: 70vh;
        overflow-y: auto;
        padding-top: 0;
    }

    .bb-summary-title {
        position: sticky;
        top: 0;
        background: var(--bb-white);
        padding-top: 16px;
        margin-left: -28px;
        margin-right: -28px;
        padding-left: 28px;
        padding-right: 28px;
        z-index: 1;
    }

    /* Mobile Toggle */
    .bb-mobile-toggle {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        background: var(--bb-primary-dark);
        color: var(--bb-white);
        border: none;
        border-radius: var(--bb-radius-full);
        padding: 14px 24px;
        gap: 12px;
        align-items: center;
        box-shadow: var(--bb-shadow-lg);
        cursor: pointer;
        transition: var(--bb-transition);
    }

    .bb-summary.expanded ~ .bb-mobile-toggle {
        opacity: 0;
        pointer-events: none;
    }

    .bb-mobile-toggle:hover {
        background: var(--bb-primary);
    }

    .bb-mobile-toggle-icon svg {
        width: 24px;
        height: 24px;
    }

    .bb-mobile-toggle-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .bb-mobile-stems {
        font-weight: 700;
    }

    .bb-mobile-total {
        font-weight: 700;
        font-size: 1rem;
    }

    .bb-mobile-toggle-arrow svg {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
    }

    .bb-summary.expanded ~ .bb-mobile-toggle .bb-mobile-toggle-arrow svg {
        transform: rotate(180deg);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .bb-hero {
        padding: 40px 16px;
    }

    .bb-filters {
        gap: 8px;
        padding-bottom: 16px;
        margin-bottom: 20px;
    }

    .bb-filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .bb-flowers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .bb-flower-card {
        padding: 12px;
    }

    .bb-flower-image {
        margin-bottom: 10px;
    }

    .bb-flower-name {
        font-size: 0.9rem;
    }

    .bb-flower-price {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .bb-qty-btn {
        width: 32px;
        height: 32px;
    }

    .bb-qty-value {
        font-size: 1rem;
    }

    .bb-summary-inner {
        padding: 20px;
    }

    .bb-summary-title {
        font-size: 1.2rem;
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .bb-selected-items {
        max-height: 150px;
    }

    .bb-add-to-cart {
        padding: 16px 24px;
        font-size: 0.95rem;
    }

    .bb-mobile-toggle {
        padding: 12px 20px;
        bottom: 12px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .bb-flowers-grid {
        grid-template-columns: 1fr;
    }

    .bb-flower-card {
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .bb-flower-image {
        width: 80px;
        height: 80px;
        flex-shrink: 0;
        margin-bottom: 0;
    }

    .bb-flower-info {
        flex: 1;
    }

    .bb-flower-price {
        margin-bottom: 8px;
    }

    .bb-flower-controls {
        flex-shrink: 0;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.bb-flower-card:focus-visible,
.bb-extra-item:focus-visible,
.bb-message-toggle:focus-visible {
    outline: 3px solid var(--bb-primary);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .bb-flower-card {
        border-width: 3px;
    }

    .bb-qty-btn {
        border-width: 3px;
    }

    .bb-add-to-cart {
        border: 3px solid var(--bb-white);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .bb-hero,
    .bb-filters,
    .bb-flower-controls,
    .bb-add-to-cart,
    .bb-mobile-toggle,
    .bb-view-premade {
        display: none !important;
    }

    .bb-wrapper {
        display: block;
    }

    .bb-summary {
        position: static;
        transform: none;
    }
}
