/* ===== Drury Heritage — Global Styles (style.css) ===== */

/* === Reset === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
/*  background-color: #fffdfb; */
  font-family: 'Inter', sans-serif;
  background-color: #f9f6ef;
  color: #2a2a2a;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  height: 100%;
}

h1, h2, h3 {
  font-weight: 600;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
}

/* === Components === */
.auth-cart a {
  color: #222;
  font-weight: 500;
  margin-left: 1rem;
  text-decoration: none;
}

.caption-box {  
  background-color: #efe8dc;
  padding: 16px;
  margin: 20px 0;
  border-left: 4px solid #6e6e6e;
  font-style: italic;
}

.content-section {
  background-color: #fdf6f0;
  border-left: 5px solid #c8a97e;
  margin: 1rem 0;
  padding: 2rem;
}

.content-section h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.content-section p {
  color: #333;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.division-title, .category-title, .type-title {
  color: #333;
  font-weight: bold;
  margin-top: 2rem;
}

.featured-products {
  margin-left: 100px;
}

.footer-caption {
  font-style: italic;
  margin-top: 2em;
  text-align: center;
}

.footer-link a {
  color: #4fa3f7;
  text-decoration: none;
}

.founder-layout {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.founder-message {
  flex: 1;
}

.founder-message h3 {
  color: #5a3e36;
  margin-top: 0;
}

.founder-photo {
  flex: 0 0 100px;
}

.founder-photo img {
  border: 1px solid #ccc;
  border-radius: 50px;
  height: 100px;
  object-fit: cover;
  width: 100px;
}

.home-body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #222;
}

.home-footer {
  background-color: #111;
  color: #fff;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

.home-footer a {
  color: #4fa3f7;
  text-decoration: none;
  }

.home-header {
  background: linear-gradient(135deg, #ece5d8 0%, #f5f2ed 100%);
  padding: 60px 20px;
  text-align: center;
}

.home-header h1 {
  font-size: 38px;
  margin: 0;
  color: #333;
}

.home-header p {
  font-size: 24px;
  color: #555;
  margin-top: 10px;
}

.home-section {
  padding: 40px 24px;
  max-width: 900px;
  margin: auto;
}

.home-h2 {
  font-size: 28px;
  margin-top: 0;
  text-align: center;
  line-height: 1.6;
}

.home-h3 {
    font-size: 20px;
    margin-top: 0;
    text-align: left;
    padding: 0px 24px;
  }

.home-p, .home-li {
  font-size: 20px;
  line-height: 1.6;
  margin-top: 10px;
}

.home-p2, .home-li {
  font-size: 20px;
  line-height: 1.6;
}

.home-ul {
  font-size: 20px;
  margin-top: 16px;
  padding-left: 20px;
}

.home-highlight {
    background: #fff3cd;
    padding: 1rem;
    border-left: 4px solid #0099cc;
    margin: 1.5rem 0;
    font-style: italic;
}

.home-callout {
    background: #e6f7ff;
    padding: 1rem;
    border-left: 4px solid #0099cc;
    margin: 1.5rem 0;
    font-style: italic;
}

.home-figure {
  margin: 0;
}

.home-figcaption {
  font-style: italic;
  font-size: 0.9em;
  margin-top: 8px;
}

.home-image-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
}

.home-image-row img {
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
  width: 100%;
  max-width: 400px;
}

.home-nostalgia-block {
  padding: 40px 24px;
  max-width: 900px;
  margin: auto;
}

.home-row-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2em;
  margin-top: 10px;
  flex-wrap: nowrap; /* Ensures wrapping on smaller screens */
}

.home-row-block img {
    width: 300px;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
  }

.home-row-item {
    display: flex;
    flex-direction: column;
    max-width: 300px;
}

.home-caption {
    background: #ece5d8;
    padding: 1rem;
    border-left: 4px solid #555;
    margin: 1.5rem 0;
    font-style: italic;
}

.inline-caption {
  font-style: italic;
  font-size: 0.9em;
  margin-top: 8px;
  text-align: center;
}

iframe {
  border: none;
  height: calc(100vh - 80px);
  overflow: hidden;
  width: 100%;
}

.image-caption {
  color: #555;
  font-size: 0.9em;
  margin-top: 8px;
  text-align: center;
}

.image-gallery {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.image-gallery .thumb {
  flex: 1 0 100%;
  object-fit: cover;
  width: 100%;
}

.image-section img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}



.intro-section {
  background: #fffaf4;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.intro-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.intro-section ul {
  list-style: disc;
  margin-bottom: 1rem;
  margin-left: 1.5rem;
}

.language select {
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  margin-left: 0.3rem;
  padding: 0.2rem 0.4rem;
}

.logo {
  font-size: 1.2rem;
  font-weight: bold;
  color: #3d2b1f;
}

.logo a {
  color: #000 !important;
  font-size: 34px !important;
  font-weight: bold;
  text-decoration: none;
}

.nav-right {
  align-items: center;
  display: flex;
  gap: 2rem;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.5rem;
}

nav ul li {
  display: inline;
}

nav ul li a {
  text-decoration: none;
  color: #3d2b1f;
  font-weight: bold;
}

nav ul li a:hover {
  color: #a8743a;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-right ul {
  display: flex;
  gap: 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-wrapper {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

nav {
  background-color: #e8ded0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;

  flex-wrap: wrap;
  gap: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

nav a {
  color: #3d2b1f;
  display: inline-block;
  flex: 0 0 auto;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover {
  color: #a8743a;
}


.product-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  transition: box-shadow 0.2s;
  width: 220px;
}

.product-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.product-img {
  border-radius: 4px;
  height: 160px;
  object-fit: cover;
  width: 100%;
}

.product-info {
  margin-top: 10px;
}

.story-platforms {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.story-platforms img {
  height: 28px;
  vertical-align: middle;
  width: 28px;
}

.story-platforms span {
  color: #555;
  font-weight: bold;
  margin-left: 0.4rem;
}

.story-section {
  background-color: #f7f9fb;
  border-left: 5px solid #7994b8;
  font-family: Arial, sans-serif;
  padding: 2rem;
}

.story-section h2 {
  color: #2a2a2a;
  font-size: 1.8rem;
  margin-top: 0;
}

.story-section p {
  color: #3a3a3a;
  font-size: 1rem;
  line-height: 1.6;
}

.variant-name {
  color: #666;
  font-size: 0.9em;
}

.hidden {
    display: none !important;
}

.countdown {
    font-size: 0.9em;
    color: #555;
    margin-top: 5px;
}

.logo img {
    height: 200px;
    width: 200px;
    object-fit: contain;
}

/* === Responsive Fixes === */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .nav-right {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .nav-right ul {
    flex-wrap: wrap;
  }

  .content-section {
    padding: 1.2rem;
  }

  .founder-layout {
    align-items: center;
    flex-direction: column;
  }

  .founder-message {
    text-align: center;
  }

  .founder-photo {
    margin-bottom: 1rem;
  }

  .home-row-block {
    flex-direction: column;
  }
}

/* === Merged from shop_front.css === */

/* === Reset Browser Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* shop_front.css â€” WDS 2.3 Final */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #fefaf4;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

.product-detail-right {
    width: 250px;
    flex: 0 0 250px;
}

.main-image-wrapper {
    width: 300px;
    height: 300px;
    background-color: #fefaf4;  /* #fff or match your page background */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* For arrows / counter positioning */
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;  /* ⚠️ This is the key */
    transition: all 0.3s ease;
}

/* Horizontal lines for product info table */
.product-info {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #333;
}

.product-info td {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #ddd;
    font-size: 0.95rem;
    vertical-align: top;
}


/* Optional: For first column (label), make it bolder */
.product-info td:first-child {
    font-weight: 500;
    width: 150px; /* Adjust width to ensure alignment */
    color: #555;
}

button, input, textarea, select {
  font: inherit;
}

header, footer {
  padding: 1rem;
  background-color: #fff;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 1px;
}

nav a {
  margin: 0 0.5rem;
  color: #333;
  text-decoration: none;
}

nav a:hover {
  text-decoration: underline;
}

/* === FILTER BUTTONS === */
.filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1rem 0;
}

.filters button {
  padding: 0.6rem 1.2rem;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s;
}

.filters button:hover {
  background-color: #ddd;
}

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  padding: 1rem 2rem;
}

.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  transition: 0.3s ease;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.image-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.image-gallery img.thumb {
  flex: 0 0 auto;
  width: 100%;
  height: 180px;
  object-fit: cover;
  scroll-snap-align: start;
}

.card .info {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  color: #333;
}

.card .name {
  font-size: 1.1rem;
  margin: 0.2rem 0;
  text-decoration: none;
}

.card .tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: crimson;
  color: #fff;
  padding: 2px 8px;
  font-size: 0.75rem;
  border-radius: 4px;
  font-weight: bold;
  z-index: 1;
}

.card .brand,
.card .sku,
.card .price {
  margin: 0.2rem 0;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-section {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  background-color: #fdf5ee;
  padding: 2rem;
  gap: 2rem;
  box-sizing: border-box;
}

.hero-section .right {
  width: 65%;
  position: relative;
}

.hero-section .left h2 {
  font-family: 'Segoe UI', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 2.2rem;
  line-height: 1.4;
  letter-spacing: -0.5px;
  color: #2c2c2c;
  margin-bottom: 12px;
}

.hero-section h2 {
  font-family: 'Segoe UI', sans-serif;
  font-style: italic;
  font-size: 2.4rem;          /* Bigger size */
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.4;
  color: #2a2a2a;
  margin-bottom: 12px;
}

.hero-section p {
  font-size: 1.1rem;
  font-weight: 400;
  font-family: 'Segoe UI', sans-serif;
  color: #555;
  line-height: 1.6;
  max-width: 350px;
}

.hero-section .swiper {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.image-filters img {
  width: 120px;         /* adjust width */
  height: 120px;        /* enforce consistent height */
  border-radius: 10px;
  margin: 8px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.image-filters img:hover {
  transform: scale(1.05);
}

.swiper {
  width: 100%;
  height: 320px;
}

.swiper-slide.hero-slide {
  position: relative;
  text-align: center;
  background-color: #fff;
}

.swiper-slide.hero-slide img {
  width: 100%;
  max-height: 60vh; /* â‰¤ 60% of viewport height */
  object-fit: cover;
}

.swiper-slide.hero-slide .info {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: rgba(0, 0, 0, 0.45);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: #fff;
  text-align: left;
}

.swiper-slide.hero-slide .info h3 {
  font-size: 1.4rem;
  margin: 0;
  font-weight: 700;
}

.swiper-slide.hero-slide .info .price {
  font-size: 1.1rem;
  margin: 0.5rem 0;
}

.swiper-slide.hero-slide .info button {
  padding: 0.5rem 1rem;
  background-color: #4b2d10;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.swiper-pagination {
  bottom: 10px !important;
}

.product-detail-body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #fefaf4;
    color: #333;
    margin: 0;
    padding: 0;
}

.product-detail-header {
    text-align: center;
    padding: 2rem;
}

.product-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.product-detail-header .product-price {
    font-size: 1.5rem;
    color: #4b2d10;
    font-weight: bold;
}

.product-detail-main {
    display: flex;
    justify-content: center;
    gap: 5rem;
    padding: 2rem;
    max-width: 1000px;
    margin: auto;
    align-items: flex-start;
}

.product-detail-left {
    flex: 0 0 auto;
    width: 250px; /* or whatever size your image wrapper is */
    display: flex;
    justify-content: center;
}

.product-image-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: column;
    justify-content: center;
    width: 250px;
    height: 250px;
}

.slider-images {
    display: flex;
    overflow-x: hidden;
    gap: 10px;
    width: 100%;
    position: relative;
}

.slider-images img {
    width: 20px;
    height: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    object-fit: cover;
}

.slider-prev, .slider-next {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 4px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Left Arrow 10px */
.slider-prev {
    left: 10px;
}

/* Right Arrow 10px */
.slider-next {
    right: 10px;
}

.image-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.75rem;
    z-index: 5;
    font-family: 'Segoe UI', sans-serif;
}

.section-block h3 {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: #333;
}

.section-block {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}
.selling-points-list {
    margin: 0;
    padding-left: 1.2rem;
    list-style: disc;
}
.product-info td:first-child {
    font-weight: 500;
    color: #555;
}
.product-info td {
    padding: 6px 10px;
    vertical-align: top;
}

.product-detail-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.main-image-wrapper img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.variant-selection label {
    font-weight: 600;
    margin-bottom: 4px;
}

.add-to-order-btn {
    background-color: #5c3d1e;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1rem;
}

.product-description {
    margin-top: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-info-table {
    margin-top: 1rem;
}

.product-info-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.product-info-table td {
    padding: 0.6rem;
    border-bottom: 1px solid #eee;
}

.product-detail-right {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.variant-selection label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
}

.variant-selection select {
    width: 100%;
    padding: 0.6rem;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    border: 1px solid #aaa;
    background-color: #fff;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 4px;
}

.quantity-control input {
    width: 50px;
    text-align: center;
    font-size: 1rem;
}

.add-to-order-btn {
    padding: 0.8rem 1.5rem;
    background-color: #4b2d10;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 1rem;
}

.add-to-order-btn:hover {
    background-color: #633812;
}


/* === FOOTER === */
footer {
  padding: 1rem;
  text-align: center;
  background-color: #fff;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ddd;
}

footer a {
  color: inherit;
  text-decoration: underline;
}

.user-header {
    background-color: #f5f5f5;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Segoe UI', sans-serif;
}

.user-header a {
    text-decoration: none;
    color: #333;
    margin-right: 20px;
    font-weight: 600;
}

.user-header a:hover {
    color: #a0522d;
}

.user-header-right {
    font-size: 0.9rem;
    color: #555;
}

.user-profile-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
    text-align: center;
}

.user-profile-info {
    margin-top: 20px;
    font-size: 1rem;
}

.user-profile-info a {
    display: block;
    margin: 10px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.user-profile-info a:hover {
    color: #a0522d;
}

.cart-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    font-family: 'Segoe UI', sans-serif;
}

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

.cart-list li, .cart-mock-list li {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-list a, .cart-mock-list a {
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
}

.cart-list a:hover, .cart-mock-list a:hover {
    color: #a0522d;
}

.total-amount {
    margin: 20px 0;
    font-size: 1.2rem;
}

.cart-actions a {
    margin-right: 15px;
}

.login-container {
    max-width: 400px;
    margin: 80px auto;
    padding: 2rem;
    background-color: #f7f4f0;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: 'Segoe UI', sans-serif;
}

.login-container h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #5a4232;
}

.login-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.login-container label {
    font-size: 0.9rem;
    color: #333;
}

.login-container input[type="text"] {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.login-container button {
    padding: 0.6rem;
    background-color: #5a4232;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.login-container button:hover {
    background-color: #8b6d4c;
}

.login-container .back-link {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #5a4232;
    text-decoration: none;
}

.login-container .back-link:hover {
    text-decoration: underline;
}

/* --- Drury Login Logo Styling --- */
.hidden {
    display: none;
}

.login-form.hidden {
    display: none !important;
}

.login-form input,
.login-form select {
    height: 42px;
    padding: 0 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo img {
    height: 200px;    
    width: 200px;
    object-fit: contain;   /* Maintain aspect ratio, fit nicely within */
    display: block;
    margin: 0 auto;
}

.phone-row {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}
.country-select,
.phone-number {
    flex: 1;
}

.error-msg {
    color: red;
    font-weight: bold;
    margin-bottom: 1rem;
}

.register-option {
    text-align: center;
    margin-top: 1.5rem;
    font-weight: bold;
    font-size: 1rem;
}

.register-option a {
    color: #5A3E36;
    text-decoration: none;
    background-color: #f3e6d8;
    padding: 0.5rem 1rem;
    border: 1px solid #d4c2b0;
    border-radius: 6px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.register-option a:hover {
    background-color: #e0d0c0;
    color: #3b2921;
    text-decoration: none;
}

.register-suggestion {
    margin-top: 1em;
    padding: 1em;
    background-color: #fff2e0; /* soft pastel to match Drury tones */
    border: 2px solid #e8b17d;
    border-radius: 10px;
    text-align: center;
}

.btn-register {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #a0522d; /* warm brown tone */
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.btn-register:hover {
    background-color: #8b4513; /* deeper shade on hover */
}

.password-wrapper {
    position: relative;
    display: block;
}

.password-wrapper input {
  width: 100%;
  padding-right: 1rem;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 2.5em; /* leave room for the icon */
    box-sizing: border-box;
    font-size: 1em;
    padding: 0.5em 0.75em;
}

.password-wrapper .toggle-icon {
    position: absolute;
    right: 0.75em;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1em;
    color: #666;
    user-select: none;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.1em;
  user-select: none;
}

.password-hint {
  font-size: 0.85em;
  color: #555;
  margin-top: 0.5em;
  margin-bottom: 1em;
  font-size: 0.85em;
}

.password-container {
  position: relative;
}

.password-container input[type="password"],
.password-container input[type="text"] {
  width: 100%;
  padding-right: 1.2rem;
}

.toggle-eye {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 0.9rem;
  color: #5a3e2b;
  user-select: none;
}

.error-border {
    border: 2px solid red !important;
    box-shadow: 0 0 5px red;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input {
  width: 100%;
  padding-right: 2.5em; /* space for eye */
  box-sizing: border-box;
}

.eye-icon {
  position: absolute;
  right: 10px;
  cursor: pointer;
  width: 20px;
  height: 20px;
  background-image: url('assets/img/eye.svg'); /* Use proper path */
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.6;
}

.eye-icon:hover {
  opacity: 1;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-container input {
  width: 100%;
  padding-right: 2.5em; /* make space for eye */
}

.icon-toggle {
  position: absolute;
  right: 0.8em;
  cursor: pointer;
  color: #666;
}

.shop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fdf7f2;
  padding: 1rem 2rem;
  border-bottom: 1px solid #ccc;
}

.shop-header .logo a {
  font-size: 1.5rem;
  text-decoration: none;
  color: #3d2c1a;
}

.shop-header .shop-logo a {
  text-decoration: none;
  color: #5a4229;
  font-size: 1.2rem;
}

.shop-header .shop-nav a {
  margin-left: 1.2rem;
  text-decoration: none;
  color: #5a4229;
  position: relative;
}

.shop-nav a {
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
  color: #3d2c1a;
  position: relative;
}

.cart-badge {
  background: #c0392b;
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 50%;
  position: relative;
  top: -5px;
  margin-left: 3px;
}

.cart-icon {
  position: relative;
}

.cart-count {
  background: crimson;
  color: #fff;
  border-radius: 50%;
  padding: 0 6px;
  font-size: 12px;
  position: absolute;
  top: -8px;
  right: -10px;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown > a {
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fffdfb;
  min-width: 200px;
  box-shadow: 0 8px 12px rgba(0,0,0,0.2);
  z-index: 100;
  padding: 0.5rem;
  border-radius: 8px;
}

.dropdown-content a {
  color: #5a4229;
  padding: 0.5rem;
  display: block;
  text-decoration: none;
}

.dropdown-content a:hover {
  background-color: #f0e4d4;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.row-inline {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap; /* responsive */
  margin-bottom: 1rem;
}

.input-group {
  flex: 1;
  min-width: 155px;
}

.input-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
}

.input-group select,
.input-group input {
  width: 100%;
  padding: 8px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Specific width for country select to prevent truncation */
#country_code {
  appearance: auto;
  -webkit-appearance: menulist;
  -moz-appearance: menulist;
  min-width: 180px;
  width: 100%;
  padding: 8px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#flash-message {
  margin-top: 10px;
  padding: 0.8em 1em;
  border-radius: 6px;
  font-weight: bold;
  font-size: 0.95em;
}

#flash-message.success {
  background-color: #e0f7e9;
  color: #1b5e20;
  border: 1px solid #1b5e20;
}

#flash-message.error {
  background-color: #fbe9e7;
  color: #c62828;
  border: 1px solid #c62828;
}

.pulse-highlight {
    animation: pulseGlow 1.8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0px rgba(150, 75, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 12px rgba(150, 75, 0, 0.35);
    }
}

/* Make hero section stack vertically on small screens */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    padding: 1rem;
  }

  .hero-section .left {
    width: 100%;
    text-align: center;
  }

  .hero-section .left h2 {
  font-size: 1.6rem;
  line-height: 1.4;
  }

  .hero-section .right {
    width: 100%;
    margin-top: 1rem;
  }

.hero-section p {
  font-size: 1rem;
  line-height: 1.5;
  max-width: 100%;
  }

  .swiper {
    width: 100%;
    height: auto;
  }

  .swiper-slide img {
    width: 100%;
    height: auto;
    border-radius: 12px;
  }

  .featured-section {
    padding: 1rem;
  }

  .filters.image-filters {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 1rem;
  }

  .filters.image-filters img {
    width: 100%;
    border-radius: 10px;
  }

  .product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .card {
    width: 100%;
  }

  .card img.thumb {
    width: 100%;
    height: auto;
  }

  .product-detail-main {
    flex-direction: column;
    padding: 1rem;
  }

  .product-detail-left {
      width: 250px;
      flex: 0 0 250px;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .product-detail-right {
      width: 100%;
  }
  
  .slider-images img {
      width: 100%;
  }

  .main-image-wrapper {
      width: 300px;
      height: 300px;
      background-color: #fff; /* Optional: to show boundary clearly */
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative; /* Required for absolute child positioning */
      border-radius: 12px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  }

  .main-image-wrapper img {
      width: 100%;
      height: 100%;
      object-fit: contain; /* cover;  KEY: shrink large, enlarge small, no crop */
  }
}
