:root {
    --color-primary: #FF9900;
    --color-secondary: #0066C0;
    --color-text: #000000;
    --color-background: #f9f9f9;
    --color-border: #ddd;
    --font-family: Arial, sans-serif;
}


/*body*/

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--color-background);
    font-family: var(--font-family);
}


/*cart*/

.cart-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.cart-items {
    flex: 2;
    min-width: 300px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cart-item-card {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.cart-item-card:last-child {
    border-bottom: none;
}

.cart-item-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-right: 20px;
    border-radius: 4px;
}

.cart-item-details {
    flex-grow: 1;
}

.cart-summary {
    flex: 1;
    min-width: 250px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#add-to-cart-modal-btn:disabled {
    background-color: #cccccc; /* A light gray to show it's muted */
    color: #666666; /* Dark gray text */
    cursor: not-allowed;
    opacity: 0.7;
}


/*item*/

.item-title {
    font-size: 1.2em;
    font-weight: bold;
    margin: 0 0 5px 0;
}

.item-resolution {
    font-size: 0.9em;
    color: #555;
    margin: 0 0 5px 0;
}

.item-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #B12704; /* Amazon's price red */
    margin: 0 0 10px 0;
}


/*subtotal*/

.subtotal-box {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    text-align: right;
    background-color: #f9f9f9;
}

.subtotal-text {
    font-size: 1.2em;
    font-weight: normal;
    margin: 0 0 10px 0;
}

.subtotal-price {
    font-weight: bold;
    color: #B12704;
}


/*checkout*/

.checkout-button {
    background-color: #FFD814; /* Amazon's checkout yellow */
    color: #000;
    border: 1px solid #FCD200;
    width: 100%;
    padding: 10px;
    font-size: 1em;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.checkout-button:hover {
    background-color: #F7CA00;
}

.continue-shopping-link {
    display: block;
    margin-top: 15px;
    text-align: center;
}


/*image*/

.image-gallery {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    justify-items: center;
    padding: 0 10vw;
    max-width: 1200px;
    box-sizing: border-box;
    margin: 0 auto;
}

.image-item {
    background-color: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.2s;
    width: 100%;
    /* Sets the max-width for the entire item */
    max-width: 900px;
}

.image-container {
    /* Set a max-height relative to the viewport, e.g., 60% of the screen height */
    height: auto;
    width: 100%;
    overflow: hidden;
    /* Use flexbox to vertically center the image if needed */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-container img {
    /* The image will scale down to fit within the container's max-height */
    width: 100%;
    height: auto;
    /* This will scale the image proportionally to fit within the container,
       creating blank space (letterboxing) if the container's aspect ratio
       doesn't match the image's. */
    object-fit: contain;
    display: block;
}
.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.image-info {
    padding: 15px;
    text-align: center;
}

.image-info h3 {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    color: #333;
}


/*page*/

.page-header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}


.input-group {
    margin-bottom: 20px; /* Adds space below the email field */
}

/* Style the form for better readability */
#payment-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Adds consistent vertical spacing between all major form elements */
}

/* Make the payment group look like a single section */
.payment-group {
    border: 1px solid #ccc;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
}

/* Add some margin to the payment status and card container */
#payment-status-container {
    margin-bottom: 15px;
}

.zoomist-container {
  width: 100%;
  max-width: 600px;

  /* OPTIONAL: Add a subtle visual border to define the scroll area */
  border: 1px solid #ccc;
}

.zoomist-image {
  width: 100%;
  height: auto;
}

.zoomist-image img {
  width: 100%;
  height: auto;
}
