/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--bg);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}
/* THEME */
:root {
  --bg: #f9f9f9;
  --text: #222;
  --primary: #6A5ACD;
  --accent: #FF69B4;
  --card-bg: #fff;
  --border: #ddd;
  --hover-bg: rgba(0,0,0,0.05);
}
.theme-dark {
  --bg: #1e1e2f;
  --text: #f1f1f1;
  --primary: #8A2BE2;
  --accent: #FF6EC7;
  --card-bg: #2c2c3e;
  --border: #444;
  --hover-bg: rgba(255,255,255,0.1);
}
/* CONTAINERS & CARDS */
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.card {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: all 0.3s;
}
/* BUTTONS (Generic) */
.btn, .btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.btn:hover, .btn-primary:hover { background: var(--accent); }
.btn-sm { font-size: 14px; padding: 6px 10px; border-radius: 6px; font-weight: 500; display: inline-block; }
.btn-accent { background: var(--accent); color: #fff; border: none; border-radius: 8px;}
.btn-accent:hover { background: var(--primary); color: #fff;}
/* HEADER & NAV */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  position: sticky; top: 0; z-index: 1000;
}
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo img { height: 60px; width: auto; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  border: 2px solid var(--primary); background: none; color: var(--primary);
  padding: 6px 10px; border-radius: 6px; cursor: pointer;
}
.theme-toggle:hover { background: var(--primary); color: #fff; }
.auth-links a { color: var(--primary); text-decoration: none; font-size: 0.9rem; margin: 0 4px; }
.auth-links a:hover { text-decoration: underline; }
.cart-link { color: var(--text); font-size: 1rem; position: relative; }
.cart-count {
  background: var(--accent); color: #fff; font-size: 0.75rem;
  padding: 2px 6px; border-radius: 50%;
  position: absolute; top: -6px; right: -10px;
}
/* FORM & INPUTS (applies to most, see password section for exceptions) */
input, select, textarea {
  background: #fff!important;
  color: #222!important;
  border: 1px solid var(--border)!important;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary)!important;
  outline: none;
  box-shadow: 0 0 0 2px #B6F0E250;
}
label {
  font-size: 0.97rem;
  color: #222;
  font-weight: 500;
  margin-bottom: 5px;
  display: block;
}
/* ==== PASSWORD TOGGLE (bulletproof alignment) ==== */
.password-wrapper {
  position: relative;
  margin-bottom: 1.3rem;
}
.password-input {
  width: 100%;
  height: 44px;
  padding: 10px 40px 10px 12px; /* right padding = 40px for eye icon */
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: #222;
  font-size: 1rem;
  box-sizing: border-box;
  appearance: none;
}
.password-input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 2px #B6F0E250;
}
.toggle-password {
  position: absolute;
  right: 10px;
  top: 0;
  height: 44px;
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #B22222;
  padding: 0;
  margin: 0;
  z-index: 2;
}
.toggle-password i {
  font-size: 1.2rem;
  color: inherit;
}
/* SUPPORTIVE FORM ELEMENTS */
.tip {
  font-size: 0.97rem;
  color: #455862;
  background: #F6F6F6;
  padding: 5px 10px;
  border-radius: 6px;
  margin-top: 8px;
}
.badge-ref {
  font-size:0.96rem;
  background:#b6f0e2;
  color:#1d232a;
  border-radius:7px;
  padding:4px 8px;
  display:inline-block;
  margin-bottom:0.33em;
}
/* PRODUCT CARD ESSENTIALS */
.product-card { border: 1px solid #ddd; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.05); display: flex; flex-direction: column; text-align: center; transition: box-shadow 0.3s; min-height: 360px; max-height: 380px; height: 100%; justify-content: space-between; }
.product-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1);}
.product-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px 8px 0 0;}
.product-info { padding: 12px; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between;}
.product-info h3 {
  font-size: 16px; font-weight: 600; margin: 5px 0;
  color: #222; min-height: 42px; line-height: 1.2; overflow: hidden;
}
.product-info .price { font-size: 15px; color: #c0392b;}
/* BADGES/TAGS */
.badge { position: absolute; top: 8px; left: 8px; background: crimson; color: #fff; font-size: 12px; padding: 2px 6px; border-radius: 4px; z-index: 2;}
.badge.stock { top: 32px; background: #f59e0b; }
.badge.discount { background: #10b981; }
.strike { text-decoration: line-through; color: #888; margin-left: 6px; font-size: 0.9rem; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 8px;}
.pill { padding: 4px 10px; border: 1px solid var(--primary); border-radius: 20px; font-size: 12px; color: var(--primary); text-decoration: none; transition: background 0.2s;}
.pill:hover { background: var(--hover-bg);}
.pill.color { width: 20px; height: 20px; border-radius: 50%; padding: 0; border: 1px solid #aaa; display: inline-block;}
/* FOOTER */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  margin-top: 60px;
}
.footer-container { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;}
.footer-col { flex: 1 1 180px;}
.footer-col h4 { font-size: 1.1rem; margin-bottom: 10px; color: var(--primary);}
.footer-col ul { list-style: none; padding: 0; margin: 0;}
.footer-col ul li { margin-bottom: 6px;}
.footer-col ul li a { text-decoration: none; color: var(--text); font-size: 0.95rem; transition: color 0.3s;}
.footer-col ul li a:hover { color: var(--primary);}
.footer-col p { font-size: 0.9rem; color: var(--text); }
/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-container { flex-direction: column; gap: 24px; }
  .hero-banner { padding: 40px 16px; }
  .hero-banner h1 { font-size: 1.5rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .header-inner { flex-wrap: wrap; justify-content: space-between; padding: 10px 20px;}
  .logo img { max-height: 50px; width: auto;}
  .header-actions { display: flex; align-items: center; gap: 12px; margin-top:10px; flex-wrap:wrap;}
  .auth-links a { font-size: 14px;}
  .cart-link { font-size: 16px; position: relative;}
  .cart-count{background-color:crimson;color:#fff;font-size:12px;padding:2px 6px;border-radius:999px;position:absolute;top:-8px;right:-10px;}
  .mobile-menu-icon{font-size:22px;}
  .mobile-float-nav{display:none;flex-direction:column;margin-top:10px;gap:10px;}
  .mobile-float-nav.show {display: flex;}
}
@media (min-width: 1025px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
/* END */
.show-password-toggle {
  position: absolute;
  right: 16px;
  top: 40px;
  color: #b22222;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 3;
  padding: 0;
  display: flex;
  align-items: center;
  height: 32px;
  width: 32px;
}

.show-password-toggle i {
  font-size: 1.18rem;
  color: inherit;
}
.stats-row-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.stat-box-custom {
  min-width: 0;
  border-radius: 1.25rem;
  box-shadow: 0 2.5px 7px #eee9;
  padding: 1.1rem 0.7rem;
  text-align: center;
  border-width: 1.5px;
}
@media (min-width: 525px) {
  .stats-row-custom { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) {
  .stats-row-custom { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .stats-row-custom { grid-template-columns: repeat(4, 1fr); }
}
.profile-header-card {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 1.25rem;
  box-shadow: 0 2px 12px 0 rgba(60,60,60,0.06);
  padding: 2rem 1.2rem 1.2rem 1.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}
.profile-header-card .profile-avatar {
  width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin: 0 auto 0.8rem auto; border:4px solid #fff; box-shadow:0 1.5px 10px #eee9;
}
.profile-header-card .profile-actions {
  display:flex; flex-direction:column; align-items:center; gap:0.5rem;
  margin-bottom:1.2rem;
}
.profile-header-card .profile-name {
  font-weight:700; font-size:1.55rem; color: #771024; text-align:center; margin-top:0.4rem;
}
.profile-header-card .profile-email {
  margin: 0.15rem auto 0.25rem auto; font-size: 1rem; color: #444; text-align:center; letter-spacing:0.01em;
}
.profile-header-card .profile-badge {
  font-size: 0.92rem;
  padding: 3px 12px;
  border-radius: 9px;
  margin:0 0.18em;
}
.profile-header-card .profile-stats-row {
  display: flex; flex-wrap:wrap; justify-content:center; gap:1.1rem; margin:0.8rem 0 0.3rem 0;
}
.profile-header-card .profile-stat-box {
  flex:1 1 150px; max-width:180px; background:#fafafd; border-radius:14px; border: 1px solid #e5e7eb; padding: 1.05rem 0.7rem; display:flex; flex-direction:column; align-items:center;
}
.profile-header-card .profile-stat-box strong {
  font-size:1.35rem; color: #771024; font-family:Inter,sans-serif;
}
.profile-header-card .profile-stat-box span {
  color:#888; font-size:0.97rem; letter-spacing:0.01em;
}
@media (max-width:600px) {
  .profile-header-card {padding:1.2rem 0.47rem 0.7rem 0.47rem;}
  .profile-header-card .profile-stats-row {flex-direction: column; gap: 0.9rem; align-items:center;}
  .profile-header-card .profile-stat-box {width:100%;}
}
.ohone-btn, .ohone-btn-alt {
  display: inline-block;
  border-radius: 9999px;
  text-align: center;
  font-weight: 600;
  padding: .7em 2.3em;
  box-shadow: 0 2px 8px 0 #F4E3EA;
  font-size: 1rem;
}
/* Main theme button (filled) */
.ohone-btn {
  background: #7E102C;
  color: #fff;
  border: none;
  transition: background .18s, color .18s;
}
.ohone-btn:hover, .ohone-btn:focus {
  background: #601025;
  color: #fff;
}
/* Alt (outlined) button */
.ohone-btn-alt {
  background: #fff;
  color: #7E102C;
  border: 2px solid #7E102C;
  transition: background .18s, color .18s, border .18s;
}
.ohone-btn-alt:hover, .ohone-btn-alt:focus {
  background: #f9e6ec;
  color: #601025;
  border-color: #601025;
}
.table-spreadsheet {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  font-size: 0.98rem;
  box-shadow: 0 2px 8px #00000009;
}
.table-spreadsheet th, .table-spreadsheet td {
  padding: 0.65em 0.8em;
  border: 1px solid #efefef;
  text-align: center;
}
.table-spreadsheet th {
  background: #f6f7fa;
  color: #6C1B34;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.table-spreadsheet tr:nth-child(even) td {
  background: #F9FAFC;
}
.table-spreadsheet tbody tr:hover td {
  background: #fafdff;
}
/* Consistent website maroon icon color */
.fa,
.fas,
.far,
.fab,
.fa-solid,
.fa-regular,
.fa-brands {
  color: #7E102C !important;
}

.card h2 .fa,
.card h2 .fa-solid,
.card h2 .fa-regular {
  color: #7E102C !important;
}
@media (max-width: 480px) {
  .btn-primary, .btn-accent {
    width: 100%;
    padding: 12px 0;
    font-size: 1.08em;
    margin-bottom: 9px;
  }
  .flex.gap-3.items-center.mb-2,
  form.flex.gap-3.items-center.mb-2 {
    flex-direction: column;
    gap: 0.25em !important;
    align-items: stretch !important;
  }
}
body, html {
  max-width: 100vw;
  overflow-x: hidden;
}
.container, .card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100vw;
  padding-left: 1em;
  padding-right: 1em;
}
:root {
  --maroon: #7e102c;
}

.btn-primary,
.btn-accent,
.button-row .btn-primary,
.button-row .btn-accent {
  background: var(--maroon) !important;
  color: #fff !important;
  border-radius: 12px;
  padding: 12px 0;
  border: none;
  transition: background 0.18s;
  font-weight: 600;
}

.btn-primary:hover,
.btn-accent:hover {
  background: #a11239 !important;
}

.wishlist-btn {
  background: var(--maroon) !important;
  color: #fff !important;
  border-radius: 12px;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  min-width: 44px;
}

.wishlist-btn:hover {
  background: #a11239 !important;
  color: #ffe0ef;
}
button, .btn-primary, .btn-accent, .wishlist-btn, a, .option-btn, .size-btn, .color-btn, .product-card, [onclick], .sm-prod-card {
  cursor: pointer;
}

button:disabled, .size-btn.disabled, .color-btn.disabled {
  cursor: not-allowed;
}
