/* =============================
   GLOBAL STYLES
   ============================= */

*, *::before, *::after {
  box-sizing: border-box;
}

/* Universal link reset */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #333;
  text-decoration: none;
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: 'Outfit', sans-serif;
  background: #fff;
  color: #333;
}

h1, h2, h3, nav a, .hero p {
  font-family: 'Cardo', serif;
}


/* =============================
   TOP BAR
   ============================= */

.top-bar {
  background-color: rgb(253, 240, 245);
  color: #000;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar div {
  flex: 1;
  text-align: center;
}

.top-bar div:first-child {
  text-align: left;
}

.top-bar div:last-child {
  text-align: right;
}


/* =============================
   HEADER
   ============================= */

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

header {
  background: #fff;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 999;
}

header img.logo {
  height: 60px;
}

nav a {
  color: #000;
  margin-left: 2rem;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

nav a:hover {
  text-decoration: underline;
}


/* =============================
   HERO SECTIONS
   ============================= */

/* Hero for homepage */
.hero {
  background-image: url('https://d3izry65w71kh1.cloudfront.net/Images/hero.png');
  background-size: cover;
  background-position: center;
  text-align: center;
  padding: 7rem 1rem 5rem;
  color: #000;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hero h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 650px;
  margin: 0 auto;
}

/* For thank you page only */
.hero.thankyou {
  background-color: rgb(253, 240, 245);
  background-image: none;
  padding: 6rem 2rem;
}

.hero.thankyou h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero.thankyou p {
  font-size: 1.2rem;
}


/* =============================
   PRODUCTS AND CARDS
   ============================= */

.new-arrivals-header {
  text-align: center;
  font-family: 'Cardo', serif;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.products,
.fits-grid,
.sales-grid,
.rentals-grid,
.new-arrivals-container,
.category-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
}

.product,
.product-card,
.new-arrival-card,
.category-card {
  max-width: 300px;
  text-align: center;
  font-family: 'Cardo', serif;
  display: block;
  color: #000;
  text-decoration: none;
}

.product img,
.product-card img,
.new-arrival-image,
.category-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease;
}

.product img:hover,
.product-card img:hover,
.new-arrival-image:hover,
.category-card img:hover {
  transform: scale(1.05);
}

.product h3,
.product-card h3,
.new-arrival-card h3,
.category-card h3 {
  font-size: 1.15rem;
  margin: 0.5rem 0;
  font-weight: 500;
  color: #000;
  text-decoration: none;
}

.product:hover,
.product-card:hover,
.new-arrival-card:hover,
.category-card:hover {
  color: #333;
  text-decoration: none;
}

.product a,
.product-card a,
.new-arrival-card a,
.category-card a {
  color: #000;
  text-decoration: none;
}

.product a:hover,
.product-card a:hover,
.new-arrival-card a:hover,
.category-card a:hover {
  color: #333;
  text-decoration: none;
}


/* =============================
   FOOTER
   ============================= */

.footer-bar {
  background-color: rgb(253, 240, 245);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.5rem 2rem;
  margin-top: 4rem;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
}

.footer-logo {
  height: 90px;
}

.footer-center {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
  flex: 1;
}

.footer-center a {
  text-decoration: none;
  color: #000;
  font-family: 'Cardo', serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.footer-center a:hover {
  text-decoration: underline;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.2s ease;
}

.social-icon:hover {
  filter: grayscale(0%);
}


/* =============================
   MEDIA QUERIES
   ============================= */

@media screen and (max-width: 600px) {
  header img.logo {
    height: 40px;
  }

  nav a {
    margin-left: 1rem;
    font-size: 1rem;
  }

  .hero-home h2 {
    font-size: 2rem;
  }

  .hero-home p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .products,
  .fits-grid,
  .sales-grid,
  .rentals-grid,
  .new-arrivals-container,
  .category-grid {
    gap: 1rem;
    padding: 1.5rem 1rem;
  }

  .product,
  .product-card,
  .new-arrival-card,
  .category-card {
    max-width: 100%;
  }

  .product img,
  .product-card img,
  .new-arrival-image,
  .category-card img {
    height: auto;
    max-height: 280px;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .footer-logo {
    height: 60px;
  }
}


/* =============================
   PAGE-SPECIFIC STYLES
   ============================= */

/* =============================
   INDEX PAGE STYLES
   ============================= */

.products-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
}

/* CONTACT PAGE STYLES */

.contact-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
}

.contact-container label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 500;
  font-family: 'Cardo', serif;
}

.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-container textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-container button {
  background: #000;
  color: #fff;
  font-family: 'Cardo', serif;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 1.5rem;
}

.contact-container button:hover {
  background: #333;
}


/* PRODUCT PAGE STYLES */

.product-container {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
}

.product-images {
  flex: 1;
  min-width: 300px;
}

.product-images img,
.slider-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.image-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-slider img {
  display: block;
  margin: 0 auto;
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.slider-controls button {
  background: #f7ccdf;
  border: none;
  padding: 0.5rem 1rem;
  font-family: 'Cardo', serif;
  cursor: pointer;
  border-radius: 0.3rem;
}

.product-info {
  flex: 1;
  min-width: 280px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
}

.product-info h1,
.product-info .price,
.product-info .rrp,
.product-info .meta,
.product-info p.description {
  font-family: 'Cardo', serif;
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.product-info .price {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.product-info .rrp {
  font-size: 1rem;
  color: #999;
  margin-bottom: 1rem;
  text-decoration: none;
}

.product-info .meta {
  margin-bottom: 0.5rem;
}

.product-info p.description {
  margin-top: 1rem;
  line-height: 1.6;
}

#rental-date {
  text-align: center;
  margin-top: 1rem;
  width: 100%;
  padding: 0.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.rental-note {
  font-size: 14px;
  color: #444;
  margin-top: 6px;
}

#action-button {
  margin-top: 1rem;
  background: #000;
  color: #fff;
  border: none;
  padding: 0.75rem 1.25rem;
  font-family: 'Cardo', serif;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
}

#action-button:hover {
  background: #333;
}


/* SALES PRODUCT PAGE STYLES */

#rental-date,
.rental-note {
  display: none;
}


/* COLLECTIONS PAGE STYLES */

.category-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 2rem;
}

.category-card {
  max-width: 300px;
  text-align: center;
  font-family: 'Cardo', serif;
  text-decoration: none;
  color: #000;
  display: block;
}

.category-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 0.75rem;
  transition: transform 0.2s ease;
}

.category-card img:hover {
  transform: scale(1.05);
}

.category-card h3 {
  font-size: 1.15rem;
  margin: 0.5rem 0;
  font-weight: 500;
}


/* =============================
   CART PAGE STYLES
   ============================= */

.products {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2rem;
  text-align: center;
  display: block;
}

.products h1 {
  font-family: 'Cardo', serif;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cart-contents {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.cart-container {
  margin-bottom: 3rem;
}

.cart-container h2 {
  font-family: 'Cardo', serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cart-item img {
  width: 120px;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-right: 1.5rem;
}

.item-details {
  flex: 1;
  font-family: 'Cardo', serif;
}

.item-details h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.item-details p {
  margin: 0;
  font-size: 1rem;
}

.item-details p.rental-period {
  margin: 0;
  font-size: 0.95rem;
  color: #666;
}

.cart-summary {
  font-family: 'Cardo', serif;
  font-size: 1.2rem;
  font-weight: bold;
  margin-top: 1rem;
}

.remove-btn {
  color: #c00;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background: none;
  font-size: 1rem;
  margin-left: 1rem;
}

.checkout-btn {
  background-color: rgb(253, 240, 245);
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: 'Cardo', serif;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  display: block;
  margin: 2rem auto 0;
}

.checkout-btn:hover {
  background-color: #f0bcd2;
}

.empty-cart {
  text-align: center;
  font-family: 'Cardo', serif;
  font-size: 1.3rem;
  margin-top: 3rem;
}


/* DASHBOARD PAGE STYLES */

.table-container {
  max-width: 100%;
  overflow-x: auto;
  margin: 2rem auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Outfit', sans-serif;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.75rem;
  text-align: left;
}

th {
  background-color: #f7ccdf;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  max-width: 260px;
}

.image-thumb-large {
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* SALES CHECKOUT, RENTAL CHECKOUT, THANK YOU PAGES */

main {
  flex: 1;
  padding: 2rem;
  max-width: 800px;
  margin: auto;
}

h1 {
  font-family: 'Cardo', serif;
  text-align: center;
}

.checkout-form {
  margin-top: 2rem;
}

label {
  display: block;
  margin: 1rem 0 0.5rem;
  font-weight: 500;
  font-family: 'Cardo', serif;
}

input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.checkout-summary {
  margin: 2rem 0;
  font-family: 'Cardo', serif;
}

.checkout-summary li {
  margin-bottom: 0.5rem;
}

.pay-btn,
.button {
  background: #000;
  color: #fff;
  font-family: 'Cardo', serif;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.pay-btn:hover,
.button:hover {
  background: #333;
}

.hidden {
  display: none;
}
