/* ═══════════════════════════════════════════
   Florial Product Page – product-show.css
   ═══════════════════════════════════════════ */
:root {
    --fl-green: #417a54; --fl-green-dark: #2f5a3d; --fl-green-light: #e8f2ec;
    --fl-green-pale: #f4f9f6; --fl-gold: #c8a84e; --fl-rose: #d4727a;
    --fl-text: #2d2d2d; --fl-text-muted: #7a7a7a; --fl-border: #e8e8e8;
    --fl-bg: #fafcfb; --fl-radius: 14px; --fl-radius-sm: 8px;
    --fl-shadow: 0 2px 20px rgba(65,122,84,0.05); --fl-shadow-lg: 0 8px 32px rgba(65,122,84,0.10);
}
.fl-product-section { background: var(--fl-bg); }

/* ── Gallery ── */
.fl-gallery { position: sticky; top: 20px; }
.fl-gallery-main {
    border-radius: var(--fl-radius); overflow: hidden; border: 1px solid var(--fl-border);
    background: #fff; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
}
.fl-gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.3s; }
.fl-gallery-main:hover img { transform: scale(1.03); }
.fl-no-image { color: #d0d0d0; text-align: center; }
.fl-no-image i { font-size: 3.5rem; display: block; margin-bottom: 8px; }
.fl-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.fl-thumb {
    width: 68px; height: 68px; border-radius: var(--fl-radius-sm); overflow: hidden;
    border: 2px solid transparent; cursor: pointer; background: #fff; flex-shrink: 0; transition: all 0.2s;
}
.fl-thumb.active, .fl-thumb:hover { border-color: var(--fl-green); box-shadow: 0 0 0 1px var(--fl-green); }
.fl-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── Info ── */
.fl-product-meta { display: flex; gap: 12px; margin-bottom: 6px; }
.fl-sku { font-size: 0.75rem; color: #aaa; letter-spacing: 0.5px; text-transform: uppercase; }
.fl-product-title { font-size: 1.55rem; font-weight: 700; color: var(--fl-text); line-height: 1.25; margin-bottom: 12px; }
.fl-price-block { margin-bottom: 16px; }
.fl-price-current { font-size: 1.65rem; font-weight: 800; color: var(--fl-green-dark); letter-spacing: -0.5px; }
.fl-short-desc { font-size: 0.88rem; color: var(--fl-text-muted); line-height: 1.6; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--fl-border); }

/* ── Sections ── */
.fl-info-section { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--fl-border); }
.fl-info-section:last-of-type { border-bottom: none; }
.fl-section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #aaa; margin-bottom: 12px; }
.fl-section-label i { margin-right: 4px; font-size: 0.85rem; }

/* ── Attributes ── */
.fl-attr-table { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 20px; }
.fl-attr-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.86rem; }
.fl-attr-name { color: var(--fl-text-muted); }
.fl-attr-value { font-weight: 600; text-align: right; }

/* ── Pills ── */
.fl-selectable-group { margin-bottom: 16px; }
.fl-selectable-label { font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.fl-chosen { font-weight: 400; color: var(--fl-green); }
.fl-variation-options { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-variation-pill {
    padding: 8px 20px; border: 2px solid var(--fl-border); border-radius: 30px;
    font-size: 0.84rem; font-weight: 500; cursor: pointer; background: #fff;
    user-select: none; transition: all 0.15s; text-align: center; line-height: 1.3;
}
.fl-variation-pill:hover { border-color: var(--fl-green); background: var(--fl-green-pale); }
.fl-variation-pill.active { border-color: var(--fl-green); background: var(--fl-green); color: #fff; box-shadow: 0 2px 8px rgba(65,122,84,0.2); }
.fl-variation-pill.disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.fl-pill-price { display: block; font-size: 0.7rem; font-weight: 700; color: var(--fl-green-dark); margin-top: 1px; }
.fl-variation-pill.active .fl-pill-price { color: rgba(255,255,255,0.75); }

/* Color swatches */
.fl-color-options { display: flex; flex-wrap: wrap; gap: 10px; }
.fl-color-swatch {
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
    border: 3px solid transparent; outline: 2px solid var(--fl-border); outline-offset: 1px; transition: all 0.2s; position: relative;
}
.fl-color-swatch:hover { outline-color: var(--fl-green); }
.fl-color-swatch.active { outline-color: var(--fl-green); outline-width: 3px; }
.fl-color-swatch.active::after { content: '\2713'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }
.fl-color-swatch.disabled { opacity: 0.25; cursor: not-allowed; }

/* ── Addon triggers ── */
.fl-addon-triggers { display: flex; flex-direction: column; gap: 8px; }
.fl-addon-trigger {
    display: flex; align-items: center; gap: 10px; padding: 13px 16px;
    border: 2px solid var(--fl-border); border-radius: var(--fl-radius); background: #fff;
    cursor: pointer; transition: all 0.15s; font-size: 0.88rem; font-weight: 500; color: var(--fl-text);
}
.fl-addon-trigger:hover { border-color: var(--fl-green); background: var(--fl-green-pale); }
.fl-addon-trigger i.bi-plus-lg { color: var(--fl-green); font-weight: 700; }
.fl-addon-trigger span:first-of-type { flex: 1; }
.fl-addon-trigger-count { display: none; font-size: 0.7rem; font-weight: 700; color: #fff; background: var(--fl-green); border-radius: 10px; padding: 2px 8px; }
.fl-addon-trigger-count.has-count { display: inline-block; }

/* ── Addon modal ── */
.fl-addon-modal .modal-content { border-radius: 16px; overflow: hidden; border: none; box-shadow: var(--fl-shadow-lg); }
.fl-addon-modal .modal-header { background: var(--fl-green-pale); border-bottom: 1px solid var(--fl-border); padding: 14px 20px; }
.fl-addon-modal .modal-title { font-size: 0.95rem; font-weight: 700; color: var(--fl-green-dark); }
.fl-addon-modal .modal-title i { margin-right: 6px; }
.fl-store-modal .modal-body { max-height: 55vh; }
.fl-store-modal-footer { border-top: 1px solid var(--fl-border); padding: 12px 20px; }
.fl-addon-modal .modal-body { max-height: 55vh; }
.fl-addon-modal .modal-footer { border-top: 1px solid var(--fl-border); padding: 10px 20px; }

/* Store modal body sections */
.fl-store-modal-body { padding: 16px 20px; }
.fl-store-modal-section { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.fl-store-modal-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

/* Stock info icon in sidebar */
.fl-stock-info-icon { font-size: 0.65rem; margin-left: 3px; opacity: 0.5; }
.fl-store-item:hover .fl-stock-info-icon { opacity: 1; }

/* Store modal stock table */
.fl-store-stock-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #aaa; margin-bottom: 10px; }
.fl-store-stock-title i { margin-right: 4px; }
.fl-stock-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 6px; margin-bottom: 3px; background: #fafcfb; }
.fl-stock-row:nth-child(even) { background: #f4f9f6; }
.fl-stock-row-label { font-size: 0.84rem; font-weight: 500; }
.fl-stock-row-qty { font-size: 0.82rem; font-weight: 700; }
.fl-sq-high { color: #2e8b57; }
.fl-sq-low { color: #c8a84e; }
.fl-sq-none { color: #bbb; }
.fl-modal-addon-item {
    display: flex; align-items: center; gap: 12px; padding: 12px 20px;
    border-bottom: 1px solid #f0f0f0; cursor: pointer; transition: background 0.12s;
}
.fl-modal-addon-item:last-child { border-bottom: none; }
.fl-modal-addon-item:hover { background: #f9fdf9; }
.fl-modal-addon-item.selected { background: var(--fl-green-light); }
.fl-modal-addon-img {
    width: 52px; height: 52px; border-radius: 10px; background: #f5f5f5;
    overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.fl-modal-addon-img img { width: 100%; height: 100%; object-fit: cover; }
.fl-modal-addon-img i { font-size: 1.1rem; color: #ccc; }
.fl-modal-addon-info { flex: 1; min-width: 0; }
.fl-modal-addon-name { font-size: 0.87rem; font-weight: 600; }
.fl-modal-addon-desc { font-size: 0.76rem; color: var(--fl-text-muted); margin-top: 2px; }
.fl-modal-addon-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.fl-modal-addon-price { font-size: 0.87rem; font-weight: 700; color: var(--fl-green-dark); white-space: nowrap; }
.fl-modal-addon-check {
    width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--fl-border);
    display: flex; align-items: center; justify-content: center; color: transparent; transition: all 0.15s; font-size: 0.8rem;
}
.fl-modal-addon-item.selected .fl-modal-addon-check { border-color: var(--fl-green); background: var(--fl-green); color: #fff; }
.fl-btn-modal-done { background: var(--fl-green); color: #fff; border: none; border-radius: var(--fl-radius-sm); padding: 8px 28px; font-weight: 600; }
.fl-btn-modal-done:hover { background: var(--fl-green-dark); color: #fff; }

/* ── Summary ── */
.fl-summary-box {
    background: var(--fl-green-pale); border-radius: var(--fl-radius); padding: 16px 18px; margin-bottom: 20px;
    border: 1px solid rgba(65,122,84,0.08);
}
.fl-total-line { display: flex; justify-content: space-between; padding: 3px 0; font-size: 0.87rem; color: var(--fl-text-muted); }
.fl-total-final { font-size: 1.1rem; font-weight: 800; color: var(--fl-green-dark); border-top: 2px solid rgba(65,122,84,0.12); margin-top: 8px; padding-top: 10px; }

/* ── Cart Actions ── */
.fl-cart-actions { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.fl-qty-box { display: flex; align-items: center; border: 2px solid var(--fl-border); border-radius: var(--fl-radius-sm); overflow: hidden; background: #fff; }
.fl-qty-btn { width: 44px; height: 48px; border: none; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--fl-text); transition: background 0.12s; }
.fl-qty-btn:hover { background: var(--fl-green-light); }
.fl-qty-input { width: 48px; height: 48px; border: none; text-align: center; font-size: 1rem; font-weight: 600; outline: none; -moz-appearance: textfield; }
.fl-qty-input::-webkit-outer-spin-button, .fl-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.fl-btn-cart {
    background: var(--fl-green); color: #fff; border: none; border-radius: var(--fl-radius-sm);
    padding: 14px 32px; font-size: 1rem; font-weight: 700; cursor: pointer; flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.2s;
    letter-spacing: 0.3px;
}
.fl-btn-cart:hover { background: var(--fl-green-dark); transform: translateY(-1px); box-shadow: var(--fl-shadow-lg); }

/* Stock notice */
.fl-stock-notice { font-size: 0.78rem; color: var(--fl-text-muted); display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.fl-stock-notice i { color: var(--fl-gold); }
.fl-stock-notice strong { color: var(--fl-green-dark); }

/* Mobile stores inline */
.fl-mobile-stores { display: flex; flex-direction: column; gap: 6px; }
.fl-mstore {
    display: flex; align-items: center; gap: 8px; padding: 10px 12px;
    background: #fff; border: 1px solid var(--fl-border); border-radius: var(--fl-radius-sm);
    cursor: pointer; transition: background 0.12s; font-size: 0.82rem; flex-wrap: nowrap; overflow: hidden;
}
.fl-mstore:hover { background: var(--fl-green-pale); }
.fl-mstore-city { font-weight: 700; font-size: 0.7rem; text-transform: uppercase; color: #aaa; letter-spacing: 0.5px; flex-shrink: 0; }
.fl-mstore-name { font-weight: 600; color: var(--fl-text); flex-shrink: 0; }
.fl-mstore-addr { color: var(--fl-text-muted); font-size: 0.78rem; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-mstore-stock { font-size: 0.75rem; font-weight: 600; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.fl-mstore-info { font-size: 0.7rem; color: #ccc; flex-shrink: 0; }
.fl-mstore:hover .fl-mstore-info { color: var(--fl-green); }

/* ── Sidebar ── */
.fl-sidebar { position: sticky; top: 20px; }
.fl-sidebar-card { background: #fff; border-radius: var(--fl-radius); border: 1px solid var(--fl-border); padding: 16px; margin-bottom: 12px; box-shadow: var(--fl-shadow); }
.fl-stores-card { padding: 16px 12px; }

/* Store groups by city */
.fl-city-group { margin-bottom: 10px; }
.fl-city-group:last-child { margin-bottom: 0; }
.fl-city-name { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: #aaa; padding: 0 6px 4px; display: flex; align-items: center; gap: 5px; }
.fl-city-name i { font-size: 0.7rem; }

/* Store item - clickable row */
.fl-store-item {
    display: flex; align-items: center; gap: 10px; padding: 8px 10px;
    border-radius: var(--fl-radius-sm); cursor: pointer; transition: all 0.12s;
}
.fl-store-item:hover { background: var(--fl-green-pale); }
.fl-store-icon { width: 30px; height: 30px; border-radius: 8px; background: var(--fl-green-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--fl-green); font-size: 0.85rem; }
.fl-store-detail { flex: 1; min-width: 0; }
.fl-store-title { font-size: 0.82rem; font-weight: 600; line-height: 1.2; }
.fl-store-addr { font-size: 0.72rem; color: var(--fl-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-store-arrow { color: #ccc; font-size: 0.7rem; flex-shrink: 0; }

/* Store stock availability */
.fl-store-stock { font-size: 0.68rem; font-weight: 600; display: flex; align-items: center; gap: 4px; flex-shrink: 0; white-space: nowrap; }
.fl-avail-high { color: #2e8b57; }
.fl-avail-high .fl-stock-dot { background: #2e8b57; }
.fl-avail-low { color: #c8a84e; }
.fl-avail-low .fl-stock-dot { background: #c8a84e; }
.fl-avail-none { color: #bbb; }
.fl-avail-none .fl-stock-dot { background: #bbb; }

/* Hotline card */
.fl-hotline-card { background: linear-gradient(135deg, var(--fl-green), var(--fl-green-dark)); color: #fff; border: none; padding: 14px 16px; }
.fl-hotline-inner { display: flex; align-items: center; gap: 12px; }
.fl-hotline-inner > div:first-child { font-size: 1.2rem; opacity: 0.8; }
.fl-hotline-phone { font-size: 1rem; font-weight: 800; letter-spacing: 0.3px; }
.fl-hotline-hours { font-size: 0.68rem; opacity: 0.65; margin-top: 1px; }

/* Payment */
.fl-payment-icons { display: flex; gap: 6px; flex-wrap: wrap; }
.fl-pay-icon { padding: 4px 10px; background: #f5f5f5; border-radius: 4px; font-size: 0.7rem; font-weight: 700; color: #666; }

/* Store detail modal */
.fl-store-modal .modal-content { border-radius: 16px; overflow: hidden; border: none; box-shadow: var(--fl-shadow-lg); }
.fl-store-modal-header { background: var(--fl-green-pale); border-bottom: 1px solid var(--fl-border); padding: 14px 20px; }
.fl-store-modal-header .modal-title { font-size: 0.95rem; font-weight: 700; color: var(--fl-green-dark); }
.fl-store-modal-header .modal-title i { margin-right: 6px; }
.fl-store-map-wrap { background: #f0f0f0; }
.fl-store-modal-info { padding: 16px 20px; }
.fl-store-info-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; margin-bottom: 8px; }
.fl-store-info-row:last-child { margin-bottom: 0; }
.fl-store-info-row i { color: var(--fl-green); margin-top: 2px; width: 16px; text-align: center; flex-shrink: 0; }
.fl-store-info-row a { color: var(--fl-text); text-decoration: none; }
.fl-store-info-row a:hover { color: var(--fl-green); }
.fl-store-modal-footer { border-top: 1px solid var(--fl-border); padding: 12px 20px; }
.fl-btn-directions { background: var(--fl-green); color: #fff; border: none; border-radius: var(--fl-radius-sm); font-weight: 600; font-size: 0.88rem; padding: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.fl-btn-directions:hover { background: var(--fl-green-dark); color: #fff; }
.fl-stock-indicator { font-weight: 600; display: flex; align-items: center; gap: 4px; font-size: 0.78rem; }
.fl-stock-dot { width: 7px; height: 7px; border-radius: 50%; }
.fl-stock-high { color: #2e8b57; } .fl-stock-high .fl-stock-dot { background: #2e8b57; }
.fl-stock-medium { color: var(--fl-gold); } .fl-stock-medium .fl-stock-dot { background: var(--fl-gold); }
.fl-stock-low { color: var(--fl-rose); } .fl-stock-low .fl-stock-dot { background: var(--fl-rose); }
.fl-stock-none { color: #bbb; } .fl-stock-none .fl-stock-dot { background: #bbb; }

/* ── Tabs ── */
.fl-product-tabs { background: #fff; border-radius: var(--fl-radius); border: 1px solid var(--fl-border); box-shadow: var(--fl-shadow); overflow: hidden; }
.fl-product-tabs .nav-tabs { border-bottom: 2px solid var(--fl-border); padding: 0 20px; background: var(--fl-green-pale); }
.fl-product-tabs .nav-link { border: none; color: var(--fl-text-muted); font-weight: 600; font-size: 0.86rem; padding: 13px 18px; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: all 0.2s; }
.fl-product-tabs .nav-link:hover { color: var(--fl-green); }
.fl-product-tabs .nav-link.active { color: var(--fl-green); border-bottom-color: var(--fl-green); background: transparent; }
.fl-tab-body { padding: 22px; font-size: 0.9rem; line-height: 1.7; }
.fl-info-table { font-size: 0.87rem; }

/* ── Cart modal ── */
.fl-cart-modal .modal-dialog { max-width: 380px; }
.fl-modal-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(25,135,84,0.1); display: flex; align-items: center; justify-content: center; margin-right: 12px; color: #198754; font-size: 1rem; }

/* ── Responsive ── */
@media (max-width: 991px) { .fl-gallery-main { aspect-ratio: 4/3; } .fl-attr-table { grid-template-columns: 1fr; } }
@media (max-width: 575px) {
    .fl-product-title { font-size: 1.2rem; } .fl-price-current { font-size: 1.35rem; }
    .fl-cart-actions { flex-wrap: wrap; } .fl-btn-cart { width: 100%; flex: unset; order: 2; }
    .fl-variation-pill { padding: 7px 14px; font-size: 0.8rem; }
}
