/* Import Premium Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CSS Variables for Premium Design System */
:root {
  --ink-black: #0D0D0D;
  --charcoal: #1A1A1A;
  --gold: #C9A227;
  --gold-hover: #E3B830;
  --rose-gold: #B76E79;
  --rose-gold-hover: #C5838D;
  --ivory: #F5F2ED;
  --stone: #8A8A8A;
  --success: #28a745;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* Custom Dark Scrollbar styling (Global) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--ink-black);
}

::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 4px;
  border: 1.5px solid var(--ink-black);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

/* Firefox scrollbar settings */
* {
  scrollbar-width: thin;
  scrollbar-color: #252525 var(--ink-black);
}

html, body {
  background-color: var(--ink-black);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body.admin-mode {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

body.admin-mode main {
  height: calc(100vh - 100px) !important;
  overflow: hidden !important;
}

a {
  color: var(--ivory);
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--ivory);
}

.section-title {
  font-size: 2rem;
  margin: 0.5rem 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
}

/* Signature Element: Animating gold hairline underline */
.signature-underline {
  position: relative;
  display: inline-block;
}

.signature-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: var(--transition-smooth);
}

.signature-underline:hover::after,
a:hover .signature-underline::after {
  width: 100%;
}

/* Header & Navigation */
header {
  background-color: var(--ink-black);
  border-bottom: 1px solid var(--charcoal);
  padding: 0px 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

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

.nav-item {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  outline: none;
}

.hamburger-menu span {
  width: 100%;
  height: 2px;
  background-color: var(--ivory);
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger-menu.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Layout Containers */
main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0.5rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  height: 100%;
  overflow-y: auto;
  padding-right: 0.25rem;
}

#view-browse.view-section.active,
#view-admin.view-section.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding-right: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 0; /* Premium square edge */
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: auto;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--ink-black);
}

.btn-primary:hover {
  background-color: var(--gold-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}

.btn-secondary:hover {
  background-color: rgba(201, 162, 39, 0.05);
}

/* Product Attribute Selection Buttons */
.btn-attr {
  background-color: transparent;
  color: var(--ivory);
  border: 1px solid rgba(245, 242, 237, 0.15);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-attr:hover {
  border-color: rgba(245, 242, 237, 0.4);
}

.btn-attr.active {
  border-color: var(--gold) !important;
  background-color: rgba(201, 162, 39, 0.1) !important;
  color: var(--gold) !important;
}

.btn-rose {
  background-color: var(--rose-gold);
  color: var(--ivory);
}

.btn-rose:hover {
  background-color: var(--rose-gold-hover);
}

.btn-stone {
  background-color: transparent;
  color: var(--stone);
  border: 1px solid var(--stone);
}

.btn-stone:hover {
  background-color: rgba(138, 138, 138, 0.05);
}

.btn-danger {
  background-color: transparent;
  color: #dc3545;
  border: 1px solid #dc3545;
}

.btn-danger:hover {
  background-color: rgba(220, 53, 69, 0.05);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form Styles */
.form-container {
  max-width: 450px;
  margin: 3rem auto;
  background-color: var(--charcoal);
  padding: 2.5rem;
  border: 1px solid rgba(201, 162, 39, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--stone);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background-color: var(--charcoal);
  border: 1px solid rgba(245, 242, 237, 0.15);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

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

.form-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--stone);
}

.form-footer a {
  color: var(--gold);
  font-weight: 500;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 150px));
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Product Card */
.product-card {
  background-color: var(--charcoal);
  border: 1px solid transparent;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.product-card:hover {
  /* Thin gold hairline border on hover (no shadows, reads premium) */
  border-color: var(--gold);
}

.product-image-container {
  width: 100%;
  padding-top: 100%; /* 1:1 square ratio for height reduction */
  position: relative;
  background-color: #121212;
  overflow: hidden;
}

.product-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

/* Sale Badge */
.sale-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--rose-gold);
  color: var(--ivory);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.25rem 0.6rem;
  z-index: 10;
}

.product-info {
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  line-height: 1.3;
}

.product-category {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--stone);
  margin-bottom: 0.25rem;
}

.product-name {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.product-price {
  color: var(--gold);
  font-weight: 600;
  font-family: var(--font-body);
}

.original-price {
  color: var(--stone);
  text-decoration: line-through;
  font-size: 0.9rem;
}

/* Browse Controls & Filter Sidebar */
.browse-container {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0rem;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

.sidebar-filters {
  background-color: var(--charcoal);
  padding: 1.5rem;
  border-right: 1px solid rgba(245, 242, 237, 0.05);
  height: 100%;
}

.filter-section {
  margin-bottom: 2rem;
}

.filter-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.2);
  padding-bottom: 5px;
}

.filter-list {
  list-style: none;
}

.filter-item {
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--stone);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-item:hover, .filter-item.active {
  color: var(--ivory);
  padding-left: 5px;
}

.filter-item.active {
  border-left: 2px solid var(--gold);
  font-weight: 600;
}

.search-bar-container {
  display: flex;
  margin-bottom: 5px;
  gap: 0.5rem;
}

/* Modal and Detail Dialogs */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 13, 13, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

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

.modal-content {
  background-color: var(--charcoal);
  border: 1px solid rgba(201, 162, 39, 0.2);
  width: 100%;
  max-width: 950px; /* Increased width */
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: sticky;
  top: 15px;
  float: right;
  margin-right: 15px;
  margin-top: 15px;
  font-size: 1.8rem;
  color: var(--ivory);
  cursor: pointer;
  z-index: 100;
  background: transparent;
  border: none;
  height: 0;
  line-height: 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-detail-media {
  background-color: #121212;
  position: relative;
  width: 100%;
}

.product-detail-media img,
.product-detail-media video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-detail-info {
  padding: 2rem; /* Decreased padding to reduce height */
  display: flex;
  flex-direction: column;
  line-height: 1.3; /* Tightened line height */
}

.product-detail-desc {
  color: var(--stone);
  font-size: 0.9rem;
  margin: 1rem 0; /* Tightened margin spacing */
  line-height: 1.4; /* Tightened line height */
}

.product-stock {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.stock-in {
  color: var(--success);
}

.stock-out {
  color: var(--rose-gold);
}

/* Cart Styles */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.cart-table th {
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid var(--charcoal);
  color: var(--stone);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

.cart-table td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid rgba(245, 242, 237, 0.05);
  vertical-align: middle;
}

.cart-item-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item-thumb {
  width: 60px;
  height: 75px;
  object-fit: cover;
  background-color: #121212;
}

.qty-control {
  display: inline-flex;
  border: 1px solid rgba(245, 242, 237, 0.15);
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--ivory);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
}

.qty-input {
  width: 40px;
  text-align: center;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(245, 242, 237, 0.15);
  border-right: 1px solid rgba(245, 242, 237, 0.15);
  color: var(--ivory);
  font-family: var(--font-body);
}

.cart-totals {
  margin-top: 2rem;
  background-color: var(--charcoal);
  padding: 2rem;
  width: 350px;
  margin-left: auto;
  border: 1px solid rgba(201, 162, 39, 0.1);
}

.totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.totals-row.grand-total {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold);
  border-top: 1px solid rgba(245, 242, 237, 0.1);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* Order Tracking Status tags */
.status-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.status-pending { background-color: rgba(138, 138, 138, 0.15); color: var(--stone); border: 1px solid var(--stone); }
.status-confirmed { background-color: rgba(201, 162, 39, 0.15); color: var(--gold); border: 1px solid var(--gold); }
.status-shipped { background-color: rgba(183, 110, 121, 0.15); color: var(--rose-gold); border: 1px solid var(--rose-gold); }
.status-delivered { background-color: rgba(40, 167, 69, 0.15); color: #2ecc71; border: 1px solid #2ecc71; }
.status-cancelled { background-color: rgba(220, 53, 69, 0.15); color: #e74c3c; border: 1px solid #e74c3c; }

/* Admin Dashboard View Layout */
.admin-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2.5rem;
  margin-top: 1rem;
  height: calc(100vh - 160px);
  overflow: hidden;
}

.admin-sidebar {
  border-right: 1px solid rgba(245, 242, 237, 0.05);
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;  /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
}

.admin-sidebar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.admin-layout > div {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 1rem;
  box-sizing: border-box;
}

.admin-nav-item {
  padding: 0.65rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--stone);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.admin-nav-item:hover,
.admin-nav-item.active {
  color: var(--gold);
}

.admin-nav-item.active {
  border-right: 2px solid var(--gold);
}

.admin-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.dashboard-card {
  background-color: var(--charcoal);
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--gold);
}

.dashboard-card-title {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: var(--stone);
  letter-spacing: 1px;
}

.dashboard-card-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ivory);
  margin-top: 0.25rem;
}

.bank-account-setting-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 0.5rem;
  margin-bottom: 1rem;
  align-items: end;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--charcoal);
  display: block;
  overflow-x: auto;
  scrollbar-width: thin;
}

.admin-table th {
  text-align: left;
  padding: 1rem;
  color: var(--stone);
  border-bottom: 1px solid rgba(245, 242, 237, 0.1);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(245, 242, 237, 0.05);
  font-size: 0.9rem;
}

#admin-tab-orders .admin-table th,
#admin-tab-orders .admin-table td {
  padding: 0.3rem 0.6rem !important;
  font-size: 0.8rem !important;
  line-height: 1.3 !important;
}

#admin-full-orders-list select {
  width: 130px !important;
  max-width: 130px !important;
  display: inline-block;
}

#admin-tab-products .admin-table th,
#admin-tab-products .admin-table td {
  padding: 0.3rem 0.6rem !important;
  font-size: 0.8rem !important;
  line-height: 1.3 !important;
}

/* Responsive Styles */

@media (max-width: 768px) {
  header {
    padding: 0px 1rem !important;
  }
  .logo img {
    height: 42px !important;
  }
  .logo span {
    font-size: 1.25rem !important;
  }
  .nav-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
  }
  .profile-details-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
    padding: 1.5rem !important;
  }
  .profile-details-card button {
    align-self: flex-start;
  }
  .nav-container nav {
    display: flex;
    align-items: center;
  }
  .hamburger-menu {
    display: flex;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: -2rem; /* align to header border */
    width: 200px;
    background-color: var(--charcoal);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-top: none;
    padding: 1.5rem;
    gap: 1.25rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    z-index: 1000;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-item {
    width: 100%;
    text-align: right;
  }
  .browse-container {
    grid-template-columns: 1fr;
  }
  .sidebar-filters {
    display: block;
    border: 1px solid rgba(245, 242, 237, 0.05);
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 5px;
    padding: 0.25rem 0.5rem;
    width: 100%;
    margin-bottom: 2px !important;
    box-sizing: border-box;
    height: auto !important;
  }
  .sidebar-filters .filter-section {
    margin-bottom: 0.25rem;
  }
  .sidebar-filters .filter-section:last-child {
    margin-bottom: 0;
  }
  .sidebar-filters .filter-section:last-child .filter-list {
    padding-bottom: 0 !important;
  }
  .sidebar-filters .filter-title {
    font-size: 0.6rem;
    margin-bottom: 0.15rem;
    border-bottom: none;
    padding-bottom: 0;
    color: rgba(245, 242, 237, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
  }
  .sidebar-filters .filter-list {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    gap: 0.3rem;
    padding-bottom: 0.05rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-filters .filter-list::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
  }
  .sidebar-filters .filter-item {
    margin-bottom: 0;
    padding: 0.2rem 0.5rem;
    background-color: rgba(245, 242, 237, 0.03);
    border: 1px solid rgba(245, 242, 237, 0.06);
    border-radius: 12px;
    font-size: 0.65rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: inline-block;
    color: var(--stone);
    line-height: 1.2;
  }
  .sidebar-filters .filter-item:hover, 
  .sidebar-filters .filter-item.active {
    padding-left: 0.5rem;
    border-left: 1px solid var(--gold);
    color: var(--ivory);
  }
  .sidebar-filters .filter-item.active {
    background-color: rgba(201, 162, 39, 0.1);
    border: 1px solid var(--gold);
    color: var(--gold) !important;
    font-weight: 600;
  }
  #view-admin.view-section.active {
    overflow-y: auto !important;
  }
  .section-title {
    font-size: 1.5rem !important;
    margin-top: 0px !important;
    margin-bottom: 0.5rem !important;
    padding-bottom: 5px !important;
  }
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(110px, 130px)) !important;
    gap: 0.5rem !important;
  }
  .product-info {
    padding: 0.4rem !important;
  }
  .product-name {
    font-size: 0.8rem !important;
  }
  .product-price {
    font-size: 0.85rem !important;
  }
  .product-category {
    font-size: 0.6rem !important;
  }
  .admin-layout {
    grid-template-columns: 1fr;
    height: auto !important;
    overflow: visible !important;
  }
  .admin-layout > div {
    height: auto !important;
    overflow-y: visible !important;
    padding-right: 0 !important;
  }
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(245, 242, 237, 0.05);
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    height: auto !important;
    scrollbar-width: auto;
    -ms-overflow-style: auto;
  }
  .admin-sidebar::-webkit-scrollbar {
    display: block;
  }
  .admin-nav-item.active {
    border-right: none;
    border-bottom: 2px solid var(--gold);
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .admin-dashboard-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Responsive Order History Table on Mobile */
  #profile-order-history-list,
  #profile-order-history-list tr,
  #profile-order-history-list td {
    display: block;
    width: 100%;
  }

  /* Hide original table head on mobile */
  .profile-details-card + div table thead {
    display: none;
  }

  #profile-order-history-list tr {
    border: 1px solid rgba(245, 242, 237, 0.05);
    background-color: var(--charcoal);
    margin-bottom: 1rem;
    padding: 1rem;
  }

  #profile-order-history-list td {
    border: none;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-bottom: 1px dashed rgba(245, 242, 237, 0.03);
    text-align: right;
  }

  #profile-order-history-list td:last-child {
    border-bottom: none;
  }

  #profile-order-history-list td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    text-align: left;
  }

  /* Responsive Admin Tables on Mobile */
  .admin-table,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    border: 1px solid rgba(245, 242, 237, 0.05);
    background-color: var(--charcoal);
    margin-bottom: 1rem;
    padding: 1rem;
    box-sizing: border-box;
  }

  .admin-table td {
    border: none;
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-bottom: 1px dashed rgba(245, 242, 237, 0.03);
    text-align: right;
    box-sizing: border-box;
  }

  .admin-table td:last-child {
    border-bottom: none;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.75rem;
    text-align: left;
    margin-right: 1rem;
  }

  /* Align recent orders list items to the left on mobile */
  #admin-recent-orders-list td {
    justify-content: flex-start;
    text-align: left;
  }

  #admin-recent-orders-list td::before {
    min-width: 100px;
    text-align: left;
  }

  /* Make full orders list rows stack vertically into clean cards on mobile */
  #admin-full-orders-list td {
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 0.35rem;
  }

  #admin-full-orders-list td::before {
    margin-bottom: 0.25rem;
    display: block;
    width: 100%;
  }

  #admin-full-orders-list td select,
  #admin-full-orders-list td button,
  #admin-full-orders-list td div,
  #admin-full-orders-list td span {
    text-align: left !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Make categories inline form stack vertically on mobile */
  .admin-inline-form {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
  }

  .admin-inline-form .form-group {
    width: 100% !important;
  }

  .admin-inline-form button {
    width: 100% !important;
  }

  /* Responsive Bank Account row in settings on mobile */
  .bank-account-setting-row {
    grid-template-columns: 1fr !important;
    gap: 0.35rem !important;
    border-bottom: 1px dashed rgba(245, 242, 237, 0.1);
    padding-bottom: 0.75rem !important;
    margin-bottom: 0.75rem !important;
  }

  .bank-account-setting-row .form-group {
    margin-bottom: 0.25rem !important;
  }

  .bank-account-setting-row .form-label {
    font-size: 0.7rem !important;
    margin-bottom: 0.15rem !important;
  }

  .bank-account-setting-row .form-input {
    padding: 0.3rem 0.5rem !important;
    font-size: 0.75rem !important;
    height: auto !important;
  }

  .bank-account-setting-row button {
    width: 100% !important;
    padding: 0.4rem !important;
    font-size: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  .cart-totals {
    width: 100%;
  }
  .admin-dashboard-cards {
    grid-template-columns: 1fr;
  }
}

/* Media Slider / Carousel Styles */
.slider-container {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 aspect ratio to match square card image */
  overflow: hidden;
  background-color: #121212;
}

.slider-track {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slider-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.slider-slide img,
.slider-slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(13, 13, 13, 0.7);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  font-size: 1.2rem;
  transition: var(--transition-smooth);
  user-select: none;
}

.slider-btn:hover {
  background-color: var(--gold);
  color: var(--ink-black);
  border-color: var(--gold);
}

.slider-btn-left {
  left: 15px;
}

.slider-btn-right {
  right: 15px;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 15;
}

.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(245, 242, 237, 0.3);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-dot.active {
  background-color: var(--gold);
  transform: scale(1.2);
}

/* Admin Form Media Preview Styling */
.admin-preview-thumbnail {
  position: relative;
  width: 70px;
  height: 70px;
  border: 1px solid rgba(245, 242, 237, 0.1);
  background-color: #121212;
}

.admin-preview-thumbnail img,
.admin-preview-thumbnail video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.admin-preview-remove-btn {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: #dc3545;
  color: var(--ivory);
  border: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

/* WhatsApp Floating Button */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition-smooth);
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    transform: scale(1);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    transform: scale(1.05);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    transform: scale(1);
  }
}
