/* Basic Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Georgia', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Navigation Bar */
header {
	color: #2D1D1B;
  background-color: #FDA322;
	padding:  15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	font-size: 21px;
	font-weight: bold;
  color: white;
  text-align: left;
}

.logo-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header-icons {
	display: flex;
    align-items: center;
	gap: 15px;
}

.hamburger-menu {
	color: white;
	font-size: 35px;
	cursor: pointer;
	user-select: none;
	margin: 0 auto;
	transition: transform 0.2s ease; 
}

.hamburger-menu:hover {
	transform: scale(1.2);
}

@media (max-width: 600px) {
    .logo-group .logo-image {
    display: none;
  }
}

/* Sidebar Navigation */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  background-color: #FDA322;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  display: flex;
  flex-direction: column;
}

.sidenav a {
  padding: 14px 8px 14px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #ffffff;
  display: block;
  transition: 0.3s;
  margin: 0 18px;
}

.sidenav a:not(.closebtn) {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.28);
}

.sidenav a:hover {
	color: #af7e4d;
}

.sidenav .closebtn {
  position: absolute;
  top: 0;
  right: 0px;
  font-size: 36px;
  margin-left: 50px;
}

.sidenav-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: auto; 
	padding-bottom: 10px;
	max-width: fit-content;
}


/* Button Styles */
.button {
	font-size: 12px;
  border-color: white;
  border-style: solid;
  border-width: 2px;
	padding: 10px 10px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
  color: white;
}

.logo-image {
    height: 40px;
    width: 50px;
    padding-left: 5px;
    padding-right: 5px;
	cursor: pointer;
}

.svg-icon {
	width: 20px;
	height: 20px;
	vertical-align: middle;
	cursor: pointer;
	transition: transform 0.2s ease; 
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.svg-icon:hover {
	transform: scale(1.2); 
}

.search-icon {
	width: 20px;
	height: 20px;
	vertical-align: middle;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.search-icon:hover {
	transform: scale(1.2);
}

/* Main Content Area */
main {
	background-color: #f4f7f6;
	min-height: 80vh;
	flex: 1;
}

.story-main {
	margin-top: 0%;
	padding-top: 0;
	padding-bottom: 0;
}

h2 {
	text-align: center;
	margin-bottom: 30px;
	color: #333;
}

/* Product Grid Layout */
.product-grid {
	align-items: center;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 60px;
	max-width: 1300px;
	margin: 0 auto;
	width: 100%;
	padding: 20px;
}

/* Individual Product Card */
.product-card {
	padding: 20px;
	text-align: center;
	min-width: 20px;
	max-width: 350px;
	height: 80%;
	transition: transform 0.2s ease;
	margin: 0 auto;
}

.product-card:hover {
	transform: translateY(-5px);
    cursor: pointer;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

.product-image {
	width: 300px;
	height: 300px;
	background-color: #e0e0e0;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #777;
	font-size: 14px;
}

.product-title {
	font-size: 20px;
	color: #333;
	margin-bottom: 10px;
}

.product-price {
	font-size: 16px;
	color: black;
	margin-bottom: 15px;
}

.add-to-cart-btn {
	background-color: #FDA322;
	color: white;
	border: none;
    display: block;
	padding: 10px 20px;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
	width: 40%;
	transition: background-color 0.2s;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}

.add-to-cart-btn:hover {
	background-color: #c37911;
}

/* Footer */
footer {
	color: white;
    background-color: #FDA322;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
}

.footer-icons {
	display: flex;
	gap: 15px;
}

/* Story Section */
.story-section-text {
	text-align: center;
	width: 100%;
	color: white;
	margin: 0 auto;
}



.story-section-image {
	background-image:
        linear-gradient(rgba(27, 21, 21, 0.8), rgba(92, 75, 75, 0.8)),
        url("images/background_bread.png");
	width: 100%;
	padding: 60px;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.story-section-image h1,
.story-section-image p {
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

/* Headline and Sub-headline Styles */
.headline-text {
	font-size: 40px;
	padding-top : 20px;
}

.sub-headline-text {
	font-size: 30px;
	padding-top : 40px;
    padding-left: 20px;
    padding-right: 20px;
    margin: auto;
    align-content: center;
}



.headline_descrip {
	font-size: 20px;
	line-height: 1.2;		
}

/*Button Styles for View Products Button*/
.view-products-btn {
	background-color: #FDA322;
	color: white;
	border: none;
	padding: 10px 20px;
	max-width: 200px;
	font-size: 16px;
	border-radius: 5px;
	cursor: pointer;
	width: 80%;
	transition: background-color 0.2s;
}

.view-products-btn:hover {
	background-color: #c37911;
}

/* Shopping Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.cart-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-cart {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-cart:hover {
    color: #333;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    color: #333;
}

.remove-btn {
    background-color: #ff4c4c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
}

.remove-btn:hover {
    background-color: #d43f3f;
}

.cart-total {
    text-align: right;
    font-size: 18px;
    margin-top: 15px;
    color: #333;
}

.checkout-btn {
    background-color: #FDA322;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.checkout-btn:hover {
    background-color: #c37911;
}

.headline-modal {
	padding-top: 5px;
}
/* Search Modal Styles */
.search-modal {
	display: none;
	position: fixed;
	z-index: 999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0,0,0,0.5);
}

.search-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-search {
	 color: #aaa;
	float: right;
	font-size: 28px;
	font-weight: bold;
	cursor: pointer;
}

.close-search:hover {
	color: #000000;
}

.search-input {
    display: block;
    width: 90%;
    max-width: 400px;
    margin: 0 auto;
	padding: 10px;
	border: 1px solid;
	font-size: 14px;
}

/* Product Details Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.product-content {
    background-color: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.close-product {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-product:hover {
    color: #333;
}




/* Quantity Control Styles */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-btn {
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: #ddd;
}

.remove-btn {
    background-color: #ff4c4c;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    margin-left: 5px;
}

.remove-btn:hover {
    background-color: #d43f3f;
}

#cart-count {
    position: absolute;
    top: -1px;
    right: -3px;
    width: 10px;
    height: 10px;
    background-color: #ff4c4c;
    border-radius: 50%;
    font-size: 0;
    pointer-events: none;
}

/* Toast Notification Styles */
.toast {
    visibility: hidden;
    min-width: 250px;
    background-color: #FDA322;
    color: white;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 16px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
    font-weight: bold;
}

.toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}


