body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }
  
  
  .header-bar {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 10px 20px 0 20px;
    box-sizing: border-box;
  }
  
  .cart-link {
    text-decoration: none;
    font-size: 20px;
    color: black;
    position: relative;
  }

  .email-input {
    max-width: 300px;
    margin: 0 auto 1rem auto;
    padding: 8px 12px;
    font-size: 1rem;
    display: block;
  }
  .fade-button {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  
  .fade-button.show {
    opacity: 1;
    pointer-events: auto;
  }
  #checkout-button {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .thumb-wrapper {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
    background: transparent;
  }
  .thumb-wrapper a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
  }
  
  .thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.2s ease;
  }

  .thumb-wrapper:hover img {
    transform: scale(1.05);
  }

  #checkout-button.show {
    opacity: 1;
    pointer-events: auto;
  }

  .cart-link span {
    background: red;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    padding: 2px 6px;
    position: absolute;
    top: -8px;
    right: -12px;
  }
  
  .logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
  }

  .no-border {
    border: none !important;
    padding: 0 !important;
  }
  
  .social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .social-icons img {
    width: 24px;
    height: 24px;
  }
  
  .product-list {
    display: grid;
    /* each column is exactly 120px wide */
    grid-template-columns: repeat(auto-fill, 120px);
    /* center the row if there's extra space */
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 600px;
  }
  
  .product {
    display: inline-block;
    vertical-align: top;
    margin: 10px;
    text-align: center;
    min-height: 145px;
    width: 120px;
  }
  
  .product .thumb-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 5px;
    display: inline-block;
    background: white;
    border-radius: 4px;
    overflow: hidden;
  }
  
  .product-list a {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    background-color: #f9f9f9;
  }
  
  .product-list .thumb-wrapper img {
    height: 100%;
    object-fit: cover;
  }
  
  .product-list a {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    box-sizing: border-box;
  }

  .preview {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: 1px solid #ccc;
    background-color: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
  }
  
  .preview a {
    display: inline-block;
  }
  
  .preview img {
    width: 250px;
    height: 250px;
    max-width: 80vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
    transition: transform 0.2s ease;
  }
  .product:hover .preview {
    display: block;
  }
  
  .description {
    font-size: 15px;
    color: #333;
    margin-top: 10px;
  }

  .size-info {
    display: none;
    max-width: 400px;
    font-size: 14px;
    color: #555;
    margin-top: 10px;
    text-align: left;
    text-align: justify;  
    text-align-last: left; 
  }


  button {
    padding: 8px 16px;
    font-size: 16px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  button:hover {
    background-color: #333;
  }
  .price {
    font-size: 18px;
    font-weight: bold;
    margin-top: 10px;
  }
  .size-info-toggle {
    margin-top: 20px;
    font-size: 14px;
    color: gray;
    text-decoration: underline;
    cursor: pointer;
  }

  .product-display {
    text-align: center;
    max-width: 400px;
    width: 100%;
  }

  .product-display img.size-product-image {
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    padding: 10px;
    background-color: white;
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
    border: none;
  }

  .product-wrapper {
    padding: 20px;
    border-radius: 10px;
    display: inline-block;
    background-color: white;
  }
  
  .product-wrapper img {
    max-width: 300px;
    height: auto;
    display: block;
    border-radius: 8px;
  }
  .product-display img {
    width: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    padding: 10px;
    background-color: white;
    box-sizing: border-box;
  }

  .product-display img.sticker-border {
    border: 1px solid black;
  }

  .product-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  #cart-items {
    max-width: 500px;
    width: 100%;
    margin-bottom: 20px;
  }

  .cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
    margin-bottom: 10px;
  }

  .cart-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
  }

  .cart-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .cart-details span {
    font-size: 15px;
  }

  .remove-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
  }

  .remove-btn:hover {
    background-color: #c0392b;
  }

  #total {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 20px;
  }

  #checkout-button,
  #clear-cart {
    padding: 10px 20px;
    font-size: 16px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }

  #checkout-button {
    background-color: black;
    color: white;
  }

  #checkout-button:hover {
    background-color: #333;
  }

  #clear-cart {
    background-color: #999;
    color: white;
  }

  #clear-cart:hover {
    background-color: #777;
  }

  .product-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }
  
  .quantity-wrapper {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .quantity-wrapper input[type="number"] {
    width: 60px;
    padding: 6px;
    font-size: 16px;
  }
  
  .quantity-wrapper button {
    padding: 8px 16px;
    font-size: 16px;
    background-color: black;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  .quantity-wrapper button:hover {
    background-color: #333;
  }
  
  .quantity-warning {
    margin-top: 10px;
    font-size: 14px;
    color: red;
    display: none;
    text-align: center;
  }
  
  .quantity-warning a {
    color: blue;
    text-decoration: underline;
  }

  .sticker-border {
    border: 2px solid #000;
    padding: 5px;
  }

  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 4rem 0;
    padding: 2rem 0;
    font-size: 1.1rem;
    border-top: 1px solid #eee;
  }

  .pagination a {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    min-width: 2.5rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
    background-color: #fff;
  }

  .pagination a:hover {
    background-color: #f5f5f5;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  }

  .pagination .current-page {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    min-width: 2.5rem;
    text-align: center;
    background-color: #000;
    color: #fff;
    border-radius: 4px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }

  /* Sold Out Styles */
  .product .sold-out {
    color: #c00;
    font-family: "Courier New", monospace;
    font-size: 0.9rem;
    margin: 0.5rem 0;
    text-align: center;
    display: block;
    width: 100%;
  }

  .product-display .sold-out {
    color: #c00;
    font-family: "Courier New", monospace;
    font-size: 1.4rem;
    margin: 2rem 0;
    text-align: center;
  }

  /* Contact Form Styles */
  .contact-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
  }

  .contact-container h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-family: Arial, sans-serif;
  }

  .contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: Arial, sans-serif;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
  }

  .form-group textarea {
    height: 150px;
    resize: vertical;
  }

  .contact-form button {
    background: #444;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    width: 100%;
  }

  .contact-form button:hover {
    background: #222;
  }

  .error-message {
    background: #fee;
    color: #c00;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
    font-family: Arial, sans-serif;
  }

  .success-message {
    background: #efe;
    color: #060;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    text-align: center;
    font-family: Arial, sans-serif;
  }