/*
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
*/
.content-main-wrapper {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 0 auto;
  padding: 2rem 2rem 2rem 0; /* top right bottom left */
}

/* Vertical content tabs section */
.content-tabs {
	display: flex;
	flex-direction: column; /* Stack items vertically */
	align-items: center; /* Center the items horizontally */
	gap: 2rem; /* Space between each product card */
	padding: 0rem 0.5rem 2rem 2rem;
	max-width: 100%;	/* 1200px; */
	margin: 0 auto;
	/* margin-bottom: 4rem; */ /* Space between sections */
}

.content-tab-card {
	background: #111;
	border-radius: 0.5rem;
	padding: 1rem;
	text-align: center;
	width: 100%; /* Control width of the vertical cards */
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.content-tab-card img {
	width: 100%;
	height: auto;
	border-radius: 0.5rem;
	margin-bottom: 1rem;
}

.content-tab-card h3 {
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

.content-tab-card a {
    display: inline;
		color: #fff;
}

.content-tab-card button {
	background: var(--accent);
	border: none;
	color: var(--foreground);
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background 0.3s;
}

.content-tab-card button:hover {
	background: #006edc;
}	

.content-tab-card-description {
	color: var(--text-muted);
	font-size: 0.9rem;
	margin-bottom: 1rem;
	text-align: left;
}

/* Horizontal pages tabs */
.featured-pages {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 2rem;
	padding: 0 2rem;
	max-width: 100%; /* 1200px; */
	margin: 0 auto;
	margin-bottom: 4rem; /* Space between sections */
}

.featured-page-card {
	background: #111;
	border-radius: 0.5rem;
	padding: 2rem;
	text-align: center;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.featured-page-card img {
	width: 100%;
	height: auto;
	border-radius: 0.5rem;
	margin-bottom: 1rem;
}

.featured-page-card h3 {
	margin-bottom: 1rem;
}

.featured-page-card p {
	color: var(--text-muted);
	font-size: 0.95rem;
}

.featured-page-card a {
    display: block;
}

.featured-page-card button {
	margin-top: 1rem;
	background: var(--accent);
	border: none;
	color: var(--foreground);
	padding: 0.5rem 1rem;
	border-radius: 0.5rem;
	cursor: pointer;
	transition: background 0.3s;
}

.featured-page-card button:hover {
	background: #006edc;
}

html {
  scroll-padding-top: 190px; /* adjust this to match your header height */
  scroll-behavior: smooth;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 0.5rem; /* optional for rounded corners */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* match your card style */
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.responsive-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.responsive-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* force scroll on small screens */
  background-color: #222;
  border: 1px solid #444;
  color: #fff;
}

.responsive-table td,
.responsive-table th {
  padding: 0.75rem;
  /* text-align: left; */
  border-bottom: 1px solid #444;
}

.responsive-table tr:first-child {
  background-color: #333;
  font-weight: bold;
  border-bottom: 2px solid #444;
}

.responsive-table td:nth-child(3) {
  color: #dc3545;
}

.responsive-table td:nth-child(4) {
  color: #007BFF;
  font-weight: bold;
}

.tab-links {
  display: flex;
  flex-wrap: wrap;          /* allow wrapping */
  justify-content: center;
  gap: 1rem;
  background-color: #111;
  padding: 1rem 2rem;
  position: sticky;
  top: 95px;
  z-index: 999;
}

.tab-links a {
  color: #fff;
  text-decoration: none;
  /* font-weight: bold;
  padding: 0.5rem 1rem; */

  font-weight: 500;               /* Slightly lighter text */
  padding: 0.3rem 0.3rem;         /* Smaller padding */
  font-size: 0.75rem;             /* Smaller font */
	
  border-radius: 0.4rem;
  background: var(--accent);
  transition: background 0.3s ease;
  flex: 1 1 auto;                /* allow flexible width */
  text-align: center;
  min-width: 120px;             /* prevent being too narrow */
}

.tab-links a:hover {
  background: #006edc;
  color: #fff;
}

.tab-links a.purchase-link {
  background-color: #28a745; /* Bootstrap green */
  color: #fff;
}

.tab-links a.purchase-link:hover {
  background-color: #218838;
}

.tab-dropdown {
  display: none;
  width: 90%;
  max-width: 320px;
  margin: 1.5rem auto;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background-color: #111;
  border: 2px solid var(--accent);
  border-radius: 0.5rem;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="14" height="10" viewBox="0 0 14 10" xmlns="http://www.w3.org/2000/svg"><path d="M1 1l6 6 6-6" stroke="white" stroke-width="2" fill="none" fill-rule="evenodd"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  transition: border-color 0.3s ease;
	cursor: pointer;
}

.tab-dropdown:focus {
  outline: none;
  border-color: #006edc;
}

.thumb-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* max-width: 100px; */
}

.thumb {
  width: 100%;   /* Increase this value */
	min-width: 150px;
  height: auto;   /* Maintain aspect ratio */
  cursor: pointer;
  border-radius: 0.5rem;
  transition: transform 0.2s ease;
}

.thumb:hover {
  transform: scale(1.05);
}

/* Modal popup */
#imgModal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

#imgModal img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 1rem;
}

#imgModal.close-btn {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.cart-link {
	position: fixed;
	top: 180px;
	right: 20px;
	text-decoration: none;
	z-index: 999;
	transition: transform 0.2s ease;
}

.cart-link:hover {
	transform: scale(1.1);
}

.cart-icon {
	position: relative;
	width: 60px;
	height: 60px;
	cursor: pointer;
}

.cart-icon img {
	width: 100%;
	height: auto;
}

.cart-count {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: red; /* You can change this color */
	font-size: 22px;
	font-weight: bold;
	padding: 0; /* Remove extra padding */
	min-width: 0; /* Remove min width */
	background: none; /* Remove background */
	border-radius: 0; /* No rounding */
	text-align: center;
	pointer-events: none;
	
	/* White outline */
	text-shadow:
		-1px -1px 0 white,
		 1px -1px 0 white,
		-1px  1px 0 white,
		 1px  1px 0 white;
}

.bounce {
	animation: bounce 1s infinite alternate;
}

@keyframes bounce {
	0%   { transform: translateY(0); }
	100% { transform: translateY(-5px); }
}

.toast {
		position: fixed;
		bottom: 20px;
		right: 20px;
		padding: 15px 20px;
		color: white;
		border-radius: 5px;
		z-index: 9999;
		animation: fadeOut 4s forwards;
}

.toast.success { background-color: #28a745; }
.toast.error   { background-color: #dc3545; }
.toast.info    { background-color: #17a2b8; }
.toast.warning { background-color: #ffc107; color: #212529; }

@keyframes fadeOut {
		0%   { opacity: 1; }
		80%  { opacity: 1; }
		100% { opacity: 0; display: none; }
}
		
@media (max-width: 1100px) {
	.cart-link {
		top: 220px;
	}
}
			
@media (max-width: 768px) {
  .content-main-wrapper {
    flex-direction: column;
    padding: 1rem;
  }

  .thumb-sidebar {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
  }

	.cart-link {
		top: 160px;
	}
	
	.tab-links {
    display: none;
  }

  .tab-dropdown {
    display: block;
    position: sticky;
    top: 95px; /* Same as .tab-links */
    z-index: 999;
    background-color: #111;
    margin-top: 0;
    margin-bottom: 1rem;
  }
	
  .responsive-table td,
  .responsive-table th {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}