/* Flora Shop - Public Styles */

.flora-shop-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

.flora-shop-wrap h2 {
    font-size: 24px;
    margin-bottom: 25px;
    color: #1d2327;
}

.flora-shop-header-actions {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flora-header-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 13px;
    color: #1d2327;
    text-decoration: none;
    transition: background 0.2s;
}

.flora-header-cart-link:hover {
    background: #e9ecef;
}

.flora-header-cart-link .dashicons {
    font-size: 18px;
}

/* ===== PRODUCT DETAIL ===== */

.flora-product-image-link {
    display: block;
    text-decoration: none;
}

.flora-product-image-link:hover .flora-product-image img {
    transform: scale(1.03);
}

.flora-product-image-link .flora-product-image {
    transition: transform 0.2s;
}

.flora-product-title-link {
    color: #1d2327;
    text-decoration: none;
}

.flora-product-title-link:hover {
    color: #2271b1;
}

.flora-product-detail {
    display: flex;
    gap: 40px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
}

.flora-product-detail-image {
    position: relative;
    flex: 0 0 420px;
    max-width: 420px;
    height: 420px;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.flora-product-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flora-product-detail-info {
    flex: 1;
    min-width: 0;
}

.flora-product-detail-info h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #1d2327;
}

.flora-product-detail-desc {
    font-size: 14px;
    color: #3c434a;
    line-height: 1.6;
    margin-bottom: 18px;
}

.flora-stock-info {
    font-size: 13px;
    color: #28a745;
    font-weight: 600;
    margin: 0 0 15px 0;
}

.flora-product-detail .flora-product-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.flora-product-detail .flora-product-actions .flora-qty-control input {
    height: 36px;
    width: 60px;
    text-align: center;
    border: none;
    font-size: 15px;
}

.flora-product-detail .flora-product-actions .button {
    padding: 10px 28px;
    font-size: 14px;
}

.flora-product-not-found {
    text-align: center;
    padding: 40px;
    color: #646970;
    font-size: 16px;
}

/* ===== PACK DETAIL ===== */

.flora-pack-detail {
    border-color: #6f42c1;
}

.flora-pack-detail .flora-product-detail-info {
    border-top: 3px solid #6f42c1;
}

.flora-pack-detail-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1d2327;
}

.flora-pack-promo-title,
.flora-pack-recap .flora-pack-detail-title {
    margin-top: 24px;
}

.flora-pack-accordion {
    margin: 0 0 20px 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.flora-acc-item + .flora-acc-item {
    border-top: 1px solid #e0e0e0;
}

.flora-acc-header {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    background: #f8f9fa;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    color: #1d2327;
}

.flora-acc-header:hover {
    background: #f1f0f8;
}

.flora-acc-header-media {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.flora-acc-header-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flora-acc-header-name {
    flex: 1;
    font-weight: 600;
}

.flora-acc-header-qty {
    font-size: 13px;
    font-weight: 600;
    color: #6f42c1;
}

.flora-acc-icon {
    color: #6f42c1;
    transition: transform 0.2s;
}

.flora-acc-item.open .flora-acc-icon {
    transform: rotate(180deg);
}

.flora-acc-body {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 18px;
    padding: 16px 14px;
    background: #fff;
}

.flora-acc-media {
    width: 140px;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.flora-acc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flora-acc-desc {
    font-size: 14px;
    color: #444;
}

.flora-acc-desc p {
    margin: 0 0 10px 0;
}

.flora-pack-promotions {
    list-style: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.flora-pack-promotions li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    background: #f3effa;
    border-left: 3px solid #6f42c1;
    border-radius: 4px;
    font-size: 13px;
    color: #4a3776;
}

.flora-pack-promotions .dashicons {
    color: #6f42c1;
}

.flora-pack-promotions li.flora-promo-free {
    background: #eefaf0;
    border-left-color: #2fb344;
    color: #1e7e34;
}

.flora-pack-promotions li.flora-promo-free .dashicons {
    color: #2fb344;
}

.flora-pack-recap {
    margin-top: 24px;
    padding: 18px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.flora-pack-recap .flora-pack-detail-title {
    margin-top: 0;
}

.flora-pack-recap .flora-product-actions {
    margin-top: 14px;
}

.flora-recap-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 14px;
}

.flora-recap-table td {
    padding: 6px 0;
    color: #333;
}

.flora-recap-table td:last-child {
    text-align: right;
    font-weight: 600;
}

.flora-recap-total-row td {
    border-top: 1px dashed #c8c8c8;
    padding-top: 10px;
    font-size: 16px;
    color: #6f42c1;
}

.flora-promo-amount {
    color: #2fb344;
}

@media (max-width: 560px) {
    .flora-acc-body {
        grid-template-columns: 1fr;
    }

    .flora-acc-media {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .flora-product-detail {
        flex-direction: column;
        padding: 20px;
    }

    .flora-product-detail-image {
        flex: none;
        max-width: 100%;
        height: 320px;
    }
}

.flora-section-title {
    margin-top: 40px !important;
}

/* ===== PRODUCT GRID ===== */

.flora-products-grid {
    display: grid;
    grid-template-columns: repeat(var(--flora-cols, 4), 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.flora-product-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.flora-product-card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.flora-product-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.flora-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.flora-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ccc;
    font-size: 48px;
}

.flora-product-info {
    padding: 15px;
}

.flora-product-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #1d2327;
}

.flora-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
    margin: 0 0 8px 0;
}

.flora-product-desc {
    font-size: 13px;
    color: #646970;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.flora-product-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.flora-product-actions .button {
    flex: 1;
    text-align: center;
}

/* ===== BADGES ===== */

.flora-badge-pack {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #6f42c1;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.flora-badge-outofstock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.flora-badge-free {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    vertical-align: middle;
    margin-left: 5px;
}

/* ===== PACK CONTENTS ===== */

.flora-pack-contents {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 12px;
    color: #646970;
}

.flora-pack-contents li {
    padding: 3px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.flora-pack-contents li:last-child {
    border-bottom: none;
}

.flora-pack-card {
    border-color: #6f42c1;
}

.flora-pack-card .flora-product-info {
    border-top: 3px solid #6f42c1;
}

/* ===== QUANTITY CONTROLS ===== */

.flora-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    overflow: hidden;
}

.flora-qty-control button {
    width: 32px;
    height: 32px;
    border: none;
    background: #f6f7f7;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flora-qty-control button:hover {
    background: #e0e0e0;
}

.flora-qty-control input {
    width: 45px;
    height: 32px;
    border: none;
    border-left: 1px solid #ccd0d4;
    border-right: 1px solid #ccd0d4;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    -moz-appearance: textfield;
}

.flora-qty-control input::-webkit-inner-spin-button,
.flora-qty-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ===== CART PAGE ===== */

.flora-cart-wrap {
    max-width: 800px;
}

.flora-cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.flora-cart-table th {
    background: #f6f7f7;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e0e0e0;
}

.flora-cart-table td {
    padding: 12px;
    border-bottom: 1px solid #f0f0f1;
    vertical-align: middle;
}

.flora-cart-free-item {
    background: #f0fff4;
}

.flora-cart-free-item td {
    color: #28a745;
    font-style: italic;
}

.flora-cart-totals {
    float: right;
    width: 300px;
    margin-bottom: 20px;
}

.flora-cart-totals table {
    width: 100%;
    border-collapse: collapse;
}

.flora-cart-totals td {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
}

.flora-cart-totals .flora-total-row td {
    border-top: 2px solid #1d2327;
    border-bottom: none;
    font-size: 18px;
    padding-top: 12px;
}

.flora-discount-row td {
    color: #28a745;
}

.flora-cart-promotions {
    margin: 15px 0;
    padding: 12px 15px;
    background: #f6f9f7;
    border-left: 4px solid #28a745;
    border-radius: 4px;
}

.flora-cart-promotions h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #1d2327;
}

.flora-cart-promotions table {
    width: 100%;
    border-collapse: collapse;
}

.flora-cart-promotions td {
    padding: 5px 0;
    border: none;
}

.flora-cart-promotions .flora-promo-amount {
    text-align: right;
    color: #28a745;
    font-weight: 600;
    white-space: nowrap;
}

.flora-checkout-summary .flora-cart-promotions {
    background: #faf5f0;
    border-left-color: #d63638;
}

.flora-cart-actions {
    clear: both;
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.flora-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: #646970;
}

.flora-remove-item {
    background: none;
    border: none;
    color: #d63638;
    cursor: pointer;
    font-size: 18px;
    padding: 4px 8px;
}

.flora-remove-item:hover {
    color: #a00;
}

/* ===== NOTIFICATION ===== */

.flora-notification {
    position: fixed;
    top: 50px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: #fff;
    font-weight: 600;
    z-index: 100000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: floraSlideIn 0.3s ease;
}

.flora-notif-success {
    background: #28a745;
}

.flora-notif-error {
    background: #dc3545;
}

@keyframes floraSlideIn {
    from { transform: translateX(100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== CHECKOUT ===== */

.flora-checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
}

.flora-checkout-form-wrap h3,
.flora-checkout-summary h3 {
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.flora-form-row {
    margin-bottom: 15px;
}

.flora-form-col-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.flora-form-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 13px;
    color: #1d2327;
}

.flora-form-field input,
.flora-form-field textarea,
.flora-form-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    font-size: 14px;
}

.flora-form-field input:focus,
.flora-form-field textarea:focus,
.flora-form-field select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.flora-checkout-submit {
    margin-top: 20px;
}

.flora-checkout-submit .button {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    text-align: center;
}

.flora-checkout-summary {
    background: #f6f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    position: sticky;
    top: 20px;
}

.flora-summary-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

.flora-summary-table td {
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
}

.flora-summary-free td {
    color: #28a745;
    font-style: italic;
}

.flora-summary-totals {
    width: 100%;
    border-collapse: collapse;
    border-top: 2px solid #1d2327;
}

.flora-summary-totals td {
    padding: 8px 0;
    font-size: 14px;
}

.flora-summary-totals .flora-total-row td {
    font-size: 18px;
    padding-top: 10px;
}

/* ===== ORDER CONFIRMATION ===== */

.flora-confirm-wrap {
    max-width: 700px;
    text-align: center;
}

.flora-confirm-success {
    padding: 40px 20px;
}

.flora-confirm-success .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #28a745;
    margin-bottom: 15px;
}

.flora-confirm-success h2 {
    color: #28a745;
}

.flora-order-number {
    font-size: 16px;
}

.flora-confirm-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
    margin-bottom: 25px;
}

.flora-confirm-card {
    background: #f6f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.flora-confirm-card h3 {
    margin-top: 0;
    font-size: 15px;
    margin-bottom: 12px;
}

.flora-confirm-table {
    width: 100%;
    border-collapse: collapse;
}

.flora-confirm-table td {
    padding: 6px 0;
    font-size: 13px;
}

.flora-confirm-table .flora-total-row td {
    border-top: 2px solid #1d2327;
    padding-top: 10px;
    font-size: 16px;
}

.flora-confirm-status {
    padding: 15px;
    background: #cce5ff;
    border-radius: 8px;
    color: #004085;
}

.flora-confirm-error {
    padding: 60px 20px;
    color: #646970;
}

.flora-confirm-status .flora-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */

@media screen and (max-width: 768px) {
    .flora-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flora-checkout-layout {
        grid-template-columns: 1fr;
    }

    .flora-confirm-details {
        grid-template-columns: 1fr;
    }

    .flora-cart-totals {
        float: none;
        width: 100%;
    }

    .flora-form-col-2 {
        grid-template-columns: 1fr;
    }
}

.flora-cart-loading {
    text-align: center;
    padding: 40px;
    color: #646970;
}

/* ===== CART COUNT BADGE ===== */

.flora-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: #d63638;
    color: #fff;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* ===== CART DRAWER (OFFCANVAS) ===== */

.flora-cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.flora-cart-drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

#flora-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 500px;
    max-width: 100vw;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
}

#flora-cart-drawer.open {
    transform: translateX(0);
}

body.flora-drawer-open {
    overflow: hidden;
}

.flora-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    flex: none;
}

.flora-drawer-title h3 {
    margin: 0;
    font-size: 18px;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flora-drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #646970;
    cursor: pointer;
    padding: 4px 8px;
}

.flora-drawer-close:hover {
    color: #1d2327;
}

.flora-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 8px 20px;
}

.flora-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f1;
}

.flora-drawer-item-info {
    flex: 1;
    min-width: 0;
}

.flora-drawer-item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 6px;
}

.flora-drawer-item-qty {
    font-size: 12px;
    color: #646970;
    margin-bottom: 6px;
}

.flora-drawer-item .flora-qty-control button {
    width: 26px;
    height: 26px;
    font-size: 14px;
}

.flora-drawer-item .flora-qty-control input {
    width: 38px;
    height: 26px;
    font-size: 13px;
}

.flora-drawer-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #1d2327;
    white-space: nowrap;
}

.flora-drawer-free {
    background: #f0fff4;
}

.flora-drawer-free .flora-drawer-item-name {
    color: #28a745;
    font-style: italic;
}

.flora-drawer-empty {
    text-align: center;
    padding: 50px 20px;
    color: #646970;
}

.flora-drawer-empty p {
    margin: 0 0 15px 0;
}

.flora-drawer-footer {
    flex: none;
    border-top: 1px solid #e0e0e0;
    padding: 16px 20px;
    background: #fff;
}

.flora-drawer-totals {
    margin-bottom: 14px;
}

.flora-drawer-total-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    color: #3c434a;
}

.flora-drawer-total-row.flora-discount-row {
    color: #28a745;
}

.flora-drawer-grand-total {
    border-top: 2px solid #1d2327;
    margin-top: 6px;
    padding-top: 10px;
    font-size: 17px;
    color: #1d2327;
}

.flora-drawer-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flora-drawer-actions .button {
    text-align: center;
    padding: 12px;
    font-size: 15px;
}

.flora-drawer-actions a {
    text-align: center;
}


.flora-input {
    border: 1px solid #ccd0d4 !important;
    border-radius: 4px !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
}


.flora-input:required:focus:invalid {
    border: 2px solid #d65d67 !important;
    outline: none;
}

.flora-shipping-methods { 
    display: grid;
   grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.flora-shipping-method   {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-left: 4px solid #2271b1;
    padding: 20px;
    text-align: center;
}

.flora-shipping-method input {
    height: 24px !important;
    width: 50px;
}
.memo {
    display: block !important;
}


@media screen and (max-width: 480px) {
    #flora-cart-drawer {
        width: 100%;
    }
}
