:root {
	--dark: #00796B;    	/* Professional Teal */
	--borders: #004D40;     /* Deep Teal */
	--bg-light: #F4F7F6; 	/* Soft Grey-Green */
	--bg-dark: #D0ECE7;		/* input background */
	--text: #263238;       	/* Slate Grey */
}

@font-face {
  font-family: 'Artbrush';
  src: url('/fonts/artbrush.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

a {
  text-decoration: none; /* Removes the underline */
  color: var(--dark);       /* Makes the link take the color of the text around it */
  transition: 0.3s;     /* Makes hover effects smooth */
}

a:hover {
  color: var(--bg-dark);       /* Global hover color */
}

.highlight-marker {
    background: linear-gradient(180deg, transparent 50%, #fff2ac 50%);
    padding: 0 2px;
    font-weight: bold;
}

.page-link {
	padding:5px;
	border: 1px solid var(--borders);
	border-radius:10px;
}

.page-link i {
    font-size: 0.8em;      /* Makes the icon slightly smaller than the text */
    margin-left: 5px;      /* Gives the icon some breathing room */
    margin-right: 5px;      /* Gives the icon some breathing room */
    vertical-align: middle; /* Ensures it stays centered with your text */
    transition: transform 0.2s; /* Allows for a smooth hover effect */
}

.page-link:hover i {
    transform: translateX(3px); /* Subtly moves the arrow right on hover */
    color: var(--borders);            /* Changes color to your brand blue */
}

.page-link-disabled {
    display: none;
}


.page-link-page-div {
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding:5px;
	border: 1px solid var(--borders);
	border-radius:10px;
}

.page-link-page-div input {
	width:40px;
	border:1px solid var(--borders);
	border-radius:5px 0px 0px 5px;
	border-right:0px;
}

.page-link-page-div .go {
	background-color:var(--dark);
	color:var(--bg-light);
	border-radius:0px 5px 5px 0px;
	padding-left:10px;
	padding-right:10px;
	cursor:pointer;
}

.pagenation {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap:10px;
	width:100%;
	padding-top:10px;
}
/* ------ HEADER ------------*/
.main-header {
  background-color: var(--bg-light);
  border-bottom: 3px solid var(--dark);
}

.logo .accent {
  color: var(--dark);
}

/* Liquid Header Layout */
.header-grid {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  width: 100%;
}


.slogan {
	font-family: 'Artbrush', sans-serif;
	color:var(--dark);
	font-size:1.2rem;
}

/* ------- HEADER MENUS -------*/

.menu-trigger {
	color:var(--dark);
	cursor:pointer;
	text-decoration:none;
}

/* --- Global Change --- */
.dropdown-menu {
    position: fixed !important; /* Force to fixed so JS math works perfectly */
    display: none;
    background-color: #fff;
    list-style: none;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--borders); 
    min-width: 150px;
    z-index: 1000;
}

.dropdown-menu li a {
	display: block;
	padding: 10px 15px;
	font-size: 1.2em;
	white-space: nowrap;
}
.dropdown-menu li a:hover {
	background-color: var(--dark);
}

.show-menu {
    display: block !important;
}
/* The base arrow style */
.arrow-icon {
    font-size: 0.8rem;
    margin-left: 8px;
    transition: transform 0.3s ease; /* Smooth rotation */
    pointer-events: none; /* Prevents the icon from stealing the click from the link */
}

/* The rotation class (applied via JS) */
.arrow-rotate {
    transform: rotate(180deg);
}

/* Optional: Make the trigger look active */
.menu-trigger.active {
    font-weight: bold;
    color: var(--borders);
}

@media (min-width: 768px) {
    /* LEVEL 1: The 3-column Categories Panel */
    .has-submenu > .dropdown-menu.submenu {
        width: 850px !important;
        column-count: 3 !important;
        column-gap: 20px !important;
        display: none;
    }

    /* LEVEL 2: The Final Decal List (THE VERTICAL SCROLLER) */
    /* We use a very specific selector to kill the columns inherited from Level 1 */
    .dropdown-menu.submenu .has-submenu > .dropdown-menu.submenu {
		width: 320px !important;
		display: none; /* JS controls when it opens */

		column-count: unset !important;
		column-width: unset !important;
		column-gap: unset !important;

		/* SCROLLABLE COLUMN */
		max-height: 70vh !important;
		overflow-y: auto !important;
		overflow-x: hidden !important;

		position: fixed !important;

		background: #fff !important;
		border: 2px solid var(--borders) !important;
		box-shadow: 10px 10px 30px rgba(0,0,0,0.4);
		padding: 5px 0 !important;
		z-index: 5000 !important;
	}

    /* Ensure list items don't try to span columns */
    .dropdown-menu.submenu .has-submenu > .dropdown-menu.submenu li {
    width: 100%;
	}

    /* Force the scrollbar to be visible and themed */
    .dropdown-menu.submenu .has-submenu > .dropdown-menu.submenu::-webkit-scrollbar {
        width: 12px !important;
        display: block !important;
    }
    .dropdown-menu.submenu .has-submenu > .dropdown-menu.submenu::-webkit-scrollbar-thumb {
        background-color: var(--dark) !important;
        border: 2px solid white;
        border-radius: 10px;
    }
}

/* Centers the whole unit on desktop */
.header-search-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

.search-container {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1000px; /* Adjust based on your preference */
    gap: 20px;
    padding: 0 15px;
}

/* Logo: Auto-resizes but maintains aspect ratio */
.company-logo {
    height: 50px; /* Set your desired height */
    width: auto;
    flex-shrink: 0; /* Prevents the logo from being squeezed */
}

/* Form: Takes up all the remaining space */
.search-form {
    flex-grow: 1;
    display: flex;
}

.input-group {
    display: flex;
    width: 100%;
}

/* ------ END HEADER ------------*/

/*------- MAIN PAGES ------------*/
.main-page-grid {
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  width: 100%;
}
.main-page-row {
  display: flex; 
  flex-direction: row; 
  justify-content: center;
  align-items: center; 
  width: 100%;
  gap:15px;
}

.main-page-title {
  display: flex; 
  flex-direction: column; 
  justify-content: center;
  align-items: center; 
  width: 100%;
  text-align:center;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--borders);
}
.main-page-title h1{
	color: var(--dark);
	font-size:18px;
	font-weight:bold;
}
/*------- END MAIN PAGES ------------*/

/* ---- FORMS ------- */
.input_div {
	display: flex; 
	align-items: stretch;
}
.input_input {
	background-color: var(--bg-dark);
	color: var(--borders);
	padding: 10px;
	border: 2px solid var(--borders);
	outline: none;
}
.input_button {
	background-color: var(--dark);
	color: var(--bg-light);
	padding: 10px;
	border: 2px solid var(--borders);
	outline: none;
	cursor: pointer;
}

/* The container */
.switch {
  position: relative;
  display: inline-flex; /* Use flex to keep text and switch aligned */
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

/* Hide the checkbox */
.switch input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* The slider track */
.slider {
  position: relative;
  width: 34px;
  height: 18px;
  background-color: #555; /* Darker for your dark theme */
  transition: .4s;
  border-radius: 34px;
  display: inline-block;
}

/* The knob */
.slider:before {
  position: absolute;
  content: "";
  height: 12px;
  width: 12px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

/* --- Logic: When input is checked, change slider and move knob --- */
.switch input:checked + .slider {
  background-color: #4caf50; 
}

.switch input:checked + .slider:before {
  transform: translateX(16px);
}	

/* REMOVED STRAY BRACE HERE */

/* ----------- SHOW HIDE DIVS MAINLY INDEX -----------*/
.value-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 60px 0;
}

.value-card {
    flex: 1;
    min-width: 280px;
    background: #fff;
    border: 1px solid #ddd;
    /* We moved padding to child divs to ensure total collapse */
    padding: 0; 
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
}

.value-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.card-visible {
    position: relative;
    padding: 30px; /* Standard internal padding */
    padding-right: 40px; /* Extra room for the arrow */
}

.arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #888;
}

/* Hidden State */
.card-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden; 
    padding: 0 30px; 
    visibility: hidden; /* ADD THIS: It fully hides the element from the tab index */
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease, visibility 0.4s;
}

/* Expanded State */
.value-card.active .card-details {
    max-height: 2000px; 
    opacity: 1;
    visibility: visible; /* ADD THIS: Brings it back when clicked */
    padding-bottom: 30px; 
}

.value-card.active .arrow {
    transform: translateY(-50%) rotate(180deg);
}

@media (max-width: 600px) {
    .card-visible {
        padding: 20px 40px 10px 15px; /* Tighter padding for small screens */
    }
    .card-details {
        padding: 0 15px; /* Keeps text from hitting the very edge of the phone */
    }
    .value-card h3 {
        font-size: 1.1rem; /* Shrinks the header slightly so it doesn't wrap awkwardly */
    }
	.slogan {
		font-size: 1rem;
	}
}
/* ------------ END SHOW HIDE DIVS ------------- */


/* ------ FOOTER ------------*/
.main-footer.site-dropship {
  background: var(--dark); /* Dark Slate #212121 */
  color: #ccc;
  padding: 40px 0 0 0;
  margin-top: 50px;
  border-top: 5px solid var(--primary); /* The Teal accent */
}

.footer-grid {
  display: flex;
  flex-wrap: wrap; /* Allows stacking on mobile */
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 40px;
}

.footer-col {
  flex: 1;
  min-width: 200px; /* Prevents columns from getting too thin */
}

.footer-col h4 {
  color: white;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; font-size: 13px; }
.footer-col a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  background: #111;
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
}

/* ------ END FOOTER ------ */

/* ------- INDEX ----------*/
/* Hero Styles */
.hero-bg {
  background: var(--bg-light);
  padding: 80px 0;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.hero-content h1 { font-size: 2.5rem; color: var(--text); margin-bottom: 10px; }
.hero-btns { margin-top: 30px; display: flex; justify-content: center; gap: 15px; }


/* ------ END INDEX ----------- */


/* Responsive Mobile Breakpoint */
@media (max-width: 767px) {
  .header-grid {
    gap: 10px;
  }
  .search-form {
    order: 3;
    width: 100%; /* Force search to full width on mobile */
    margin-top: 10px;
  }
  .hero-bg {
	  padding: 10px 0px;
  }
 .dropdown-menu {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    width: 90vw !important;   /* force full viewport width */
    margin: 0 !important;
    transform: none !important; /* cancel any offset */

    column-count: 1 !important;
}
.dropdown-parent {
    position: static !important;
}
    /* Target the nested categories too */
    .dropdown-menu .submenu {
        column-count: 1 !important;
        width: 100% !important;
        margin-left: 5px !important;
        display: none; 
    }

    .dropdown-menu li {
        width: 100% !important;
        display: block !important;
    }

    .dropdown-menu li a {
        white-space: normal !important; 
        font-size: 1.1em !important; 
        padding: 12px 10px !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}