@import url(header.css);
@import url(navigation.css);
@import url(hero.css);
@import url(products.css);
@import url(catalog.css);
@import url(pay.css);
@import url(toast.css);

:root {
  --bg-main: #f9f6f0;
  --bg-card: #ffffff;
  --text-main: #111111;
  --text-secondary: #666666;
  --text-muted: #999999;
  --border-color: #e5dec9;
  --border-light: #f0f0f0;
  --accent-red: #cc0000;

  --font-heading: "Italiana", serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  --radius-sm: 1px;
  --radius-md: 1px;
  --radius-lg: 1px;
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.05);

  --page-padding: 140px 4% 80px 4%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  background-color: var(--bg-main);
  color: var(--text-main);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--text-main);
}

#admin-link {
  display: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 10px;
  padding-top: 10px;
}

body.dark-theme {
  --bg-main: #181715;
  --bg-card: #22211f;
  --text-main: #f9f6f0;
  --text-secondary: #bcaba0;
  --text-muted: #7a7068;
  --border-color: #423e37;
  --border-light: #2d2b27;

  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body,
.admin-page-wrapper,
.catalog-page,
.product-page,
.cart-page,
.auth-page,
.profile-page,
.products-section,
.hero-section,
.about-page .admin-card,
.cart-container,
.auth-box,
.profile-header,
.order-card,
.catalog-controls,
.navigation,
#sort-select,
#sort-select option {
  transition:
    background-color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    color 0.5s ease;
}

input[type="text"],
input[type="number"],
input[type="date"],
textarea,
.custom-select,
.file-upload-box {
  transition:
    background-color 0.4s ease,
    border-color 0.4s ease,
    color 0.4s ease,
    box-shadow 0.4s ease;
}

.navigation {
  transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}
