/* ===== SHOPPING CART STYLES ===== */

/* Cart Icon */
.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 6000;
    background: #a3835f;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.cart-icon:hover {
    background: #8b6f47;
    transform: scale(1.05);
}

.cart-icon i {
    font-size: 24px;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    pointer-events: none;
    background: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: none;
    line-height: 20px;
    text-align: center;
    font-size: 13px;
    font-weight: bold;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    z-index: 1001;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.cart-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-cart:hover {
    background: #e9ecef;
}

.cart-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.cart-items {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item .item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

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

.cart-item .item-details {
    flex: 1;
}

.cart-item .item-details h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.cart-item .item-price {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: #666;
}

.cart-item .item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 5px;
}

.cart-item .cart-quantity {
    width: 60px;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
}

.cart-item .unit {
    font-size: 12px;
    color: #666;
}

.cart-item .item-subtotal {
    margin: 0;
    font-weight: bold;
    font-size: 14px;
    color: #a3835f;
}

.cart-item .remove-item {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
}

.cart-item .remove-item:hover {
    background: #fee;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-total {
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    color: #000;
}

.cart-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-clear, .btn-checkout {
    flex: 0 0 auto;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-clear {
    background: #6c757d;
    color: white;
}

.btn-clear:hover {
    background: #5a6268;
}

.btn-checkout {
    background: #a3835f;
    color: white;
}

.btn-checkout:hover {
    background: #8b6f47;
    text-decoration: none;
    color: white;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}

/* Cart Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.cart-open {
    overflow: hidden;
}

/* Hide floating cart icon when sidebar is open to avoid covering close button */
body.cart-open .cart-icon {
    pointer-events: none;
    opacity: 0;
}

/* Ensure close button is always clickable above any overlapping elements */
.cart-sidebar .close-cart {
    position: relative;
    z-index: 6001; /* higher than floating cart icon */
}

/* Product Order Controls */
.product-order {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.quantity-input {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.quantity-input label {
    font-size: 14px;
    color: #666;
    min-width: 60px;
}

.quantity-field {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.quantity-input .unit {
    font-size: 14px;
    color: #666;
}

.btn-add-to-cart {
    width: 100%;
    padding: 12px;
    background: #a3835f;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart:hover {
    background: #8b6f47;
}

.btn-add-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.product-unavailable {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
}

.unavailable-badge {
    background: #e74c3c;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: bold;
}

/* Notifications */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 1100;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    font-weight: bold;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    background: #28a745;
}

.notification-error {
    background: #dc3545;
}

.notification-info {
    background: #17a2b8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
    
    .cart-icon {
        width: 50px;
        height: 50px;
        top: 65px;
        right: 15px;
    }
    
    .cart-icon i {
        font-size: 20px;
    }
}

/* ===== CHECKOUT STYLES ===== */

.hero--checkout {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/about.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.checkout-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.order-summary, .customer-form {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.order-summary h2, .customer-form h2 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 24px;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.order-items {
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item .item-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
}

.order-item .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item .item-details {
    flex: 1;
}

.order-item .item-details h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
}

.order-item .item-quantity, .order-item .item-price {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.order-item .item-total {
    font-weight: bold;
    font-size: 16px;
    color: #a3835f;
    align-self: center;
}

.order-total {
    border-top: 2px solid #eee;
    padding-top: 20px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 16px;
}

.total-final {
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 18px;
}

/* Checkout Form */
.checkout-form {
    max-width: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #a3835f;
    box-shadow: 0 0 0 3px rgba(163, 131, 95, 0.1);
}

.form-error {
    display: block;
    margin-top: 5px;
    color: #e74c3c;
    font-size: 14px;
}

.global-error {
    background: #fee;
    border: 1px solid #e74c3c;
    padding: 12px;
    border-radius: 6px;
    margin-top: 20px;
}

.payment-info {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.payment-info h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method i {
    font-size: 24px;
    color: #a3835f;
}

.payment-method strong {
    display: block;
    margin-bottom: 5px;
}

.payment-method p {
    margin: 4px 0 0 0;
    color: #666;
    font-size: 13px;
}

/* reCAPTCHA styling for checkout */
.recaptcha-group {
    margin: 24px 0 !important;
    text-align: center;
    padding: 20px 0;
}

.recaptcha-group .g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.btn-back, .btn-submit {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
}

.btn-back {
    background: #6c757d;
    color: white;
}

.btn-back:hover {
    background: #5a6268;
    text-decoration: none;
    color: white;
}

.btn-submit {
    background: #a3835f;
    color: white;
}

.btn-submit:hover {
    background: #8b6f47;
}

/* ===== SUCCESS PAGE STYLES ===== */

.hero--success {
    background: linear-gradient(rgba(40, 167, 69, 0.8), rgba(40, 167, 69, 0.8)), url('../images/bcg-fish-repeat.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 0;
    text-align: center;
}

.success-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.success-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    gap: 30px;
}

.order-info, .payment-info, .order-items-summary {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.success-message {
    text-align: center;
    margin-bottom: 30px;
}

.success-message i {
    font-size: 48px;
    color: #28a745;
    margin-bottom: 15px;
}

.success-message h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.success-message p {
    margin: 0;
    color: #666;
}

.order-details h3, .payment-info h3, .order-items-summary h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.detail-row, .payment-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.detail-row:last-child, .payment-row:last-child {
    border-bottom: none;
}

.status {
    text-transform: uppercase;
    font-weight: bold;
    color: #28a745;
}

.qr-payment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.qr-code {
    text-align: center;
}

.qr-code img {
    max-width: 250px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
}

.qr-code p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.payment-details h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.payment-instructions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.payment-instructions h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.payment-instructions ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.payment-instructions li {
    margin-bottom: 8px;
    color: #666;
}

.payment-note {
    display: flex;
    gap: 12px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 6px;
}

.payment-note i {
    color: #856404;
    margin-top: 2px;
}

.payment-note p {
    margin: 0;
    color: #856404;
}

.items-list {
    display: grid;
    gap: 15px;
}

.success-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.btn-continue, .btn-print {
    padding: 15px 30px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.btn-continue {
    background: #a3835f;
    color: white;
}

.btn-continue:hover {
    background: #8b6f47;
    text-decoration: none;
    color: white;
}

.btn-print {
    background: #6c757d;
    color: white;
}

.btn-print:hover {
    background: #5a6268;
}

@media (max-width: 768px) {
    .checkout-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .qr-payment {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
        align-items: center;
    }
}
 