/* Search bar */
.nav-search-bar {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	background: #f7f4fa;
	padding: 0.8em 0;
	border-bottom: 1px solid #e0d7f7;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-search-bar input {
	width: 50vw;
	min-width: 320px;
	max-width: 800px;
	padding: 0.8em 1.2em;
	font-size: 1.1em;
	border-radius: 0.4em 0 0 0.4em;
	border: 3px solid #6c4fa1;
	border-right: none;
	outline: none;
}
.nav-search-bar input:focus {
	box-shadow: 0 0 0 2px rgba(108,79,161,0.2);
}
.nav-search-bar button {
	padding: 0.8em 2em;
	font-size: 1.1em;
	border-radius: 0 0.4em 0.4em 0;
	background: #6c4fa1;
	color: #fff;
	border: 3px solid #6c4fa1;
	cursor: pointer;
	transition: background-color 0.2s;
}
.nav-search-bar button:hover {
	background: #4a3577;
	border-color: #4a3577;
}

/* Promo Badge */
.promo-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff4e50, #f9d423);
    color: #fff;
    padding: 1em;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    cursor: pointer;
    animation: pulse 2s infinite;
    transform-origin: center;
    font-size: 1.1em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .promo-badge {
        width: 90px;
        height: 90px;
        font-size: 0.9em;
        top: auto;
        bottom: 20px;
        right: 20px;
        padding: 0.8em;
    }

    .nav-search {
        padding: 0.5em 1em;
    }

    .nav-search input {
        padding: 0.6em 1em;
        font-size: 16px; /* Prevents iOS zoom */
    }

    .nav-search button {
        padding: 0.6em 1em;
        font-size: 16px;
    }
}

.promo-badge.hidden {
    display: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
}

/* Store layout: sidebar as left column */
.store-layout {
	max-width: 1400px;
	margin: 2em auto;
	padding: 0 2em;
}
.filters-sidebar {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
	padding: 2em 1.5em;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	min-width: 220px;
	max-width: 260px;
	min-height: 500px;
	flex-shrink: 0;
}
.filters-sidebar h3 {
	color: #333;
	font-size: 1.1em;
	margin-bottom: 1em;
	font-weight: 600;
}
.filters-sidebar ul {
	list-style: none;
	padding: 0;
	margin: 0 0 2em 0;
}
.filters-sidebar li {
	margin: 0.5em 0;
}
.filters-sidebar a {
	color: #666;
	text-decoration: none;
	font-size: 0.95em;
	transition: color 0.2s;
}
.filters-sidebar a:hover {
	color: #6c4fa1;
}
.store-products {
	flex: 1;
}
/* Nav search integration */
.nav-search-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	background: #fff;
	border-bottom: 1px solid #e0e0e0;
	padding: 0.5em 0;
}

.nav-search {
	display: flex;
	align-items: center;
	gap: 0.5em;
	min-width: 200px;
	max-width: 300px;
}

.nav-search input {
	flex: 1;
	border: 2px solid #6c4fa1;
	border-radius: 2em;
	padding: 0.5em 1em;
	font-size: 0.9em;
	min-width: 0; /* Prevents flex item from overflowing */
}

.nav-search button {
	padding: 0.5em 1em;
	font-size: 0.9em;
	border-radius: 2em;
	background: #6c4fa1;
	color: #fff;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s;
}

.nav-search button:hover {
	background: #5a3d8c;
}

/* Filters sidebar color */
.filters-sidebar {
	background: linear-gradient(135deg, #e0d7f7 0%, #f7f4fa 100%);
	border: 2px solid #d1c3ee;
}


body {
	font-family: 'Segoe UI', Arial, sans-serif;
	margin: 0;
	background: #f7f7fa;
	color: #222;
	-webkit-text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
	overflow-x: hidden;
}

/* Improve mobile tap targets */
a, button {
	min-height: 44px;
	min-width: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
/* ---------- Carousel indicators: small dots ---------- */

.carousel-indicators {
  position: absolute;
  bottom: 12px;                 /* adjust vertical placement */
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;                     /* space between dots */
  align-items: center;
  justify-content: center;
  z-index: 2;
  padding: 0;
  margin: 0;
}

/* strictly override the global a/button min-size so dots stay small */
.carousel-indicators .indicator,
.carousel-indicators button.indicator {
  min-width: 0;                 /* override global min */
  min-height: 0;                /* override global min */
  width: 10px;                   /* normal dot size (try 6-10px) */
  height: 10px;
  padding: 0;
  margin: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  border: none;
  display: inline-block;        /* not inline-flex (avoids enforced min sizes) */
  line-height: 0;
  flex: 0 0 auto;               /* prevent flexbox from stretching */
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  box-shadow: 0 0 0 0 rgba(0,0,0,0.05) inset; /* optional subtle depth */
}

/* active / hover styling */
.carousel-indicators .indicator.active {
  background: #8093ff;
  transform: scale(1.6);        /* active dot slightly larger */
}
.carousel-indicators .indicator:hover {
  background: #32beff;
  transform: scale(1.4);
}

/* Mobile: make dots a bit smaller */
@media (max-width: 768px) {
  .carousel-indicators {
    gap: 6px;
    bottom: 10px;
  }
  .carousel-indicators .indicator {
    width: 6px;
    height: 6px;
  }
  .carousel-indicators .indicator.active {
    transform: scale(1.5);
  }
}


/* Remove tap highlight on mobile */
* {
	-webkit-tap-highlight-color: transparent;
}

/* Prevent horizontal scroll */
.site-header, main, footer {
	max-width: 100vw;
	overflow-x: hidden;
}
.site-header {
	background: #fff;
	border-bottom: 1px solid #e3e3e3;
	box-shadow: 0 2px 8px #e3e3e3;
	padding: 0.5em 0;
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
}
.header-content {
    display: flex;
    flex-direction: column; /* Stack logo + nav + search vertically */
    align-items: center;
    padding: 0.5em 1em;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 0.5em; /* Reduced gap since we now have vertical layout */
}


.site-logo {
	height: 60px;
	flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.site-logo {
		height: 40px;
	}

	.main-nav {
		gap: 0.7em;
		flex-wrap: nowrap;
		justify-content: center;
		align-items: center;
		overflow-x: auto;  /* allows horizontal scrolling if too wide */
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
  gap: 1em;
  white-space: nowrap;
	}

	.main-nav a {
		font-size: 0.7em;
	}
	
	.header-content {
		padding: 0.2em 0.3em;
		gap: 0.8em;
	}

	.nav-search {
		flex-direction: column;
		width: 100%;
    max-width: 100%;
    padding: 0 1em;
  }

	.nav-search input,
	.nav-search button {
		width: 100%;
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.site-logo {
		height: 30px;
	}

	.main-nav {
		gap: 0.1em;
		padding: 0 0.1em;
	}

	.main-nav a {
		font-size: 0.5em;
		padding: 0.8em 0.4em; /* Larger touch target */
	}

	.nav-search {
		padding: 0.5em;
	}

	.nav-search input,
	.nav-search button {
		font-size: 16px; /* Prevents iOS zoom */
		padding: 0.6em 1em;
	}

	/* Adjust product grid for mobile */
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
		gap: 1em;
		padding: 0 0.5em;
	}

	.gallery-grid img {
		width: 100%;
		height: 120px;
	}

	/* Mobile-friendly footer */
	.footer-nav {
		grid-template-columns: 1fr;
		gap: 2em;
		padding: 1em;
	}

	.footer-col {
		text-align: center;
	}

	/* Adjust promo badge */
	.promo-badge {
		width: 80px;
		height: 80px;
		font-size: 0.8em;
		bottom: 10px;
		right: 10px;
	}
}
.main-nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 1em 2em;
	margin: 0;
	padding: 0;
	flex: 1;
}

.main-nav a {
	color: #222;
	text-decoration: none;
	font-weight: 500;
	font-size: 1.1em;
	padding: 0.3em 0;
	transition: color 0.2s;
	white-space: nowrap;
}
.main-nav a:hover {
	color: #6c4fa1;
}
.hero {
	position: relative;
	background: #fff;
	padding: 0;
	margin: 0;
	border-bottom: 1px solid #e0e0e0;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

#product-carousel {
    position: relative;
    width: 100%;
    background: #000;
    overflow: hidden;
    height: 500px;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
}

.carousel-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    opacity: 0.5;
    transform: scale(1.1);
}

.carousel-content {
    position: relative;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    z-index: 1;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}

.carousel-caption {
    position: absolute;
    bottom: 0; /* Lock to bottom edge */
    left: 0;
    right: 0;
    padding: 1.5em 2em 2em; /* extra bottom padding for spacing */
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.0) 100%);
    color: #fff;
    text-align: center;
}


.carousel-caption h2 {
    font-size: 1.8em;
    margin-bottom: 1em;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 4px;
    font-size: 1.5em;
    color: #333;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  z-index: 2;
}

.indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  padding: 0;
  margin: 0 4px;
  cursor: pointer;
  flex-shrink: 0; /* prevents stretching in flexbox */
  display: inline-block;
  transition: all 0.2s ease;
}

.indicator.active {
  background: #8093ff;
  transform: scale(1.2);
}

.indicator:hover {
    background: #32beff;
}

@media (max-width: 768px) {
    .indicator {
        width: 4px;
        height: 4px;
    }
    
    .carousel-indicators {
        gap: 4px;
        bottom: 8px;
    }
}
.cta-btn {
	display: inline-block;
	background: #6c4fa1;
	color: #fff !important;
	padding: 0.8em 2em;
	border-radius: 4px;
	font-size: 1.2em;
	font-weight: bold;
	text-decoration: none;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	transition: all 0.2s ease;
}
.cta-btn:hover {
	background: #4a3577;
	transform: translateY(-1px);
	box-shadow: 0 3px 6px rgba(0,0,0,0.15);
	color: #fff !important;
}
.hero-image {
	flex: 1 1 300px;
	text-align: center;
	padding: 2em;
}
.hero-image img {
	width: 320px;
	max-width: 80vw;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.featured-products {
	padding: 2em 1em;
	max-width: 1100px;
	margin: 0 auto;
}
.featured-products h2 {
	text-align: center;
	font-size: 2em;
	color: #6c4fa1;
	margin-bottom: 1em;
}
.product-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 2em;
	justify-content: center;
}
.product-card {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	padding: 1em;
	width: 220px;
	text-align: center;
	text-decoration: none;
	color: #222;
	transition: all 0.2s ease;
	border: 1px solid #e0e0e0;
}
.product-card:hover {
	box-shadow: 0 3px 6px rgba(0,0,0,0.15);
	transform: translateY(-2px);
}
.product-card img {
	width: 180px;
	height: 180px;
	object-fit: cover;
	border-radius: 2px;
	margin-bottom: 0.7em;
	border: 1px solid #f0f0f0;
}
.product-title {
	font-size: 1em;
	font-weight: 500;
	color: #333;
	margin-top: 0.5em;
}
.site-footer {
	background: #fff;
	border-top: 1px solid #e0e0e0;
	color: #222;
	padding: 4em 0 2em 0;
	margin-top: 4em;
}

.footer-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2em;
}

.footer-nav {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 3em;
	margin-bottom: 3em;
}

.footer-col {
	display: flex;
	flex-direction: column;
}

.footer-col h4 {
	color: #333;
	font-size: 1.1em;
	margin-bottom: 1.5em;
	font-weight: 600;
}

.footer-col a {
	color: #666;
	text-decoration: none;
	font-size: 0.95em;
	margin-bottom: 1em;
	transition: color 0.2s;
}

.footer-col a:hover {
	color: #6c4fa1;
}

.footer-col p {
	color: #666;
	font-size: 0.95em;
	margin-bottom: 1.5em;
	line-height: 1.5;
}

.footer-bottom {
	border-top: 1px solid #e0e0e0;
	padding-top: 2em;
	text-align: center;
	color: #666;
	font-size: 0.9em;
}
.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 2em;
	margin-top: 2em;
}
.gallery-grid a {
	background: #fff;
	border-radius: 1em;
	box-shadow: 0 2px 8px #e3e3e3;
	padding: 1.5em;
	text-align: center;
	text-decoration: none;
	color: #222;
	transition: box-shadow 0.2s, transform 0.2s;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.gallery-grid a:hover {
	box-shadow: 0 4px 16px #b3aaff;
	transform: translateY(-4px) scale(1.04);
}
.gallery-grid img {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 0.7em;
	margin-bottom: 0.7em;
}
