	body { background-color: #fff; padding-top: 20px; }
	
	/* Bootstrap 3 default .img-responsive logic */
	
	.img-hover-glow {
		transition: box-shadow 0.2s ease, transform 0.2s ease;
	}
	.img-hover-glow:hover {
		box-shadow: 0 0 10px rgba(91, 192, 222, 0.6); /* Bootstrap Info color glow */
		transform: scale(1.02); /* Very slight zoom */
	}
	.header-spacing{
		margin-top: 220px;
	}	
	
	/* Add this to your stylesheet to force the scale */
	.img-header-scale {
		width: 100% !important;
		height: auto !important;
		max-width: 162px; /* Keeps them from getting huge on desktop */
	}
.force-scale {
    width: 100% !important; /* Force it to shrink to the col-xs-3 width */
    height: auto !important;
    max-width: 162px; /* Prevent it from getting too big on huge desktop monitors */
}

.pointer {
    cursor: pointer !important;
}

@media (max-width: 1023px) {
	.header-spacing{
		margin-top: 40px;
	}	
    .box {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }
    .box h1 {
        font-size: 18px !important;
        margin: 5px 0 !important;
    }
    /* Hide the sub-headers on mobile to save maximum space */
    .box h3, .box h4 {
        display: none !important;
    }
}

	.f {font-size: 12px;color: #000;}
	.f-red {font-size: 12px;color: #C00;}
	.fB-red {font-size: 12px;color: #C00;font-weight: 700}
	.ff {font-size: 14px; color: #000;}
	.ff-red {font-size: 14px;color: #C00;}
	.fff {font-size: 16px;color: #000;}
	.fB {font-size: 12px;color: #000;font-weight: 700}
	.f-white {font-size: 12px;color: #fff;}
	.fB-white {font-size: 12px;color: #fff;font-weight: 700}
	.fBB {font-size: 14px;color: #000;font-weight: 700}
	.fBB-white {font-size: 14px;color: #fff;font-weight: 700}
	.fBBB {font-size: 16px;color: #000;font-weight: 700}
	.fBBBB {font-size: 24px;color: #000;font-weight: 700}
	.fBBB-red {font-size: 18px;color: #C00;font-weight: 700}
	.fBB-red {font-size: 14px;color: #C00;font-weight: 700}
	.f24 {font-size: 24px;color: #000}
	.f24B {font-size: 24px;color: #000;font-weight: 700}
	
	.start-arrow {
		position: absolute;
		left: -35px; /* Adjust based on your column spacing */
		top: 20px;
		width: 0; 
		height: 0; 
		border-top: 20px solid transparent;
		border-bottom: 20px solid transparent;
		border-right: 30px solid #d9534f; /* Matches your red theme */
		animation: bounceLeft 1.5s infinite;
	}
	
	@keyframes bounceLeft {
		0%, 100% { transform: translateX(0); }
		50% { transform: translateX(-10px); }
	}
	
	/* Subtle background for the box to make it feel like a "Zone" */
	#ctaBox {
		background-color: #fffdec; /* Very faint yellow tint */
		border: 2px dashed #d9534f;
		transition: opacity 0.5s ease;
	}

	/* The Dashboard Header */
	.tool-header { background: #333; color: #fff; padding: 15px; margin-bottom: 20px; border-radius: 4px; }
	
	/* Visual Preview Area */
	.preview-box { 
		background: #fff; 
		border: 2px dashed #ccc; 
		min-height: 200px; 
		display: flex; 
		align-items: center; 
		justify-content: center; 
		margin-bottom: 20px;
		padding: 20px;
		text-align: center;
	}
	
	/* Make the Input Box Pop (Old School Style) */
	.form-control { border: 2px solid #ccc; font-weight: bold; }
	.form-control:focus { border-color: #337ab7; box-shadow: none; }
	
	/* The Price Table */
	.table-price { background: #e9e9e9; font-family: monospace; }
	.grand-total { font-size: 20px; color: #d9534f; font-weight: bold; }
	.grand-total-cell { font-size: 18px; color: #d9534f; font-weight: bold; }

	/* Step Labels */
	.step-label { background: #337ab7; color: white; padding: 2px 8px; border-radius: 50%; margin-right: 5px; }
	
	/* Call to Action Button */
	.btn-add-to-cart { 
		font-size: 20px; 
		padding: 15px; 
		background-color: #5cb85c; 
		color: white; 
		border: none; 
		text-transform: uppercase;
		font-weight: bold;
	}
/* styles to control custom fonts on order pages replaces select2 */

#masterDivList {
    border: 1px solid #9999;
    border-radius: 4px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.175);
    background-color: #ffffff !important; /* Force solid white */
    
    /* These three lines solve the mobile "see-through" glitch */
    -webkit-transform: translateZ(0); 
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    
    position: fixed; /* Ensure this matches your JS logic */
    z-index: 999; /* Higher z-index for mobile layers */
    overflow-y: auto;
    max-height: 400px;
	
	 /* ADD THESE FOUR LINES */
    box-sizing: border-box;       /* Ensures border stays INSIDE the width */
    isolation: isolate;           /* Forces a new stacking layer on mobile */
    -webkit-overflow-scrolling: touch; /* Ensures smooth, "bouncy" scrolling on iOS */
    transform: translateZ(0);     /* Triggers GPU rendering */
    
    /* Ensure width is set properly for mobile */
    min-width: 280px !important;
	padding: 5px 0; /* Keeps a tiny gap at the top and bottom */
}



#masterDivList .font-row:hover {
  /* REMOVE OR COMMENT OUT THE FONT-FAMILY LINE BELOW */
  /* font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; */
  
  font-size: 20px !important;
  background-color: #f0f0f0 !important;
  color: #000000 !important;
  font-weight: bold !important;
}

#masterDivList .font-row { 
    -webkit-user-select: none; /* Safari/Chrome */ 
    -ms-user-select: none; /* IE/Edge */ 
    user-select: none; /* Standard */ 
    -webkit-touch-callout: none; /* Disable iOS long-press menu */ 
    touch-action: pan-y; /* Allow scrolling, but no "gestures" */ 

    /* HIGH-PERFORMANCE RENDERING ENGINE FIX */
    content-visibility: auto;
    contain-intrinsic-size: 41px; /* Matches your 16px text + 10px padding top/bottom + 1px border */
}

#masterDivList .standard-font {
	display: block;
	width: 250px;           /* Adjust this width to match your dropdown */
	height: 30px;          /* Keep all rows uniform */
	line-height: 30px;
	white-space: nowrap;   /* Forces text onto one line */
	overflow: hidden;      /* Chops off long names */
	text-overflow: ellipsis; /* Adds "..." automatically in most browsers */
}
	
	/* Mobile Sticky Top Preview */
@media (max-width: 991px) {
.mobile-top-preview {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #ffffff;
	z-index: 1050; /* Sits above everything */
	padding: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
	border-bottom: 2px solid #337ab7;
	text-align: center;
	height: 80px; /* Fixed height so we can offset the body */
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Add space at the top of the page so content isn't hidden under the bar */
body { padding-top: 90px !important; }
}

/* Slim the preview text for the sticky bar */
#stickyPreviewText {
margin: 0;
font-size: 18px;
font-weight: bold;
color: #337ab7;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.hidden-font-row {
  display: none !important;
}

/* Media query targeting mobile devices */
@media screen and (max-width: 600px) {
	/* Replace '.block-container' with the actual class of your white boxes */
	.block-container {
	margin-bottom: 20px; /* Adjust this value for more or less space */
	}
	
	/* Optional: Remove margin from the very last block to keep the bottom clean */
	.block-container:last-child {
	margin-bottom: 0;
	}
	
	.preview-box { 
		background: #fff; 
		border: 2px dashed #ccc; 
		min-height: 100px; 
		display: flex; 
		align-items: center; 
		justify-content: center; 
		margin-bottom: 20px;
		padding: 20px;
		text-align: center;
	}
	/* The Dashboard Header */
	.tool-header h2{ font-size:18px }

	
}

/* popout sidebar for order pages */

/* Sidebar Container */
.sidebar {
    /* Use 100vh (viewport height) minus the header height */
    height: calc(100vh - 220px); 
    width: 0;
    position: fixed;
    background: #fff;
    z-index: 9999;
    top: 220px; /* Starts exactly where your header ends */
    right: 0;
    left: auto;
    border-left: 1px solid #000;
    transition: 0.5s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* --- 2. Sidebar Header: Added professional background --- */
.sidebar-header {
    flex-shrink: 0;
    padding: 10px 15px; /* Tighter padding for a slim look */
    text-align: right;
    border-bottom: 1px solid #ddd;
    background: #f8f8f8; /* Light architectural grey background */
}

/* --- 3. Sidebar Overlay: Also aligned under the header --- */
.sidebar-overlay {
    position: fixed;
    top: 220px; /* Start below the header so menu stays clickable */
    left: 0;
    width: 100%;
    height: calc(100vh - 220px);
    background: rgba(0,0,0,0.3);
    z-index: 9998;
    display: none;
    transition: 0.5s;
}

.sidebar .closebtn {
font-size: 28px;
color: #d9534f;             /* Red color for visibility */
text-decoration: none;
font-weight: bold;
margin-right:10px;
}

/* The Scrollable Body */
.sidebar-body {
flex-grow: 1;               /* Take up all remaining vertical space */
overflow-y: auto !important; /* Enable the scrollbar HERE */
-webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
padding: 15px;
margin: 0;
}

/* Hide scrollbar for Chrome, Safari, and Opera 
#helpContent::-webkit-scrollbar {
display: none;
}
*/
/* Hide scrollbar for IE, Edge and Firefox 
#helpContent {
-ms-overflow-style: none;  /* IE and Edge 
scrollbar-width: none;  /* Firefox */
}
*/
/* New Sticky Footer */
.sidebar-footer {
flex-shrink: 0; /* Prevents it from being squished */
padding: 20px;
background: #fff;
border-top: 1px solid #eee;
box-shadow: 0 -5px 10px rgba(0,0,0,0.05);
}


/* Desktop Adjustment (if your header height changes) */

@media (max-width: 1024px) {
	.sidebar {
        top: 100px !important;
        height: calc(100vh - 100px) !important;
        width: 0; /* JS will still handle the width transition */
    }
    .sidebar-overlay {
        top: 100px !important;
        height: calc(100vh - 100px) !important;
    }	
	/* This is where the scrollbar LIVES */
	#helpContent {
	flex: 1 !important;
	overflow-y: auto !important; 
	overflow-x: hidden !important;
	-webkit-overflow-scrolling: touch !important; /* Forces scroll on iPhone */
	padding: 15px !important;
	display: block !important;
	}
	/* Keep the close button separate from the scroll area */
	.sidebar .closebtn {
	flex-shrink: 0 !important;
	display: block !important;
	padding: 10px 15px !important;
	text-align: right !important;
	border-bottom: 1px solid #eee;
	}
}
/* end popout sidebar for order pages */

/* adds read more text truncation to the cart description */
.desc-truncate {
	display: -webkit-box;
	-webkit-line-clamp: 3; /* Show 3 lines then cut off */
	-webkit-box-orient: vertical;  
	overflow: hidden;
	transition: all 0.3s ease;
}
.desc-full {
	display: block; /* Shows everything */
}


/* replacement for swiper gallery */

.gallery-container .row {
    display: flex;
    flex-wrap: wrap; /* Allows stacking on mobile if needed */
    align-items: stretch; /* Forces columns to equal height */
}


/* 1. Make the main display responsive on Desktop too */
.main-display {
    width: 100% !important; /* Vital: Allows shrinking at tight widths like 1240px */
    max-width: 480px;      /* Keeps original size on large screens */
    height: auto;
    aspect-ratio: 4 / 3;    /* Maintains the 480x360 proportion automatically */
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* 2. Fix the images inside to match the new fluid width */
.main-display img {
    width: 100% !important; 
    height: 100% !important;
    flex-shrink: 0;
    scroll-snap-align: start;
    object-fit: cover;
}

/* 3. Make the thumb strip fluid as well */
.thumb-strip {
    width: 100% !important;
    max-width: 480px;
    display: flex;
    gap: 5px;
    margin-top: 10px;
    overflow-x: auto;
}

.thumb-strip img {
    width: 96px; /* These can stay fixed or use 20% to be fluid */
    height: 72px;
    object-fit: cover;
}

.thumb-strip img:hover {
    opacity: 1;
}

/* Hide scrollbar for main display */
.main-display::-webkit-scrollbar { display: none; }

@media (max-width: 991px) {
    /* 1. Scale the main display to the phone's width */
    .main-display {
        width: 100% !important; 
        height: auto !important;
        aspect-ratio: 4 / 3; /* Automatically maintains the 480x360 shape */
    }

    .main-display img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain; /* Ensures the whole image is visible */
    }

    /* 2. Scale the thumbnail strip to match */
    .thumb-strip {
        width: 100% !important;
        padding: 5px 0;
    }

    .thumb-strip img {
        width: 22% !important; /* Fits 4 thumbnails across nicely */
        height: auto !important;
        aspect-ratio: 4 / 3;
    }
}

/* end replacement for swiper gallery */


/* Begin Bronze feature text */
/* Container styling for a prestigious, centered look */
    /* Responsive Container */
/* Container styling for a prestigious, centered look */
    /* Responsive Container */
    .bronze-feature {
        width: 95%;
        max-width: 1200px;
        margin: 20px auto;
        /* Adjusts padding based on screen size */
        padding: clamp(20px, 5vw, 60px); 
        background: #ffffff; 
        color: #1a1512; 
        font-family: 'Garamond', Roboto, sans-serif;
        line-height: 1.6;
        border-top: 12px solid #4a3728;
        box-sizing: border-box;
    }

    /* Font sizes that "Clamp" between a minimum and maximum size */
    .bronze-feature h1 {
        /* Minimum 2rem, scales with width, Maximum 4rem */
        font-size: clamp(2rem, 8vw, 4rem); 
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 0.5em;
        color: #4a3728;
        text-transform: uppercase;
    }

    .bronze-feature p {
        font-size: clamp(1.8rem, 4.5vw, 2rem);
        margin-bottom: 1.5rem;
    }

    .bronze-feature h2 {
        font-size: clamp(1.4rem, 6vw, 3rem);
        margin-top: 2rem;
        color: #8c6d4f;
        border-bottom: 2px solid #eee;
        padding-bottom: 10px;
    }

    .bronze-feature ul {
        padding-left: 1.4rem;
    }

    .bronze-feature li {
        font-size: clamp(1.6rem, 4vw, 2rem);
        margin-bottom: 12px;
    }
	

    /* Mobile specific adjustments */
    @media (max-width: 600px) {
        .bronze-feature {
            margin: 10px auto;
            border-top-width: 8px; /* Slightly thinner bar on mobile */
        }
    }
/* end feature text */

.col-xs-16, .col-sm-16, .col-md-16, .col-lg-16 {position: relative; min-height: 1px; padding-right: 10px; padding-left: 10px}
.col-xs-16 {width: 20%; float: left}
@media (min-width:767px) {.col-sm-16 {width: 20%; float: left}}
@media (min-width:992px) {.col-md-16 {width: 20%; float: left} .col-md-32 {width: 40%; float: left}}
@media (min-width:1200px) {.col-lg-16 {width: 20%;float: left}}

@media (max-width: 767px) {
    
    /* Ensure the panel heading also loses its background and border */
    .panel-heading {
        background: transparent !important;
        border: none !important;
        padding-left: 0 !important;
    }
	
    /* 2. Force every label and input to its own full-width line */
    .col-xs-1, .col-xs-2, .col-xs-3, .col-xs-4, .col-xs-5, 
    .col-xs-6, .col-xs-7, .col-xs-8, .col-xs-9, .col-xs-10, 
    .col-xs-11, .col-xs-12 {
        width: 100% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        text-align: left !important;
    }

    /* 3. Make the text boxes big and touch-friendly */
    #line1, .form-control {
        width: 100% !important;
        height: 45px !important; /* Thicker for thumbs */
        font-size: 16px !important;
        margin-bottom: 10px;
    }

    /* 4. Fix the Qty box so it isn't a massive 100% wide bar */
    input[name^="qty"] {
        width: 80px !important;
        display: block !important;
    }
	.step-section { 
        padding-bottom: 20px; 
        margin-bottom: 20px; 
    }
	
	 /* Ensure the group takes full width */
    .input-group { width: 100% !important; display: flex !important; }
    
    /* Make the dropdown and the button the same height */
    .input-group .form-control { flex: 1; height: 45px !important; }
    
    .input-group-btn { width: auto !important; }
    
    .input-group-btn .btn { 
        height: 45px !important; 
        padding: 0 15px !important; 
        line-height: 45px !important;
    }
	h4[id^="step"] { 
        margin-top: 10px !important;
        padding-left: 5px;
    }
	
	   /* 1. Add a clean "separator" line under each step */
    .panel-default {
        border-bottom: 2px solid #eeeeee !important; /* Subtle architectural line */
        padding-bottom: 15px !important;
        margin-bottom: 20px !important;
        /* Ensure no side borders are "ghosting" back in */
        border-left: none !important;
        border-right: none !important;
        border-top: none !important;
    }

    /* 2. Optional: Give the step numbers (1, 2, 3) a tiny bit of space */
    .panel-heading {
        margin-bottom: 5px !important;
    }
	
	/* 1. Add a subtle "Zone" tint to every other step */
    .panel-default:nth-child(even) {
        background-color: #fdfdfd !important; /* Extremely faint grey */
    }

    /* 2. Make the Step Bubbles (1, 2, 3) really stand out */
    .panel-heading {
        border-left: 4px solid #d9534f !important; /* Brand Red accent line */
        padding-left: 10px !important;
        margin-bottom: 15px !important;
        background: #f8f8f8 !important; /* Light header bar */
    }

    /* 3. Add a "Soft Shadow" to the inputs so they don't look flat */
    .form-control, .input-group-btn .btn {
        box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
        border-color: #ccc !important;
    }

    /* 4. Use your 'cell-outline' logic as a bottom-only "Architectural" line */
    .cell-outline {
        border-bottom: 3px solid #d1d1d1 !important; 
        padding-bottom: 20px !important;
    }
}


/* shopping cart icon with bubble */
.cart-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

/* 2. The Icon Size */
.cart-icon-wrapper .fa-shopping-cart {
    font-size: 26px;
    color: #000;
}

/* 3. The Red Badge */
.cart-icon-wrapper:after {
    /* Pull number from the wrapper's 'value' attribute */
    content: attr(value);
    
    /* Force standard text font so the number actually appears */
    font-family: Arial, sans-serif !important;
    
    position: absolute;
    top: -12px;
    right: -12px;
    background: #ff0000;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    width: 22px;
    height: 22px;
    line-height: 22px; /* Centers number vertically */
    text-align: center;
    border-radius: 50%;
    border: 1px solid #000;
    z-index: 2;
}

/* 1. Nudge the whole group down (Icon + Badge) */
.cart-btn-icon-wrapper {
    position: relative;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}
.cart-btn-icon-wrapper .fa-shopping-cart {
    font-size: 16px;
    color: #000;
	margin:-5px;
	padding:0;
}

/* 3. The Red Badge Adjustment */
.cart-btn-icon-wrapper:after {
    content: attr(value);
    font-family: Arial, sans-serif !important;
    position: absolute;
    top: -8px;    /* CHANGE THIS from -12px to -8px: Brings badge closer to icon */
    right: -20px;  /* CHANGE THIS from -12px to -10px: Keeps it tight to the side */
    background: #ff0000;
    color: #ffffff;
    font-size: 14px; /* SLIGHT REDUCTION: Fits better on smaller icons */
    font-weight: bold;
    width: 20px;     /* SLIGHT REDUCTION */
    height: 18px;    /* SLIGHT REDUCTION */
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
    border: 1px solid #000;
    z-index: 2;
}

/* end cart icon css */

/* Force the Modal and Backdrop to the very top layer */
.modal { 
    z-index: 200000 !important; 
}

.modal-backdrop { 
    z-index: 199099 !important; 
}

/* Ensure the sidebar cart doesn't "ghost" through on mobile */
body.modal-open .sidebar, 
body.modal-open .sidebar-overlay {
    display: none !important;
}

@media (max-width: 767px) {
  h1 { font-size: 24px !important; }
  h2 { font-size: 20px !important; }
  h3 { font-size: 16px !important; }
  h4 { font-size: 12px !important; }

  /* Center everything and safely reset columns on mobile */
  .col-xs-3, .col-xs-6 {
    float: none !important;
    clear: both !important;        /* Forces the column to sit BELOW any previous content */
    width: 100% !important;
    display: inline-block !important; /* Ensures the browser calculates real height boundaries */
    text-align: center !important;
    position: relative !important; /* Keeps its stacking context isolated and predictable */
  }
}

/* The Flash Class that triggers the animation */
.flash-highlight {
    animation: pulseBorder 0.5s ease-in-out 3; /* 0.5 seconds per flash, repeats 3 times */
}

/* The actual animation instructions */
@keyframes pulseBorder {
    0% { border-color: #ddd; box-shadow: none; }
    /* FIXED: !important forces the browser to paint it red regardless of Bootstrap overrides */
    50% { border-color: #d9534f !important; box-shadow: 0 0 10px rgba(217, 83, 79, 0.7) !important; } 
    100% { border-color: #ddd; box-shadow: none; }
}

/* wsmenu mobile */
@media (max-width: 767px) {
  /* Targets the main layout container directly beneath your top navbar */
  .container.main-content, 
  body > .container, 
  main, 
  #content {
    /* Pushes your "Shopping Cart" title down so it clears the expanded header */
    margin-top: 175px !important; 
  }
}

/* Target mobile screens only (Bootstrap 3 mobile/tablet breakpoint) */
@media (max-width: 991px) {
    .wsmenu .wsmenu-list > li {
        margin-bottom: 12px; /* Adds space below each menu item */
    }
    
    /* Optional: If you want to increase the clickable padding inside the links instead */
    .wsmenu .wsmenu-list > li > a {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
}