/* styles.css */

/* Global Reset/Base Styling */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    background-color: transparent;
}

.nav-wrapper{
    display: flex;
    justify-content: space-between;
    
}

/* --- Main Cart Icon Button on the page --- */
#cart-icon-btn {
    position: relative;
    padding: 10px 15px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 99; 
    font-size: 1em;
    border-radius: 5px;
}

/* --- Cart Count Badge --- */
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #c4a962;
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 50%;
    font-weight: bold;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Cart Sidebar Container --- */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%; 
    max-width: 500px; 
    height: 100%;
    background-color: #ffffff; 
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    z-index: 100;
    overflow-y: auto;

    /* Hidden State (Off-screen) */
    transform: translateX(100%); 
    /* Transition for smooth animation */
    transition: transform 0.4s ease-in-out; 
}

/* Open State (Visible on screen) */
.cart-sidebar.is-open {
    transform: translateX(0);
}

/* --- Top Header Bar (Gold Bar) --- */
.header-bar {
    background-color: #c4a962; 
    color: white;
    text-align: center;
    padding: 12px 0;
    font-size: 0.9em;
    width: 100%;
}

/* --- Cart Title and Close Button --- */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.cart-header h1 {
    font-size: 1.5em;
    font-weight: 400;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2em;
    cursor: pointer;
    color: #333;
    line-height: 1;
}

/* --- Empty Cart Message --- */
.empty-message {
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    font-size: 1em;
    color: #666;
    padding: 0 24px;
}

/* --- Navigation Buttons --- */
.cart-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0 24px;
}

.nav-button {
    display: block;
    text-align: center;
    padding: 16px;
    background-color: #000000;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95em;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background-color 0.3s;
    border: none;
}

.nav-button:hover {
    background-color: #333333;
    color: #ffffff;
}

/* --- "Show desktop" Button at the bottom --- */
.show-desktop-btn {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 10px;
    margin-top: 20px;
    text-align: right;
    width: 100%;
}

/* --- Cart Items Container --- */
#cart-items {
    padding: 24px;
}

/* --- Individual Cart Item --- */
.cart-item {
    margin-bottom: 20px;
}

.cart-product-row {
    display: grid;
    grid-template-columns:80px 1fr auto;
    gap: 15px;
    align-items: start;
}

/* --- Cart Product Image --- */
.cart-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

/* --- Product Details Section --- */
.details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.details h4 {
    font-size: 1.1em;
    font-weight: 500;
    margin: 0;
}

/* --- Quantity Controls Box --- */
.qty-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background: white;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 2px;
}

.qty-btn:hover {
    background: #f5f5f5;
}

.qty {
    min-width: 20px;
    text-align: center;
    font-size: 16px;
}

.remove-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
    margin-left: 5px;
}

.remove-btn:hover {
    color: #333;
}

/* --- Price --- */
.price {
    text-align: right;
    font-size: 1.1em;
    font-weight: 500;
    margin: 0;
    white-space: nowrap;
}

/* --- Cart Footer Section --- */
.cart-footer {
    padding: 0 24px 24px 24px;
    margin-top: 30px;
}

.selling-fast {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
    font-size: 15px;
}

.green-dot {
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    flex-shrink: 0;
}

.order-now-link {
    color: #10b981;
    text-decoration: none;
    font-weight: 500;
}

.order-now-link:hover {
    text-decoration: underline;
}

/* --- Expandable Sections --- */
.expandable-section {
    border-top: 1px solid #e0e0e0;
    padding: 18px 0;
}

.expandable-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
}

.plus-icon {
    font-size: 22px;
    font-weight: 300;
    color: #666;
}

/* --- Delivery Info --- */
.delivery-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 25px 0;
    font-size: 14px;
    line-height: 1.6;
}

/* --- Checkout Button --- */
.checkout-btn {
    width: 100%;
    background: #000;
    color: white;
    border: none;
    padding: 18px;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 500;
}

.checkout-btn:hover {
    background: #333;
}

/* --- Free Shipping Text --- */
.free-shipping {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* --- Media Query for Mobile/Full-Width View --- */
@media (max-width: 500px) {
    .cart-sidebar {
        max-width: 100%;
    }
}


.exp{
    color: gray;
}

/* --- Header --- */
header {
    background-color: #fff;
    padding: 20px 40px;
}

header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

/* --- Layout --- */
.checkout-container {
    display: flex;
    max-width: 1200px;
    margin: 50px auto;
    background-color: #fff;
}

.check-header {
    text-align: center;
    margin: 0;
    padding-bottom: 20px;
    color: #1078b9;
    
    /* background-color: #000; */
}   
.checkout-form-column {
    flex: 1;
    padding: 40px;
    border-right: 1px solid #e0e0e0;
}

.order-summary-column {
    flex: 1;
    padding: 40px;
    background-color: #f9f9f9;
}

/* Optional: Adjust for smaller screens (mobile view) */
@media (max-width: 768px) {


    .checkout-container {
        flex-direction: column;
    }
    .checkout-form-column, .order-summary-column {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
}

/* --- Form/Input Styling --- */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
.card-details input,
.discount-code-area input {
    width: 100%;
    padding: 15px 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

/* FOCUS STATE */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
.card-details input:focus,
.discount-code-area input:focus {
    border-color: #dab617;
    box-shadow: 0 0 0 1px #dab617, 0 0 5px rgba(218, 182, 23, 0.5);
    outline: none;
}

/* HOVER STATE */
input[type="text"]:hover,
input[type="email"]:hover,
input[type="tel"]:hover,
select:hover,
.card-details input:hover,
.discount-code-area input:hover {
    border-color: #999; 
}

input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus) {
    border-color: #dab617;
    box-shadow: 0 0 0 1px #dab617, 0 0 5px rgba(218, 182, 23, 0.3);
}

/* Grouping fields to be side-by-side */
.name-fields,
.city-postal-fields,
.expiry-security-fields,
.shop-account-fields {
    display: flex;
    gap: 15px;
}

.name-fields input,
.city-postal-fields input,
.expiry-security-fields input,
.shop-account-fields input {
    flex: 1;
}

/* --- Express Checkout --- */
.express-checkout {
    text-align: center;
    margin-bottom: 30px;
}

.checkout-buttons {
    display: flex;
    gap: 10px;
}

.shop-pay-express {
    background-color: #5849ff;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    padding: 15px 98px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); 
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.shop-pay-express:hover {
    background-color: #4338d8;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.shop-pay-express:active {
    background-color: #2d24a0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
}

.gpay-express {
    background-color: #000;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    padding: 11px 103px;
    border: 1px solid #000;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

.gpay-express img {
    height: 28px;
    width: auto;
}

.gpay-express:hover {
    background-color: #333;
}

.gpay-express:active {
    background-color: #111;
    transform: scale(0.99);
}

.or-separator {
    margin: 15px 0;
    text-align: center;
    position: relative;
    color: #888;
}

/* --- Section/Header Styling --- */
section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* --- Checkbox Styling --- */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #c89850;
}

.checkbox-group label {
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    line-height: 1.5;
}

/* --- Shipping/Radio Button Styling --- */
.shipping-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 10px;
}

.shipping-option input[type="radio"] {
    margin-right: 10px;
    accent-color: #c89850;
}

.shipping-option label {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
}

.shipping-option .price {
    font-weight: bold;
}

.shipping-option:hover {
    border-color: #999;
    background-color: transparent;
}

.shipping-option:has(input[type="radio"]:checked) {
    border-color: #dab617;
    box-shadow: 0 0 0 1px #dab617, 0 0 5px rgba(218, 182, 23, 0.5); 
    background-color: #fffaf0; 
}

/* --- Payment Section --- */
.payment-section {
    margin-bottom: 30px;
}

.security-note {
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.credit-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fef3e0;
    padding: 15px 20px;
    border: 1px solid #e5e5e5;
    border-radius: 5px 5px 0 0;
    border-bottom: none;
}

.radio-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.radio-card-header input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #c89850;
}

.radio-card-header label {
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.credit-card-header img {
    height: 24px;
}

/* --- Card Details --- */
.card-details {
    background-color: #fafafa;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 5px 5px;
    padding: 20px;
}

.card-details input {
    background-color: #fff;
    margin-bottom: 15px;
}

.card-input-with-icon,
.security-input-with-icon {
    position: relative;
}

.card-input-with-icon input,
.security-input-with-icon input {
    padding-right: 40px;
}

.icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
}

.lock-icon {
    color: #8c8c8c;
}

.help-icon {
    width: 20px;
    height: 20px;
    background-color: #8c8c8c;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: help;
}

.expiry-security-fields {
    display: flex;
    gap: 15px;
}

.expiry-security-fields input {
    flex: 1;
}

/* --- Remember Me Section --- */
.remember-me-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.shop-account-fields {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.shop-account-fields input {
    flex: 1;
}

.shop-button {
    background-color: #5849ff;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 15px 30px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.shop-button:hover {
    background-color: #4338d8;
}

.secure-text {
    font-size: 13px;
    color: #666;
    margin-top: 15px;
}

/* --- Confirm Order Button --- */
.confirm-order-button {
    width: 100%;
    background-color: #5a5a5a;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.2s ease;
}

.confirm-order-button:hover {
    background-color: #444;
}

/* --- Terms Note --- */
.terms-note {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 15px;
    line-height: 1.5;
}

.terms-note a {
    color: #5849ff;
    text-decoration: none;
}

.terms-note a:hover {
    text-decoration: underline;
}

/* --- Footer Legal Links --- */
.legal-links {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.legal-links a {
    color: #666;
    text-decoration: none;
    margin: 0 5px;
}

.legal-links a:hover {
    color: #5849ff;
    text-decoration: underline;
}

/* --- Order Summary Styling --- */
.product-line-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.product-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-info img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
}

.product-name {
    font-weight: 500;
    margin: 0;
}

.product-price {
    font-weight: bold;
}

/* --- Discount Code Area --- */
.discount-code-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.discount-code-area input {
    flex: 1;
    margin-bottom: 0;
}

.discount-code-area button {
    background-color: #5a5a5a;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.discount-code-area button:hover {
    background-color: #444;
}

/* --- Summary Details --- */
.summary-details,
.summary-total {
    margin-bottom: 20px;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 15px;
}

.summary-total .summary-line {
    font-weight: bold;
    font-size: 1.2em;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.summary-total .summary-line small {
    font-size: 0.7em;
    font-weight: normal;
}

@media only screen and (max-width:600px) { 
    
    #cart-items {
        padding: 10px;
    }
    .qty-box {
        display: flex;
        align-items: center;
        gap: 0px;
    }

        .cart-product-row {
            display: grid;
            grid-template-columns: 80px 1fr auto;
            gap: 3px;
            align-items: start;
    }

    .checkout-buttons {
        display: flex;
        gap: 10px;
        flex-direction: column;
    }
}