/* ===================================================
   public/css/store-product.css
   Keranjang Petani — Storefront Custom Styles
   =================================================== */

/* ---------- Fonts & Base ---------- */
.sp-body {
    font-family: 'Outfit', sans-serif;
    background-color: #F8FAF9;
}

/* ---------- Typography Utilities ---------- */
.text-xxs {
    font-size: 0.65rem;
    line-height: 1rem;
}

/* ---------- Layout: Marketplace Page ---------- */
.sp-page {
    padding: 3rem 0;
    background-color: #F8FAF9;
    min-height: 80vh;
}

.sp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sp-layout {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* ---------- Sidebar ---------- */
.sp-sidebar {
    width: 240px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
}

.sp-sidebar-section {
    margin-bottom: 2rem;
}

.sp-sidebar-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: #065F46;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
    display: block;
}

.sp-sidebar-divider {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin-bottom: 1.5rem;
}

/* ---------- Custom Checkbox ---------- */
.custom-checkbox {
    appearance: none;
    background-color: transparent;
    margin: 0;
    width: 1.1em;
    height: 1.1em;
    border: 2px solid #D1D5DB;
    border-radius: 0.3em;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.custom-checkbox::before {
    content: "";
    width: 0.6em;
    height: 0.6em;
    transform: scale(0);
    transition: 100ms transform ease-in-out;
    box-shadow: inset 1em 1em white;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.custom-checkbox:checked {
    background-color: #10B981;
    border-color: #10B981;
}
.custom-checkbox:checked::before {
    transform: scale(1);
}

/* ---------- Custom Radio ---------- */
.custom-radio {
    appearance: none;
    width: 1.1em;
    height: 1.1em;
    border: 2px solid #D1D5DB;
    border-radius: 50%;
    display: grid;
    place-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s ease;
}
.custom-radio::before {
    content: "";
    width: 0.55em;
    height: 0.55em;
    border-radius: 50%;
    transform: scale(0);
    transition: 100ms transform ease-in-out;
    background-color: #10B981;
}
.custom-radio:checked {
    border-color: #10B981;
}
.custom-radio:checked::before {
    transform: scale(1);
}

/* ---------- Custom Range Slider ---------- */
.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #D1D5DB;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #10B981;
    cursor: pointer;
    box-shadow: 0 0 0 4px rgba(16,185,129,0.15);
    transition: box-shadow 0.2s;
}
.custom-range::-webkit-slider-thumb:hover {
    box-shadow: 0 0 0 6px rgba(16,185,129,0.2);
}

/* ---------- Filter Labels ---------- */
.sp-filter-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 0.15s;
}
.sp-filter-label:hover {
    color: #10B981;
}

/* ---------- Apply Filter Button ---------- */
.sp-apply-btn {
    width: 100%;
    background-color: #10B981;
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color 0.2s;
}
.sp-apply-btn:hover {
    background-color: #059669;
}

.sp-reset-link {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 0.6rem;
    text-decoration: none;
    transition: color 0.15s;
}
.sp-reset-link:hover {
    color: #374151;
}

/* ---------- Main Content Area ---------- */
.sp-main {
    flex: 1;
    min-width: 0;
}

/* ---------- Page Header ---------- */
.sp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #E5E7EB;
}

.sp-header-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.sp-header-sub {
    font-size: 0.875rem;
    color: #6B7280;
    margin-top: 0.3rem;
    max-width: 400px;
    line-height: 1.5;
}

.sp-sort-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6B7280;
    white-space: nowrap;
}

.sp-sort-select {
    appearance: none;
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 0.5rem;
    padding: 0.4rem 2rem 0.4rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1rem;
    outline: none;
}

/* ---------- Product Grid ---------- */
.sp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .sp-layout {
        flex-direction: column;
    }
    .sp-sidebar {
        width: 100%;
        position: static;
        display: flex;
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    .sp-sidebar-section {
        margin-bottom: 0;
        min-width: 150px;
    }
    .sp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sp-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Product Card ---------- */
.sp-card {
    display: flex;
    flex-direction: column;
}

.sp-card-img-wrap {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #F3F4F6;
    margin-bottom: 0.9rem;
}

.sp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.sp-card:hover .sp-card-img {
    transform: scale(1.05);
}

.sp-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.sp-badge-green {
    background-color: #6EE7B7;
    color: #064E3B;
}

.sp-badge-yellow {
    background-color: #FDE047;
    color: #713F12;
}

.sp-badge-gray {
    background-color: #E5E7EB;
    color: #6B7280;
}

.sp-card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 0.25rem;
}

.sp-card-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    text-decoration: none;
    transition: color 0.15s;
    display: block;
}
.sp-card-name:hover {
    color: #10B981;
}

.sp-card-farm {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-top: 0.25rem;
    font-weight: 500;
}

.sp-card-price {
    text-align: right;
    flex-shrink: 0;
    padding-left: 0.75rem;
}

.sp-card-price-num {
    font-size: 0.95rem;
    font-weight: 800;
    color: #064E3B;
}

.sp-card-price-unit {
    font-size: 0.6rem;
    color: #9CA3AF;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

/* ---------- Active Filter Pills ---------- */
.sp-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.sp-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    color: #065F46;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 9999px;
    text-decoration: none;
}
.sp-filter-pill:hover {
    background: #D1FAE5;
}

/* ---------- Empty State ---------- */
.sp-empty {
    text-align: center;
    padding: 5rem 1rem;
    color: #9CA3AF;
}
.sp-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}
.sp-empty-title {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.5rem;
}

/* ---------- Pagination ---------- */
.sp-pagination {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

/* ============================================================
   PRODUCT DETAIL PAGE (show.blade.php)
   ============================================================ */

/* ---------- Breadcrumb ---------- */
.sp-breadcrumb {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.sp-breadcrumb a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.15s;
}
.sp-breadcrumb a:hover {
    color: #10B981;
}
.sp-breadcrumb span {
    color: #111827;
    font-weight: 600;
}

/* ---------- Detail Layout ---------- */
.sp-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    margin-bottom: 5rem;
}

@media (max-width: 768px) {
    .sp-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ---------- Gallery ---------- */
.sp-gallery-main {
    aspect-ratio: 1 / 1;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #F3F4F6;
    margin-bottom: 0.75rem;
}
.sp-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.sp-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}
.sp-gallery-thumbs::-webkit-scrollbar { display: none; }

.sp-thumb {
    width: 64px;
    height: 64px;
    border-radius: 0.75rem;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s;
}
.sp-thumb.active, .sp-thumb:hover {
    border-color: #10B981;
}
.sp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- Detail Info ---------- */
.sp-detail-category {
    font-size: 0.65rem;
    font-weight: 800;
    color: #10B981;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.sp-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.sp-detail-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.sp-stars { display: flex; gap: 2px; color: #FBBF24; }
.sp-stars svg { width: 14px; height: 14px; }
.sp-rating-text { font-size: 0.75rem; color: #9CA3AF; }

/* ---------- Price Box ---------- */
.sp-price-box {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

.sp-price-main {
    font-size: 2rem;
    font-weight: 800;
    color: #064E3B;
    line-height: 1;
}

.sp-price-unit {
    font-size: 0.8rem;
    color: #9CA3AF;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.25rem;
}

.sp-wholesale-info {
    font-size: 0.75rem;
    color: #059669;
    margin-top: 0.4rem;
    font-weight: 600;
    background: #ECFDF5;
    padding: 0.3rem 0.6rem;
    border-radius: 0.4rem;
    display: inline-block;
}

.sp-qty-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.sp-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #E5E7EB;
    border-radius: 9999px;
    overflow: hidden;
    background: white;
}
.sp-qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #6B7280;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.15s;
}
.sp-qty-btn:hover { color: #111827; }
.sp-qty-num {
    width: 2.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #111827;
}

.sp-cart-btn {
    flex: 1;
    min-width: 160px;
    background-color: #10B981;
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
}
.sp-cart-btn:hover {
    background-color: #059669;
    transform: translateY(-1px);
}
.sp-cart-btn:active {
    transform: translateY(0);
}

/* ---------- Delivery Tags ---------- */
.sp-delivery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.sp-delivery-tag {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #374151;
}
.sp-delivery-tag svg {
    width: 14px;
    height: 14px;
    color: #10B981;
    flex-shrink: 0;
}

/* ---------- Tips Sections ---------- */
.sp-tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 3rem;
}
@media (max-width: 600px) {
    .sp-tips-grid { grid-template-columns: 1fr; }
}

.sp-tips-card {
    border-radius: 1rem;
    padding: 1.25rem;
}
.sp-tips-card-green { background: #ECFDF5; }
.sp-tips-card-amber { background: #FFFBEB; }

.sp-tips-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.6rem;
}
.sp-tips-card-green .sp-tips-title { color: #065F46; }
.sp-tips-card-amber .sp-tips-title { color: #92400E; }

.sp-tips-text {
    font-size: 0.8rem;
    line-height: 1.6;
    color: #374151;
}

/* ---------- Reviews ---------- */
.sp-reviews-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.5rem;
}
.sp-reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}
@media (max-width: 768px) {
    .sp-reviews-grid { grid-template-columns: 1fr; }
}

.sp-review-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.sp-reviewer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}
.sp-reviewer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}
.sp-reviewer-name {
    font-size: 0.8rem;
    font-weight: 700;
    color: #111827;
}
.sp-reviewer-date {
    font-size: 0.65rem;
    color: #9CA3AF;
}
.sp-review-text {
    font-size: 0.8rem;
    color: #6B7280;
    line-height: 1.6;
    font-style: italic;
}

/* ---------- Related Products ---------- */
.sp-related-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 1.5rem;
}
.sp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
@media (max-width: 768px) {
    .sp-related-grid { grid-template-columns: repeat(2, 1fr); }
}

.sp-related-card {
    display: flex;
    flex-direction: column;
}
.sp-related-img {
    aspect-ratio: 1/1;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #F3F4F6;
    margin-bottom: 0.6rem;
}
.sp-related-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.sp-related-card:hover .sp-related-img img {
    transform: scale(1.05);
}
.sp-related-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #111827;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}
.sp-related-name:hover { color: #10B981; }
.sp-related-price {
    font-size: 0.82rem;
    font-weight: 800;
    color: #064E3B;
    margin-top: 0.2rem;
}

/* ============================================================
   CHECKOUT PAGES (checkout.blade.php & checkout-confirm.blade.php)
   ============================================================ */

/* Page wrapper */
.co-page { background:#F8FAF9; min-height:100vh; padding:2.5rem 0 5rem; }
.co-container { max-width:1100px; margin:0 auto; padding:0 1.5rem; }

/* Page title */
.co-title { font-size:2rem; font-weight:800; color:#111827; letter-spacing:-0.02em; margin-bottom:0.3rem; }
.co-subtitle { font-size:0.875rem; color:#9CA3AF; }

/* 2-column layout */
.co-layout { display:grid; grid-template-columns:1fr 380px; gap:2rem; align-items:flex-start; margin-top:2rem; }
@media(max-width:900px){ .co-layout{ grid-template-columns:1fr; } }

/* ---- LEFT COLUMN ---- */
.co-left { display:flex; flex-direction:column; gap:1.25rem; }

/* ---- Cart Item Card ---- */
.co-item-card {
    background:white;
    border:1px solid #E5E7EB;
    border-radius:1.25rem;
    padding:1.25rem;
    display:flex;
    align-items:center;
    gap:1.25rem;
}
.co-item-img {
    width:90px;
    height:90px;
    border-radius:1rem;
    object-fit:cover;
    flex-shrink:0;
    background:#F3F4F6;
}
.co-item-info { flex:1; min-width:0; }
.co-item-name { font-size:1rem; font-weight:700; color:#111827; margin-bottom:0.2rem; }
.co-item-farm { font-size:0.75rem; color:#9CA3AF; margin-bottom:0.5rem; }
.co-item-badge {
    display:inline-flex; align-items:center; gap:0.3rem;
    font-size:0.65rem; font-weight:700; color:#065F46;
    background:#ECFDF5; padding:0.15rem 0.6rem; border-radius:9999px;
}
.co-item-delivery { font-size:0.72rem; color:#6B7280; display:flex; align-items:center; gap:0.3rem; margin-top:0.3rem; }
.co-item-right { display:flex; flex-direction:column; align-items:flex-end; gap:0.75rem; flex-shrink:0; }
.co-item-price { font-size:1rem; font-weight:800; color:#065F46; }
.co-item-qty { display:flex; align-items:center; border:1.5px solid #E5E7EB; border-radius:9999px; background:white; overflow:hidden; }
.co-qty-btn { width:34px; height:34px; display:flex; align-items:center; justify-content:center; background:none; border:none; cursor:pointer; color:#6B7280; font-size:1rem; transition:color 0.15s; }
.co-qty-btn:hover { color:#111827; }
.co-qty-num { width:2rem; text-align:center; font-weight:700; font-size:0.875rem; color:#111827; }
.co-item-remove { font-size:0.72rem; font-weight:700; color:#EF4444; background:none; border:none; cursor:pointer; display:flex; align-items:center; gap:0.25rem; }
.co-item-remove:hover { color:#DC2626; }

/* Empty cart */
.co-empty { text-align:center; padding:5rem 1rem; background:white; border-radius:1.25rem; border:1px solid #E5E7EB; }

/* ---- RIGHT: Order Summary Card ---- */
.co-summary {
    background:white;
    border:1px solid #E5E7EB;
    border-radius:1.25rem;
    padding:1.5rem;
    position:sticky;
    top:90px;
}
.co-summary-title { font-size:1rem; font-weight:800; color:#111827; margin-bottom:1.25rem; }

.co-summary-row { display:flex; justify-content:space-between; align-items:center; font-size:0.875rem; color:#6B7280; margin-bottom:0.6rem; }
.co-summary-divider { border:none; border-top:1px solid #F3F4F6; margin:0.75rem 0; }
.co-summary-total { display:flex; justify-content:space-between; align-items:center; font-size:1rem; font-weight:800; color:#111827; }
.co-summary-total-val { font-size:1.25rem; font-weight:800; color:#10B981; }

/* Shipping estimator */
.co-shipping-box { background:#F9FAFB; border-radius:1rem; padding:1rem; margin:1rem 0; }
.co-shipping-label { font-size:0.65rem; font-weight:800; text-transform:uppercase; letter-spacing:0.08em; color:#6B7280; display:flex; align-items:center; gap:0.4rem; margin-bottom:0.75rem; }
.co-input { width:100%; border:1.5px solid #E5E7EB; border-radius:0.6rem; padding:0.55rem 0.85rem; font-size:0.8rem; outline:none; background:white; color:#111827; transition:border-color 0.15s; }
.co-input:focus { border-color:#10B981; }
.co-calc-btn { width:100%; margin-top:0.6rem; background:#F3F4F6; border:none; border-radius:0.6rem; padding:0.55rem; font-size:0.8rem; font-weight:700; color:#374151; cursor:pointer; transition:background 0.15s; }
.co-calc-btn:hover { background:#E5E7EB; }

/* Proceed button */
.co-proceed-btn { display:block; width:100%; background:#10B981; color:white; border:none; border-radius:9999px; padding:1rem; font-size:0.9rem; font-weight:700; text-align:center; cursor:pointer; margin-top:1rem; transition:background 0.2s; text-decoration:none; }
.co-proceed-btn:hover { background:#059669; }
.co-proceed-note { font-size:0.65rem; color:#9CA3AF; text-align:center; margin-top:0.6rem; line-height:1.5; }
.co-proceed-note a { color:#10B981; }
.co-trust-row { display:flex; align-items:center; gap:0.5rem; font-size:0.72rem; color:#6B7280; margin-top:0.75rem; padding-top:0.75rem; border-top:1px solid #F3F4F6; }

/* ============================================================
   CHECKOUT CONFIRM PAGE
   ============================================================ */

/* Section card */
.co-section { background:white; border:1px solid #E5E7EB; border-radius:1.25rem; padding:1.5rem; margin-bottom:1.25rem; }
.co-section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:1.25rem; }
.co-section-title { font-size:0.875rem; font-weight:800; color:#111827; display:flex; align-items:center; gap:0.5rem; }
.co-section-title svg { color:#10B981; }
.co-section-link { font-size:0.75rem; font-weight:700; color:#10B981; text-decoration:none; }
.co-section-link:hover { text-decoration:underline; }

/* Address card */
.co-address-card { border:1.5px solid #E5E7EB; border-radius:1rem; padding:1.25rem; display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; }
.co-address-name { font-size:0.875rem; font-weight:700; color:#111827; display:flex; align-items:center; gap:0.5rem; margin-bottom:0.3rem; }
.co-address-default { font-size:0.6rem; font-weight:800; color:#10B981; background:#ECFDF5; padding:0.1rem 0.5rem; border-radius:9999px; text-transform:uppercase; letter-spacing:0.05em; }
.co-address-text { font-size:0.8rem; color:#6B7280; line-height:1.6; }

/* Delivery method */
.co-delivery-options { display:grid; grid-template-columns:1fr 1fr; gap:0.75rem; }
.co-delivery-option { border:1.5px solid #E5E7EB; border-radius:1rem; padding:1rem; cursor:pointer; display:flex; align-items:flex-start; gap:0.75rem; transition:border-color 0.15s; }
.co-delivery-option.selected, .co-delivery-option:has(input:checked) { border-color:#10B981; background:#F0FDF4; }
.co-delivery-option input { accent-color:#10B981; margin-top:0.15rem; flex-shrink:0; }
.co-delivery-name { font-size:0.8rem; font-weight:700; color:#111827; margin-bottom:0.15rem; }
.co-delivery-desc { font-size:0.7rem; color:#9CA3AF; }
.co-delivery-price { font-size:0.8rem; font-weight:700; color:#10B981; margin-top:0.3rem; }

/* Payment method */
.co-payment-option { border:1.5px solid #E5E7EB; border-radius:1rem; padding:1rem; margin-bottom:0.75rem; cursor:pointer; display:flex; align-items:center; gap:0.75rem; transition:border-color 0.15s; }
.co-payment-option.selected, .co-payment-option:has(input:checked) { border-color:#10B981; background:#F0FDF4; }
.co-payment-option input { accent-color:#10B981; flex-shrink:0; }
.co-payment-label { font-size:0.875rem; font-weight:700; color:#111827; display:flex; align-items:center; gap:0.5rem; flex:1; }
.co-payment-icons { display:flex; gap:0.35rem; margin-left:auto; }
.co-payment-icon { background:#F3F4F6; border-radius:0.35rem; padding:0.2rem 0.5rem; font-size:0.6rem; font-weight:800; color:#374151; }

/* Card fields */
.co-card-fields { padding:0.75rem 0.75rem 0.25rem; border-top:1px dashed #E5E7EB; margin-top:0.75rem; display:flex; flex-direction:column; gap:0.6rem; }
.co-card-label { font-size:0.65rem; font-weight:800; text-transform:uppercase; letter-spacing:0.07em; color:#9CA3AF; margin-bottom:0.25rem; }
.co-card-row { display:grid; grid-template-columns:1fr 1fr; gap:0.6rem; }

/* Order summary sidebar items */
.co-sum-item { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.75rem; }
.co-sum-item-img { width:48px; height:48px; border-radius:0.6rem; object-fit:cover; flex-shrink:0; background:#F3F4F6; }
.co-sum-item-info { flex:1; }
.co-sum-item-name { font-size:0.78rem; font-weight:700; color:#111827; margin-bottom:0.1rem; }
.co-sum-item-meta { font-size:0.7rem; color:#9CA3AF; }
.co-sum-item-price { font-size:0.78rem; font-weight:700; color:#065F46; }

/* Voucher */
.co-voucher-row { display:flex; gap:0.5rem; margin-bottom:0.75rem; }
.co-voucher-input { flex:1; }
.co-voucher-btn { background:#10B981; color:white; border:none; border-radius:0.6rem; padding:0 1rem; font-size:0.8rem; font-weight:700; cursor:pointer; white-space:nowrap; transition:background 0.15s; }
.co-voucher-btn:hover { background:#059669; }

/* Complete button */
.co-complete-btn { display:flex; justify-content:center; align-items:center; gap:0.5rem; width:100%; background:#10B981; color:white; border:none; border-radius:9999px; padding:1rem; font-size:0.9rem; font-weight:700; cursor:pointer; margin-top:1rem; transition:background 0.2s, transform 0.1s; }
.co-complete-btn:hover { background:#059669; transform:translateY(-1px); }
.co-complete-btn:disabled { opacity:0.6; cursor:not-allowed; transform:none; }
.co-secure-note { font-size:0.65rem; color:#9CA3AF; text-align:center; margin-top:0.6rem; line-height:1.5; display:flex; align-items:center; justify-content:center; gap:0.3rem; }
