* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Chathura', sans-serif;
}

body {
  background-color: #000;
  color: #fff;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Fix the header to the top */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: #000;
}

mainbody {
  display: flex;
  margin-top: 110px;
  /* Add space for fixed header */
}

/* Navigation bar styles */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
}

.SearchIconNavBar {
  width: 25px;
}

.nav-links,
.nav-actions {
  display: flex;
  gap: 20px;
  width: 220px;
}

hr {
  height: 40px;
  line-height: 20px;
  border: 1px solid white;
  transform: translate(0%, +35%);
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 40px;
  letter-spacing: 1px;
  transition: opacity 0.3s;
  white-space: nowrap;
  display: inline-block;
}

@media (hover: hover) {


  .nav-link:hover {
    opacity: 0.7;
  }


}

.logo {
  font-size: 70px;
  font-weight: 500;
  line-height: 70px;
  letter-spacing: 1px;
  pointer-events: none;
}

.logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.sidebar {
  height: calc(100vh - 160px);
  width: 300px;
  border-right: 1px solid #fff;
  display: flex;
  flex-direction: column;
  margin-top: 50px;
  position: sticky;
  top: 160px;
}

.nav-item {
  display: flex;
  padding: 15px 0px;
  /* Increased from 10px */
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.3s;
  justify-content: center;
  opacity: 0.7;
}

.SidebarOptions {
  width: 140px;
  /* Increased from 120px */
  height: 100%;
  display: flex;
  flex-direction: row;
  gap: 15px;
  /* Increased from 10px */
  justify-content: start;
  align-items: center;
  transition: width 0.3s ease;
}

.nav-item.active {
  opacity: 1;
}

.nav-item img {
  height: 24px;
  /* Increased from 20px */
  transition: transform 0.3s ease;
}

.nav-item span {
  font-size: 45px;
  line-height: 0.8;
  transition: opacity 0.3s ease;
}

.content {
  flex: 1;
  padding: 40px;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 160px);
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
}

.ProfilePicImage {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 150px;
  font-weight: bold;
  line-height: 1;
  margin-right: 20px;
  border: 2px solid #fff;
  pointer-events: none;
  cursor: default;
}

.profile-header .info {
  display: flex;
  flex-direction: column;
}

.profile-header .info h2 {
  font-size: 40px;
  line-height: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.profile-header .info p {
  font-size: 40px;
  color: #fff;
  opacity: 0.5;
  line-height: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.edit-btn {
  width: 25px;
  height: 25px;
}

.tabs {
  display: flex;
  margin-bottom: 60px;
}

.tab {
  padding: 10px 20px;
  cursor: pointer;
  font-size: 40px;
  line-height: 0.8;
  transition: color 0.2s;
}

.tab.active {
  border-bottom: 2px solid #fff;
}

@media (hover: hover) {


  .tab:not(.active):hover {
    color: #aaa;
  }


}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.field {
  width: 500px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 50px;
}

.Passwordfield {
  width: 500px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  align-content: center;
  gap: 50px;
}

.field label {
  width: 100px;
  display: block;
  font-size: 40px;
  font-weight: bold;
  line-height: 0.8;
  color: #fff;
}

.Passwordfield label {
  width: 300px;
  display: block;
  font-size: 40px;
  font-weight: bold;
  line-height: 0.8;
  color: #fff;
}

.field input {
  height: 50px;
  width: 100%;
  padding: 0px 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #fff;
  font-size: 40px;
  line-height: 0.8;
  color: #fff;
  outline: none;
  border-radius: 0px !important;
}

.Passwordfield input {
  height: 50px;
  width: 100%;
  padding: 0px 10px;
  background: white;
  border: none;
  border-radius: 0px !important;
  font-size: 40px;
  font-weight: bold;
  line-height: 0.8;
  color: #000;
  outline: none;
}

.field input::placeholder {
  color: #fff;
  opacity: 0.7;
  font-size: 40px;
  line-height: 0.8;
}

.Passwordfield input::placeholder {
  color: #000;
  opacity: 0.7;
  font-size: 40px;
  line-height: 0.8;
  font-weight: bold;
}

.actions {
  margin-top: 80px;
  display: flex;
  gap: 20px;
}

.btn {
  padding: 12px 24px;
  font-size: 40px;
  line-height: 0.8;
  cursor: pointer;
  border: none;
  letter-spacing: 1px;
}

.btn.cancel {
  background: #fff;
  color: #000;
  transition: all 0.3s ease;
}

.btn.update {
  background: #000;
  color: #fff;
  border: 1px solid #fff;
  transition: all 0.3s ease;
}

@media (hover: hover) {


  .btn.cancel:hover,
  .btn.update:hover {
    opacity: 0.7;
    transition: all 0.3s ease;
  }


}

.AdressTitleFlex {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #fff;
  padding-bottom: 10px;
}

.AddressTitle {
  font-size: 40px;
  line-height: 0.8;
  padding: 0px 20px;
}

.AddAddressButton {
  border: none;
  font-size: 40px;
  line-height: 0.8;
  padding: 5px 20px;
  background-color: #000;
  color: #fff;
  border: 1px solid #fff;
  margin: 0px 20px;
}

@media (hover: hover) {


  .AddAddressButton:hover {
    opacity: 0.7;
  }


}

.AddressInfo {
  display: flex;
  flex-direction: row;
  justify-content: start;
  align-items: center;
  border-bottom: 1px solid #fff;
  padding: 50px 20px;
  font-size: 40px;
  line-height: 0.8;
  position: relative;
}

.AddressInfo .address-text {
  flex: 1;
}

.AddressInfo .address-actions {
  display: flex;
  gap: 10px;
  margin-left: 20px;
}

.delete-address-btn {
  background: #000;
  color: white;
  border: 1px solid #fff;
  padding: 8px 16px;
  font-size: 28px;
  line-height: 0.8;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  font-weight: bold;
  font-family: 'Chathura', sans-serif;
}

@media (hover: hover) {


  .delete-address-btn:hover {
    background: #cc0000;
    transform: scale(1.2);
    border: none;
  }


}

.delete-address-btn:active {
  transform: scale(0.95);
}

.delete-address-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (hover: hover) {


  .delete-address-btn:disabled:hover {
    background: #ff4444;
    transform: none;
  }


}

/* Scrollable addresses container */
.addresses-container {
  max-height: calc(100vh - 400px);
  min-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
}

body::-webkit-scrollbar,
*::-webkit-scrollbar {
  display: none;
}

.cart-left {
  flex: 1;
  max-height: calc(100vh - 380px);
  min-height: 300px;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Adjust for mobile */
@media screen and (max-width: 767px) {
  .cart-left {
    max-height: calc(100vh - 300px);
    min-height: 200px;
    /* Smaller offset for mobile */
  }
}

.cart-header {
  display: flex;
  border-bottom: 2px solid #fff;
  font-size: 40px;
  font-weight: normal;
  padding: 0px 20px;
  position: sticky;
  top: 0;
  background-color: #000;
  z-index: 1;
}

.header-item {
  flex: 2;
}

.header-colour,
.header-size,
.header-quantity,
.header-price,
.header-status {
  flex: 1;
}

.header-status {
  text-align: right;
}

.cart-items {
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: start;
  padding-bottom: 20px;
  font-size: 35px;
  line-height: 0.8;
  border-bottom: 1px solid white;
  margin-top: 20px;
}

.item-details {
  flex: 2;
  display: flex;
  align-items: start;
  gap: 30px;
  padding: 0px 20px;
}

.item-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #333;
  background-color: #111;
  transition: opacity 0.3s ease;
  position: relative;
}

@media (hover: hover) {


  .item-image:hover {
    opacity: 0.8;
  }


}

.item-image[src=""] {
  opacity: 0.5;
  background-color: #222;
}

/* Loading placeholder for images */
.item-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #333 25%, transparent 25%),
    linear-gradient(-45deg, #333 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #333 75%),
    linear-gradient(-45deg, transparent 75%, #333 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.3;
  z-index: -1;
}

/* Image loading animation */
@keyframes imageLoad {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.item-image[onload] {
  animation: imageLoad 0.3s ease-out;
}

.item-colour,
.item-size,
.item-quantity,
.item-price,
.item-status {
  flex: 1;
  padding: 0px 15px 0px 0px;
}

.item-name {
  font-weight: bold;
}

.item-status {
  text-align: right;
  padding: 0px 20px 0px 0px;
}

/* Desktop and mobile specific visibility */
.mobile-only {
  display: none;
}

.desktop-only {
  display: block;
}

/* Hide mobile details on desktop - will be overridden by media queries */
.cart-item .item-mobile-details,
.cart-item .mobile-item-info {
  display: none;
}

.cart-left::-webkit-scrollbar,
.CartGrid::-webkit-scrollbar {
  display: none;
}

/* Address modal styles */
.address-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  /* Improve iOS compatibility */
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.address-modal.active {
  display: flex;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.address-form {
  background: black;
  padding: 40px 30px;
  border-radius: 30px;
  width: 90%;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
  max-height: 90vh;
  overflow-y: auto;
  /* Improved iOS compatibility */
  -webkit-overflow-scrolling: touch;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.address-form-title {
  color: white;
  font-size: 35px;
  line-height: 0.8;
  font-weight: bold;
  text-align: center;
  margin-bottom: 10px;
}

.address-input {
  font-size: 30px;
  line-height: 0.8;
  font-weight: bold;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #fff;
  border-radius: 0px !important;
  background: transparent;
  color: white;
  /* text-decoration: underline; */
}

/* Fix for input focus outline color */
.address-input:focus,
.country-code-select:focus,
.phone-number-input:focus {
  outline: none;
  border-bottom: 2px solid #fff;
}

.address-form-btns {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin-top: 10px;
}

.address-add-btn {
  font-size: 30px;
  font-weight: bold;
  line-height: 0.8;
  padding: 10px 0px;
  width: 100px;
  border-radius: 100px;
  border: none;
  background: black;
  color: white;
  border: 1px solid white;
}

.address-cancel-btn {
  font-size: 30px;
  font-weight: bold;
  line-height: 0.8;
  padding: 10px 0px;
  width: 100px;
  border-radius: 100px;
  border: none;
  background: #fff;
  color: #000;
}

.address-row {
  display: flex;
  gap: 20px;
}

.address-row .address-input {
  flex: 1 1 0;
  min-width: 0;
}

/* Phone input container styles */
.phone-input-container {
  display: flex;
  gap: 10px;
  align-items: center;
}

.country-code-select {
  font-size: 30px;
  line-height: 0.8;
  font-weight: bold;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #fff;
  background: black;
  color: white;
  min-width: 120px;
}

/* Adjust country code select for smaller screens */
@media screen and (max-width: 767px) {
  .country-code-select {
    min-width: 90px;
    font-size: 24px;
  }

  .phone-input-container {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 479px) {
  .country-code-select {
    min-width: 80px;
    font-size: 20px;
    padding: 8px;
  }
}

.phone-number-input {
  font-size: 30px;
  line-height: 0.8;
  font-weight: bold;
  padding: 10px;
  border: none;
  border-bottom: 1px solid #fff;
  background: transparent;
  color: white;
  flex: 1;
}

/* Loading screen styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 1);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 90;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid #333;
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 40px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  line-height: 1;
  letter-spacing: 2px;
}

.loading-screen.hidden {
  display: none;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 130;
  position: relative;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
}

.mobile-menu-toggle span:first-child {
  transform-origin: top left;
}

.mobile-menu-toggle span:nth-child(2) {
  transform-origin: center;
}

.mobile-menu-toggle span:last-child {
  transform-origin: bottom left;
}

.mobile-menu-toggle.active span:first-child {
  transform: rotate(45deg);
  width: 100%;
  position: relative;
  top: -1px;
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:last-child {
  transform: rotate(-45deg);
  width: 100%;
  position: relative;
  bottom: -1px;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  z-index: 120;
  padding: 80px 30px 30px;
  transition: left 0.3s ease;
  overflow-y: auto;
}

.mobile-drawer.active {
  left: 0;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
  color: white;
  font-size: 40px;
  font-weight: bold;
  line-height: 0.8;
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 20px 0;
  transition: opacity 0.2s ease;
}

@media (hover: hover) {


  .mobile-nav-link:hover {
    opacity: 0.7;
  }


}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ====== RESPONSIVE STYLES ====== */

/* Tablet Styles (768px - 1300px) */
@media screen and (max-width: 1300px) {

  /* Navigation adjustments */
  .navbar {
    padding: 20px;
  }

  .nav-links,
  .nav-actions {
    gap: 10px;
    width: auto;
  }

  .nav-link {
    font-size: 30px;
  }

  hr {
    height: 30px;
  }

  .logo {
    font-size: 60px;
  }

  /* Sidebar and content adjustments */
  mainbody {
    flex-direction: row;
  }

  .sidebar {
    width: 80px;
  }

  .sidebar .nav-item span {
    display: none;
  }

  .sidebar .SidebarOptions {
    width: 50px;
    justify-content: center;
  }

  .sidebar .nav-item img {
    height: 28px;
    /* Slightly larger icons for better visibility */
    margin: 0 auto;
  }

  .content {
    padding: 20px;
  }

  /* Form adjustments */
  .field,
  .Passwordfield {
    width: 100%;
    max-width: 450px;
  }

  .field label,
  .Passwordfield label {
    font-size: 35px;
  }

  .field input,
  .Passwordfield input {
    font-size: 35px;
  }

  .item-image {
    width: 150px;
    height: 150px;
  }
}

/* Mobile Styles (up to 767px) */
@media screen and (max-width: 767px) {

  /* Navigation adjustments */
  .navbar {
    padding: 30px 20px;
    justify-content: space-between;
  }

  /* Show mobile toggle and hide regular nav */
  .mobile-menu-toggle {
    display: flex;
  }

  /* Hide desktop navigation */
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-link {
    font-size: 24px;
  }

  .logo {
    font-size: 60px;
    line-height: 50px;
  }

  /* Layout adjustments */
  mainbody {
    flex-direction: column;
    margin-top: 90px;
  }

  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #fff;
    flex-direction: row;
    justify-content: space-around;
    margin-top: 0;
    padding: 15px;
    /* Increased from 10px */
    position: static;
    top: auto;
  }

  .nav-item {
    margin-bottom: 0;
    padding: 8px 10px;
    /* Added horizontal padding */
  }

  .nav-item[style="margin-top:auto;"] {
    margin-top: 0 !important;
  }

  .SidebarOptions {
    width: auto;
    gap: 5px;
  }

  .nav-item span {
    font-size: 24px;
  }

  .content {
    padding: 20px 15px;
  }

  /* Profile section adjustments */
  .profile-header {
    margin-bottom: 30px;
  }

  .ProfilePicImage {
    width: 80px;
    height: 80px;
    font-size: 100px;
  }

  .profile-header .info h2 {
    font-size: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .profile-header .info p {
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .tabs {
    margin-bottom: 30px;
  }

  .tab {
    font-size: 30px;
    padding: 5px 10px;
  }

  /* Form adjustments */
  .field,
  .Passwordfield {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .field label,
  .Passwordfield label {
    width: 100%;
    font-size: 28px;
  }

  .field input,
  .Passwordfield input {
    font-size: 28px;
    height: 45px;
  }

  .actions {
    margin-top: 40px;
  }

  .btn {
    font-size: 24px;
    padding: 8px 16px;
  }

  /* Address section adjustments */
  .AdressTitleFlex {
    padding-bottom: 5px;
  }

  .AddressTitle {
    font-size: 30px;
  }

  .AddAddressButton {
    font-size: 24px;
  }

  .AddressInfo {
    padding: 15px 10px;
  }

  .AddressInfo .address-text {
    font-size: 25px;
  }

  .delete-address-btn {
    font-size: 25px;
    padding: 3px 8px;
  }

  /* Order section adjustments */
  .cart-header {
    font-size: 28px;
  }

  .header-size,
  .header-price,
  .header-status {
    display: none;
  }

  .header-item {
    flex: 1;
  }

  .cart-item {
    font-size: 28px;
    display: flex;
    flex-direction: column;
  }

  .item-details {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: flex-start;
  }

  .item-name {
    margin-top: 0;
  }

  /* Toggle visibility for mobile/desktop elements */
  .mobile-only {
    display: block;
  }

  .desktop-only {
    display: none;
  }

  /* Hide original price, size, status columns */
  .item-price,
  .item-size,
  .item-status {
    display: none;
  }

  /* Show mobile details in item column instead - explicitly override desktop styles */
  .cart-item .item-mobile-details {
    display: flex !important;
    flex-direction: column;
    gap: 8px;
  }

  .cart-item .mobile-item-info {
    display: flex !important;
    flex-direction: column;
    gap: 3px;
  }
}

/* Small Mobile Styles (up to 479px) */
@media screen and (max-width: 479px) {
  .logo {
    font-size: 50px;
    line-height: 40px;
  }

  .nav-item img {
    height: 28px;
    /* Make icons bigger on small screens */
  }

  .nav-item span {
    display: none;
    /* Hide text and only show icons */
  }

  .SidebarOptions {
    width: auto;
    justify-content: center;
    padding: 5px 15px;
    /* Add padding around icons */
  }

  .ProfilePicImage {
    width: 60px;
    height: 60px;
    font-size: 80px;
  }

  .profile-header .info h2 {
    font-size: 28px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .profile-header .info p {
    font-size: 24px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .tab {
    font-size: 28px;
    padding: 5px 10px;
  }

  .item-image {
    width: 120px;
    height: 120px;
  }

  .field label,
  .Passwordfield label {
    font-size: 24px;
  }

  .btn {
    font-size: 24px;
    padding: 8px 16px;
  }

  /* Make password field placeholder text responsive */
  .Passwordfield input::placeholder {
    font-size: 24px;
  }

  /* Address modal responsive styles for smaller screens */
  .address-form {
    padding: 20px 15px;
    width: 95%;
    border-radius: 20px;
    max-height: 85vh;
  }

  .address-form-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .address-input {
    font-size: 24px;
    padding: 8px;
  }

  .country-code-select,
  .phone-number-input {
    font-size: 24px;
    /* Match the smaller font size for very small screens */
    padding: 8px;
  }

  .address-add-btn,
  .address-cancel-btn {
    font-size: 24px;
    width: 80px;
    padding: 8px 0;
  }

  /* Address modal responsive styles */
  .address-form {
    padding: 30px 20px;
    width: 95%;
  }

  .address-input {
    font-size: 28px;
  }

  .address-row {
    flex-direction: column;
    gap: 10px;
  }

  .phone-input-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .country-code-select,
  .phone-number-input {
    width: 100%;
    font-size: 28px;
  }

  .address-form-btns {
    margin-top: 20px;
  }

  .address-add-btn,
  .address-cancel-btn {
    font-size: 28px;
    width: 90px;
  }

  .address-input,
  .phone-number-input,
  .country-code-select {
    font-size: 24px;
    height: 44px;
  }

  .address-add-btn,
  .address-cancel-btn {
    font-size: 24px;
    padding: 8px 16px;
  }
}

/* Fix for "No orders found" text getting cut off */

/* Review Modal Styles */
.review-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  flex-direction: column;
  gap: 20px;
}

.review-modal.active {
  display: flex;
}

.review-modal-content {
  background: white;
  border-radius: 25px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.review-form {
  padding: 20px;
  color: #000;
}

.review-product-info {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
  justify-content: center;
}

.review-product-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
}

.review-rating {
  display: flex;
  align-items: center;
}

.star-rating {
  display: flex;
  gap: 8px;
  font-size: 40px;
}

.review-star {
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.review-star:hover,
.review-star.active {
  color: #007bff;
}

.review-textarea {
  width: 100%;
  min-height: 200px;
  padding: 20px;
  border: 2px solid #000;
  border-radius: 15px;
  font-size: 35px;
  font-weight: bold;
  line-height: 0.8;
  font-family: 'Chathura', sans-serif;
  resize: vertical;
  background: #f9f9f9;
  color: #000;
  box-sizing: border-box;
}

.review-textarea:focus {
  outline: none;
  border-color: #000;
  background: white;
}

.review-textarea::placeholder {
  color: #999;
  font-style: italic;
}

/* Submit button outside the modal content */
.submit-review-btn {
  padding: 8px 30px;
  border-radius: 8px;
  font-size: 35px;
  font-family: 'Chathura', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid #007bff;
  background: #007bff;
  color: white;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 150px;
  line-height: 1;
}

@media (hover: hover) {


  .submit-review-btn:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
  }


}

.submit-review-btn:disabled {
  background: #ccc;
  color: #666;
  border-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* Action Button Styles */
.action-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 28px;
  font-family: 'Chathura', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  min-width: 100px;
  line-height: 1;
}

/* Not Yet Scheduled Text Style */
.not-scheduled-text {
  padding: 0px;
  font-size: 28px;
  font-family: 'Chathura', sans-serif;
  color: #fff;
  display: inline-block;
  text-align: start;
  min-width: 100px;
  line-height: 1;
  opacity: 1;
}

.track-btn {
  background: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
}

@media (hover: hover) {


  .track-btn:hover {
    background: #265727;
    color: white;
    transform: translateY(-2px);
  }


}

.review-btn-action {
  background: #007bff;
  color: white;
  border-color: #007bff;
}

@media (hover: hover) {


  .review-btn-action:hover {
    background: #0056b3;
    transform: translateY(-2px);
  }


}

/* Mobile Responsive for Review Modal and Action Buttons */
@media screen and (max-width: 767px) {
  .review-modal-content {
    width: 95%;
    margin: 20px;
  }

  .review-form {
    padding: 10px;
  }

  .review-product-info {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .review-product-image {
    width: 100px;
    height: 100px;
  }

  .star-rating {
    font-size: 40px;
    gap: 6px;
  }

  .review-textarea {
    font-size: 30px;
    min-height: 150px;
    padding: 15px;
  }

  .submit-review-btn {
    font-size: 30px;
    padding: 10px 25px;
    min-width: 120px;
  }

  .action-btn {
    font-size: 24px;
    padding: 6px 15px;
    min-width: 80px;
  }

  .not-scheduled-text {
    font-size: 24px;
    padding: 0px;
    min-width: 80px;
  }
}

@media screen and (max-width: 479px) {
  .star-rating {
    font-size: 40px;
    gap: 4px;
  }

  .review-textarea {
    font-size: 25px;
  }

  .submit-review-btn {
    font-size: 25px;
    padding: 8px 20px;
  }

  .action-btn {
    font-size: 22px;
    padding: 5px 12px;
  }

  .not-scheduled-text {
    font-size: 22px;
    padding: 0px;
  }
}

.cart-item .item-details p {
  padding: 0 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Order Image Popup Modal Styles */
.image-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.image-popup-overlay.active {
  display: flex;
  opacity: 1;
}

.image-popup-container {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-popup-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.popup-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  cursor: default;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.zoom-controls {
  position: fixed;
  bottom: 10vh;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 20px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  z-index: 1001;
}

.zoom-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 50px;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  font-family: 'Chathura', sans-serif;
}

@media (hover: hover) {
  .zoom-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
  }
}

.zoom-icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

.image-popup-close {
  font-size: 50px !important;
}

.image-popup-close .zoom-icon {
  width: 24px !important;
  height: 24px !important;
}

/* Responsive Design for Popup */
@media screen and (max-width: 768px) {
  .popup-image {
    max-width: 95vw;
    max-height: 80vh;
  }

  .zoom-controls {
    bottom: 8vh;
    padding: 8px 15px;
  }

  .zoom-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .zoom-icon {
    width: 20px;
    height: 20px;
  }

  .image-popup-close {
    font-size: 24px !important;
  }

  .image-popup-close .zoom-icon {
    width: 20px !important;
    height: 20px !important;
  }
}

@media screen and (max-width: 480px) {
  .popup-image {
    max-width: 98vw;
    max-height: 75vh;
  }

  .zoom-controls {
    bottom: 6vh;
    padding: 6px 12px;
    gap: 8px;
  }

  .zoom-btn {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .zoom-icon {
    width: 16px;
    height: 16px;
  }

  .image-popup-close {
    font-size: 20px !important;
  }

  .image-popup-close .zoom-icon {
    width: 16px !important;
    height: 16px !important;
  }
}