/* General page styles */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
  text-transform: lowercase;
  font-size: 12px;
}

/* Navigation styles */
nav {
  background-color: #ffffff;
  width: 100%;
  overflow: hidden;
  max-height: 0;
  z-index: 10;
  transition: max-height 0.4s ease-in-out;
}
.order-item-image img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover !important;
    margin-right: 15px !important;
    display: block !important;
    flex-shrink: 0 !important;
    background-color: #f5f5f5;
}
nav a {
  color: rgb(0, 0, 0);
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  display: block;
  padding: 10px;
}

nav a:hover {
  background-color: #555;
}

#nav-toggle {
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 16px;
}

#nav-toggle:focus {
  outline: none;
}

.cart-counter {
  display: none;
  background: red;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 12px;
  text-align: center;
  line-height: 18px;
  position: relative;
  top: -10px;
  left: -5px;
}

/* Album section */
.album-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.album {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  width: 250px;
  text-align: center;
  padding: 10px;
}

.album img {
  max-width: 100%;
  border-radius: 5px;
}

.album h3 {
  margin: 10px 0 5px;
}

.album p {
  color: #666;
  font-size: 14px;
}

.album button {
  margin-top: 10px;
  padding: 5px 10px;
  cursor: pointer;
}

/* Banner Section */
.banner {
  position: relative;
  width: 100%;
  height: 700px;
  background: url('xlr-banner.jpg') no-repeat center center/cover;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0px;
}

.banner-text-container {
  justify-content: left;
  padding-left: 5%;
  padding-right: 5%;
  width: 400px;
}

.banner-text {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  width: 100%;
  overflow-wrap: break-word;
}

.image-container {
  width: 300px;
  padding: 0 50px;
}

.image-container img {
  width: 100%;
  border-radius: 5px;
}

@media only screen and (max-width: 700px) {
  .image-container {
    display: none;
  }
  .banner-text-container {
    width: 350px;
  }
}

.blinking-caret .caret {
  font-weight: bold;
  color: rgb(181, 181, 181);
  animation: blink 0.7s step-start infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Cart styles */
.cart {
  margin: 20px auto;
  padding: 15px;
  background: white;
  border-radius: 10px;
  width: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cart ul {
  list-style: none;
  padding: 0;
}

.cart li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.cart button {
  background-color: rgb(0, 0, 0);
  color: white;
  border: none;
  cursor: pointer;
  padding: 3px 6px;
}

/* Cart Sidebar */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1000;
  transition: transform 0.4s ease-in-out;
  transform: translateX(100%);
}

.cart-sidebar ul {
  list-style: none;
  padding: 0;
  flex-grow: 1;
}

.cart-sidebar li {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.close-cart {
  background-color: rgb(0, 0, 0);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 10px;
  width: 100%;
  margin-top: 10px;
}

.checkout-btn {
  background-color: rgb(0, 0, 0);
  color: white;
  font-weight: bold;
  padding: 15px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 30px;
}

.cart-open {
  display: flex;
  transform: translateX(0);
}

/* Social media icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.social-icons a {
  color: white;
  font-size: 20px;
}

/* Checkout specific styles */
.checkout-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.checkout-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.checkout-layout {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.checkout-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  margin-bottom: 20px;
}

.checkout-section-credit {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding-top: 25px;
  padding-left: 25px;
  padding-right: 25px;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.checkout-section h2,
.checkout-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

/* Form styles */
.form-group {
  margin-bottom: 15px;
  margin-right: 25px;
}

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

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 11px;
}

/* Payment options */
.payment-methods,
.payment-options {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.payment-option {
  flex: 1;
  text-align: center;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-option.selected {
  background-color: #f0f7ff;
  border-color: #4a90e2;
}

/* Order summary */
.order-summary,
.order-summary-container {
  background-color: #fafafa;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 20px;
}

.order-item {
  margin-bottom: 15px;
  display: flex;
}

.order-item-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}

/* Order item image container */
.order-item-image-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.order-item-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  width: 100%;
}

.order-item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  margin-left: 10px;
}

.order-item-name {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
  padding-right: 10%;
}

.order-item-quantity {
  color: #666;
  font-size: 0.9em;
}

.order-item-price {
  font-weight: 600;
  min-width: 70px;
  text-align: right;
}

.order-separator {
  height: 1px;
  background-color: #ddd;
  margin: 15px 0;
}

/* Order cost breakdown */
.order-cost-item {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  padding: 5px 0;
}

.order-cost-item.order-total {
  font-weight: bold;
  font-size: 1.1em;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #333;
}

.shipping-cost-row {
  /* Any specific styling for shipping row if needed */
}

.order-actions {
  margin-top: 20px;
}

.place-order-btn {
  width: 100%;
  padding: 15px;
  font-size: 1rem;
  background-color: #222222;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 600;
}

.place-order-btn:hover {
  background-color: #f4f3f3;
  color: rgb(32, 32, 32);
}

/* Card inputs */
.card-inputs {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}

/* Shipping options */
.shipping-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.shipping-option:hover {
  background-color: #f9f9f9;
}

.shipping-option input[type="radio"] {
  margin-top: 12px;
  margin-right: 10px;
}

.shipping-option input[type="radio"]:checked + .rate-details {
  font-weight: 500;
}

.shipping-rate-option {
  border: 1px solid #ddd;
  margin-bottom: 10px;
  border-radius: 4px;
}

.rate-header {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 10px;
}

.rate-header label {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.toggle-details {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 5px;
}

.rate-details {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 0;
  border-top: 1px solid #fff;
}

.rate-service {
  font-weight: 600;
  margin: 0;
}

.rate-breakdown {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 10px;
}

.rate-breakdown p {
  margin: 5px 0;
  color: #666;
}

.rate-cost {
  font-weight: bold;
  color: #2c3e50;
  margin: 0;
}

.delivery-time {
  color: #666;
  font-size: 0.9em;
  margin: 0;
}

.shipping-section-header {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

/* Loading and error states */
.shipping-loading,
#shipping-rates .loading {
  text-align: center;
  padding: 20px;
  color: #666;
  font-style: italic;
  background-color: #f9f9f9;
  border-radius: 4px;
  margin-bottom: 15px;
}

.shipping-error,
#shipping-rates .error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 10px;
  border-radius: 4px;
  margin-top: 10px;
  text-align: center;
}

/* Responsive design */
@media (min-width: 768px) {
  .checkout-layout {
    flex-direction: row;
    align-items: flex-start;
  }
  
  .checkout-details {
    flex: 2;
  }
  
  .checkout-sidebar {
    flex: 2;
    position: sticky;
    top: 20px;
  }
}

@media (max-width: 768px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
}

/* Target the parent containers of the total elements */
.order-summary-line:has(#order-subtotal),
.order-summary-line:has(#order-shipping), 
.order-summary-line:has(#order-tax),
.order-summary-line:has(#order-absolute-total),
.order-cost-item:has(#order-subtotal),
.order-cost-item:has(#order-shipping),
.order-cost-item:has(#order-tax), 
.order-cost-item:has(#order-absolute-total) {
  justify-content: space-between;
  padding-bottom: 20px;
}

/* Right-align the actual total value elements */
#order-subtotal, 
#order-tax, 
#order-shipping, 
#order-absolute-total {
  text-align: right;
  margin-left: auto;
}

/* Alternative approach - target all order cost items */
.order-cost-item,
.order-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-cost-item span:last-child,
.order-summary-line span:last-child {
  text-align: right;
  margin-left: auto;
}
