/* Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background-color: var(--card-color);
  border-radius: 0 0 20px 20px;
  margin-bottom: 15px;
  position: relative;
}

.profile-image {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  margin-right: 15px;
  background-image: url('./images/profile.png');
}

.profile-name {
  font-weight: 600;
  font-size: 20px;
  flex: 1;
}

.auth-button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    margin-left: 15px;
    transition: background-color 0.3s;
}

.auth-button:hover {
    background-color: #0099FF;
}

.search-icon-profile, 
.notification-icon {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  margin-left: 15px;
}

.search-icon-profile {
  background-image: url('./images/magnifier.png');
}

.notification-icon {
  background-image: url('./images/notification-bell.png');
}

/* Profile Sections */
.profile-sections {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 15px;
  margin-bottom: 15px;
}

.profile-section {
  background-color: var(--card-color);
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s;
}

.profile-section:hover {
  transform: translateY(-5px);
}

.section-icon {
  width: 24px;
  height: 24px;
  margin: 0 auto 10px;
  background-size: contain;
  background-repeat: no-repeat;
}

.section-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.section-count {
  font-size: 12px;
  color: var(--secondary-text);
}

.favorite-section .section-icon {
  background-image: url('./images/heart-simple-shape-silhouette.png');
}

.purchases-section .section-icon {
  background-image: url('./images/basket.png');
}

.settings-section .section-icon {
  background-image: url('./images/setting.png');
}

/* GiweAway Section */
.giweaway-container {
  background-color: var(--card-color);
  border-radius: 20px;
  padding: 15px;
  margin: 0 15px 15px;
}

.giweaway-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.giweaway-title {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
}

.giweaway-more {
  background-color: var(--bg-color);
  border-radius: 5px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
}

.right-arrow {
  width: 8px;
  height: 8px;
  background-image: url('./images/right-arrow.png');
  background-size: contain;
  margin-left: 5px;
}

.giweaway-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.giweaway-amount {
  background-color: var(--bg-color);
  border-radius: 10px;
  padding: 15px;
}

.amount-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.amount-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-size: contain;
}

.water-drop {
  background-image: url('./images/free-icon-droplet-4007761.png');
}

.vip-icon {
  background-image: url('./images/free-icon-vip-7108023.png');
}

.amount-value {
  font-weight: 700;
  font-size: 14px;
}

.giweaway-progress {
  background-color: var(--bg-color);
  border-radius: 10px;
  padding: 15px;
}

.progress-value {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 5px;
}

.progress-bar {
  position: relative;
  height: 4px;
  margin-bottom: 5px;
}

.progress-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-color: var(--secondary-text);
  border-radius: 2px;
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 12px;
  background-color: var(--accent-color);
  border-radius: 2px;
}

.progress-label {
  font-size: 10px;
  color: var(--secondary-text);
}

/* Balance and Cashback in one line */
.balance-container {
  display: flex;
  gap: 15px;
  margin: 0 15px 15px;
}

.balance-section {
  flex: 1;
  background-color: var(--card-color);
  border-radius: 20px;
  padding: 15px;
  position: relative;
}

.balance-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--secondary-text);
  margin-bottom: 5px;
}

.balance-amount {
  font-weight: 700;
  font-size: 20px;
}

.balance-topup {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 201, 255, 0.7);
  border-radius: 5px;
  padding: 5px 10px;
  font-weight: 700;
  font-size: 14px;
}

/* Viewed Item Card */
.viewed-item {
  position: relative;
  background-color: var(--card-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}

.viewed-item:hover {
  transform: translateY(-5px);
  background-color: #1B1B1B;
}

.viewed-items-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 15px;
}

.viewed-item-image {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
}

.viewed-item-info {
  padding: 12px;
}

.viewed-item-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: white;
  margin: 0;
}

.viewed-item-price-container {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.viewed-item-current-price {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent-color);
  margin-right: 8px;
}

.viewed-item-old-price {
  position: relative;
  font-size: 14px;
  color: var(--secondary-text);
  margin-right: 8px;
}

.viewed-item-old-price::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--secondary-text);
}

.viewed-item-discount {
  font-weight: 700;
  font-size: 14px;
  color: #BD4545;
}

.viewed-item-rating {
  display: flex;
  align-items: center;
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.viewed-item-rating-icon {
  width: 16px;
  height: 16px;
  background-image: url('./images/stars.png');
  background-size: contain;
  margin-right: 5px;
}

.viewed-item-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px; 
  height: 24px;
  background-image: url('./images/heart-shape-outline.png');
  background-size: contain;
  cursor: pointer;
  transition: transform 0.2s;
}

.viewed-item-favorite.favorite {
  background-image: url('./images/heart-simple-shape-silhouette.png');
}

/* Purchases Page Styles */
.purchases-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 89px;
  background-color: var(--bg-color);
  z-index: 1000;
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.purchases-page.active {
  transform: translateX(0);
}

.purchases-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.purchases-header h2 {
  font-weight: 700;
  font-size: 24px;
}

.purchase-item {
  display: flex;
  padding: 15px 0;
  align-items: center;
}

.purchase-image {
  width: 80px;
  height: 80px;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-right: 15px;
}

.purchase-info {
  flex: 1;
}

.purchase-title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 10px;
}

.purchase-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.purchase-current-price {
  font-weight: 700;
  font-size: 16px;
  color: var(--accent-color);
}

.purchase-quantity {
  font-weight: 600;
  font-size: 14px;
  color: var(--secondary-text);
}

.purchase-date {
  font-weight: 600;
  font-size: 14px;
  color: var(--secondary-text);
}

.purchase-total {
  font-weight: 600;
  font-size: 16px;
}

.purchase-divider {
  width: 100%;
  height: 1px;
  background: rgba(145, 145, 145, 0.3);
  margin: 10px 0;
}

.purchase-current-price {
  color: var(--accent-color);
}

.purchase-quantity,
.purchase-date {
  color: var(--secondary-text);
}

.purchase-total {
  color: white;
  font-weight: 700;
}

.favorite-close-button {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: var(--card-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  cursor: pointer;
  z-index: 1001;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.viewed-items {
  padding: 15px;
}

.viewed-items h2 {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 15px;
  padding-left: 15px;
}

.viewed-item {
  position: relative;
  background-color: var(--card-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}

.viewed-item:hover {
  transform: translateY(-5px);
}

.viewed-item-image {
  width: 100%;
  height: 120px;
  background-size: cover;
  background-position: center;
}

.viewed-item-info {
  padding: 12px;
}

.viewed-item-title {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}