/* Ultra Modern Food Ordering System - Waah Chai */

:root {
    --primary: #ff6b35;
    --primary-dark: #e85a2a;
    --secondary: #2d3436;
    --accent: #00b894;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --border: #dfe6e9;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-light);
    font-size: 15px;
    font-family: 'Jost', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

[data-loader="circle-side"] {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.hero-order {
    height: 280px;
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.95) 0%, rgba(232, 90, 42, 0.95) 100%),
                url('../img/bg/bg.jpg') no-repeat center bottom;
    background-size: cover;
    position: relative;
    overflow: hidden;
    display: table;
}

.hero-order .content {
    display: table-cell;
    padding: 0;
    vertical-align: middle;
    text-align: center;
    color: #fff;
    position: relative;
    z-index: 2;
}

.hero-order h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
}

.hero-order .main-info p {
    margin-top: 5px;
    font-size: 18px;
    font-weight: 300;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-order .contact-info {
    margin-top: 20px;
}

.hero-order .contact-info a {
    color: #fff;
    font-size: 14px;
    margin: 0 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    display: inline-block;
}

.hero-order .contact-info a:hover {
    color: #fff;
    transform: translateY(-3px);
}

.hero-order .contact-info a i {
    color: #fff;
    margin-right: 6px;
    font-size: 16px;
}

.hero-order .review-wrap {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.hero-order .review-link {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 15px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-order .review-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--primary);
}

.hero-order .score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-order .score img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
}

.hero-order .score span {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
}

.hero-order .score strong {
    background: var(--primary);
    color: #fff;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-top: 3px;
}

/* Sticky Nav - HIGHEST Z-INDEX */
.sticky-nav {
    width: 100%;
    background: var(--bg-white);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 99999;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border);
}

.sticky-nav .filter-wrapper {
    padding: 10px 0;
    background: var(--bg-white);
}

.filter-wrapper {
    padding: 10px 0;
    background: var(--bg-white);
}

.filter-container {
    display: flex;
    align-items: center;
    position: relative;
}

.isotope-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-grow: 1;
    flex-wrap: nowrap;
}

.isotope-filters::-webkit-scrollbar {
    display: none;
}

.isotope-filters::-webkit-scrollbar {
    display: none;
}

.isotope-filters a {
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
    border: 1.5px solid var(--border);
    background: var(--bg-white);
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
}

.isotope-filters a:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

.isotope-filters a.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.filter-arrow {
    background: var(--primary);
    color: #fff;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
	transition: var(--transition);
    flex-shrink: 0;
    display: none; /* Hidden by default, shown by JS */
}

.filter-arrow:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

#filter-arrow-left { margin-right: 10px; }
#filter-arrow-right { margin-left: 10px; }

.search-wrap {
	position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

#search-icon {
    font-size: 18px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: var(--transition);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-icon:hover {
    background: var(--bg-light);
    color: var(--primary);
}

#search {
	position: absolute;
	right: 45px;
	top: 50%;
	transform: translateY(-50%);
	width: 200px;
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: 50px;
	font-size: 13px;
    transition: var(--transition);
    display: none;
    background: var(--bg-white);
}

#search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Main Content - Ensure no overlap with sticky nav */
.order {
    padding: 30px 0 20px;
    position: relative;
    z-index: 1;
    margin-top: 0;
    display: block;
    clear: both;
}

.main-title {
    margin-bottom: 20px;
    position: relative;
}

.main-title h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    position: relative;
    display: inline-block;
}

.main-title h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 2px;
}

.menu-section {
    margin-bottom: 40px;
    padding-top: 10px;
    position: relative;
    z-index: 1;
}

.menu-item {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

/* Compact Menu Item Cards */
.order-list {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
	flex-direction: row;
    height: auto;
    position: relative;
    z-index: 1;
}

.order-list:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.order-list-img {
	width: 120px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #ff6b35, #f5f5f5);
	border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.order-list-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: all 0.4s ease;
    display: block;
}

.order-list:hover .order-list-img img {
    transform: scale(1.15);
}

.order-list-details {
	padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
	justify-content: center;
    position: relative;
}

.order-list-details h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 2px 0;
    line-height: 1.3;
}

.order-list-details h4 small {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 400;
    margin-top: 2px;
    font-style: italic;
}

.order-list-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 5px 0;
    display: block;
}

.qty-buttons-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}



.qty-buttons {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: var(--bg-light);
    border-radius: 50px;
    padding: 3px;
    border: 1.5px solid var(--border);
    transition: var(--transition);
}

.add-item-to-cart-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 8px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-item-to-cart-btn:hover {
    background: var(--primary-dark);
}

.qty-buttons:hover {
    border-color: var(--primary);
}

.qty-buttons input[type="button"] {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg-white);
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    line-height: 1;
    padding: 0;
}

.qty-buttons input[type="button"]:hover {
    background: var(--primary);
    color: #fff;
}

.qty-buttons input.qty {
    width: 40px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    padding: 0;
    height: 30px;
    line-height: 30px;
}

.qty-buttons input.qty:focus {
    outline: none;
}

.qty-buttons input.qty::-webkit-outer-spin-button,
.qty-buttons input.qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-buttons input.qty[type=number] {
    -moz-appearance: textfield;
}

/* Sidebar */
#sidebar {
    position: sticky;
    top: 80px;
    z-index: 100;
}

#orderContainer {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.order-header {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e272e 100%);
    padding: 18px 20px;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

#orderContainer h3 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
}

.order-body {
    padding: 20px;
    border: none;
    box-shadow: none;
}

#itemList {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

#itemList li {
    padding: 12px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition);
    border: 1px solid transparent;
}

#itemList li:hover {
    background: #f1f3f5;
    border-color: var(--border);
}

.order-list-img {
    float: left;
    width: 150px;
    height: auto;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-right: 12px;
    box-shadow: var(--shadow-sm);
}

.order-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-list-details {
    /* overflow: hidden; */
    /* padding-left: 62px; */
}

.order-list-details h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 3px 0;
    line-height: 1.3;
}

.order-list-details h4 small {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 400;
}

.order-list-price {
    position: static;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 5px;
    display: block;
}

.order-list-delete {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.order-list-delete a {
    color: #e74c3c;
    font-size: 16px;
    transition: var(--transition);
    display: inline-block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    text-align: center;
    border-radius: 50%;
}

.order-list-delete a:hover {
    background: #e74c3c;
    color: #fff;
}

/* Radio Buttons */
.radio-wrapper {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.radio-wrapper:hover {
    background: #fff3e6;
    border-color: var(--primary);
}

.radio-wrapper input:checked ~ .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.radio-wrapper .checkmark:after {
    background: #fff;
}

.radio-caption {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    background: rgba(255, 107, 53, 0.08);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

/* Total */
.total-container {
    padding: 15px 0;
    margin: 15px 0;
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.totalTitle {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.totalValue {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

/* Buttons */
.btn-form-func {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.btn-form-func:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    color: #fff;
}

.btn-form-func .btn-form-func-content {
    flex: 1;
    text-align: left;
    position: relative;
    z-index: 1;
}

.btn-form-func .icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.btn-form-func.btn-form-func-alt-color {
    background: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.btn-form-func.btn-form-func-alt-color:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Cart Messages */
.addedToCartMsg, .alreadyInCartMsg {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--bg-white);
    color: var(--accent);
    padding: 14px 22px 14px 50px;
    font-weight: 600;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    z-index: 99999;
    border-left: 4px solid var(--accent);
}

.alreadyInCartMsg {
    color: #e74c3c;
    border-left-color: #e74c3c;
}

.addedToCartMsg::before, .alreadyInCartMsg::before {
    font-family: "iconfont";
    font-size: 20px;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.addedToCartMsg::before {
    content: "\e943";
    color: var(--accent);
}

.alreadyInCartMsg::before {
    content: "\e870";
    color: #e74c3c;
}

/* Back to Top */
#toTop1 {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    padding: 0;
    line-height: 44px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 9999;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

#toTop1:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Modal */
.modal-popup {
    background: var(--bg-white);
    padding: 0;
    max-width: 500px;
    margin: 40px auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.small-dialog-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 18px 20px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.small-dialog-header h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-popup .content {
    padding: 20px;
}

.modal-popup .content h6 {
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
}

.btn-modal-close {
    background: var(--bg-white);
    border: 2px solid var(--border);
    color: var(--text-dark);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

.btn-modal-close:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Form Elements */
input.form-control, textarea.form-control {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    font-size: 14px;
    transition: var(--transition);
    background: var(--bg-white);
    font-family: 'Jost', sans-serif;
}

input.form-control:focus, textarea.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
    outline: none;
}

label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 6px;
    font-size: 14px;
    display: block;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-order { height: 250px; }
    .hero-order h1 { font-size: 36px; }
    .hero-order .main-info p { font-size: 16px; }
    .hero-order .contact-info a { font-size: 13px; margin: 0 8px; }
    .hero-order .review-wrap { position: static; margin-top: 20px; }
    #sidebar { position: static; margin-top: 30px; }
    .main-title h2 { font-size: 22px; }
    .order-list-img { width: 100px; min-width: 100px; height: 100px; }
    .order-list-img { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
}

@media (max-width: 767px) {
    .hero-order { height: 220px; }
    .hero-order h1 { font-size: 28px; }
    .hero-order .main-info p { font-size: 14px; }
    .hero-order .contact-info a { display: block; margin: 5px 0; font-size: 12px; }
    .hero-order .contact-info a i { font-size: 14px; }
    .hero-order .review-wrap { display: none; }
    
    .filter-wrapper { padding: 8px 0; }
    .isotope-filters { gap: 6px; }
    .isotope-filters a { padding: 6px 12px; font-size: 12px; }
    
    .order-list-img { width: 80px; min-width: 80px; height: 80px; }
    .order-list-img { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
    .order-list-details { padding: 10px; }
    .order-list-details h4 { font-size: 14px; }
    .order-list-price { font-size: 16px; }
    .qty-buttons input[type="button"] { width: 28px; height: 28px; font-size: 16px; }
    .qty-buttons input.qty { width: 35px; font-size: 13px; height: 28px; line-height: 28px; }
    
    .menu-section { margin-bottom: 30px; }
    .menu-item { margin-bottom: 15px; }
    
    .addedToCartMsg, .alreadyInCartMsg { left: 10px; right: 10px; bottom: 10px; }
    #toTop1 { width: 40px; height: 40px; line-height: 40px; bottom: 15px; right: 15px; }
}

@media (max-width: 575px) {
    .hero-order { height: 200px; }
    .hero-order h1 { font-size: 24px; }
    .hero-order .main-info p { font-size: 13px; }
    .hero-order .contact-info a { font-size: 11px; }
    
    .isotope-filters a { padding: 5px 10px; font-size: 11px; }
    .main-title h2 { font-size: 20px; }
    
    .order-list-img { width: 70px; min-width: 70px; height: 70px; }
    .order-list-img { border-radius: 6px 0 0 6px; }
    .order-list-details { padding: 8px; }
    .order-list-details h4 { font-size: 13px; }
    .order-list-price { font-size: 15px; }
    .qty-buttons input[type="button"] { width: 26px; height: 26px; font-size: 15px; }
    .qty-buttons input.qty { width: 32px; font-size: 12px; height: 26px; line-height: 26px; }
    
    .col-xl-6, .col-lg-6, .col-md-6, .col-sm-6 { flex: 0 0 100%; max-width: 100%; }
}

/* Empty Cart */
#emptyCart {
    text-align: center;
    padding: 30px 15px;
}

#emptyCart .order-list-img {
    float: none;
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    opacity: 0.5;
}

#emptyCart .order-list-details {
    padding-left: 0;
    text-align: center;
}

#emptyCart h4 {
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 16px;
}

#emptyCart small {
    color: var(--text-light);
    font-size: 13px;
}

/* Utilities */
.grid { margin: 0 -10px; }
.menu-item { padding: 0 10px; }
.format-price { font-family: 'Jost', sans-serif; font-weight: 700; }
img { max-width: 100%; height: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 767px) { .container { padding: 0 12px; } }

.step { display: none; }
.step.active { display: block; }

.parsley-errors-list {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    padding: 0;
    list-style: none;
    font-weight: 500;
}

/* Ensure proper z-index stacking */
.sticky-nav { z-index: 99999; }
#sidebar { z-index: 100; }
#toTop1 { z-index: 9999; }
.addedToCartMsg, .alreadyInCartMsg { z-index: 99999; }
.modal-popup { z-index: 10000; }
.mfp-bg { z-index: 9999; }
.hero-order { z-index: 1; }
.order { position: relative; z-index: 2; }

/* Fix for mobile */
@media (max-width: 767px) {
    button, a, input[type="button"] {
        min-height: 40px;
        min-width: 40px;
    }
}

/* Ensure proper box sizing */
*, *::before, *::after { box-sizing: border-box; }

/* Fix for number input */
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Ensure proper button elements */
button, input[type="button"], input[type="submit"], input[type="reset"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Fix for image elements */
img, svg { display: block; max-width: 100%; }

/* Ensure proper list styling */
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Fix for heading margins */
h1, h2, h3, h4, h5, h6 { margin: 0; }

/* Ensure proper paragraph margins */
p { margin: 0 0 10px 0; }

/* Fix for strong and bold */
strong, b { font-weight: 600; }

/* Fix for horizontal rule */
hr { border: none; height: 1px; background: var(--border); margin: 15px 0; }

/* Fix for radio buttons */
.radio-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-wrapper .checkmark {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid var(--border);
    border-radius: 50%;
}

.radio-wrapper:hover .checkmark {
    border-color: var(--primary);
}

.radio-wrapper input:checked ~ .checkmark {
    background-color: var(--primary);
    border-color: var(--primary);
}

.radio-wrapper .checkmark:after {
    content: "";
    position: absolute;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
}

.radio-wrapper input:checked ~ .checkmark:after {
    display: block;
}

/* Fix for modal on mobile */
@media (max-width: 575px) {
    .modal-popup { margin: 20px; max-width: none; }
}

/* Fix for print */
@media print {
    .sticky-nav, #toTop1, .addedToCartMsg, .alreadyInCartMsg { display: none; }
}

/* Fix for high DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img { image-rendering: -webkit-optimize-contrast; }
}