/* ===== BREADCRUMB ===== */
.page-breadcrumb {
    background: #f8f9fa;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.page-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.8rem;
}
.page-breadcrumb .breadcrumb-item a {
    color: #888;
    text-decoration: none;
}
.page-breadcrumb .breadcrumb-item a:hover {
    color: var(--primary);
}
.page-breadcrumb .breadcrumb-item.active {
    color: var(--dark);
    font-weight: 600;
}

/* ===== CART PAGE ===== */
.cart-page {
    padding: 40px 0 60px;
}
.cart-page-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}
.cart-page-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0;
}
.cart-item-count {
    background: #f5f5f7;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Cart Items Card */
.cart-items-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
}
.cart-item {
    display: flex;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: #fafafa; }
.cart-item-img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    overflow: hidden;
    background: #f9f9f9;
    flex-shrink: 0;
}
.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.cart-item-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.cart-item-cat {
    font-size: 0.68rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.cart-item-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    margin: 4px 0 8px;
}
.cart-item-meta-info {
    display: flex;
    gap: 16px;
}
.cart-item-meta-info span {
    font-size: 0.72rem;
    color: #22c55e;
    font-weight: 500;
}
.cart-item-delete {
    border: none;
    background: #f5f5f7;
    color: #999;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.cart-item-delete:hover {
    background: #fef2f2;
    color: var(--primary);
}
.cart-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}
.cart-qty-control {
    display: flex;
    align-items: center;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}
.qty-btn-ctrl {
    width: 36px;
    height: 36px;
    border: none;
    background: #f9f9f9;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: all 0.2s;
}
.qty-btn-ctrl:hover {
    background: var(--primary);
    color: #fff;
}
.qty-input {
    width: 42px;
    text-align: center;
    border: none;
    font-size: 0.88rem;
    font-weight: 600;
    outline: none;
    -moz-appearance: textfield;
}
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-item-pricing {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.cart-price-current {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--dark);
}
.cart-price-original {
    font-size: 0.8rem;
    color: #bbb;
    text-decoration: line-through;
}
.cart-price-save {
    font-size: 0.7rem;
    color: #22c55e;
    font-weight: 600;
    background: #f0fdf4;
    padding: 2px 8px;
    border-radius: 6px;
}

/* Coupon Card */
.cart-coupon-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 14px;
    border: 1.5px dashed #e0e0e0;
    padding: 20px 24px;
    margin-top: 20px;
}
.coupon-icon {
    font-size: 1.5rem;
    color: var(--primary);
}
.coupon-content h6 {
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 2px;
    color: var(--dark);
}
.coupon-content p {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin: 0;
}
.coupon-input-wrap {
    display: flex;
    margin-left: auto;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
}
.coupon-input-wrap input {
    border: none;
    padding: 10px 14px;
    font-size: 0.82rem;
    outline: none;
    width: 160px;
}
.btn-coupon-apply {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-coupon-apply:hover {
    background: var(--primary-dark);
}

/* Order Summary Card */
.cart-summary-card,
.checkout-summary-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 28px;
    position: sticky;
    top: 100px;
}
.summary-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #555;
}
.summary-row span:last-child { font-weight: 600; }
.summary-total {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}
.summary-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 16px 0;
}
.summary-savings {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    margin-bottom: 18px;
}
.btn-checkout-proceed,
.btn-place-order {
    display: block;
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 14px;
}
.btn-checkout-proceed:hover,
.btn-place-order:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229,57,53,0.3);
}
.summary-secure {
    text-align: center;
    font-size: 0.72rem;
    color: #aaa;
    margin-bottom: 12px;
}
.summary-payment-icons {
    display: flex;
    justify-content: center;
    gap: 6px;
}
.summary-payment-icons img {
    height: 20px;
    border-radius: 3px;
    border: 1px solid #eee;
}

/* ===== CHECKOUT PAGE ===== */
.checkout-page {
    padding: 30px 0 60px;
}

/* Steps */
.checkout-steps {
    padding: 24px 0;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}
.steps-track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f7;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #999;
    transition: all 0.3s;
}
.step-item.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(229,57,53,0.25);
}
.step-item.completed .step-circle {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}
.step-item span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
}
.step-item.active span { color: var(--primary); }
.step-item.completed span { color: #22c55e; }
.step-line {
    width: 60px;
    height: 2px;
    background: #e8e8e8;
    margin: 0 10px;
    margin-bottom: 20px;
    border-radius: 2px;
}
.step-line.completed { background: #22c55e; }

/* Checkout Section Cards */
.checkout-section-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    padding: 28px;
    margin-bottom: 20px;
}
.checkout-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f5f5f5;
}
.cs-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--primary);
}
.checkout-section-header h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--dark);
}
.checkout-section-header p {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin: 2px 0 0;
}
.checkout-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}
.checkout-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.25s;
    background: #fff;
}
.checkout-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229,57,53,0.06);
}
.checkout-input-group {
    display: flex;
    border: 1.5px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s;
}
.checkout-input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(229,57,53,0.06);
}
.input-prefix {
    padding: 12px 14px;
    background: #f9f9f9;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    border-right: 1px solid #e8e8e8;
}
.checkout-input.has-prefix {
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.payment-option {
    display: block;
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.25s;
}
.payment-option.active,
.payment-option:has(input:checked) {
    border-color: var(--primary);
    background: #fff5f5;
}
.payment-option input { display: none; }
.payment-option-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.po-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.po-left i {
    font-size: 1.3rem;
    color: var(--primary);
}
.po-left strong {
    display: block;
    font-size: 0.85rem;
    color: var(--dark);
}
.po-left span {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.po-icons {
    display: flex;
    gap: 4px;
}
.po-icons img {
    height: 18px;
    border-radius: 3px;
    border: 1px solid #eee;
}

/* Checkout Summary Items */
.checkout-summary-items {
    margin-bottom: 16px;
}
.checkout-sum-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f8f8f8;
}
.checkout-sum-item:last-child { border-bottom: none; }
.checkout-sum-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    background: #f9f9f9;
}
.csi-info {
    flex: 1;
}
.csi-info h6 {
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0 0 2px;
    color: var(--dark);
}
.csi-info span {
    font-size: 0.68rem;
    color: var(--text-muted);
}
.csi-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
}

/* ===== CHECKOUT ADDRESS CARDS ===== */
.checkout-addr-card {
    border: 1.5px solid #e8e8e8;
    border-radius: 12px;
    padding: 14px 16px;
    background: #fff;
    transition: all 0.25s;
    min-height: 100px;
}
.checkout-addr-card:hover {
    border-color: #ccc;
    background: #fafafa;
}
.checkout-addr-card.active {
    border-color: var(--primary);
    background: #fff5f5;
    box-shadow: 0 2px 10px rgba(229,57,53,0.08);
}
.checkout-addr-card.active .checkout-addr-label {
    background: var(--primary);
    color: #fff;
}
.checkout-addr-label {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f0f0f0;
    color: #666;
    transition: all 0.25s;
}

/* Responsive */
@media (max-width: 767px) {
    .cart-item { flex-direction: column; gap: 14px; }
    .cart-item-img { width: 100%; height: 160px; }
    .cart-item-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
    .cart-coupon-card { flex-direction: column; align-items: flex-start; }
    .coupon-input-wrap { margin-left: 0; width: 100%; }
    .coupon-input-wrap input { flex: 1; }
    .steps-track { gap: 0; }
    .step-line { width: 30px; }
}
