 @font-face {
     font-family: "Peyda";
     src: url("/res/fonts/peyda/30fa25c99fe33691d39c95bf780bf7c1.woff2") format("woff2"),
         url("/res/fonts/peyda/30fa25c99fe33691d39c95bf780bf7c1.woff") format("woff"),
         url("/res/fonts/peyda/30fa25c99fe33691d39c95bf780bf7c1.ttf") format("truetype");
     font-weight: normal;
     font-style: normal;
     font-display: swap;
 }

 @font-face {
     font-family: "Material Icons";
     font-style: normal;
     font-weight: 400;
     src: url("/res/icons/material-icons/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2") format("woff2");
     font-display: block;
 }

 .material-icons {
     font-family: "Material Icons";
     font-weight: normal;
     font-style: normal;
     font-size: 24px;
     line-height: 1;
     letter-spacing: normal;
     text-transform: none;
     display: inline-block;
     white-space: nowrap;
     word-wrap: normal;
     direction: ltr;
     -webkit-font-feature-settings: "liga";
     -webkit-font-smoothing: antialiased;
 }

 @font-face {
     font-family: 'Material Symbols Outlined';
     font-style: normal;
     font-weight: 400;
     src: url("/res/icons/material-icons/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1v-p_4MrImHCIJIZrDCvHOej.woff2") format("woff2");
     font-display: block;
 }

 .material-symbols-outlined {
     font-family: 'Material Symbols Outlined';
     font-weight: normal;
     font-style: normal;
     font-size: 24px;
     line-height: 1;
     letter-spacing: normal;
     text-transform: none;
     display: inline-block;
     white-space: nowrap;
     word-wrap: normal;
     direction: ltr;
     -webkit-font-feature-settings: 'liga';
     -webkit-font-smoothing: antialiased;
 }




 :root {
     --font-sans: "Inter", "Segoe UI", "Roboto", "Helvetica Neue", sans-serif;
     --color-bg: #111827;
     --color-card-bg: #1f2937;
     --color-text: #f3f4f6;
     --color-primary: #3b82f6;
     --color-accent: #2563eb;
     --color-muted: #9ca3af;
     --color-border: #374151;
     --radius: 10px;
     --transition: 0.25s ease;

     --color-button-border: rgb(0, 65, 217);
     --color-description-text: rgb(17, 17, 22);

     --brand-color: #3e4095;
     --brand-color-lite: #6668ee;
     --brand-color-sec: #f56600;


     --brand-rgb: 76, 175, 80;
     /* example */



 }

 * {
     box-sizing: border-box;
     margin: 0;
     padding: 0;
     font-family: "Peyda";

     /* ≈ 18px به جای 16px */


 }



 html {
     color-scheme: light;


 }

 body {

     font-size: 1.125rem;
     margin: 0;
     line-height: 1.8rem;

 }




 main {
     width: min(160ch, 100%);
     margin-inline: auto;
     margin-block: 20px;
     padding: 8px;
     min-height: 100svh;
 }


 h1,
 h2,
 h3,
 h4,
 h5,
 h6 {

     text-wrap: balance;
     text-wrap: pretty;
     overflow-wrap: break-word;
     word-wrap: break-word;
     word-break: break-word;

 }

 p {

     text-wrap: pretty;
     overflow-wrap: break-word;
     word-wrap: break-word;
     word-break: break-word;

 }

 img {
     max-width: 100%;
     display: block;

 }



 .line {
     border-bottom: solid 1px rgba(180, 180, 180, 0.2);
     margin-block: 10px;
 }

 a {
     text-decoration: none;
     color: white;
 }

 a:hover {
     color: deepskyblue;
     text-decoration: underline;
 }

 select {
     color: lightgray;

 }

 label {
     color: white;
 }

 hr {

     border: 1px dashed rgb(240, 240, 240);
     margin-block: 20px;
 }





 .nav {
     box-shadow: 0px 0px 4px lightgray;
     position: sticky;
     top: 0;
     z-index: 1000;
     background-color: white;

 }

 .navinner {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 1rem;
     width: min(140ch, 100%);
     margin-inline: auto;

 }

 .nav-items a {
     color: #333333;
     font-size: 1rem;
 }

 .seprator {
     border: 1px solid rgb(204, 204, 204);
     height: 100%;
 }

 .nav-profile {
     border-right: 2px solid #808080;
     padding-right: 1rem;
     cursor: pointer;
 }

 .nav-profile span {
     color: #808080;
     font-size: 1.8rem;
 }


 .nav-cart {
     position: relative;
     display: inline-flex;
     align-items: center;
     justify-content: center;
     cursor: pointer;
 }

 .cart-badge {
     position: absolute;
     top: -6px;
     right: -6px;

     min-width: 20px;
     height: 20px;

     padding: 0 6px;

     background: #ff3b30;
     color: #fff;

     font-size: 0.75rem;
     font-weight: 600;

     border-radius: 999px;

     display: flex;
     align-items: center;
     justify-content: center;

     line-height: 1;
 }


 .nav-cart span {
     color: #808080;
     font-size: 1.8rem;

 }



 nav {
     display: flex;
     gap: 2rem;
     justify-content: center;
     align-items: center;
 }





 .footer {}

 .footer>* {
     padding: 12px;
 }

 .footer .footertop {
     display: flex;
     gap: 1rem;
     padding: 1rem;
 }


 .footer .footertop {
     border-top: 1px solid lightgray;
     background: linear-gradient(135deg, #f0f0f0, #f7f7f7);
 }


 .footer .footertop .footertopcol {
     color: rgb(100, 100, 100);
     flex-basis: 33%;
     padding: 1rem;
     line-height: 2rem;
     font-size: 1rem;

 }


 .footer .footertop .footertopcol a {
     color: rgb(100, 100, 100);
 }

 .footer .copyright {
     color: gray;
     text-align: center;
 }

 ul {
     padding: 20px 40px;
 }

 .appscont>* {
     margin-bottom: 1rem;
 }

 .logo>* {
     width: 70px;
     display: flex;
     justify-content: center;
     align-items: center;
 }

 .copyright {
     display: flex;
     justify-content: center;
     align-items: center;
     gap: 1rem;
     font-size: 0.9em;
     color: white;

     padding-top: 1rem;
 }

 .footerlogocont {
     width: 80px;
 }

 .social-media-icons {
     display: flex;
     gap: 1rem;
 }

 .social-media-icons>* {
     max-width: 30px;
 }

 .footercoverimgcont {
     display: flex;
     justify-content: center;
 }

 /* Spinner CSS */
 .spinner {
     display: inline-block;
     width: 30px;
     height: 30px;
     border: 2px solid rgba(0, 0, 0, 0.1);
     border-radius: 50%;
     border-top-color: #000;
     animation: spin 1s ease-in-out infinite;
     margin-left: 10px;
 }

 .footertopcol .footer-grid {
     list-style: none;
     padding: 0;
     margin: 0;
     display: grid;
     grid-template-columns: repeat(3, 1fr);
     /* 2 columns */
     gap: 10px;
     /* space between items */
 }

 .footertopcol .footer-grid li {
     display: flex;
     justify-content: center;
     align-items: center;
 }

 .footertopcol .footer-grid li img {
     inline-size: 80px;
     height: auto;
     display: block;
 }

 /* HAMBURGER BTN */
 .hamburger {
     display: none;
     background: none;
     border: none;
     font-size: 2rem;
     cursor: pointer;
     color: gray;
     border: 1px solid gray;
 }

 .fullscreen-menu {
     position: fixed;
     inset: 0;
     background: white;
     color: white;
     display: none;
     flex-direction: column;
     z-index: 9999;
     padding: 1rem;
 }

 .fullscreen-menu.show {
     display: flex;
 }


 .close-menu {
     background: none;
     border: none;
     color: rgb(0, 65, 217);

     font-size: 3rem;

     cursor: pointer;


 }

 .ham-menu-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     border-bottom: 1px solid rgb(205, 205, 211);
     padding-bottom: 1rem;
 }




 .fullscreen-links {
     margin-top: 2rem;
     display: flex;
     flex-direction: column;
     gap: 0.4rem;
     font-size: 1.5rem;
     border-left: 3px solid transparent;
     padding-left: 12px;

 }

 .fullscreen-links a {
     padding: 12px 0px 13px 15px;
     font-size: 15px;
     color: rgb(17, 17, 22);
     border-bottom: 1px solid rgb(205, 205, 211);

 }

 .fullscreen-links a:hover {
     color: #3b82f6;
 }



 dialog {
     margin: auto;
     border: none;
     border-radius: 1rem;
     box-shadow: 0px 0px 4px lightgray;
     width: min(80ch, 100%);

     opacity: 0;
     transform: translateY(80px) scale(0.8);
     transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
 }


 dialog.visible {
     opacity: 1;
     transform: translateY(0) scale(1);
 }

 dialog .login-modal-container {
     padding: 2rem;

 }

 dialog .login-modal-container .login-modal-body {
     padding-block: 24px;
     border-bottom: 1px solid lightgray;
 }

 dialog .login-modal-container .login-modal-header {
     display: flex;
     justify-content: space-between;
     border-bottom: 1px solid lightgray;
     padding-bottom: 1rem;
 }

 dialog .login-modal-container .login-modal-header .login-modal-header-text {
     font-size: 1rem;
     font-weight: 400;

 }

 dialog .login-modal-container .login-modal-body .login-modal-body-description {
     font-size: 14px;
     color: #0000008F;
     margin: 14px 0px;
     font-weight: 400;
 }

 dialog .login-modal-container .login-modal-header #close {
     border: none;
     background-color: white;
     border-radius: 1rem;
     cursor: pointer;

     color: #333;
     outline: none;
 }



 dialog .login-modal-container .login-modal-body .login-modal-body-text {
     font-size: 1rem;
     font-weight: 500;
     line-height: 2;
     margin: 16px 0;
 }

 dialog .login-modal-container .login-modal-body>* {
     flex: 1;
 }


 .phone-input-field-container {
     display: flex;
     box-shadow: 0px 0px 2px gray;
     gap: 1rem;
     padding: 0.4rem;
     transition: border-color 0.2s ease, box-shadow 0.2s ease;
     border-radius: 7px;
 }

 .phone-input-prenumber-badge {
     font-size: 12px;
     color: #000000DE;
     background-color: rgb(0, 0, 0, 0.04);
     border-radius: 0.4rem;
     display: flex;
     justify-content: center;
     align-items: center;
     padding: 0 12px;
 }

 .phone-input-field-container .phone-input-field {
     width: 100%;
     border: none;
     padding: 0.4rem;
     outline: none;
     border-radius: 7px;

 }

 .phone-input-field-container:focus-within {
     box-shadow: 0px 0px 12px var(--color-accent);
 }

 .rules-privacy-text-container {
     margin: 16px 0px 14px;
 }

 .rules-privacy-text-container a {
     color: var(--color-accent);
 }

 .rules-privacy-text-container>* {
     font-size: 14px;
     color: #0000008F;
 }


 .login-modal-footer {

     display: flex;
     justify-content: left;
     align-items: center;

 }

 .login-modal-footer .login-submit-button {
     background-color: var(--color-accent);
     color: white;
     font-size: 1rem;
     font-weight: 600;
     border-radius: 7px;
     border: 1px solid transparent;
     height: 2.5rem;
     cursor: pointer;
     padding: 0px 16px;
     margin-top: 1rem;
     min-width: 6rem;
     display: flex;
     justify-content: center;
     align-items: center;

 }

 .login-modal-footer .login-submit-button:hover {
     background-color: #1e50bd;
 }


 .phone-input-field::placeholder {
     direction: rtl;
     text-align: right;
 }

 .phone-input-field::-moz-placeholder {
     direction: rtl;
     text-align: right;
 }


 .otp-timer {
     margin: 8px;
     font-size: 0.8rem;
     color: #0000008F;
     font-weight: 400;
     text-align: center;
 }

 .login-submit-button:disabled {
     opacity: 0.6;
     cursor: not-allowed;
 }

 /* Mobile dropdown */
 .mobile-profile-dropdown {
     position: absolute;
     bottom: 50px;
     /* above nav */
     left: 50%;
     transform: translateX(-50%);
     background: #fff;
     border: 1px solid #ddd;
     border-radius: 6px;
     box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
     display: none;
     min-width: 200px;
     z-index: 1000;
 }

 .mobile-profile-dropdown ul {
     list-style: none;
     margin: 0;
     padding: 0;
 }

 .mobile-profile-dropdown li {
     display: flex;
     align-items: center;
     padding: 10px 12px;
     cursor: pointer;
     transition: background 0.2s;
 }

 .mobile-profile-dropdown li:hover {
     background: #f5f5f5;
 }

 .mobile-profile-dropdown li span {
     margin-right: 8px;
     font-size: 20px;
     color: #555;
 }

 .mobile-profile-dropdown li a {
     text-decoration: none;
     color: #333;
     flex-grow: 1;
 }

 #mobileProfileBtn {
     cursor: pointer;
 }


 /* Mobile Bottom Navbar */
 .mobile-bottom-nav {
     display: none;
     /* always hidden by default */
 }

 .nav-profile {
     cursor: pointer;
     font-size: 28px;
     color: #333;
 }

 /* Dropdown Styling */
 .profile-dropdown {
     position: absolute;
     top: 2.5rem;
     /* just below the icon */
     right: 0;
     background: #fff;
     border: 1px solid #ddd;
     border-radius: 6px;
     box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
     display: none;
     min-width: 180px;
     z-index: 1000;
 }

 .profile-dropdown ul {
     list-style: none;
     margin: 0;
     padding: 0;
     font-size: 0.8rem;
 }

 .profile-dropdown li {
     display: flex;
     align-items: center;
     padding: 10px 12px;
     cursor: pointer;
     transition: background 0.2s;
     gap: 0.4rem;
 }

 .profile-dropdown li:hover {
     background: #f5f5f5;
 }

 .profile-dropdown li span {
     margin-right: 8px;
     font-size: 20px;
     color: #555;
 }

 .profile-dropdown li a {
     text-decoration: none;
     color: #333;
     flex-grow: 1;
 }


 /* =========================
   DIALOG BASE
========================= */

 #cartModal {
     border: none;
     padding: 0;
     border-radius: 16px;
     width: 420px;
     max-width: 95%;
     background: transparent;
     overflow: hidden;
 }

 #cartModal::backdrop {
     background: rgba(0, 0, 0, 0.45);
     backdrop-filter: blur(4px);
 }

 /* =========================
   CONTAINER
========================= */

 .cart-modal-container {
     background: #fff;
     border-radius: 16px;
     display: flex;
     flex-direction: column;
     max-height: 80vh;
     animation: modalSlide 0.25s ease;
 }

 @keyframes modalSlide {
     from {
         transform: translateY(20px);
         opacity: 0;
     }

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

 /* =========================
   HEADER
========================= */

 .cart-modal-header {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 16px 20px;
     border-bottom: 1px solid #f1f1f1;
 }

 .cart-modal-header-text {
     font-size: 1.05rem;
     font-weight: 600;
 }

 #cartClose {
     background: none;
     border: none;
     cursor: pointer;
     color: #555;
     display: flex;
     align-items: center;
     justify-content: center;
     outline: none;
 }

 #cartClose:hover {
     color: #000;
 }

 /* =========================
   BODY
========================= */

 .cart-modal-body {
     padding: 16px 20px;
     overflow-y: auto;
     flex: 1;
 }

 /* Cart Item */

 .cart-item {
     display: flex;
     gap: 14px;
     margin-bottom: 18px;
     padding-bottom: 14px;
     border-bottom: 1px solid #f5f5f5;
 }

 .cart-item:last-child {
     border-bottom: none;
 }

 .cart-item img {
     width: 70px;
     height: 70px;
     border-radius: 10px;
     object-fit: cover;
     background: #f8f8f8;
 }

 .cart-item-info {
     flex: 1;
     display: flex;
     flex-direction: column;
     justify-content: center;
 }

 .cart-item-title {
     font-size: 0.9rem;
     margin-bottom: 6px;
     line-height: 1.5;
 }

 .cart-item-quantity {
     font-size: 0.8rem;
     color: #777;
 }

 .cart-item-price {
     font-size: 0.9rem;
     font-weight: 600;
     margin-top: 6px;
 }

 /* =========================
   EMPTY CART
========================= */

 .empty-cart {
     text-align: center;
     padding: 40px 10px;
     color: #777;
     font-size: 0.95rem;
 }

 /* =========================
   FOOTER
========================= */

 .cart-modal-footer {
     border-top: 1px solid #f1f1f1;
     padding: 14px 20px;
     display: flex;
     justify-content: space-between;
     align-items: center;
     background: #fff;
 }

 .cart-total {
     font-size: 0.95rem;
 }

 .cart-total span {
     font-weight: 600;
     margin: 0 4px;
 }

 /* Checkout Button */

 .checkout-button {
     background: #ef4056;
     color: #fff;
     border: none;
     padding: 10px 18px;
     border-radius: 8px;
     cursor: pointer;
     font-size: 0.9rem;
     transition: all 0.2s ease;
 }

 .checkout-button:hover {
     background: #d7384b;
 }

 .checkout-button:active {
     transform: scale(0.97);
 }

 /* =========================
   SCROLLBAR
========================= */

 .cart-modal-body::-webkit-scrollbar {
     width: 6px;
 }

 .cart-modal-body::-webkit-scrollbar-thumb {
     background: #ddd;
     border-radius: 10px;
 }

 .cart-modal-body::-webkit-scrollbar-thumb:hover {
     background: #ccc;
 }


 @media (max-width: 768px) {
     .mobile-bottom-nav {
         display: flex;
         /* show only on mobile */
         position: fixed;
         bottom: 0;
         left: 0;
         width: 100%;
         height: 60px;
         background-color: var(--brand-color);
         /* dark bg */
         justify-content: space-around;
         align-items: center;
         border-top: 1px solid #333;
         z-index: 9999;
         font-family: 'Peyda', sans-serif;
         border-radius: 2rem 2rem 0px 0px;

     }

     .mobile-bottom-nav .nav-item,
     #mobileLoginBtn {
         display: flex;
         flex-direction: column;
         justify-content: center;
         align-items: center;
         color: #fff;
         text-decoration: none;
         font-size: 12px;
         transition: color 0.2s;

     }

     .mobile-bottom-nav .nav-item .material-icons {
         font-size: 24px;
         margin-bottom: 2px;
     }

     .mobile-bottom-nav .nav-item:hover,
     .mobile-bottom-nav .nav-item.active {
         color: #f97316;
         /* warm accent color */
     }

     /* avoid content behind navbar */
     body {
         padding-bottom: 60px;
     }
 }

 /* RESPONSIVE (Mobile + Tablet) */
 @media only screen and (max-width: 1280px) {

     nav.nav-left,
     nav.nav-right .nav-items {
         display: none;
     }

     .hamburger {
         display: flex;
         justify-content: center;
         align-items: center;
         height: fit-content;
         padding: 0.4rem;
         border-radius: 0.4rem;

     }



     .nav-profile {
         margin-right: auto;

     }
 }


 /* Responsive: switch to 1 column on small screens */
 @media (max-width: 500px) {
     .footertopcol .footer-grid {
         grid-template-columns: 1fr;
     }
 }

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


 @media only screen and (max-width: 768px) {
     nav {
         font-size: 1rem;
         gap: 0rem;
     }


     .footer .footertop {
         flex-direction: column;
     }


     .logo {
         width: 50px;
     }

     .nav-profile {
         display: none;
     }

     .nav-cart span {
         font-size: 2rem;
     }

     .navinner {
         flex: 1;
     }
 }

 .cart-item-remove {
     background: none;
     border: none;
     color: #ff4d4f;
     font-size: 24px;
     cursor: pointer;
     margin-right: auto;
     margin-left: 1rem;
 }

 .cart-item-remove:hover {
     color: #ff0000;
 }