@font-face {
	font-family: 'Capsuula';
	src: url('fonts/Capsuula-webfont.eot');
	src: url('fonts/Capsuula-webfont.eot?#iefix') format('embedded-opentype'),
		 url('fonts/Capsuula-webfont.woff') format('woff'),
		 url('fonts/Capsuula-webfont.ttf') format('truetype'),
		 url('fonts/Capsuula-webfont.svg#CapsuulaRegular') format('svg');
	font-weight: normal;
	font-style: normal;
}

* { margin: 0; padding: 0; }

body { font-family: 'Inter', sans-serif; background: url('images/bg-pattern.png'); color: #563900; letter-spacing: .5px; }

p { font-size: 16px; line-height: 22px; margin-bottom: 15px; /* font-family: 'Helvetica'; */ }

h1 { font-size: 22px; font-weight: normal; margin-bottom: 10px; font-weight: bold; }

input[type="text"] { border: 1px solid #c7c7c7; padding: 2px 4px; 
	-webkit-box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, .3); box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, .2); 
}

#main-container { width: auto; background-color: #fff; margin: 0 auto 10px; overflow: hidden; }

#top-nav { background-color: #6f6145; height: 48px; border-bottom: 5px solid #b5ad9e; }

	#lang-selector { color: #fff; text-align: center; font-weight: normal; font-size: 14px; width: 75px; padding-top: 3px; font-family: 'Inter', sans-serif; float: left; margin-left: 5px; }
	
		#lang-selector a { color: #cdc9c3; text-decoration: none; display: inline-block; padding: 0 6px; border-radius: 5px; }
		#lang-selector a.active { background-color: #392600; color: #fff; font-weight: bold; }

	#main-nav { float: right; margin-right: 70px; }
	
		#main-nav li { display: inline; }
		#main-nav li a { font-size: 20px; font-weight: bold; color: #fff; text-decoration: none; display: inline-block; padding: 10px 25px 0; height: 43px; font-family: 'Inter', sans-serif; }
		#main-nav li a.active, #main-nav li a:hover { background: rgba(0,0,0,.25); }
		
#under-top-nav { 
    height: 97px; 
    background: url('images/horse-graphic.png') 355px 0 no-repeat; 
    padding: 0 70px; 
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
}

#logo { 
    font-size: 40px; 
    text-decoration: none; 
    color: #563900; 
    display: inline-block; 
    width: 320px; 
    padding-top: 20px; 
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
}

	#logo .small { font-size: 20px; }
	
#social-links { 
    display: inline-block; 
    width: 110px; 
    padding-top: 50px; 
    flex-shrink: 0;
}

	#social-fb { display: inline-block; width: 24px; height: 24px; background-image: url('images/fb.png'); text-indent: -9999px; }
	
/* Header buttons container - Correct order: Search, View Cart, Discount */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}

#search-holder { 
    margin: 0;
    display: flex;
    align-items: center;
}

	#search { 
        height: 28px; 
        width: 200px; 
        margin-right: 5px; 
        vertical-align: top; 
    }
	
	#search-button { 
        background-image: url('images/search-button.png'); 
        display: inline-block; 
        width: 78px; 
        height: 33px; 
        border: 0; 
        vertical-align: top;
    }
		#search-button:hover { cursor: pointer; }

.view-cart-button {
    margin: 0;
    display: flex;
    align-items: center;
}

.view-cart-button form {
    margin: 0;
    padding: 0;
}

#extras { 
    margin: 0;
    display: flex;
    align-items: center;
}
#mid-nav { background: url('images/mid-nav-bg.png') repeat-x; margin-bottom: 16px; color: #fff; font-size: 18px; }
	
	#mid-nav-holder { height: 59px; background-color: rgba(119, 98, 57, .6); width: 820px; margin: 0 auto; }
	
	#mid-nav h2 { width: 225px; float: left; height: 44px; padding-top: 15px; text-align: center; font-size: 16px; font-family: 'Inter', sans-serif; }
	
	#categories li { display: inline-block; padding-bottom: 12px; position: relative; }
		#categories li:hover, #categories li.active { background: url('images/mid-nav-pointer.png') bottom center no-repeat; }
	
		#categories li a { display: inline-block; height: 44px; padding: 15px 25px 0; color: #fff; text-decoration: none; font-weight: bold; font-size: 16px; font-family: 'Inter', sans-serif; }
			#categories li:hover a, #categories li.active a { background: #5e481d; }
			
			#categories .sub-categories { position: absolute; z-index: 100; width: 200px; display: none; }
				#categories li:hover .sub-categories { display: block; }
				#categories .sub-categories li { display: block; padding: 0; font-size: 13px; }
				#categories .sub-categories li a { display: block; width: 100%; padding: 10px; height: auto; font-size: 13px; }
					#categories .sub-categories li a:hover { color: #ccc; }
					#categories li .sub-categories li.active a { background-color: #948260; }

#code-input { font-size: 16px; }

#content { padding: 0 22px 23px; min-height: 600px; }	

	/* #content h1, #content h2, #content h3, #content h4, #content h5, #content h6 { font-family: 'Helvetica'; } */

	#slider { height: 250px; margin-bottom: 20px; }

	/* Centered Featured Display - 4 items per row */
#featured-display { 
    background: url('images/column-bg.png') top left repeat-x; 
    overflow: hidden; 
    margin: 40px auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1400px;
    padding: 0 20px;
}

.column-4 { 
    padding: 0 10px; 
    width: 280px; 
    float: none;
    flex: 1;
    min-width: 280px;
    max-width: 300px;
    text-align: center;
    margin-bottom: 30px;
}

/* Center the text in columns */
.column-4 p {
    text-align: center;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 280px;
    font-size: 15px;
}
	
#footer { text-align: center; }
	
.drop-shadow { -webkit-box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, .5); box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, .5); }

.image-display { width: 280px; height: 250px; margin: 0 auto 25px; position: relative; }

.display-text { position: absolute; bottom: 0; height: 50px; background: rgba(0,0,0,.5); width: 260px; color: #fff; text-decoration: none; font-size: 20px; padding: 12px 15px 0; font-weight: bold; 
	-webkit-box-shadow: inset 0px 0px 20px 5px rgba(0, 0, 0, 1); box-shadow: inset 0px 0px 15px 3px rgba(0, 0, 0, .4); 
    font-family: 'Inter', sans-serif;
}
	.display-text.compact { font-size: 18px; line-height: 22px; padding-top: 8px; padding-bottom: 3px; }
	
.product-line { overflow: hidden; margin-bottom: 30px; }

	.product-line .img { float: left; overflow: hidden; margin-right: 15px; }
	
	.product-line ul li { list-style: none; }
	
.error, .alert { color: #a00; text-decoration: none; }

.carousel-inner>.item>a>img, .carousel-inner>.item>img, .img-responsive, .thumbnail a>img, .thumbnail>img{ width:-webkit-fill-available !important;}

/* ===== TABLET BREAKPOINT (1080px and below) ===== */
@media (max-width: 1080px) {
    /* Reduce padding and adjust layout for tablets */
    #under-top-nav { 
        padding: 0 40px; 
    }
    
    /* Compact header buttons for tablet */
    .header-buttons {
        gap: 8px;
    }
    
    #search { 
        width: 160px; 
    }
    
    #search-button { 
        width: 65px;
    }
    
    /* Make buttons smaller */
    .view-cart-button form input[type="image"],
    #extras img {
        max-height: 30px;
        width: auto;
    }
    
    /* Adjust logo size */
    #logo { 
        font-size: 35px; 
        width: 280px; 
        padding-top: 25px;
    }
    
    #logo .small { font-size: 16px; }
    
    /* Adjust navigation */
    #main-nav { 
        margin-right: 40px; 
    }
    
    #main-nav li a { 
        padding: 10px 20px 0; 
        font-size: 18px;
    }
}

/* ===== MOBILE BREAKPOINT - 768px and below ===== */
@media (max-width: 768px) {
	/* Header adjustments */
	#under-top-nav { 
		height: auto; 
		padding: 15px 20px; 
		text-align: center;
		display: block;
	}
	
	#logo { 
		float: none; 
		width: 100%; 
		text-align: center; 
		padding-top: 10px;
		font-size: 35px;
		display: block;
	}
	
	#social-links { 
		float: none; 
		width: 100%; 
		padding-top: 15px; 
		text-align: center;
		display: block;
	}
	
	/* HEADER BUTTONS - RIGHT ALIGN FOR MOBILE */
	.header-buttons {
		display: flex;
		justify-content: flex-end;
		align-items: center;
		gap: 8px;
		margin: 15px auto;
		width: 100%;
		padding-left: 20px;
	}
	
	/* Make search box smaller on mobile */
	#search { 
		width: 150px; 
		height: 30px;
		font-size: 14px;
	}
	
	#search-button { 
		width: 60px;
		height: 30px;
		background-size: cover;
	}
	
	/* Make buttons smaller for mobile */
	.view-cart-button form input[type="image"],
	#extras img {
		max-height: 30px;
		width: auto;
	}
	
	/* Navigation adjustments */
	#mid-nav-holder { width: 95%; }
	
	#mid-nav h2 { 
		width: 100%; 
		float: none; 
		padding-top: 10px;
		font-size: 16px;
	}
	
	#categories li { display: block; text-align: center; }
	
	/* Featured Display - 2x2 grid */
	#featured-display {
		max-width: 700px;
		gap: 15px;
		padding: 0 15px;
	}
	
	.column-4 {
		min-width: calc(50% - 15px);
		max-width: calc(50% - 15px);
		flex: 0 0 calc(50% - 15px);
		margin-bottom: 20px;
	}
	
	.image-display {
		width: 100%;
		height: 200px;
	}
	
	.display-text {
		width: 90%;
		font-size: 18px;
		height: 45px;
		padding: 10px 15px 0;
	}
	
	.display-text.compact {
		font-size: 16px;
		line-height: 20px;
	}
	
	.column-4 p {
		font-size: 14px;
		padding: 0 10px;
		line-height: 1.5;
		max-width: 100%;
	}
	
	/* Top Nav Mobile */
	#top-nav { height: auto; padding: 10px 0; }
	
	#lang-selector { 
		float: none; 
		width: 100%; 
		margin: 0; 
		padding: 5px 0;
		font-size: 13px;
	}
	
	#main-nav { 
		float: none; 
		margin: 10px 0 0 0; 
		text-align: center;
	}
	
	#main-nav li a { 
		padding: 8px 15px; 
		height: auto; 
		font-size: 15px;
	}
}

/* ===== SMALL MOBILE PHONES - 480px and below ===== */
@media (max-width: 480px) {
	body { font-size: 15px; }
	
	p { font-size: 15px; line-height: 20px; }
	
	h1 { font-size: 18px; }
	
	#under-top-nav { padding: 10px 15px; }
	
	#logo { font-size: 30px; }
	
	#logo .small { font-size: 16px; }
	
	/* Even more compact for small phones */
	.header-buttons {
		gap: 5px;
		padding-left: 15px;
	}
	
	#search { 
		width: 130px; 
		height: 28px;
		font-size: 13px;
	}
	
	#search-button { 
		width: 50px;
		height: 28px;
	}
	
	.view-cart-button form input[type="image"],
	#extras img {
		max-height: 28px;
	}
	
	#mid-nav { font-size: 15px; margin-bottom: 10px; }
	
	#mid-nav h2 { font-size: 15px; padding-top: 8px; }
	
	#categories li a { padding: 10px 15px 0; font-size: 13px; }
	
	#featured-display {
		margin: 20px auto;
		padding: 0 10px;
		gap: 20px;
	}
	
	.column-4 {
		min-width: calc(50% - 10px);
		max-width: calc(50% - 10px);
	}
	
	.image-display {
		height: 180px;
	}
	logo
	.display-text {
		font-size: 14px;
		height: 40px;
		padding: 8px 15px 0;
	}
	
	.display-text.compact {
		font-size: 14px;
		line-height: 18px;
	}
	
	#main-nav li a { 
		padding: 6px 10px; 
		font-size: 13px;
		display: block;
		margin: 2px 0;
	}
	
	#content { padding: 0 15px 15px; min-height: 400px; }
}