/* Global Styles */
:root {
  --primary-dark: #6f4e37; /* Dark Coffee Brown */
  --secondary-gold: #c89f6b; /* Golden Beige */
  --accent-sienna: #a0522d; /* Sienna/Terracotta */
  --light-beige: #faf0e6; /* Linen */
  --text-dark: #333333;
  --text-light: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--light-beige);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", sans-serif;
  color: var(--primary-dark);
}

/* Responsive Typography for Headings */
h1 {
  font-size: calc(1.8rem + 1.5vw); /* Desktop: ~3rem */
}
h2 {
  font-size: calc(1.6rem + 1vw); /* Desktop: ~2.5rem */
}
h3 {
  font-size: calc(1.4rem + 0.8vw); /* Desktop: ~2rem */
}
h4 {
  font-size: calc(1.2rem + 0.5vw); /* Desktop: ~1.7rem */
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.2rem;
  } /* Tablet */
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.8rem;
  }
  h4 {
    font-size: 1.5rem;
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  } /* Desktop */
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 2rem;
  }
  h4 {
    font-size: 1.7rem;
  }
}

@media (max-width: 767px) {
  h1 {
    font-size: 1.75rem;
  } /* Mobile */
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1.1rem;
  }
  .navbar-brand .h4 {
    font-size: 1.25rem;
  } /* Logo text size */
}

/* Custom Utilities */
.text-primary-dark {
  color: var(--primary-dark) !important;
}

.bg-primary-dark {
  background-color: var(--primary-dark) !important;
}

.btn-primary-dark {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--text-light);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary-dark:hover {
  background-color: #946645;
  border-color: #946645;
  color: var(--text-light);
}

.text-secondary-gold {
  color: var(--secondary-gold) !important;
}

.bg-secondary-gold {
  background-color: var(--secondary-gold) !important;
}

.btn-secondary-gold {
  background-color: var(--secondary-gold);
  border-color: var(--secondary-gold);
  color: var(--primary-dark);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-secondary-gold:hover {
  background-color: darken(var(--secondary-gold), 10%);
  border-color: darken(var(--secondary-gold), 10%);
  color: var(--primary-dark);
}

.btn-outline-secondary-gold {
  border-color: var(--secondary-gold);
  color: var(--secondary-gold);
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

.btn-outline-secondary-gold:hover {
  background-color: var(--secondary-gold);
  color: var(--primary-dark);
  border-color: var(--secondary-gold);
}

.bg-light-beige {
  background-color: var(--light-beige) !important;
}

.border-secondary-gold-light {
  border-color: rgba(var(--secondary-gold), 0.5) !important;
}

.shadow-lg {
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.word-break-all {
  word-break: break-all;
}

/* Header & Navigation */
.navbar-brand img {
  max-height: 40px;
}

.navbar-toggler {
  border: none;
}

.offcanvas-header {
  background-color: var(--primary-dark);
  color: var(--text-light);
}

.offcanvas-title {
  color: var(--text-light);
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

.navbar-nav .nav-link {
  color: var(--primary-dark);
  font-weight: 500;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-gold);
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px; /* Adjust for fixed header */
}

.hero-section .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-section h1,
.hero-section p {
  color: var(--text-light);
}

/* Product Cards */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 0.75rem;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.25) !important;
}

.product-card .product-image {
  height: 250px; /* Fixed height for product images */
  object-fit: cover;
  width: 100%;
  cursor: pointer;
}

.product-card .card-body {
  padding: 1.5rem;
}

.product-card .price {
  font-size: 1.75rem;
}

/* Avatar Images */
.avatar-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid var(--secondary-gold);
}

/* Footer */
.footer a {
  color: var(--text-light);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--secondary-gold);
}

/* Cart Modal */
#cartModal .modal-content,
#checkoutModal .modal-content,
#orderConfirmationModal .modal-content {
  border-radius: 0.75rem;
  overflow: hidden;
}

#cartModal .modal-header,
#checkoutModal .modal-header,
#orderConfirmationModal .modal-header {
  border-bottom: none;
}

.cart-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.cart-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
  margin-right: 1rem;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: bold;
  color: var(--primary-dark);
}

.cart-item-price {
  color: var(--secondary-gold);
  font-weight: 500;
}

.cart-item-quantity {
  width: 70px;
  margin: 0 1rem;
}

.btn-remove-item {
  color: #dc3545;
  background: none;
  border: none;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.btn-remove-item:hover {
  color: #c82333;
}

/* Cookie Banner */
.cookie-banner {
  z-index: 1050;
  animation: slideInUp 0.5s ease-out;
  border-top-left-radius: 0.75rem;
  border-top-right-radius: 0.75rem;
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Ensure buttons don't cut text */
.btn {
  white-space: normal;
  word-break: break-word;
  text-align: center;
  text-decoration: none; /* Remove underline from buttons */
}

/* Offcanvas menu for mobile navigation */
.offcanvas-body .navbar-nav {
}

.offcanvas-body .navbar-nav .nav-item {
  margin-bottom: 0.5rem;
}

/* Adjust main content padding for fixed header */
main {
  padding-top: 70px; /* Default padding for header height */
}

@media (min-width: 992px) {
  main {
    padding-top: 76px; /* Adjust for larger header on desktop */
  }
}

/* Image Zoom Modal */
#imageZoomModal .modal-body {
  max-height: 80vh;
  overflow-y: auto;
}
#imageZoomModal #zoomedImage {
  max-width: 100%;
  height: auto;
}
/* Styles for the main content block container */
.legalDomeBlock {
  padding-top: 40px; /* Top padding for the block */
  padding-bottom: 40px; /* Bottom padding for the block */
  /* You might want to add max-width and margin: auto for centering on larger screens */
  /* max-width: 960px; */
  /* margin-left: auto; */
  /* margin-right: auto; */
}

/* Heading 1 styles */
.legalDomeBlock h1 {
  font-size: 2rem; /* Moderate font size for H1 */
  line-height: 1.2; /* Line height for readability */
  margin-top: 1.5em; /* Top margin */
  margin-bottom: 0.8em; /* Bottom margin */
  font-weight: 700; /* Bold font weight */
  color: #333; /* Default text color */
}

/* Heading 2 styles */
.legalDomeBlock h2 {
  font-size: 1.6rem; /* Moderate font size for H2 */
  line-height: 1.3;
  margin-top: 1.4em;
  margin-bottom: 0.7em;
  font-weight: 700;
  color: #333;
}

/* Heading 3 styles */
.legalDomeBlock h3 {
  font-size: 1.3rem; /* Moderate font size for H3 */
  line-height: 1.4;
  margin-top: 1.3em;
  margin-bottom: 0.6em;
  font-weight: 700;
  color: #333;
}

/* Heading 4 styles */
.legalDomeBlock h4 {
  font-size: 1.1rem; /* Moderate font size for H4 */
  line-height: 1.5;
  margin-top: 1.2em;
  margin-bottom: 0.5em;
  font-weight: 600; /* Slightly less bold */
  color: #333;
}

/* Heading 5 styles */
.legalDomeBlock h5 {
  font-size: 1rem; /* Moderate font size for H5 (base font size) */
  line-height: 1.5;
  margin-top: 1.1em;
  margin-bottom: 0.4em;
  font-weight: 600;
  color: #333;
}

/* Paragraph styles */
.legalDomeBlock p {
  font-size: 1rem; /* Base font size for paragraphs */
  line-height: 1.6; /* Good line height for text blocks */
  margin-top: 0; /* No top margin by default, use bottom for spacing */
  margin-bottom: 1em; /* Space between paragraphs */
  color: #555; /* Default text color */
}

/* Unordered list styles */
.legalDomeBlock ul {
  list-style-type: disc; /* Standard disc bullet */
  margin-top: 1em; /* Top margin for lists */
  margin-bottom: 1em; /* Bottom margin for lists */
  padding-left: 25px; /* Indentation for bullets */
  color: #555; /* Inherit color or set explicitly */
}

/* List item styles */
.legalDomeBlock li {
  font-size: 1rem; /* Inherit or set explicitly */
  line-height: 1.6; /* Line height for list items */
  margin-bottom: 0.5em; /* Space between list items */
  color: #555; /* Inherit color or set explicitly */
}

/* Remove bottom margin from the last paragraph/list item if it's the last child of the block */
.legalDomeBlock p:last-child,
.legalDomeBlock ul:last-child,
.legalDomeBlock li:last-child {
  margin-bottom: 0;
}

html,
body {
  overflow-x: hidden;
}

.modal-title {
  color: #fff;
}

.offcanvas-header .btn-close {
  filter: invert(1);
}

@media (max-width: 767px) {
  .cart-item {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .modal-footer{
    align-items: center;
    justify-content: center;
  }

  .card-body {
    .d-flex.justify-content-between.align-items-center.mt-auto.pt-3 {
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }
  }

  #contact-section li{
     flex-direction: column;
    align-items: center !important;
    justify-content: center;
    text-align: center;
  }

  .list-group-flush>.list-group-item{
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}


@media (max-width: 575px){
    #contact-section i{
        margin: 0 !important;
    }
}

.wr{
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    main{
        flex: 1;
    }
}