/* ==================== MINIMALIST LUXURY THEME ==================== */
/* Inspired by modern luxury e-commerce aesthetics */

/* ==================== CSS VARIABLES ==================== */
:root[data-theme="dark"],
:root {
  --color-primary: rgb(255, 0, 9);
  --color-primary-dark: rgb(126, 0, 0);
  --color-bg: rgb(18, 18, 18);
  --color-bg-elevated: rgb(25, 25, 25);
  --color-bg-card: rgb(25, 25, 25);
  --color-text: rgb(255, 255, 255);
  --color-text-secondary: rgb(163, 163, 163);
  --color-text-muted: rgb(115, 115, 115);
  --color-border: rgba(255, 255, 255, 0.05);
  --color-border-hover: rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] {
  --color-primary: rgb(255, 0, 9);
  --color-primary-dark: rgb(126, 0, 0);
  --color-bg: rgb(255, 255, 255);
  --color-bg-elevated: rgb(249, 249, 249);
  --color-bg-card: rgb(255, 255, 255);
  --color-text: rgb(25, 25, 25);
  --color-text-secondary: rgb(82, 82, 82);
  --color-text-muted: rgb(115, 115, 115);
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-hover: rgba(0, 0, 0, 0.12);
}

:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== RESET & BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ==================== LAYOUT ==================== */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

/* ==================== HEADER ==================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--color-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  transition: background-color var(--transition-base);
}

.topbar-left {
  display: flex;
  align-items: center;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--color-text);
}

.topbar-logo-icon {
  width: 42px;
  height: 42px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.25rem;
  color: white;
}

.topbar-logo-text {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.topbar-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon-btn {
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  color: var(--color-text);
}

.icon-btn:hover {
  background: var(--color-bg-elevated);
  border-color: var(--color-border-hover);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  padding-top: 80px;
  min-height: 100vh;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}

.hero-content-wrapper {
  max-width: 800px;
}

.hero-main-title {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray-400);
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border: 1px solid currentColor;
  text-decoration: none;
  font-weight: 400;
  transition: var(--transition-base);
  cursor: pointer;
  font-size: 0.938rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: transparent;
}

.btn-primary {
  color: var(--color-white);
  border-color: var(--color-white);
}

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

.btn-secondary {
  color: var(--color-gray-400);
  border-color: var(--color-gray-700);
}

.btn-secondary:hover {
  background: var(--color-bg-elevated);
  color: var(--color-text);
  border-color: var(--color-border-hover);
}

/* ==================== PILL BUTTONS ==================== */
.pill-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2rem 0;
}

.pill-btn {
  padding: 0.75rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 400;
}

.pill-btn:hover {
  border-color: var(--color-border-hover);
  color: var(--color-text);
  background: var(--color-bg-elevated);
}

.pill-btn.active {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

/* ==================== SORT & FILTER ==================== */
.filter-section {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.search-box {
  flex: 1;
  min-width: 250px;
  max-width: 500px;
}

.sort-select {
  padding: 0.75rem 1.5rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.875rem;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-base);
}

.sort-select:hover,
.sort-select:focus {
  border-color: var(--color-border-hover);
  outline: none;
}

/* ==================== CARDS ==================== */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition-base);
  cursor: pointer;
}

.card:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-4px);
}

.card-image-container {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: var(--color-bg-elevated);
}

.card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.card-price {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  color: white;
  padding: 0.5rem 1rem;
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.card-content {
  padding: 2rem;
}

.card-category {
  display: inline-block;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  margin-bottom: 1rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}

.card-description {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 0.938rem;
  line-height: 1.6;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.875rem;
  color: var(--color-gray-500);
}

.card-link {
  color: var(--color-white);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: var(--transition-base);
}

.card:hover .card-link {
  color: var(--color-primary);
}

/* ==================== HERO OFFERS ==================== */
#offers-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 2rem;
}

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.hero-content {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  color: white;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: var(--color-primary);
  padding: 0.5rem 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}

.hero-title {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero-description {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  opacity: 0.9;
  font-weight: 300;
  line-height: 1.5;
}

.hero-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-item-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 0.4rem 0.85rem;
  font-size: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==================== GRID ==================== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
}

/* ==================== SECTIONS ==================== */
.section-title {
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-gray-400);
  margin-bottom: 4rem;
  text-align: center;
  font-weight: 300;
}

/* ==================== ABOUT SECTION ==================== */
.about-content {
  background: var(--color-dark);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 3rem;
}

.about-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--color-gray-300);
  margin-bottom: 1.5rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* ==================== SERVICES ==================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--color-dark);
  padding: 3rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  transition: var(--transition-base);
}

.service-card:hover {
  border-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 2rem;
  color: var(--color-white);
}

.service-title {
  font-size: 1.125rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--color-white);
}

.service-description {
  color: var(--color-gray-400);
  line-height: 1.6;
  font-size: 0.938rem;
  font-weight: 300;
}

/* ==================== FORMS ==================== */
.form-input,
.form-select,
textarea {
  width: 100%;
  padding: 1rem 1.5rem;
  background: var(--color-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 0.938rem;
  transition: var(--transition-base);
  font-family: var(--font-sans);
}

.form-input:focus,
.form-select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--color-gray-900);
}

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

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-gray-400);
  font-weight: 400;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-error {
  background: rgba(255, 0, 9, 0.1);
  border: 1px solid rgba(255, 0, 9, 0.3);
  color: var(--color-primary);
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* ==================== FOOTER ==================== */
.footer {
  margin-top: auto;
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-gray-400);
  text-decoration: none;
  transition: var(--transition-base);
  font-weight: 300;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-copyright {
  color: var(--color-gray-600);
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition-base);
  font-weight: 300;
}

.footer-copyright:hover {
  color: var(--color-gray-400);
}

/* ==================== BOTTOM NAV ==================== */
.bottom-nav {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(25, 25, 25, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 60px;
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
  z-index: 1000;
  max-width: 90vw;
  overflow-x: auto;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 40px;
  text-decoration: none;
  color: var(--color-gray-400);
  transition: var(--transition-base);
  min-width: 70px;
  cursor: pointer;
}

.bottom-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
}

.bottom-nav-item.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

.bottom-nav-item svg {
  width: 22px;
  height: 22px;
}

.bottom-nav-item span {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==================== ADMIN STYLES ==================== */
.glass-effect {
  background: var(--color-dark);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==================== PAGINATION ==================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 1rem 0;
}

.pagination-btn {
  min-width: 40px;
  height: 40px;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-weight: 400;
  cursor: pointer;
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

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

.pagination-btn.active {
  background: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.pagination-info {
  color: var(--color-gray-500);
  font-size: 0.875rem;
  padding: 0 1rem;
  font-weight: 300;
}

/* ==================== UTILITIES ==================== */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  gap: 1.5rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hidden {
  display: none !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .hero-main-title {
    font-size: 3rem;
  }

  .section {
    padding: 4rem 0;
  }
}

@media (max-width: 768px) {
  .topbar {
    height: 70px;
    padding: 0 1.5rem;
  }

  .hero-section {
    min-height: 70vh;
  }

  .hero-main-title {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 350px;
  }

  .hero-content {
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .hero-item-tag {
    font-size: 0.65rem;
    padding: 0.35rem 0.7rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .card {
    font-size: 0.875rem;
  }

  .card-title {
    font-size: 1rem;
  }

  .card-description {
    font-size: 0.813rem;
    -webkit-line-clamp: 2;
  }

  .card-price {
    font-size: 0.875rem;
    padding: 0.375rem 0.625rem;
  }

  .topbar-logo-text {
    display: none;
  }

  .bottom-nav {
    bottom: 1rem;
    padding: 0.5rem 1rem;
  }

  .bottom-nav-item {
    padding: 0.5rem 1rem;
    min-width: 60px;
  }

  /* Admin pages mobile */
  .glass-effect {
    padding: 1rem !important;
  }

  .btn {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
  }

  .form-input,
  .form-label {
    font-size: 0.875rem;
  }

  .pagination-container {
    flex-wrap: wrap;
  }

  .pagination-btn {
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }

  /* Item detail page mobile */
  .item-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .item-detail-image {
    height: 350px !important;
  }

  .item-detail-title {
    font-size: 2rem !important;
  }

  .item-detail-price {
    font-size: 1.5rem !important;
  }

  .item-detail-description {
    font-size: 1rem !important;
  }

  .item-detail-cards {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
    margin: 2rem 0 !important;
  }

  .item-detail-info {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}

@media (max-width: 480px) {
  .hero-main-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 1rem;
  }

  .topbar {
    padding: 0 1rem;
  }

  .hero {
    height: 300px;
  }

  .hero-content {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
    margin-bottom: 0.75rem;
  }

  #offers-container {
    gap: 1.5rem;
  }

  /* Admin pages mobile */
  table {
    font-size: 0.75rem;
  }

  .btn {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .form-input {
    font-size: 0.875rem;
    padding: 0.625rem;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
  }

  .icon-btn svg {
    width: 18px !important;
    height: 18px !important;
  }

  .pagination-btn {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
  }

  /* Make admin navigation stack on mobile */
  .admin-nav-buttons {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .admin-nav-buttons a,
  .admin-nav-buttons button {
    width: 100% !important;
  }
}
