/**
 * F-Cart Styles
 * CSS cho trang Cart tùy chỉnh
 */

:root {
    --f-green: #234e1e;
    --f-bg: #fff;
    --f-border: #efefef;
}

/* ==========================================
   CART HEADER
   ========================================== */
.f-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.f-cart-header-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.f-keep-shopping {
    color: var(--f-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}

.f-keep-shopping:hover {
    text-decoration: underline;
}

/* ==========================================
   CART ITEM GROUP
   ========================================== */
.f-cart-item-group,
.f-summary-card {
    background: var(--f-bg);
    border: 1px solid var(--f-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    font-family: sans-serif;
}

/* ==========================================
   SHOP HEADER
   ========================================== */
.f-shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f9f9f9;
    padding-bottom: 15px;
}

.f-s-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.f-s-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.f-s-name {
    font-weight: 700;
    font-size: 15px;
    display: block;
}

.f-s-name .fa-circle-check {
    color: #1877f2;
    font-size: 13px;
}

.f-contact-btn {
    border: 1px solid #ddd;
    background: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
}

/* ==========================================
   PRODUCT ROW
   ========================================== */
.f-product-row {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #f9f9f9;
}

.f-p-img {
    position: relative;
    width: 100px;
}

.f-p-img img {
    border-radius: 8px;
    width: 100%;
}

.f-p-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: #ff5722;
    color: #fff;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 4px;
}

.f-p-content {
    flex: 1;
}

.f-p-title {
    margin: 0 0 8px;
    font-size: 15px;
}

.f-p-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s;
}

.f-p-title a:hover {
    color: var(--f-green);
    text-decoration: underline;
}

.f-p-attrs {
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.f-p-attrs i {
    color: #4caf50;
    font-size: 10px;
}

/* ==========================================
   PRODUCT FOOTER
   ========================================== */
.f-p-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.f-p-f-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.f-qty-trigger {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    width: 60px;
    height: 30px;
    line-height: 10px;
}

.f-p-actions {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #888;
}

.f-p-actions a {
    text-decoration: none;
    color: inherit;
}

.f-p-actions a.red {
    color: #ff5252;
}

.f-p-f-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.f-sale-tag-inline {
    background: #ff5722;
    color: #fff;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 700;
}

.f-p-f-right del {
    color: #aaa;
    font-size: 13px;
}

.f-p-main-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--f-green);
}

/* ==========================================
   ORDER SUMMARY (RIGHT COLUMN)
   ========================================== */
.f-summary-card {
    position: sticky;
    top: 20px;
    width:100%;
}

.f-m-cost,
.f-row bdi,
.f-total-row bdi {
    font-weight: 700;
    color: var(--f-green);
}

.f-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1a1a1a;
    letter-spacing: -0.3px;
}

.f-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #444;
}

.f-row > span:first-child {
    font-weight: 500;
    color: #333;
}

.f-row > strong,
.f-row > span:last-child {
    font-weight: 700;
    color: #1a1a1a;
}

.f-row.green {
    color: var(--f-green);
    font-weight: 600;
}

.f-ship-method {
    display: flex;
    align-items: center;
    border: 2px solid #f0f0f0;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
}

.f-ship-method.active {
    border-color: var(--f-green);
    background: #f9fff9;
}

.f-m-info {
    flex: 1;
    margin-left: 10px;
    font-size: 13px;
}

.f-m-info strong {
    display: block;
    color: black;
}

/* ==========================================
   ADDRESS SECTION
   ========================================== */
.f-addr-section {
    background: #f9f9f9;
    padding: 14px;
    border-radius: 8px;
    font-size: 13px;
    margin: 15px 0;
    line-height: 1.6;
    color: #444;
}

.f-addr-section strong {
    color: #1a1a1a;
    font-size: 13px;
}

.f-in {
    width: 100%;
    padding: 8px;
    margin-bottom: 6px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.f-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.f-btn-update {
    width: 100%;
    background: var(--f-green);
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}

#f-open-form {
    background-color: #2d5a1e;
    color: #fff;
    padding: 5px;
    border-radius: 15px;
}

.f-f-head {
    display: flex;
    justify-content: space-between;
}

/* ==========================================
   LABEL CAPS (shared with Checkout)
   ========================================== */
.f-label-caps {
    font-size: 11px;
    font-weight: 700;
    color: #8a8a8a;
    letter-spacing: 0.5px;
    margin: 20px 0 10px;
    text-transform: uppercase;
}

/* ==========================================
   COUPON SECTION (Styled like Checkout Summary)
   ========================================== */
.f-coupon-checkout-section {
    border-top: 1px solid #f0f0f0;
}

.f-coupon-input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.f-cp-input {
    flex: 1;
    padding: 0 10px;
    border: 2px solid var(--f-green);
    border-radius: 6px;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 500;
}

.f-cp-input::placeholder {
    color: #a0aec0;
    text-transform: uppercase;
}

.f-cp-btn {
    background-color: var(--f-green);
    color: #fff;
    border: none;
    padding: 0 25px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.f-cp-btn:hover {
    background-color: #7d8b7a;
}

/* Applied Coupon Items (same as Checkout) */
.f-applied-coupons-container {
    margin-bottom: 5px;
}

.f-applied-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f0f7ef;
    border: 1px solid #d1e4cf;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.f-applied-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.f-applied-left .fa-circle-check {
    color: #2e7d32;
    font-size: 20px;
}

.f-applied-info strong {
    display: block;
    color: var(--f-green);
    font-size: 15px;
    line-height: 1.2;
}

.f-applied-info span {
    font-size: 12px;
    color: #555;
}

.f-remove-coupon-ajax {
    color: #8a99ad;
    font-size: 13px;
    text-decoration: underline;
    font-weight: 500;
}

.f-remove-coupon-ajax:hover {
    color: #ff5252;
}

/* ==========================================
   DISCOUNT ROW
   ========================================== */
.f-discount-row {
    color: var(--f-green);
}

.f-discount-val {
    color: var(--f-green);
    font-weight: 700;
}

/* ==========================================
   TOTAL & CHECKOUT
   ========================================== */
.f-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 15px;
}

.f-t-right {
    text-align: right;
}

.f-t-right strong {
    font-size: 26px;
    display: block;
    color: #1a1a1a;
}

.f-checkout-btn {
    display: block;
    background: var(--f-green);
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 20px;
}

/* ==========================================
   WISHLIST BUTTON
   ========================================== */
.bu-wishlist-button {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.bu-wishlist-button.added {
    color: #ff5252;
    background: #fff;
}

.bu-wishlist-button:hover {
    color: #333;
}

.bu-wishlist-button i {
    font-size: 14px;
}

button.bu-wsl-ajax-btn.added,
a.red {
    display: flex;
    column-gap: 5px;
    align-items: center;
    line-height: 10px;
}

button.bu-wsl-ajax-btn {
    background: none;
}

/* ==========================================
   HR
   ========================================== */
.f-hr {
    border: none;
    border-top: 1px solid #f0f0f0;
    margin: 12px 0;
}

/* ==========================================
   LOADING & BLOCK UI OVERRIDES
   Prevent WooCommerce blockUI from adding
   opacity overlay on our custom elements
   ========================================== */
.f-loading {
    pointer-events: none;
    cursor: wait;
}

/* Force opacity: 1 on ALL our custom containers + Bricks wrappers */
#f-summary-container,
#f-checkout-summary-container,
.f-cart-items-wrapper,
.f-summary-card,
.f-summary-card.processing {
    opacity: 1 !important;
}

/* Hide ALL blockUI overlays inside our elements */
#f-summary-container .blockUI,
#f-checkout-summary-container .blockUI,
.f-cart-items-wrapper .blockUI,
.f-summary-card .blockUI {
    display: none !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}
@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
 .f-p-actions span {
    display: none;
 }
 .f-sale-tag-inline {
 padding:2px;
}
 .f-product-row{
 gap:8px;
}
.f-p-f-right{
 gap:5px;
}
}