/*
 * USER.CSS
 * ========
 * User-facing page styles: login, register, cart, checkout, user settings, and account management
 * Contains styles for user authentication, shopping cart, checkout process, and user account management
 */

/* ==========================================================================
   Login & Registration
   ========================================================================== */

.login-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 2px;
  border-bottom: 1px solid #00000033;
  margin: auto;
}

.login-form h2 {
  margin-top: 0;
  text-align: center;
}

.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.registerHeader {
  text-align: left;
  color: red;
  margin-top: 50px;
  margin-bottom: 10px;
}

.centerHeader {
  text-align: center;
  color: red;
  margin-top: 50px;
  margin-bottom: 20px;
}

.registernowText{
  padding: 5%;
  color: red;
}

.initialscreenForm {
  padding: 30px;
}

.initialscreentext {
  text-align: center;
  margin-bottom: 20px;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
}

.remember-forgot label {
  font-size: 12px;
}

.forgotpwlink {
  color: #6A68EA;
  font-size: 12px;
  padding: 10px;
  display: block;
  text-align: end;
  text-decoration: none;
}

/* ==========================================================================
   User Settings & Profile
   ========================================================================== */

.settings-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.settings-container p {
  font-size: 14px;
}

.settings-tab-header {
  margin-bottom: 20px;
  flex-basis: 100%;
}

.settings-row {
  max-width: 1000px;
  margin: 0 auto;
}

.settings-group {
  height: 100%;
  width: 350px;
}

.settings-user-info {
  padding: 10px 0px 10px 0px;
}

.settings-user-info p{
  font-size: 14px;
}

.settings-user-info .edit-button {
  margin-top: 16px;
  padding: 10px 20px;
  font-size: 14px;
}

.change-password {
  display: block;
  margin-top: 10px;
}

.change-password .edit-button {
  margin-top: 12px;
  padding: 10px 20px;
  font-size: 14px;
}

/* ==========================================================================
   User Settings Tabs & Sections
   ========================================================================== */

.tab {
  display: none;
}

.tab.active {
  display: block;
}

.about-you,
.password,
.security,
.email,
.preferences {
  padding: 25px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
  background-color: white;
}

/* ==========================================================================
   Address & Payment Management
   ========================================================================== */

.address-list,
.payment-methods {
  margin-bottom: 20px;
}

.addresses .addNew-button {
  margin-bottom: 20px;
  padding: 10px 20px;
  font-size: 14px;
}

.address,
.payment-method {
  background-color: white;
  padding: 15px;
  margin-bottom: 10px;
  margin-top: 20px;
  border-radius: 4px;
  border: 1px solid #d5d5d5;
}

.payment-method {
  display: flex;
  flex-wrap: wrap;
}

.payment-method-row {
  display: flex;
  flex: 0.3;
  margin-bottom: 20px;
  flex-direction: column;
}

.payment-methods label {
  display: block;
  margin-bottom: 5px;
  font-size: 15px;
}

.addpayment-link {
  padding: 8px 0 8px 0px;
  text-decoration: none;
  font-size: 13px;
  color: #302CEB;
}

/* ==========================================================================
   Shopping Cart
   ========================================================================== */

.cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
}

.cart-details {
  padding: 25px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 50px;
  margin-bottom: 20px;
  width: 80%;
  background: #fdfdfd;
}

.cart-details-header {
  display: flex;
  justify-content: space-between;
}

.cart-choose-payment {
  padding: 25px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  margin-bottom: 20px;
}

.cart-imgtextContainer {
  display: flex;
}

.cart-item-contents {
  padding-left: 10px;
}

.cart-item-contents > * {
  margin-bottom: 6px;
}

.cart-item-contents > *:last-child {
  margin-right: 0px;
}

.cart-item-actions-list a{
  font-size: 12px;
  color: rgb(182, 19, 19);
  text-decoration: none;
  margin-right: 2px;
}

.cart-item-actions-list a:hover{
  color: rgb(110, 9, 9);
}

.contact-shop-cart {
  font-size: 12px!important;
  padding-left: 20px;
  display: flex;
  align-items: center;
}

.quantity {
  margin-bottom: 5px;
}

.quantity input {
  width: 40px;
  font-size: 16px;
}

/* ==========================================================================
   Checkout Process
   ========================================================================== */

.checkout-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
}

.checkout-details {
  background-color: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 20px;
}

.payment-details {
  width: 35%;
  height: 35%;
  background-color: #fdfdfd;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 20px;
}

.payment-details-container {
  padding: 25px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 50px;
  margin-bottom: 20px;
  width: 90%;
  background: #fdfdfd;
}

.checkout-product-title {
  font-size: 14px;
  font-weight: bold;
}

.checkout-details-group {
  display: flex;
  gap: 20px;
  width: 50%;
}

.row-group {
  flex: 1;
  display: flex;
  margin-bottom: 10px;
  margin-right: 25px;
  flex-direction: column;
  font-size: 14px;
}

.row-group h4 {
  margin-bottom: 5px;
}

.left-column {
  flex: 1;
}

.left-column,
.left-column * {
   box-sizing: content-box;
}

.right-column {
  width: 350px;
}

.title {
  font-size: 1.17em;
  font-weight: bold;
  margin-bottom: 20px;
}

/* ==========================================================================
   Delivery & Shipping Options
   ========================================================================== */

.delivery-options p {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}

.delivery-options label {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.delivery-options input[type="radio"] {
  margin-right: 10px;
}

.rush-delivery-text {
  color: #007600!important;
}

/* ==========================================================================
   Order Summary & Totals
   ========================================================================== */

.order-summary {
  border-top: 1px solid #ccc;
  padding-top: 10px;
  font-size: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.total {
  font-weight: bold;
}

/* ==========================================================================
   Item Details & Reviews
   ========================================================================== */

.item-details-row {
  display: flex;
  margin-bottom: 20px;
}

.item-details-group {
  display: flex;
  gap: 20px;
}

.group-end {
  margin-left: auto;
  color: red;
}

.review-count-text {
  font-size: 12px;
  color: black;
  margin-left: 5px;
}

.rating {
  color: #ffc107;
  margin-bottom: 5px;
  line-height: 15px;
  margin-top: 5px;
}

/* ==========================================================================
   Side Menu & Filters
   ========================================================================== */

.side-menu {
  width: 300px;
  background-color: #fff;
  padding: 20px;
  box-sizing: border-box;
  font-size: 13px;
}

.section {
  margin-bottom: 20px;
}

.section h4 {
  margin-bottom: 10px;
}

.section label {
  display: block;
  margin-bottom: 5px;
  cursor: pointer;
}

.section input[type="number"] {
  width: 80px;
  padding: 5px;
  margin-right: 5px;
}

.flag {
  font-size: 2.5rem;
  cursor: pointer;
  margin-bottom: 10px;
}

.flag img {
  width: 100px;
  height: auto;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.a-icon-text-separator, .a-text-separator {
  display: inline-block;
  margin: -2px 0.67375em 0;
  width: 1px;
  background-color: #ddd;
  line-height: 0;
  height: 14px;
  vertical-align: middle;
}

input[type="password"],
input[type="email"] {
  width: 300px;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* ==========================================================================
   Modern User Settings Interface
   ========================================================================== */

/* Modern Navigation */
.modern-nav {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.modern-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.modern-nav-brand {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.modern-nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.modern-nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

.modern-nav-links a:hover {
  opacity: 0.8;
}

/* Modern Tab Navigation */
.modern-tabs {
  display: flex;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 8px;
  margin-bottom: 2rem;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.modern-tab-btn {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
}

.modern-tab-btn:hover {
  background: rgba(102, 126, 234, 0.1);
  color: #495057;
}

.modern-tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.modern-tab-btn i {
  font-size: 16px;
}

.modern-tab-btn span {
  display: none;
}

@media (min-width: 768px) {
  .modern-tab-btn span {
    display: inline;
  }
}

/* Tab Content */
.modern-tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modern Cards */
.modern-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border: 1px solid #e9ecef;
}

.modern-card h3 {
  margin: 0 0 16px 0;
  color: #343a40;
  font-size: 18px;
  font-weight: 600;
}

.modern-card p {
  color: #6c757d;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Form Groups */
.modern-form-group {
  margin-bottom: 20px;
}

.modern-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #495057;
  font-size: 14px;
}

.modern-form-group input,
.modern-form-group select,
.modern-form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fff;
}

.modern-form-group input:focus,
.modern-form-group select:focus,
.modern-form-group textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Buttons */
.modern-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
}

.modern-btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.modern-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.modern-btn-secondary {
  background: #6c757d;
  color: white;
}

.modern-btn-secondary:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.modern-btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.modern-btn-outline:hover {
  background: #667eea;
  color: white;
}

.modern-btn-danger {
  background: #dc3545;
  color: white;
}

.modern-btn-danger:hover {
  background: #c82333;
  transform: translateY(-2px);
}

/* Address Cards */
.address-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.address-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.address-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.address-card.default {
  border-color: #28a745;
  background: #f8fff9;
}

.address-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.address-type {
  background: #667eea;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.address-type.default {
  background: #28a745;
}

.address-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.address-actions .modern-btn {
  padding: 8px 16px;
  font-size: 12px;
}

/* Payment Method Cards */
.payment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.payment-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.payment-card:hover {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.payment-card.default {
  border-color: #28a745;
  background: #f8fff9;
}

.payment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.payment-icon {
  width: 40px;
  height: 25px;
  object-fit: contain;
}

.payment-info h4 {
  margin: 0;
  font-size: 16px;
  color: #343a40;
}

.payment-info p {
  margin: 0;
  color: #6c757d;
  font-size: 14px;
}

.payment-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.payment-actions .modern-btn {
  padding: 6px 12px;
  font-size: 12px;
}

/* Modal Styles */
.modern-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}

.modern-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modern-modal-content {
  background: white;
  border-radius: 16px;
  padding: 0;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { 
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modern-modal-header {
  padding: 24px 24px 0 24px;
  border-bottom: 1px solid #e9ecef;
  margin-bottom: 24px;
}

.modern-modal-header h3 {
  margin: 0 0 16px 0;
  color: #343a40;
  font-size: 20px;
  font-weight: 600;
}

.modern-modal-body {
  padding: 0 24px 24px 24px;
}

.modern-modal-footer {
  padding: 16px 24px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #e9ecef;
  margin-top: 24px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #f8f9fa;
  color: #495057;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 8px;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-fill.weak {
  width: 25%;
  background: #dc3545;
}

.strength-fill.fair {
  width: 50%;
  background: #ffc107;
}

.strength-fill.good {
  width: 75%;
  background: #20c997;
}

.strength-fill.strong {
  width: 100%;
  background: #28a745;
}

.strength-text {
  font-size: 12px;
  font-weight: 500;
}

.strength-text.weak { color: #dc3545; }
.strength-text.fair { color: #ffc107; }
.strength-text.good { color: #20c997; }
.strength-text.strong { color: #28a745; }

/* Success Messages */
.success-message {
  background: #d4edda;
  color: #155724;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #c3e6cb;
  display: none;
}

.success-message.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .modern-nav-container {
    padding: 0 1rem;
  }
  
  .modern-nav-links {
    gap: 1rem;
  }
  
  .modern-tabs {
    padding: 4px;
    gap: 2px;
  }
  
  .modern-tab-btn {
    min-width: auto;
    padding: 8px 12px;
    font-size: 12px;
  }
  
  .modern-card {
    padding: 16px;
    margin-bottom: 16px;
  }
  
  .address-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }
  
  .modern-modal-content {
    width: 95%;
    margin: 20px;
  }
  
  .modern-modal-header,
  .modern-modal-body,
  .modern-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   Improved User Settings Tabs and Modals
   ========================================================================== */

/* Settings Tab Navigation */
.settings-tab-navigation {
  margin-bottom: 30px;
}

.tab-container {
  display: flex;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 4px;
  gap: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  flex-wrap: wrap;
}

.tab {
  flex: 1;
  min-width: 120px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
}

.tab:hover {
  background: rgba(223, 226, 70, 0.2);
  color: #495057;
}

.tab.active {
  background: #DFE246;
  color: black;
  box-shadow: 0 2px 4px rgba(223, 226, 70, 0.3);
}

.tab i {
  font-size: 16px;
}

.tab span {
  display: none;
}

@media (min-width: 768px) {
  .tab span {
    display: inline;
  }
}

/* Tab Content */
.tab-content-area {
  min-height: 400px;
}

.tab-content {
  display: none;
  animation: fadeInUp 0.3s ease;
}

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

@keyframes fadeInUp {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Address Actions */
.address-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.address-actions .edit-button,
.address-actions .delete-button {
  width: auto;
  padding: 10px 18px;
  font-size: 14px;
}

/* Email Settings */
.email-info {
  margin-bottom: 20px;
}

.email-info p {
  margin: 4px 0;
  font-size: 14px;
}

.email-info .verified {
  color: #00a650;
  font-weight: 500;
  margin-bottom: 12px;
}

.email-info .edit-button {
  margin-top: 16px;
  padding: 10px 20px;
  font-size: 14px;
}

/* Email Section Headers */
.email h4 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

/* Email Preferences */
.email-preferences {
  margin-top: 12px;
}

.email-preferences label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.email-preferences input[type="checkbox"] {
  margin-right: 8px;
}

/* Preference Options */
.preference-options {
  display: grid;
  gap: 16px;
  margin-top: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.preference-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.preference-item label {
  min-width: 100px;
  font-weight: 500;
  font-size: 14px;
}

.preference-item select {
  flex: 1;
  max-width: 220px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: white;
}

/* Security Options */
.security-options {
  margin-top: 20px;
}

.security-option {
  margin-bottom: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 6px;
}

.security-option label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.security-options .viewall-button {
  margin-top: 16px;
  padding: 10px 20px;
  font-size: 14px;
  min-width: 150px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
}

.modal-content {
  background: white;
  margin: 5% auto;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease;
}

.modal-content.large {
  max-width: 700px;
}

.modal-content.small {
  max-width: 420px;
}

/* Delete Confirmation Modal specific styles */
#deleteConfirmModal .modal-content {
  max-height: fit-content;
  max-width: 400px;
}

#deleteConfirmModal .modal-header {
  padding: 14px 18px 12px 18px;
}

#deleteConfirmModal .modal-header h2 {
  font-size: 15px;
}

#deleteConfirmModal .modal-body {
  padding: 12px 18px;
}

#deleteConfirmModal .modal-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #555;
}

#deleteConfirmModal .modal-footer {
  padding: 10px 18px 14px 18px;
  gap: 8px;
}

#deleteConfirmModal .modal-footer button {
  padding: 8px 16px;
  font-size: 13px;
}

@keyframes modalSlideIn {
  from { 
    opacity: 0;
    transform: translateY(-30px) scale(0.95);
  }
  to { 
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

.modal-header h2 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.close {
  color: #999;
  font-size: 24px;
  font-weight: normal;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 5px;
  line-height: 1;
}

.close:hover {
  color: #333;
}

.modal-body {
  padding: 20px 25px;
}

.modal-footer {
  padding: 15px 25px 20px 25px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Form Styles within Modals */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #DFE246;
  box-shadow: 0 0 0 2px rgba(223, 226, 70, 0.25);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Button Styles - Site themed buttons */
.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

/* Checkbox Group */
.checkbox-group {
  margin-top: 20px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* Password Strength */
.password-strength {
  margin-top: 10px;
}

.strength-bar {
  width: 100%;
  height: 6px;
  background: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.strength-text {
  font-size: 12px;
  font-weight: 500;
}

/* Login History */
.login-history {
  max-height: 300px;
  overflow-y: auto;
}

.history-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.history-date {
  font-weight: 500;
  color: #333;
}

.history-location,
.history-ip {
  color: #666;
  font-size: 13px;
}

.history-status.success {
  color: #28a745;
  font-weight: 500;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Amazon-Style Shopping Cart
   ========================================================================== */

/* Cart Header */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}

.cart-header h1 {
  font-size: 28px;
  color: #232f3e;
  margin: 0;
  font-weight: 400;
}

.cart-header h1 i {
  margin-right: 10px;
  color: #007185;
}

.cart-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-link {
  background: none;
  border: none;
  color: #007185;
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-link:hover {
  background-color: rgba(0, 113, 133, 0.1);
  text-decoration: underline;
}

.divider {
  color: #ccc;
  margin: 0 5px;
}

/* Items Header */
.items-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 14px;
  color: #565959;
}

.items-count {
  font-weight: 500;
}

.cart-divider {
  border: none;
  border-top: 1px solid #e7e7e7;
  margin: 15px 0;
}

/* Cart Items List */
.cart-items-list {
  margin-bottom: 20px;
}

/* Cart Item Card */
.cart-item-card {
  margin-bottom: 15px;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.seller-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.item-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.seller-name {
  font-weight: 600;
  color: #232f3e;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.seller-name i {
  color: #007185;
}

.item-price {
  font-size: 20px;
  font-weight: 700;
  color: #B12704;
}

/* Cart Item Main Content */
.cart-item-main {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cart-item-image {
  flex-shrink: 0;
}

.cart-item-image img {
  border-radius: 8px;
  border: 1px solid #ddd;
  object-fit: cover;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Item Info Section */
.item-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-title {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.item-title a {
  color: #007185;
  text-decoration: none;
  font-weight: bold;
}

.item-title a:hover {
  color: #C7511F;
  text-decoration: underline;
}

.item-variation-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  color: #3b82f6;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  margin: 4px 0 6px;
}

.item-variation-badge i {
  font-size: 10px;
}

.item-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #ddd;
  font-size: 14px;
}

.star.filled {
  color: #FF9900;
}

.rating-count {
  color: #007185;
  font-size: 13px;
  text-decoration: none;
}

.rating-count:hover {
  text-decoration: underline;
}

.item-availability {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.text-success {
  color: #007600;
}

.in-stock {
  color: #007600;
  font-weight: 500;
}

.delivery-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #565959;
}

.delivery-info i {
  color: #007185;
}

.item-source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #565959;
}

.item-source i {
  color: #007185;
}

/* Item Controls */
.item-controls {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 15px;
}

.quantity-section {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-section label {
  font-size: 14px;
  color: #565959;
  font-weight: 500;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #d5d9d9;
  border-radius: 8px;
  overflow: hidden;
  background: white;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #f0f2f2;
  color: #565959;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.qty-btn:hover {
  background: #e3e6e6;
}

.qty-input {
  width: 50px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 14px;
  background: white;
  outline: none;
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-btn {
  background: none;
  border: none;
  color: #f23636;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.action-btn:hover {
  background-color: rgba(0, 113, 133, 0.1);
  text-decoration: underline;
}

.action-btn.delete-btn {
  color: #B12704;
}

.action-btn.delete-btn:hover {
  background-color: rgba(177, 39, 4, 0.1);
}

.action-divider {
  color: #ddd;
  font-size: 13px;
  margin: 0 2px;
}

/* Item Divider */
.item-divider {
  border: none;
  border-top: 1px solid #e7e7e7;
  margin: 20px 0;
}

/* Cart Subtotal */
.cart-subtotal {
  text-align: right;
  padding: 20px 0;
  border-top: 1px solid #e7e7e7;
  margin-top: 20px;
}

.subtotal-text {
  font-size: 18px;
  margin-bottom: 10px;
}

.subtotal-text strong {
  color: #B12704;
}

.gift-option {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 14px;
  color: #565959;
}

.gift-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
}

/* Responsive Design for Cart */
@media (max-width: 768px) {
  .cart-container {
    flex-direction: column;
    padding: 10px;
  }
  
  .cart-details {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;
    padding: 15px;
  }
  
  .payment-details {
    width: 100%;
  }
  
  .cart-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .cart-header h1 {
    font-size: 24px;
  }
  
  .cart-item-main {
    flex-direction: column;
    gap: 15px;
  }
  
  .cart-item-image {
    align-self: center;
  }
  
  .item-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .quantity-section {
    align-self: flex-start;
  }
  
  .item-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .cart-subtotal {
    text-align: left;
  }
  
  .gift-option {
    justify-content: flex-start;
  }
}