.dflip-wrap {
	max-width: 900px;
	margin: 40px auto;
	text-align: center;
	--dflip-accent: #a2321a;
}

.dflip-book {
	margin: 0 auto;
	background: #2b1a12;
	box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.dflip-page {
	background: #fdf8ef;
	background-image: radial-gradient(circle at top left, rgba(0,0,0,0.03), transparent 60%);
	padding: 28px 22px;
	box-sizing: border-box;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid #e7ddc9;
}

.dflip-cover {
	background-image: url('https://latest.punjab-corner.de/wp-content/uploads/2026/07/mango-lassi.png');
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	position: relative;
}

.dflip-cover::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35); /* overlay opacity */
	z-index: 1;
}

.dflip-cover > * {
	position: relative;
	z-index: 2;
}
.dflip-cover-inner {
	position: relative;
	text-align: center;
	color: #f4e6cf;
	padding-bottom: 30px;
}

.dflip-cover-inner h1 {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 30px;
	margin: 0 0 6px;
	letter-spacing: 1px;
}

.dflip-cover-inner p {
	font-size: 13px;
	letter-spacing: 3px;
	text-transform: uppercase;
	opacity: 0.85;
	margin: 0;
}

.dflip-cat-title {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 21px;
	color: #3a2417;
	border-bottom: 2px solid #d8c7a1;
	padding-bottom: 10px;
	margin: 0 0 16px;
}

.dflip-items {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.dflip-item {
	display: flex;
	gap: 12px;
	align-items: center;
	text-align: left;
	width: 100%;
	background: #fff;
	border: 1px solid #ece1cb;
	border-radius: 10px;
	padding: 8px;
	cursor: pointer;
	font: inherit;
	opacity: 0;
	transform: translateY(10px);
	animation: dflipIn 0.45s ease forwards;
	transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.dflip-item:hover {
	box-shadow: 0 8px 20px rgba(0,0,0,0.12);
	transform: translateY(-2px);
	border-color: var(--dflip-accent);
}

.dflip-item:nth-child(1) { animation-delay: 0.05s; }
.dflip-item:nth-child(2) { animation-delay: 0.15s; }
.dflip-item:nth-child(3) { animation-delay: 0.25s; }
.dflip-item:nth-child(4) { animation-delay: 0.35s; }
.dflip-item:nth-child(5) { animation-delay: 0.45s; }
.dflip-item:nth-child(6) { animation-delay: 0.55s; }

@keyframes dflipIn {
	to { opacity: 1; transform: translateY(0); }
}

.dflip-item-img {
	width: 60px;
	height: 60px;
	flex: 0 0 60px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #d8c7a1;
}

.dflip-item-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.dflip-item:hover .dflip-item-img img {
	transform: scale(1.12);
}

.dflip-item-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.dflip-item-top {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
}

.dflip-item-name {
	font-size: 14px;
	font-weight: bold;
	color: #2b1a12;
}

.dflip-price {
	font-size: 13px;
	font-weight: bold;
	color: var(--dflip-accent);
	white-space: nowrap;
}

.dflip-view {
	font-size: 11px;
	color: #9a8c6e;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.dflip-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 18px;
	margin-bottom: 16px;
}

.dflip-prev, .dflip-next {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #d8c7a1;
	background: #fff;
	font-size: 20px;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.15s ease;
}

.dflip-prev:hover, .dflip-next:hover {
	background: #f4e6cf;
	transform: scale(1.06);
}

.dflip-pageinfo {
	font-size: 13px;
	color: #6b5f4f;
}

/* Detail modal */
.dflip-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.dflip-modal.open {
	display: flex;
}

.dflip-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20,12,7,0.6);
	opacity: 0;
	animation: dflipFade 0.25s ease forwards;
}

@keyframes dflipFade {
	to { opacity: 1; }
}

.dflip-modal-box {
	position: relative;
	background: #fdf8ef;
	max-width: 420px;
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 30px 70px rgba(0,0,0,0.4);
	transform: scale(0.92) translateY(10px);
	opacity: 0;
	animation: dflipPop 0.3s ease forwards;
}

@keyframes dflipPop {
	to { transform: scale(1) translateY(0); opacity: 1; }
}

.dflip-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(0,0,0,0.5);
	color: #fff;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.dflip-modal-img {
	width: 100%;
	height: 220px;
	background: #eee;
}

.dflip-modal-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dflip-modal-body {
	padding: 20px;
	text-align: left;
}

.dflip-modal-body h3 {
	font-family: Georgia, 'Times New Roman', serif;
	font-size: 20px;
	margin: 0 0 6px;
	color: #2b1a12;
}

.dflip-modal-price {
	font-size: 16px;
	font-weight: bold;
	color: var(--dflip-accent);
	margin-bottom: 10px;
}

.dflip-modal-desc {
	font-size: 13px;
	color: #6b5f4f;
	line-height: 1.6;
	margin: 0 0 16px;
}

.dflip-add-cart {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	background: black !important;
	color: #fff !important;
	border: none;
	padding: 10px 22px;
	border-radius: 24px;
	cursor: pointer;
	width: 100%;
	transition: background 0.2s ease, transform 0.15s ease;
}

.dflip-add-cart:hover {
	filter: brightness(0.9);
}

.dflip-add-cart:active {
	transform: scale(0.97);
}

.dflip-add-cart.added {
	background: #4a7d3b;
}

@media (max-width: 600px) {
	.dflip-item-name { font-size: 13px; }
	.dflip-modal-img { height: 180px; }
}



/* new button code add */
/* Category Index */
.dflip-category-index {
    padding: 25px;
}

.dflip-category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 8px;
}


/* Scrollbar */
.dflip-category-list::-webkit-scrollbar {
    width: 5px;
}

.dflip-category-list::-webkit-scrollbar-thumb {
    background: var(--dflip-accent);
    border-radius: 20px;
}


/* Category Button */
.dflip-category-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;

    padding: 14px 18px;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: #222;

    cursor: pointer;
    transition: all .25s ease;

    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}


/* Hover */
.dflip-category-btn:hover {
    background: var(--dflip-accent);
    color: #fff;
    border-color: var(--dflip-accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
}


/* Click */
.dflip-category-btn:active {
    transform: scale(.98);
}


/* Mobile */
@media(max-width:700px){

    .dflip-category-index {
        padding: 15px;
    }

    .dflip-category-btn {
        font-size: 14px;
        padding: 12px;
    }

}




/* model css  */

/* Modal Box */
.dflip-modal-box{
    width: min(95%, 500px);
    max-height: 90vh;
    overflow-y: auto;
    background:#fff;
    border-radius:18px;
    position:relative;
    padding:0;
    box-shadow:0 15px 40px rgba(0,0,0,.25);
}

/* Close Button */
.dflip-modal-close{
    position:absolute;
    top:12px;
    right:12px;
    z-index:10;
    width:35px;
    height:35px;
    border-radius:50%;
    border:none;
    background:#fff;
    color:#333;
    font-size:24px;
    line-height:30px;
    cursor:pointer;
    box-shadow:0 2px 8px rgba(0,0,0,.15);
}


/* Product Image */
.dflip-modal-img{
    width:100%;
    height:260px;
    overflow:hidden;
    border-radius:18px 18px 0 0;
}

.dflip-modal-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}


/* Content */
.dflip-modal-body{
    padding:20px;
}

.dflip-modal-body h3{
    margin:0 0 10px;
    font-size:24px;
    line-height:1.3;
}

.dflip-modal-price{
    font-size:20px;
    font-weight:700;
    margin-bottom:12px;
}

.dflip-modal-desc{
    font-size:15px;
    line-height:1.6;
    color:#555;
    margin-bottom:20px;
}


/* Add Cart Button */

/* Mobile */
@media(max-width:600px){

    .dflip-modal-img{
        height:200px;
    }

    .dflip-modal-body{
        padding:15px;
    }

    .dflip-modal-body h3{
        font-size:20px;
    }

}