/**
 * Leonidas Chocolate Box Builder
 * Goya Theme Compatible - Luxury Belgian Chocolate Aesthetic
 * Version: 3.0.0 - Gramaj Bazlı Sistem - Light Theme
 */

/* ===== CSS Variables ===== */
:root {
    --lbb-primary: #06255b;
    --lbb-primary-dark: #041a42;
    --lbb-primary-light: #0a3a7a;
    --lbb-gold: #a69557;
    --lbb-gold-light: #c4b87a;
    --lbb-gold-dark: #8a7a47;
    --lbb-bg: #ffffff;
    --lbb-bg-soft: #f8f7f4;
    --lbb-bg-card: #ffffff;
    --lbb-text-dark: #06255b;
    --lbb-text-body: #686868;
    --lbb-text-muted: #999999;
    --lbb-border: rgba(166, 149, 87, 0.25);
    --lbb-border-light: #e8e4da;
    --lbb-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --lbb-shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --lbb-radius: 16px;
    --lbb-radius-sm: 10px;
    --lbb-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --lbb-success: #27ae60;
    --lbb-warning: #f39c12;
    --lbb-error: #e74c3c;
}

/* ===== Main Container ===== */
.leonidas-box-builder {
    font-family: 'Ubuntu', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--lbb-bg);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.leonidas-box-builder * {
    box-sizing: border-box;
}

/* ===== Header ===== */
.lbb-header {
    text-align: center;
    padding: 60px 20px 80px;
    position: relative;
    background: linear-gradient(180deg, var(--lbb-bg-soft) 0%, var(--lbb-bg) 100%);
    border-bottom: 1px solid var(--lbb-border-light);
}

.lbb-header-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.lbb-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--lbb-primary);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.lbb-subtitle {
    font-size: 1.1rem;
    color: var(--lbb-text-body);
    margin: 0 0 20px;
}

.lbb-price-info {
    margin: 0;
}

.lbb-price-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(166, 149, 87, 0.1);
    border: 1px solid var(--lbb-gold);
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--lbb-gold-dark);
    font-weight: 600;
    font-size: 1rem;
}

/* ===== Container ===== */
.lbb-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.lbb-main-content {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    align-items: start;
}

/* ===== Section Headers ===== */
.lbb-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.lbb-section-title {
    font-size: 1.4rem;
    color: var(--lbb-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.lbb-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(166, 149, 87, 0.12);
    border-radius: 10px;
    color: var(--lbb-gold);
}

/* ===== Chocolates Grid ===== */
.lbb-chocolates-section {
    min-width: 0;
}

.lbb-chocolates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

/* ===== Chocolate Item ===== */
.lbb-chocolate-item {
    background: var(--lbb-bg-card);
    border-radius: var(--lbb-radius);
    overflow: hidden;
    transition: var(--lbb-transition);
    border: 1px solid var(--lbb-border-light);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.lbb-chocolate-item:hover {
    border-color: var(--lbb-gold);
    box-shadow: 0 8px 24px rgba(166, 149, 87, 0.15);
}

.lbb-chocolate-item.disabled,
.lbb-chocolate-item.no-weight {
    opacity: 0.5;
}

.lbb-chocolate-item.no-weight .lbb-add-btn-static {
    cursor: not-allowed;
    opacity: 0.5;
}

.lbb-chocolate-image-wrap {
    position: relative;
    padding-top: 100%;
    background: var(--lbb-bg-soft);
    overflow: hidden;
}

.lbb-chocolate-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.lbb-chocolate-item:hover .lbb-chocolate-image {
    transform: scale(1.05);
}

/* Info Button */
.lbb-info-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--lbb-transition);
    z-index: 5;
}

.lbb-info-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.1);
}

/* Static Add Button */
.lbb-add-btn-static {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 12px;
    margin-top: 8px;
    border: 1px solid var(--lbb-gold);
    background: transparent;
    color: var(--lbb-gold-dark);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--lbb-transition);
    font-family: inherit;
}

.lbb-add-btn-static:hover:not(:disabled) {
    background: var(--lbb-gold);
    color: white;
}

.lbb-add-btn-static:active:not(:disabled) {
    transform: scale(0.97);
}

.lbb-add-btn-static:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===== Info Popup Overlay ===== */
.lbb-info-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lbb-info-overlay.visible {
    opacity: 1;
}

.lbb-info-popup {
    background: white;
    border-radius: 16px;
    width: 400px;
    max-width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.lbb-info-overlay.visible .lbb-info-popup {
    transform: scale(1) translateY(0);
}

.lbb-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--lbb-bg-soft);
    border-bottom: 1px solid var(--lbb-border-light);
}

.lbb-tooltip-header strong {
    font-size: 1rem;
    color: var(--lbb-primary);
}

.lbb-tooltip-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--lbb-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--lbb-transition);
}

.lbb-tooltip-close:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.lbb-tooltip-body {
    padding: 20px;
    max-height: calc(80vh - 60px);
    overflow-y: auto;
}

.lbb-tooltip-section {
    margin-bottom: 16px;
}

.lbb-tooltip-section:last-child {
    margin-bottom: 0;
}

.lbb-tooltip-section strong {
    display: block;
    font-size: 0.8rem;
    color: var(--lbb-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lbb-tooltip-section p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--lbb-text-body);
    line-height: 1.6;
}

.lbb-tooltip-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lbb-tooltip-feature {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--lbb-success);
    background: rgba(39, 174, 96, 0.08);
    padding: 5px 10px;
    border-radius: 6px;
    font-weight: 500;
}

.lbb-tooltip-link {
    display: block;
    margin-top: 12px;
    padding: 10px 16px;
    background: var(--lbb-bg-soft);
    border-radius: 8px;
    color: var(--lbb-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--lbb-transition);
}

.lbb-tooltip-link:hover {
    background: var(--lbb-gold);
    color: white;
}

/* Weight Badge */
.lbb-weight-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--lbb-gold);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
}

.lbb-no-weight-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--lbb-warning);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.lbb-out-of-stock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(192, 57, 43, 0.9);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.lbb-chocolate-info {
    padding: 10px 12px;
}

.lbb-chocolate-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lbb-text-dark);
    margin: 0 0 4px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lbb-chocolate-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.lbb-chocolate-weight-text {
    font-size: 0.75rem;
    color: var(--lbb-gold-dark);
    font-weight: 600;
}


/* ===== Box Section ===== */
.lbb-box-section {
    position: relative;
}

.lbb-box-sticky {
    position: sticky;
    top: 100px;
    background: var(--lbb-bg-card);
    border-radius: var(--lbb-radius);
    padding: 24px;
    border: 1px solid var(--lbb-border-light);
    box-shadow: var(--lbb-shadow);
}

/* ===== Box Size Selector ===== */
.lbb-box-size-selector {
    margin-bottom: 24px;
}

.lbb-box-title {
    font-size: 1.1rem;
    color: var(--lbb-primary);
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lbb-box-title .lbb-icon {
    width: 36px;
    height: 36px;
}

.lbb-size-buttons-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lbb-size-row {
    display: grid;
    gap: 10px;
}

.lbb-size-row-top[data-count="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.lbb-size-row-top[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.lbb-size-row-top[data-count="1"] {
    grid-template-columns: 1fr;
}

.lbb-size-row-bottom[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.lbb-size-row-bottom[data-count="1"] {
    grid-template-columns: 1fr;
}

.lbb-size-btn {
    background: var(--lbb-bg-soft);
    border: 2px solid var(--lbb-border-light);
    border-radius: var(--lbb-radius-sm);
    padding: 14px 8px;
    cursor: pointer;
    transition: var(--lbb-transition);
    text-align: center;
    font-family: inherit;
}

.lbb-size-btn:hover {
    border-color: var(--lbb-gold);
    background: rgba(166, 149, 87, 0.06);
}

.lbb-size-btn.active {
    border-color: var(--lbb-gold);
    background: rgba(166, 149, 87, 0.1);
    box-shadow: 0 4px 16px rgba(166, 149, 87, 0.15);
}

.lbb-size-label {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lbb-primary);
}

.lbb-size-range {
    display: block;
    font-size: 0.7rem;
    color: var(--lbb-text-body);
    margin-top: 4px;
}

.lbb-price-per-gram-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    padding: 8px;
    background: rgba(166, 149, 87, 0.08);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--lbb-gold-dark);
}

/* ===== Weight Status ===== */
.lbb-weight-status {
    background: var(--lbb-bg-soft);
    border-radius: var(--lbb-radius-sm);
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid var(--lbb-border-light);
}

.lbb-weight-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.lbb-weight-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--lbb-primary);
    margin: 0;
    font-weight: 600;
}

.lbb-weight-values {
    font-size: 0.85rem;
    color: var(--lbb-text-body);
    font-weight: 600;
}

.lbb-weight-progress-container {
    margin-bottom: 10px;
}

.lbb-weight-progress-bg {
    position: relative;
    height: 12px;
    background: #e8e4da;
    border-radius: 6px;
    overflow: visible;
}

.lbb-weight-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--lbb-gold-dark), var(--lbb-gold));
    border-radius: 6px;
    transition: width 0.4s ease, background 0.3s ease;
}

.lbb-weight-progress-fill.warning {
    background: linear-gradient(90deg, var(--lbb-warning), #e67e22);
}

.lbb-weight-progress-fill.success {
    background: linear-gradient(90deg, var(--lbb-success), #2ecc71);
}

.lbb-weight-progress-fill.error {
    background: linear-gradient(90deg, var(--lbb-error), #c0392b);
}

.lbb-weight-progress-min,
.lbb-weight-progress-max {
    position: absolute;
    top: -4px;
    width: 3px;
    height: 20px;
    background: var(--lbb-primary);
    border-radius: 2px;
    z-index: 2;
}

.lbb-weight-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--lbb-text-muted);
}

.lbb-weight-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    transition: var(--lbb-transition);
    background: var(--lbb-bg-soft);
    color: var(--lbb-text-muted);
}

.lbb-weight-message.warning {
    background: rgba(243, 156, 18, 0.1);
    color: #c27d0e;
    border: 1px solid rgba(243, 156, 18, 0.25);
}

.lbb-weight-message.success {
    background: rgba(39, 174, 96, 0.1);
    color: #1e8449;
    border: 1px solid rgba(39, 174, 96, 0.25);
}

.lbb-weight-message.error {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.25);
}

.lbb-message-icon::before {
    content: 'ℹ';
    font-size: 1rem;
}

.lbb-weight-message.warning .lbb-message-icon::before {
    content: '⚠';
}

.lbb-weight-message.success .lbb-message-icon::before {
    content: '✓';
}

.lbb-weight-message.error .lbb-message-icon::before {
    content: '✕';
}

/* ===== Box Header ===== */
.lbb-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--lbb-border-light);
}

.lbb-box-counter {
    background: rgba(166, 149, 87, 0.12);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1rem;
    color: var(--lbb-primary);
    font-weight: 600;
}

/* ===== Box Container ===== */
.lbb-box-container {
    background: var(--lbb-bg-soft);
    border-radius: var(--lbb-radius);
    padding: 16px;
    min-height: 200px;
    position: relative;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.04);
    border: 2px solid var(--lbb-border-light);
}

.lbb-box-inner {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, 1fr);
}

/* ===== Box Slots ===== */
.lbb-box-slot {
    background: rgba(166, 149, 87, 0.05);
    border-radius: var(--lbb-radius-sm);
    border: 1px dashed rgba(166, 149, 87, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70px;
    position: relative;
    transition: var(--lbb-transition);
    overflow: visible;
}

.lbb-box-slot.filled {
    border: none;
    background: transparent;
}

.lbb-box-slot:not(.filled):hover {
    border-color: var(--lbb-gold);
    background: rgba(166, 149, 87, 0.08);
}

/* ===== Slot Chocolate ===== */
.lbb-slot-chocolate {
    width: 100%;
    height: 100%;
    border-radius: var(--lbb-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    overflow: visible;
    transition: var(--lbb-transition);
}

.lbb-slot-chocolate:hover {
    transform: scale(1.05);
}

.lbb-slot-chocolate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--lbb-radius-sm);
}

.lbb-slot-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 20px 6px 6px;
    font-size: 0.6rem;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    border-radius: 0 0 var(--lbb-radius-sm) var(--lbb-radius-sm);
}


/* ===== Slot Remove Button ===== */
.lbb-slot-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #c0392b;
    border-radius: 50%;
    color: white;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--lbb-transition);
    cursor: pointer;
    border: 2px solid white;
    z-index: 100;
    line-height: 1;
}

.lbb-slot-chocolate:hover .lbb-slot-remove {
    opacity: 1;
}

.lbb-slot-remove:hover {
    background: #e74c3c;
    transform: scale(1.15);
}

/* ===== Empty State ===== */
.lbb-box-empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--lbb-text-muted);
    pointer-events: none;
    transition: var(--lbb-transition);
}

.lbb-box-empty-state.hidden {
    opacity: 0;
}

.lbb-box-empty-state svg {
    margin-bottom: 12px;
    opacity: 0.4;
    color: var(--lbb-gold);
}

.lbb-box-empty-state p {
    margin: 0;
    font-size: 0.9rem;
}

/* ===== Selected List ===== */
.lbb-selected-list {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--lbb-border-light);
    display: none;
}

.lbb-selected-list.visible {
    display: block;
}

.lbb-list-title {
    font-size: 0.9rem;
    color: var(--lbb-primary);
    margin: 0 0 12px;
    font-weight: 600;
}

.lbb-list-items {
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
}

.lbb-list-items::-webkit-scrollbar {
    width: 4px;
}

.lbb-list-items::-webkit-scrollbar-track {
    background: var(--lbb-bg-soft);
    border-radius: 2px;
}

.lbb-list-items::-webkit-scrollbar-thumb {
    background: var(--lbb-gold);
    border-radius: 2px;
}

.lbb-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--lbb-bg-soft);
    border-radius: var(--lbb-radius-sm);
    margin-bottom: 8px;
    border: 1px solid var(--lbb-border-light);
}

.lbb-list-item:last-child {
    margin-bottom: 0;
}

.lbb-list-item-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

.lbb-list-item-info {
    flex: 1;
    min-width: 0;
}

.lbb-list-item-name {
    font-size: 0.85rem;
    color: var(--lbb-text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lbb-list-item-weight {
    font-size: 0.75rem;
    color: var(--lbb-text-muted);
    margin-top: 2px;
}

.lbb-list-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--lbb-bg-card);
    border-radius: 6px;
    padding: 4px;
    border: 1px solid var(--lbb-border-light);
}

.lbb-qty-btn {
    width: 26px;
    height: 26px;
    border: none;
    background: var(--lbb-bg-soft);
    color: var(--lbb-primary);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--lbb-transition);
    font-family: inherit;
}

.lbb-qty-btn:hover:not(:disabled) {
    background: var(--lbb-gold);
    color: white;
}

.lbb-qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lbb-qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    color: var(--lbb-text-dark);
    font-size: 0.9rem;
}

/* ===== Price Summary ===== */
.lbb-price-summary {
    margin-top: 20px;
    padding: 16px;
    background: var(--lbb-bg-soft);
    border-radius: var(--lbb-radius-sm);
    border: 1px solid var(--lbb-border-light);
}

.lbb-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: var(--lbb-text-body);
    font-size: 0.95rem;
}

.lbb-price-row:not(:last-child) {
    border-bottom: 1px solid var(--lbb-border-light);
}

.lbb-price-total {
    color: var(--lbb-primary);
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid var(--lbb-gold) !important;
}

/* ===== Action Buttons ===== */
.lbb-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lbb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    border-radius: var(--lbb-radius-sm);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--lbb-transition);
    border: none;
    width: 100%;
    font-family: inherit;
}

.lbb-btn-primary {
    background: linear-gradient(145deg, var(--lbb-gold), var(--lbb-gold-dark));
    color: white;
}

.lbb-btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(166, 149, 87, 0.3);
}

.lbb-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    animation: none;
}

.lbb-btn-secondary {
    background: transparent;
    border: 2px solid #c0392b;
    color: #c0392b;
}

.lbb-btn-secondary:hover {
    background: #c0392b;
    color: white;
}

/* ===== Notification ===== */
.lbb-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(145deg, #27ae60, #229954);
    color: white;
    padding: 14px 20px;
    border-radius: var(--lbb-radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    max-width: 90vw;
    font-size: 0.9rem;
}

.lbb-notification.visible {
    transform: translateX(0);
}

.lbb-notification.error {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
}

.lbb-notification.warning {
    background: linear-gradient(145deg, #f39c12, #e67e22);
}

.lbb-notification-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.lbb-notification-icon::before {
    content: '✓';
    font-size: 1rem;
}

.lbb-notification.error .lbb-notification-icon::before {
    content: '✕';
}

.lbb-notification.warning .lbb-notification-icon::before {
    content: '⚠';
}

/* Mobile notification */
@media (max-width: 1100px) {
    .lbb-notification {
        bottom: 100px;
        right: 16px;
        left: 16px;
        padding: 10px 14px;
        font-size: 0.8rem;
        gap: 8px;
        transform: translateY(150%);
    }

    .lbb-notification.visible {
        transform: translateY(0);
    }

    .lbb-notification.error.visible,
    .lbb-notification.warning.visible {
        transform: translateY(0);
    }

    .lbb-notification-icon {
        width: 16px;
        height: 16px;
    }

    .lbb-notification-icon::before {
        font-size: 0.85rem;
    }
}

/* ===== Flying Animation ===== */
#lbb-flying-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.lbb-flying-chocolate {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lbb-flying-chocolate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Loading State ===== */
.lbb-loading {
    position: relative;
    pointer-events: none;
}

.lbb-loading::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .lbb-main-content {
        grid-template-columns: 1fr;
    }

    .lbb-box-sticky {
        position: relative;
        top: 0;
    }

    .lbb-box-section {
        order: -1;
    }
}

@media (max-width: 768px) {
    .lbb-header {
        padding: 40px 20px 60px;
    }

    .lbb-title {
        font-size: 1.8rem;
    }

    .lbb-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .lbb-chocolates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .lbb-size-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .lbb-box-inner {
        grid-template-columns: repeat(3, 1fr);
    }

    .lbb-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        transform: translateY(150%);
    }

    .lbb-notification.visible {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .lbb-chocolates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .lbb-chocolate-info {
        padding: 10px;
    }

    .lbb-chocolate-name {
        font-size: 0.8rem;
    }

    .lbb-box-sticky {
        padding: 16px;
    }

    .lbb-box-container {
        min-height: 220px;
    }

    .lbb-size-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Custom Scrollbar ===== */
.lbb-chocolates-grid::-webkit-scrollbar,
.lbb-list-items::-webkit-scrollbar {
    width: 6px;
}

.lbb-chocolates-grid::-webkit-scrollbar-track,
.lbb-list-items::-webkit-scrollbar-track {
    background: var(--lbb-bg-soft);
    border-radius: 3px;
}

.lbb-chocolates-grid::-webkit-scrollbar-thumb,
.lbb-list-items::-webkit-scrollbar-thumb {
    background: var(--lbb-gold);
    border-radius: 3px;
}

/* ===== Pulse Animation for Add Button ===== */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 0 0 0 rgba(166, 149, 87, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(166, 149, 87, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(166, 149, 87, 0);
    }
}

.lbb-btn-primary:not(:disabled) {
    animation: pulse-gold 2s infinite;
}

/* ===== Mobile Bottom Bar ===== */
.lbb-mobile-bottom-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--lbb-bg-card);
    border-top: 2px solid var(--lbb-gold);
    padding: 12px 16px;
    z-index: 9998;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s ease,
        border-color 0.3s ease;
}

.lbb-mobile-bottom-bar.warning {
    border-top-color: var(--lbb-warning);
}

.lbb-mobile-bottom-bar.success {
    border-top-color: var(--lbb-success);
}

.lbb-mobile-bottom-bar.error {
    border-top-color: var(--lbb-error);
}

.lbb-mobile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.lbb-mobile-summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.lbb-mobile-label {
    font-size: 0.65rem;
    color: var(--lbb-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.lbb-mobile-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--lbb-text-dark);
}

.lbb-mobile-price .lbb-mobile-value {
    color: var(--lbb-gold-dark);
    font-size: 1.1rem;
}

.lbb-mobile-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--lbb-gold);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.3s ease;
    flex-shrink: 0;
}

.lbb-mobile-toggle:hover {
    background: var(--lbb-gold-light);
}

.lbb-mobile-toggle:active {
    transform: scale(0.95);
}

.lbb-mobile-toggle svg {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lbb-mobile-bottom-bar.expanded .lbb-mobile-toggle svg {
    transform: rotate(180deg);
}

/* ===== Mobile Overlay ===== */
.lbb-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9997;
    pointer-events: none;
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lbb-mobile-overlay.visible {
    background: rgba(0, 0, 0, 0.4);
    pointer-events: auto;
}

/* ===== Mobile Popup ===== */
.lbb-mobile-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: var(--lbb-bg-card);
    border-radius: var(--lbb-radius) var(--lbb-radius) 0 0;
    border-top: 2px solid var(--lbb-gold);
    z-index: 9999;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s ease,
        visibility 0.5s ease;
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.15);
}

.lbb-mobile-popup.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.lbb-mobile-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid var(--lbb-border-light);
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1;
}

.lbb-mobile-popup-header h3 {
    margin: 0;
    font-size: 0.95rem;
    color: var(--lbb-primary);
    font-weight: 600;
}

.lbb-mobile-popup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--lbb-bg-soft);
    border: 1px solid var(--lbb-border-light);
    color: var(--lbb-text-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.lbb-mobile-popup-close svg {
    width: 18px;
    height: 18px;
}

.lbb-mobile-popup-close:hover {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.lbb-mobile-popup-close:active {
    transform: scale(0.9);
}

.lbb-mobile-popup-content {
    padding: 16px;
    overflow-y: auto;
    max-height: calc(85vh - 52px);
    -webkit-overflow-scrolling: touch;
}

/* Mobile Popup içindeki öğeler */
.lbb-mobile-popup .lbb-box-size-selector,
.lbb-mobile-popup .lbb-weight-status,
.lbb-mobile-popup .lbb-box-header,
.lbb-mobile-popup .lbb-box-container,
.lbb-mobile-popup .lbb-selected-list,
.lbb-mobile-popup .lbb-price-summary,
.lbb-mobile-popup .lbb-actions {
    margin-bottom: 20px;
}

.lbb-mobile-popup .lbb-box-container {
    min-height: 150px;
}

.lbb-mobile-popup .lbb-selected-list {
    display: block !important;
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.lbb-mobile-popup .lbb-selected-list.empty {
    display: none !important;
}

/* ===== Responsive - Mobile Bottom Bar ===== */
@media (max-width: 1100px) {
    .lbb-mobile-bottom-bar {
        display: block;
    }

    .leonidas-box-builder {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .lbb-size-row-top[data-count="3"] {
        grid-template-columns: repeat(3, 1fr);
    }

    .lbb-size-btn {
        padding: 10px 6px;
    }

    .lbb-size-label {
        font-size: 0.9rem;
    }

    .lbb-size-range {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .lbb-mobile-summary {
        gap: 8px;
    }

    .lbb-mobile-summary-item {
        min-width: 0;
    }

    .lbb-mobile-label {
        font-size: 0.6rem;
    }

    .lbb-mobile-value {
        font-size: 0.85rem;
    }

    .lbb-mobile-price .lbb-mobile-value {
        font-size: 1rem;
    }

    .lbb-mobile-toggle {
        width: 40px;
        height: 40px;
    }
}