:root {
	--primary-color: #4e73df;
	--secondary-color: #858796;
	--success-color: #1cc88a;
	--warning-color: #f6c23e;
	--danger-color: #e74a3b;
	--light-color: #f8f9fc;
	--dark-color: #5a5c69;
	--cafe-color: #82624d;
}

body {
    background: var(--store-bg, none) center/cover fixed;
    background-color: #F3F6F8 !important;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    background-attachment: fixed;
    filter: blur(var(--store-bg-blur, 0));
    z-index: -1;
}



/*== S New Style ==*/
.store-header {
	background-color: #ffffff;
	color: #222;
	border-radius: 20px;
	margin: 0.3rem 0.3rem 1rem 0.3rem;
	padding:1rem;
}
.store-logo {
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.store-header .pw-menu-btn {
    height: 40px;
    border: 0;
    width: 40px;
    font-size: 24px;
    background-color: transparent;
    margin-left: 0.5rem;
    color: #808080;
}
.pw-store-name{
	font-size:15px;
	color:#222;
}
.store-description {
	font-size: 9px;
	opacity: 0.9;
	margin:0;
}
.cart-toggle {
	position:relative;
	background: transparent;
	color: #222;
	border: none;
	display: flex;
	align-items: center;
	height: 40px;
}
.cart-badge {
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    position: absolute;
    top: 0;
    right: 0;
    border: 2px solid #fff;
}




.category-card {
	transition: all 0.3s ease;
	border: none;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	margin:5px 0;
	padding: .35rem;
}
.category-card:hover {
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}
.category-image {
	object-fit: cover;
	border-radius: .75rem;
	width:100%;
	margin-bottom: .35rem;
	background-color: #fff;
}
.category-name {
	font-size: 0.8rem;
	font-weight: 500;
	text-align: center;
}
.category-active {
	background-color:var(--cafe-color) !important;
}
.category-active .category-name {
	color:#fff;
}
.swiper-slide {
	height: auto;
}
.subcategories-container {
	margin-top: 1rem;
	display: none;
}
.subcategories-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: flex-start;
}
.subcategory-item {
	padding: 0.5rem 1rem;
	background: #f8f9fa;
	border-radius: 20px;
	border: 1px solid #dee2e6;
	font-size: 0.8rem;
	cursor: pointer;
	transition: all 0.3s ease;
}
.subcategory-item:hover {
	background: #e9ecef;
}
.subcategory-item.active {
	background: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}
.product-card {
	transition: all 0.3s ease;
	border: none;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
	margin-bottom: 1rem;
	opacity: 1;
	transform: translateY(0);
}
.product-card .pw-product-footer {
    height: 35px;
    line-height: 18px;
}
.product-card.hidden {
	opacity: 0;
	transform: translateY(10px);
	pointer-events: none;
	display: none;
}

.pw-product-image-body {
	width: 120px;
	height: 120px;
}
.product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: .75rem;
}

.product-ingredients {
	font-size: 0.75rem;
	color: var(--secondary-color);
	line-height: 1.4;
	margin-bottom: 0.5rem;
}

.product-price {
	font-size: 0.9rem;
	font-weight: bold;
	color: var(--primary-color);
}

.product-old-price {
	text-decoration: line-through;
	color: var(--secondary-color);
	font-size: 0.75rem;
}

.quantity-control {
	display: flex;
	align-items: center;
	justify-content: center;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    background: #F3F6F8;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    color: #808080;
}

.quantity-btn:hover {
	background: var(--cafe-color);
	color: white;
	border-color: var(--cafe-color);
}
.quantity-input {
    width: 30px;
    text-align: center;
    margin: 0;
    border: 0;
    padding: 0;
    color: var(--cafe-color);
    font-size: 1rem;
}
.product-card {
	display: flex;
    justify-content: space-between;
    gap: .5rem;
    background-color: #fff;
    border-radius: 1.25rem;
    border: 3px solid #e3e8eb63;
    padding: .5rem;
    box-shadow: 0 10px 20px 0 #00000011;
    position: relative;
}

.product-card.out-of-stock {
    opacity: 0.6;
	filter: grayscale(100%) contrast(1) brightness(1);
}

.out-of-stock-overlay {
    top: 10px;
    left: 10px;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    text-align: center;
    font-size: 10px;
    font-weight: bold;
    z-index: 10;
    border-radius: 8px;
    padding: 0 4px;
}

.on-backorder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 193, 7, 0.9);
    color: #212529;
    text-align: center;
    padding: 3px 0;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

.product-image.grayscale {
    filter: grayscale(100%);
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-info.text-success {
    color: #198754 !important;
}

.stock-info.text-danger {
    color: #dc3545 !important;
}

.stock-info.text-warning {
    color: #ffc107 !important;
}

.quantity-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
.cart-item {
	display: flex;
	align-items: center;
	padding: 0.75rem 0;
	border-bottom: 1px solid #eee;
	transition: all 0.3s ease;
}
.cart-item:last-child{border-bottom:0;}

.cart-item-removing {
	opacity: 0;
	transform: translateX(-20px);
}

.cart-item-image {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 8px;
}

.cart-item-details {
	flex: 1;
}

.cart-item-name {
	font-size:14px;
	font-weight: 500;
}

.cart-item-price {
	font-size:13px;
	color: var(--primary-color);
	font-weight: 500;
}

.cart-summary {
    border-top: 1px solid #eee;
    padding: 1rem;
    background-color: #fff;
}
.pw-cart-offcanvas .offcanvas-header, .pw-top-menu-offcanvas .offcanvas-header{
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.pw-top-menu-offcanvas .btn-close {
    background-color: #F3F6F8;
    width: 30px;
    height: 30px;
}
.pw-top-menu-offcanvas .offcanvas-body{
    background-color: #F3F6F8;
}
.pw-top-menu-offcanvas ul li a {
    display: flex;
    text-decoration: none;
    background-color: #FFFFFF;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    color: #808080;
    padding: .75rem 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
    width: 100%;
    align-items: center;
}
.pw-top-menu-offcanvas ul li a:hover{
	background-color: #82624d;
	color: #FFFFFF;
}




/*== E New Style ==*/
































.modal-header {
	background: var(--primary-color);
	color: white;
}

.store-info-item {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid #eee;
}

.store-info-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--light-color);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: 1rem;
	color: var(--primary-color);
}

.loading-spinner {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 200px;
}

.spinner-border {
	width: 3rem;
	height: 3rem;
}

.category-empty {
	text-align: center;
	padding: 2rem;
	color: var(--secondary-color);
}

.products-container {
	position: relative;
	min-height: 200px;
}

.fade-in {
	animation: fadeIn 0.5s ease-in-out;
}

.fade-out {
	animation: fadeOut 0.5s ease-in-out;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
	from { opacity: 1; transform: translateY(0); }
	to { opacity: 0; transform: translateY(10px); }
}

.cart-item .remove-item-btn {
    position: absolute;
    right: -5px;
    top: -8px;
    background: var(--danger-color);
    color: #fff;
    font-size: 10px;
    width: 25px;
    height: 25px;
    border: 3px solid #fff;
}

.remove-item-btn {
	background: transparent;
	border-color: var(--danger-color);
	color: var(--danger-color);
	cursor: pointer;
	padding: 0.25rem;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.remove-item-btn:hover {
	background: var(--danger-color);
	color: white;
}
.table-selection-section {
	/* background-color: #f8f9fa; */
	border: 1px solid #dee2e6 !important;
}

.table-select-container select {
	border-radius: 8px;
	border: 1px solid #ced4da;
	padding: 0.5rem;
}

.table-select-container select:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.delivery-cost-section {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color) !important;
}

.cart-summary .border-top {
    border-top: 2px solid #dee2e6 !important;
}
.pw-modal-login-btn-s1{
    background: transparent;
    color: #222;
    border: none;
    display: flex;
    align-items: center;
    height: 40px;
}
.pw-modal-usernav-btn {
    background: transparent;
    color: #222;
    border: none;
    display: flex;
    align-items: center;
    height: 40px;
}
.pw-user-nav-modal .pw-usernav-btn {
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    height: 100px;
    width: 100%;
    border-radius: 20px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.pw-user-nav-modal .pw-usernav-btn .pw-icon i {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pw-user-nav-modal .pw-usernav-btn .pw-text {
    font-size: 14px;
    font-weight: bold;
}
.table-swiper .swiper-slide {
    width: auto !important;
    white-space: nowrap;
}
/* مخفی کردن radio button واقعی */
.table-radio-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* کارت اصلی میز */
.table-card {
    width: 58px;
    height: 75px;
    background-color: #f8f8f8;
	border: 1px solid #f2f2f2;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); */
    user-select: none;
	margin: 5px 0;
}

.table-card .table-title {
    font-size: 13px;
    color: #333;
    font-weight: 600;
}

.table-card .table-number {
    font-size: 22px;
    font-weight: bold;
    color: #333;
}

/* افکت hover */
.table-card-label{
	width:100%;
}
.table-card-label:hover .table-card {
    background-color: #223c7854;
    /* transform: translateY(-4px); */
    /* box-shadow: 0 10px 20px rgba(25, 118, 210, 0.2); */
}
.table-radio-input:hover + .table-card .table-title,
.table-radio-input:hover + .table-card .table-number {
    color: #333;
}

/* حالت انتخاب شده */
.table-radio-input:checked + .table-card {
    background-color: #223c78; /* آبی پررنگ */
    border-color: #223c78;
    /* transform: translateY(-4px); */
	transform: scale(0.95);
    /* box-shadow: 0 12px 25px rgba(25, 118, 210, 0.35); */
}

.table-radio-input:checked + .table-card .table-title,
.table-radio-input:checked + .table-card .table-number {
    color: white;
}

/* افکت نور کوچک هنگام انتخاب
.table-card::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    top: -15px;
    right: -15px;
    opacity: 0;
    transition: all 0.5s ease;
}
 */

.table-radio-input:checked + .table-card::after {
    opacity: 1;
    transform: scale(5);
}

/* استایل Modal سفارشات */
#ordersModal .modal-content {
    border-radius: 0;
    height: 100vh;
}

#ordersModal .modal-body {
    padding: 0;
    overflow-y: auto;
}

#ordersListContainer {
    min-height: 300px;
}

.order-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.order-id {
    font-weight: bold;
    color: #333;
}

.order-date {
    font-size: 12px;
    color: #666;
}

.order-status {
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
}

.status-pending { background: #ffecb5; color: #ff9800; }
.status-processing { background: #bbdefb; color: #2196f3; }
.status-completed { background: #c8e6c9; color: #4caf50; }
.status-cancelled { background: #ffcdd2; color: #f44336; }

.order-summary {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-top: 10px;
}

.order-total {
    font-weight: bold;
    color: #2c5aa0;
}

.order-type {
    color: #666;
    font-size: 13px;
}

.no-orders {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.orders-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px;
    background: #f8f9fa;
    margin-bottom: 15px;
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.stat-label {
    font-size: 12px;
    color: #666;
}
.order-details-container .card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 20px;
}

.order-details-container .card-header {
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.order-details-container table {
    margin-bottom: 0;
}

.order-details-container table tr td {
    vertical-align: middle;
}

.order-details-container .badge {
    font-size: 12px;
    padding: 4px 8px;
}