/* Cart Banner */
.cart-banner {
    background-color: var(--light-gray);
    padding: 40px 0;
    margin-bottom: 40px;
}

.cart-banner-content {
    text-align: center;
}

.cart-banner h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--brunswick-green);
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--liver);
}

.breadcrumb a {
    color: var(--brunswick-green);
    text-decoration: none;
}

.breadcrumb .separator {
    color: var(--french-gray);
}

.breadcrumb .current {
    color: var(--raw-umber);
}

/* Cart Layout */
.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

/* Cart Items */
.cart-items {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
}

.cart-header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 40px;
    gap: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.cart-header-item {
    font-weight: 600;
    color: var(--brunswick-green);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cart Item */
.cart-item {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr 40px;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.product-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.product-image {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--brunswick-green);
}

.product-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: var(--liver);
}

.price-col {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price {
    font-weight: 600;
    color: var(--brunswick-green);
}

.original-price {
    text-decoration: line-through;
    color: var(--liver);
    font-size: 0.85rem;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
}

.quantity-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--brunswick-green);
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background-color: var(--light-gray);
}

.quantity-input {
    width: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--brunswick-green);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.subtotal {
    font-weight: 600;
    color: var(--brunswick-green);
}

.remove-btn {
    background: none;
    border: none;
    color: var(--liver);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 5px;
}

.remove-btn:hover {
    color: #ff4444;
}

/* Cart Actions */
.cart-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.cart-coupon {
    display: flex;
    gap: 10px;
}

.cart-coupon input {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}

/* Cart Summary */
.cart-summary {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--brunswick-green);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-label {
    color: var(--liver);
    font-weight: 500;
}

.summary-value {
    font-weight: 600;
    color: var(--brunswick-green);
}

.shipping-options {
    margin-top: 10px;
}

.shipping-option {
    margin-bottom: 10px;
}

/* Radio Button Styling */
.radio-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--liver);
}

.radio-container input[type="radio"] {
    display: none;
}

.radio-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--brunswick-green);
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.radio-container input[type="radio"]:checked + .radio-checkmark::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--brunswick-green);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.total-row {
    border-bottom: none;
    padding-top: 20px;
}

.total-row .summary-label,
.total-row .summary-value {
    font-size: 1.2rem;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    font-size: 1rem;
}

/* Payment Methods */
.payment-methods {
    margin-top: 20px;
    text-align: center;
}

.payment-methods p {
    font-size: 0.9rem;
    color: var(--liver);
    margin-bottom: 10px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-icons i {
    font-size: 24px;
    color: var(--brunswick-green);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.payment-icons i:hover {
    opacity: 1;
}

/* You May Also Like Section */
.you-may-like {
    margin-top: 60px;
}

.you-may-like .section-title {
    text-align: center;
    margin-bottom: 30px;
}

/* Enhanced Recommended Products Section */
.recommended-products {
    margin: 80px 0;
    padding: 40px 0;
    background-color: var(--light-gray);
    border-radius: 8px;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--brunswick-green);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--raw-umber);
}

.section-subtitle {
    font-size: 1rem;
    color: var(--liver);
    max-width: 600px;
    margin: 15px auto 0;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    border: 1px solid var(--french-gray);
    color: var(--brunswick-green);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.carousel-nav:hover {
    background-color: var(--brunswick-green);
    color: var(--white);
    border-color: var(--brunswick-green);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.clicked {
    animation: buttonPulse 0.3s ease;
}

@keyframes buttonPulse {
    0% { transform: translateY(-50%) scale(1); }
    50% { transform: translateY(-50%) scale(0.9); }
    100% { transform: translateY(-50%) scale(1); }
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    padding: 20px 0;
    width: 100%;
}

.product-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Enhanced Product Card */
.recommended-products .product-card {
    min-width: 250px;
    flex: 0 0 calc(25% - 20px);
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 420px;
}

.recommended-products .product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
}

.product-badge.new {
    background-color: var(--brunswick-green);
    color: var(--white);
}

.product-badge.sale {
    background-color: #e74c3c;
    color: var(--white);
}

.recommended-products .product-image {
    position: relative;
    overflow: hidden;
    flex: 1;
    min-height: 250px;
    width: 100%;
    display: block;
    background-color: #f9f9f9;
}

.recommended-products .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Add a subtle border to images */
.recommended-products .product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
}

.recommended-products .product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recommended-products .product-card:hover .product-overlay {
    opacity: 1;
}

.recommended-products .product-actions {
    display: flex;
    gap: 10px;
}

.recommended-products .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--brunswick-green);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
}

.recommended-products .product-card:hover .action-btn {
    transform: translateY(0);
    opacity: 1;
}

.recommended-products .product-card:hover .action-btn:nth-child(1) {
    transition-delay: 0.1s;
}

.recommended-products .product-card:hover .action-btn:nth-child(2) {
    transition-delay: 0.2s;
}

.recommended-products .product-card:hover .action-btn:nth-child(3) {
    transition-delay: 0.3s;
}

.recommended-products .action-btn:hover {
    background-color: var(--brunswick-green);
    color: var(--white);
}

.tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--brunswick-green);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: var(--brunswick-green) transparent transparent transparent;
}

.action-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.recommended-products .product-details {
    padding: 15px;
    flex: 0 0 auto; /* Don't allow details to flex */
}

.recommended-products .product-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--brunswick-green);
    transition: color 0.3s ease;
}

.recommended-products .product-card:hover .product-title {
    color: var(--raw-umber);
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.8rem;
    color: #f39c12;
}

.rating-count {
    margin-left: 5px;
    color: var(--liver);
    font-size: 0.75rem;
}

.recommended-products .product-price {
    font-weight: 600;
    color: var(--brunswick-green);
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommended-products .original-price {
    text-decoration: line-through;
    color: var(--liver);
    font-weight: 400;
    font-size: 0.9rem;
}

.recommended-products .sale-price {
    color: #e74c3c;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--french-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--brunswick-green);
    width: 25px;
    border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .recommended-products .product-card {
        flex: 0 0 calc(33.333% - 20px);
    }
    
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .cart-header {
        display: none;
    }

    .cart-item {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px;
        position: relative;
    }

    .product-info {
        flex-direction: column;
        text-align: center;
    }

    .product-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .price-col,
    .quantity-col,
    .subtotal-col {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .remove-col {
        position: absolute;
        top: 10px;
        right: 10px;
    }

    .cart-actions {
        flex-direction: column;
    }

    .cart-coupon {
        width: 100%;
    }

    .cart-coupon input {
        flex: 1;
    }

    .cart-update {
        width: 100%;
    }

    .cart-update button {
        width: 100%;
    }

    .recommended-products .product-card {
        height: 380px; /* Slightly smaller on mobile */
    }
    
    .recommended-products .product-image {
        min-height: 200px;
    }
    
    .recommended-products .product-image img {
        position: absolute;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 576px) {
    .cart-banner h1 {
        font-size: 2rem;
    }

    .product-meta {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .payment-icons i {
        font-size: 20px;
    }

    .carousel-container {
        padding: 0 30px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .prev-btn {
        left: 5px;
    }
    
    .next-btn {
        right: 5px;
    }
    
    .recommended-products .product-card {
        min-width: 200px;
    }
} 