/**
 * Verdeno Garden Cart Page Styles
 * Professional cart page with proper alignment
 * 
 * @version 1.0.0
 */

/* ========================================
   CART BREADCRUMB
======================================== */
.cart-breadcrumb {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f0e8 100%);
    padding: 25px 0;
    margin-top: 80px;
    border-bottom: 1px solid rgba(45, 123, 44, 0.1);
}

.cart-breadcrumb .crumb {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.cart-breadcrumb .crumb li {
    position: relative;
    color: #6c757d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-breadcrumb .crumb li i {
    font-size: 12px;
    opacity: 0.7;
}

.cart-breadcrumb .crumb li:not(:last-child):after {
    content: '›';
    margin: 0 5px;
    color: #cbd5e0;
    font-size: 16px;
}

.cart-breadcrumb .crumb li a {
    color: #2D7B2C;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.cart-breadcrumb .crumb li a:hover {
    color: #145714;
}

.cart-breadcrumb .crumb li.active {
    color: #1a202c;
    font-weight: 600;
}

.cart-count {
    background: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    color: #2D7B2C;
    box-shadow: 0 3px 15px rgba(45, 123, 44, 0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cart-count i {
    font-size: 18px;
}

/* ========================================
   CART SECTION
======================================== */
.cart-section {
    padding: 60px 0;
    background: #fafbfc;
    min-height: 500px;
}

/* Empty Cart */
.empty-cart {
    padding: 100px 0;
    max-width: 500px;
    margin: 0 auto;
}

.empty-cart-icon i {
    font-size: 100px !important;
    color: #e2e8f0 !important;
}

.empty-cart h2 {
    color: #2d3748;
    font-size: 32px;
    font-weight: 700;
}

.empty-cart p {
    font-size: 16px;
    color: #718096;
}

.empty-cart .btn-main {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.empty-cart .btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, .3);
}

/* ========================================
   CART ITEMS
======================================== */
.cart-items-wrapper h2 {
    color: #1a202c;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 30px;
}

.cart-item {
    margin-bottom: 20px;
}

.cart-item .card {
    border: none !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.3s ease;
}

.cart-item .card:hover {
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1) !important;
}

.cart-item .card-body {
    padding: 20px;
}

/* Product Image - Fix overflow issue */
.cart-item-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 10px;
    border: 2px solid #e8f0e8;
    background: #f7fafc;
}

.cart-item-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.cart-item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Product Info */
.cart-item-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
}

.cart-item-title a {
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cart-item-title a:hover {
    color: #2D7B2C;
}

/* Price */
.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #2D7B2C;
}

.cart-item-price del {
    color: #a0aec0;
    font-weight: 400;
    margin-right: 8px;
}

/* Quantity Selector */
.quantity-wrapper .de-number {
    display: inline-flex !important;
    align-items: center !important;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    width: 110px !important;
    height: 40px !important;
    background: white;
}

.quantity-wrapper .de-number span {
    width: 35px !important;
    height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f7fafc;
    cursor: pointer;
    user-select: none;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4a5568;
    font-size: 16px;
}

.quantity-wrapper .de-number span:hover {
    background: #4CAF50;
    color: white;
}

.quantity-wrapper .de-number input {
    width: 40px !important;
    height: 40px !important;
    text-align: center !important;
    border: none !important;
    border-left: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    font-size: 15px;
    font-weight: 600;
    color: #2d3748;
    background: white;
}

.quantity-wrapper .de-number input::-webkit-outer-spin-button,
.quantity-wrapper .de-number input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Subtotal */
.cart-item-subtotal {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
}

/* Remove Button */
.remove-item {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff5f5;
    border-radius: 8px;
    color: #e53e3e !important;
    transition: all 0.3s ease;
    text-decoration: none !important;
    margin-left: 10px;
}

.remove-item:hover {
    background: #e53e3e;
    color: white !important;
    transform: rotate(90deg);
}

/* ========================================
   COUPON SECTION - Redesigned
======================================== */
.coupon-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 100%);
    border: 2px solid #4CAF50;
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.coupon-section .input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.coupon-section .form-control {
    flex: 1;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 15px;
    background: white;
    transition: all 0.3s ease;
}

.coupon-section .form-control:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
    outline: none;
}

.coupon-section .form-control::placeholder {
    color: #a0aec0;
}

.coupon-section .btn-outline-success {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 25px;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.coupon-section .btn-outline-success:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.coupon-section .btn-outline-success i {
    font-size: 16px;
}

/* ========================================
   CART SUMMARY
======================================== */
.cart-summary {
    position: sticky;
    top: 90px;
}

.cart-summary .card {
    border: none !important;
    border-radius: 15px !important;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1) !important;
}

.cart-summary .card-body {
    padding: 30px;
    background: white;
}

.cart-summary h4 {
    color: #1a202c;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e8f0e8;
}

.summary-item {
    font-size: 15px;
    color: #4a5568;
    padding: 8px 0;
}

.summary-item span:last-child {
    font-weight: 600;
    color: #2d3748;
}

.cart-summary hr {
    margin: 20px 0;
    border-color: #e8f0e8;
}

.summary-total {
    padding: 10px 0;
}

.summary-total h5 {
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
    margin: 0;
}

.summary-total h5.text-primary {
    color: #2D7B2C !important;
    font-size: 24px;
}

/* Checkout Button */
.cart-summary .btn-add-to-cart {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cart-summary .btn-add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cart-summary .btn-add-to-cart:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.3);
}

.cart-summary .btn-add-to-cart:hover::before {
    left: 100%;
}

/* Continue Shopping Button */
.cart-summary .btn-outline-secondary {
    background: white;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.cart-summary .btn-outline-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

/* ========================================
   TRUST BADGES - Redesigned
======================================== */
.trust-badges {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    margin-top: 25px;
}

.trust-badges p {
    color: #4a5568;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.trust-badges p::before,
.trust-badges p::after {
    content: '';
    height: 1px;
    width: 30px;
    background: #cbd5e0;
}

.trust-badges .d-flex {
    gap: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Payment Icons with proper styling and fallback */
.trust-badges i.fa-cc-visa::before {
    content: "\f1f0" !important; /* Font Awesome Visa icon code */
}

.trust-badges i.fa-cc-mastercard::before {
    content: "\f1f1" !important; /* Font Awesome Mastercard icon code */
}

.trust-badges i.fa-lock::before {
    content: "\f023" !important; /* Font Awesome lock icon code */
}

.trust-badges i.fa-cc-visa,
.trust-badges i.fa-cc-mastercard {
    font-family: 'Font Awesome 5 Brands', 'FontAwesome' !important;
    font-size: 32px !important;
    color: #1a365d !important;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-weight: 400 !important;
}

.trust-badges i.fa-lock {
    font-family: 'Font Awesome 5 Free', 'FontAwesome' !important;
    font-size: 24px !important;
    color: #4CAF50 !important;
    opacity: 0.9;
    padding: 4px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900 !important;
}

.trust-badges i:hover {
    transform: scale(1.1);
    opacity: 1;
}

/* SVG Payment Icons */
.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.payment-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.payment-icon svg {
    transition: all 0.3s ease;
}

.payment-icon:hover svg {
    transform: scale(1.15);
}

.payment-icon.visa svg,
.payment-icon.mastercard svg {
    opacity: 0.8;
}

.payment-icon.visa:hover svg,
.payment-icon.mastercard:hover svg {
    opacity: 1;
}

.payment-icon.secure svg {
    width: 32px;
    height: 32px;
    padding: 4px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
}

/* Additional Payment Method Icons */
.trust-badges::after {
    content: '';
    display: block;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 11px;
    color: #a0aec0;
}

/* ========================================
   RESPONSIVE DESIGN
======================================== */
@media (max-width: 991px) {
    .cart-section {
        padding: 40px 0;
    }
    
    .cart-summary {
        position: static;
        margin-top: 40px;
    }
    
    .cart-item .card-body {
        padding: 15px;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 767px) {
    .cart-breadcrumb {
        margin-top: 60px;
    }
    
    .cart-count {
        margin-top: 15px;
        display: block;
        text-align: center;
    }
    
    .cart-items-wrapper h2 {
        font-size: 22px;
    }
    
    .cart-item .row {
        text-align: center;
    }
    
    .cart-item .row > div {
        margin-bottom: 15px;
    }
    
    .cart-item-image {
        margin: 0 auto;
    }
    
    .quantity-wrapper {
        display: flex;
        justify-content: center;
    }
    
    .remove-item {
        margin: 10px auto 0;
    }
    
    .coupon-section .input-group {
        flex-direction: column;
    }
    
    .coupon-section .btn-outline-success {
        width: 100%;
    }
}

@media (max-width: 575px) {
    .cart-summary .card-body {
        padding: 20px;
    }
    
    .summary-item {
        font-size: 14px;
    }
    
    .summary-total h5 {
        font-size: 18px;
    }
    
    .summary-total h5.text-primary {
        font-size: 20px;
    }
}