:root {
	--primary-color: #B8860B; 
	--secondary-color: #FFFACD; 
	--background-color: #3D251E; 
	--surface-color: #4F332C; 
	--text-color: #F0F0F0; 
	--gray-text-color: #D3CBB3; 
	--outline-color: #3D251E; 
	--active-gold-color: #B8860B; 
	--dynamic-bg-url: none; 
}

body {
	font-family: 'Inter', 'Noto Sans JP', sans-serif;
	background-color: var(--background-color); 
	margin: 0;
	padding: 0;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	color: #F0F0F0;
	display: flex;
  	flex-direction: column;
  	height: 100%;
}

html {
  height: 100%;
}

main {
  flex: 1;
}

.container {
	max-width: 1312px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.main-content {
	position: relative;
}

.header {
	background-color: var(--surface-color);
	box-shadow: none; 
	border-bottom: 1px solid var(--primary-color); 
	padding: 0.7rem 0;
	position: relative;
	z-index: 50;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.header-logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: var(--primary-color); 
}

.logo-text {
	font-size: 0.875rem;
	font-weight: 700;
}
.logo-text:hover{
	color: white;
}

.nav-links {
	display: flex;
	align-items: center;
	gap: 1.5rem; 
}

.nav-links a {
	font-size: 0.875rem;
	color: var(--gray-text-color);
	text-decoration: none;
	transition: color 0.2s ease-in-out;
}

.nav-links a:hover {
	color: var(--primary-color); 
}

.hamburger-button {
	display: none;
	cursor: pointer;
	flex-direction: column;
	justify-content: space-between;
	width: 24px;
	height: 20px;
	background: transparent;
	border: none;
	padding: 0;
}

.hamburger-line {
	display: block;
	width: 100%;
	height: 2px;
	background-color: var(--primary-color); 
	transition: all 0.3s ease-in-out;
}

.mobile-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: var(--surface-color);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
	padding: 1rem;
	flex-direction: column;
	gap: 1rem;
	transform: translateX(-100%);
	transition: transform 0.3s ease-in-out;
	z-index: 40;
}

.mobile-nav a {
	font-size: 1rem;
	color: var(--text-color);
	text-decoration: none;
	padding: 0.5rem 0;
	border-bottom: 1px solid #63433C; 
}

.mobile-nav a:hover {
	color: var(--primary-color);
}

@media (max-width: 960px) {
	/* .nav-links {
		display: none;
	}
	.hamburger-button {
		display: flex;
	}
	.mobile-nav.open {
		display: flex;
	} */
}

.title-section {
	text-align: center;
	/* padding: 2.8rem 1rem; */
	position: relative; 
	z-index: 10;
	background-image: none;
	background-color: var(--background-color); 
	
	overflow: hidden; 
}
.title-section img{
	width: 100%;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	max-height: 145px;
}
.title-section .title-image-src{
	position: absolute;
	top: 50%;
	left:50%;
	transform: translate(-50%,-50%);

}
.dynamic-title .title-sub-text{
	font-size: 1.2rem;
	color: var(--gray-text-color);
	font-weight: 400;
	/* margin-left: 25px; */
}
/* .title-section::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1; 
	
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	
	transform: scale(1.05); 
	
	background-color: var(--background-color);
} */

.title-section.has-image::before {
	background-image: var(--dynamic-bg-url); 
}

.title-section.has-image .title {
	display: none; 
}

.title {
	font-size: 2.75rem; 
	font-weight: 800;
	color: var(--text-color); 
	line-height: 1.25;
	margin-bottom: 0.5rem;
	position: relative;
	z-index: 2; 
	text-shadow: 
		-3px -3px 0 var(--outline-color),  
		3px -3px 0 var(--outline-color),   
		-3px 3px 0 var(--outline-color),   
		3px 3px 0 var(--outline-color),    
		-3px 0 0 var(--outline-color),     
		3px 0 0 var(--outline-color),      
		0 -3px 0 var(--outline-color),     
		0 3px 0 var(--outline-color);      
}

.title .m-mart-text {
	color: var(--secondary-color); 
}

.title-gradient {
	color: var(--text-color); 
}

.title-gradient.all-active {
	color: var(--active-gold-color) !important;
}

#custom-title-image {
	position: relative;
	z-index: 2;
	margin: 0 auto; 
	display: inline-block; 
	margin-bottom: 0.5rem; 
}

#custom-title-image img {
	width: auto; 
	height: auto; 
	display: block;
	margin: 0 auto;
}

.subtitle {
	font-size: 1.5rem;
	color: var(--gray-text-color);
	margin-bottom: 0;
	position: relative;
	z-index: 2; 
	text-shadow: 
		-2px -2px 0 var(--outline-color),  
		2px -2px 0 var(--outline-color),   
		-2px 2px 0 var(--outline-color),   
		2px 2px 0 var(--outline-color),    
		-2px 0 0 var(--outline-color),     
		2px 0 0 var(--outline-color),      
		0 -2px 0 var(--outline-color),     
		0 2px 0 var(--outline-color);      
}

#dynamic-title-section {
	margin-top: 24px;
	margin-bottom: 1rem;
	padding:0.1rem 1rem 0.3rem;
	z-index: 20; 
	position: relative; 
}

.dynamic-title {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--primary-color);
	margin-bottom: 1.5rem;
	border-left: 6px solid var(--primary-color);
	padding-left: 1rem;
	text-align: left;
	border-bottom: 1px solid var(--primary-color);
	padding-bottom: 0.5rem;
	display: flex;
	align-items: baseline;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.dynamic-feature-text {
	font-size: 1rem;
	color: var(--gray-text-color); 
	margin-top: 0.5rem;
	margin-bottom: 1.5rem;
	padding-left: 1rem; 
}
#category-main-title{
	line-height: 1.5em;
}

.category-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.875rem;
	margin-top: 1rem; 
	justify-content: flex-start;
	padding-bottom: 0; 
}

.category-nav a {
	background-color: #5C4139; 
	color: var(--text-color);
	padding: 0.5rem 1rem;
	border-radius: 0; 
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.category-nav a:hover,
.category-nav a.active {
	background-color: var(--primary-color);
	color: var(--background-color); 
}


.dynamic-category-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem; 
	font-size: 0.875rem;
	margin-top: 0.75rem; 
	justify-content: flex-start;
	padding-bottom: 0; 
}

.dynamic-category-nav a {
	background-color: #5C4139; 
	color: var(--text-color);
	padding: 0.5rem 1rem;
	border-radius: 0; 
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.dynamic-category-nav a:hover,
.dynamic-category-nav a.active {
	background-color: var(--primary-color);
	color: var(--background-color); 
}

.search-section {
	background-color: var(--surface-color);
	border-radius: 0; 
	border: 1px solid #63433C; 
	box-shadow: 0 0 15px rgba(184, 134, 11, 0.2); 
	padding: 1.5rem;
	margin-bottom: 2rem;
	z-index: 10; 
	position: relative; 
}

.search-box {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-bottom: 0; 
}

.search-input {
	flex: 1;
	padding: 0.5rem 1rem;
	border-radius: 0; 
	background-color: #5C4139; 
	color: var(--text-color); 
	border: 1px solid #63433C;
	outline: none;
	transition: all 0.2s ease-in-out;
}

.search-input:focus {
	border-color: transparent;
	box-shadow: 0 0 0 2px var(--primary-color); 
}

.search-button {
	background-color: var(--primary-color); 
	color: var(--background-color); 
	font-weight: 700;
	padding: 0.5rem 1.5rem;
	border-radius: 0; 
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	transition: background-color 0.2s ease-in-out;
	cursor: pointer;
	border: none;
}

.search-button:hover {
	background-color: #DDAA0C; 
}

.pagination-top,
.pagination-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
	color: var(--gray-text-color);
}

.pagination-top span,
.pagination-bottom span {
	font-size: 1.125rem; 
	color: var(--primary-color); 
	font-weight: 600;
}

.pagination-bottom {
	margin-top: 2rem;
}

.pagination-buttons {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.page-button {
	width: 2rem;
	height: 2rem;
	border-radius: 0; 
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
	border: 1px solid #63433C; 
	background-color: var(--surface-color);
	color: var(--gray-text-color); 
}

.page-button-current {
	background-color: var(--primary-color);
	color: var(--background-color); 
	border-color: var(--primary-color);
}

.page-button:hover:not(.page-button-current) {
	background-color: #5C4139;
	color: var(--primary-color); 
}

.page-button-disabled {
	background-color: #4F332C; 
	color: #63433C;
	cursor: not-allowed;
	border-color: #4F332C;
}

.page-button-disabled svg {
	color: #63433C;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
}

@media (min-width: 640px) {
	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.product-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.product-card {
	display: block;
	background-color: var(--surface-color);
	border-radius: 0; 
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); 
	border: 1px solid transparent; 
	overflow: hidden;
	text-decoration: none;
	transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
}

.product-card:hover {
	transform: translateY(-5px); 
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.6), 0 0 10px var(--primary-color); 
	border-color: var(--primary-color);
}

.product-image-container {
	position: relative;
	width: 100%;
	padding-top: 100%; 
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.product-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.product-info {
	padding: 0.75rem 1rem; 
	min-height: 222px;
}

.product-title {
	color: var(--text-color);
	font-weight: 700;
	font-size: 1.3rem; 
	line-height: 1.3; 
	margin-bottom: 0.8rem; 
	margin-top: 1.3rem; 
	min-height: 57px;
}

.product-id {
	font-size: 1rem; 
	color: var(--gray-text-color); 
	margin-bottom: 0.05rem; 
	font-weight: 400;
	line-height: 1.2; 
}

.product-id-number {
	color: var(--text-color); 
	font-weight: 500;
}

.product-price {
	color: var(--primary-color); 
	font-weight: 800;
	font-size: 1.8rem; 
	line-height: 1.1; 
	margin-bottom: 1.5rem; 
	margin-top: 1.3rem; 
	display: flex;
	align-items: baseline;
}

.price-yen {
	font-size: 0.7em;
	font-weight: normal;
	line-height: 1; 
	padding-bottom: 0.1em;
}

.price-unit {
	font-size: 0.5em; 
	color: var(--gray-text-color);
	margin-left: 0.25rem;
	line-height: 1;
	padding-bottom: 0.1em;
}

.product-lot {
	font-size: 1rem; 
	color: var(--gray-text-color);
	line-height: 1.2; 
	margin-bottom: 0.05rem; 
}


.footer {
	background-color: var(--surface-color);
	text-align: center;
	padding: 1.5rem 0; 
	font-size: 0.875rem;
	color: var(--gray-text-color);
	border-top: 1px solid var(--primary-color); 
}

/* Back to Top */
#myBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    outline: none; /* Remove outline */
    cursor: pointer; /* Add a mouse pointer on hover */
    font-size: 18px; /* Increase font size */
	opacity: 0.5;
}

/* Css Customer */
.home-width{
	max-width: 1280px;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}
.home-width.cart a ,
.home-width.cart-card a,
.home-width.cart-done a {
	color: var(--primary-color);
}
.home-width.cart .breadcrumb-item,
.home-width.cart-card .breadcrumb-item,
.home-width.cart-done .breadcrumb-item{
	color: #fff;
}
.home-width.cart .breadcrumb-item + .breadcrumb-item::before, .home-width.cart-card .breadcrumb-item + .breadcrumb-item::before{
	color: #fff;
}
.home-width.cart .cart-border,
.home-width.cart-card .cart-border,
.home-width.cart-done .cart-border{
	border-bottom-color: var(--primary-color) !important;
}
.text-primary-s{
	color: var(--primary-color);
}
.navbar-dark .navbar-toggler-icon {
	background-image: url("data:image/svg+xml;charset=utf8,<svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'><path stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>");
}


/* .mySwiper .swiper-slide,
.mySwiper2 .swiper-slide {
  max-width: 100% !important;
  flex-shrink: 0;
} */

@media(min-width: 1200px){
	.banner-img{
		min-height: 145px;
	}
}

/* < 992px (tablet) */
@media (max-width: 1200px) {
   .home-width{
        width: auto;
    }
    .top-header .mass{
        justify-content: center !important;
    }
    .main-header{
        margin-top: 15px;
    }
    .main-header .mm-logo{
        margin-right: 10px;
    }

    .main-header .mm-logo img{
        width: 80px;
    }

    .main-header .des-header{
        font-size: 1em !important;
        white-space: nowrap;
    }
    .main-header .btn{
        padding: 5px;
    }

    /* Home List item */
    .homepage-item-list-width .list-item{
        gap: 10px !important;
    }
    .image-wrapper{
        height: 280px;
    }
    .product-title, .product-price{
        font-size: 14px;
    }

     /* item detail */
     .image-thums .swiper-slide img{
        width: 100%;
        height: 100%;
     }
	.title-section img {
		width: fit-content;
	}
	.title-image-src{
		width: 80% !important;
	}
	.title-image-src img {
		width: 100% !important;
		height: 100% !important;
	}
}

@media (max-width: 1060px) {
	.container {
		padding: 0 10px;
	}
	.product-title {
        font-size: 16px;
	}
	.product-price{
        font-size: 16px;
    }
	.price-unit {
		font-size: 14px;
	}
	.product-grid {
		gap: 0.8rem;
	}
}

/* < 768px (tablet, mobile) */
@media (max-width: 768px) {
	.logo-image {
		height: 1.5rem;
	}
	.logo-text {
		font-size: 0.8rem;
	}
	h1.title {
		font-size: 1.3rem;
	}
	.dynamic-title {
		font-size: 1.5rem;
	}
	.product-grid {
		gap: 0.4rem;
	}
	.product-card {
		border-radius: 0.5rem;
	}
	.container {
		padding: 0 8px;
	}
    .top-header > .home-width{
        flex-direction: column !important;
        text-align: center;
    }
    .top-header > .home-width >div:last-child{
        margin-top: 8px;
    }
    .header-wrapper{
        padding: 10px !important;
    }
    .header-wrapper .header-btn-custom{
        font-size: 14px;
        padding: 10px 5px;
    }
    .header-wrapper .mass{
        justify-content: center !important;
    }
    .main-header{
        flex-direction: column;
        justify-content: center !important;
        align-items: center !important;
    }
    .main-header .des-header{
        margin: 10px 0 !important;
    }
    .homepage-item-list-width >.p-3{
        padding: 0 !important;
        font-size: 12px;
        padding-bottom: 10px !important;
    }
    .homepage-item-list-width .pager a{
        padding: 2px;
    }

    /* Home List item */
    .homepage-item-list-width .list-item{
        gap: 8px !important;
    }
    .image-wrapper{
        height: 130px;
    }
	.product-title-outlet {
		font-size: 14px;
		white-space: normal;
		overflow: visible;
		-webkit-line-clamp: unset;
		display: block;
	}
    .product-title {
        font-size: 14px;
		white-space: normal;
	}
	.product-price{
        font-size: 14px;
    }
	.price-unit {
		font-size: 12px;
	}
	.product-lot {
		display: none;
	}
    .home-width.cart-card .col-sm-8{
        min-width: 800px;
        max-width: 800px;
        background-color: #fff;
    }
}

/* < 480px (smartphone) */
@media (max-width: 480px) {
	.product-grid {
		gap: 0.6rem;
	}
	.product-card {
		border-radius: 0.3rem;
	}
	.product-title-outlet {
		color: #1F2937;
		font-weight: 700;
		font-size: 14px;
		margin-bottom: 0.25rem;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
		min-height: 2.5rem;
	}
	#order_text > h3 {
		font-size: 16px !important;
	}
	.logo-text {
		display: none;
	}
	.item-detail-header {
		padding: 0 5px;
		position: relative;
		z-index: 1;
	}
	.title-section {
		margin: 0;
	}
	#dynamic-title-section {
		padding-top: 10px;
	}
	.footer {
		font-size: 12px;
	}
	/* .mySwiper .swiper-slide {
		min-width: 250px !important;
	} */
	.product-info {
		padding: 3px; 
		min-height: 50px;
	}
	.product-title {
		margin: 10px 1px 5px 0px;
		min-height: 55px;
	}
	.product-price {
		margin: 10px 0px;
	}
}
