/* ========================================
   Билд Импорт БГ ЕООД - Основен CSS
   ======================================== */

/* CSS Variables */
:root {
  --primary-color: #1a1a2e;
  --secondary-color: #16213e;
  --accent-color: #0f3460;
  --highlight-color: #e94560;
  --text-color: #333;
  --text-light: #666;
  --bg-color: #f8f9fa;
  --white: #ffffff;
  --border-color: #ddd;
  --success-color: #28a745;
  --error-color: #dc3545;
  --info-color: #17a2b8;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  gap: 1rem;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

nav {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
}

nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
}

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

/* Cart Toggle Button */
.cart-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  position: relative;
}

.cart-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.cart-icon {
  font-size: 1.2rem;
}

.cart-count {
  background: var(--highlight-color);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: bold;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */

main {
  flex: 1;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--white) 0%, #f0f4f8 100%);
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--white) 0%, #f0f4f8 100%);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--text-light);
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  text-align: center;
  font-family: inherit;
}

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

.btn-primary:hover:not(:disabled) {
  background-color: #d63d56;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background-color: var(--accent-color);
  color: var(--white);
}

.btn-secondary:hover:not(:disabled) {
  background-color: #0a2647;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

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

.btn-full {
  width: 100%;
  margin-bottom: 0.5rem;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-link {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
}

.btn-link:hover {
  text-decoration: underline;
}

/* ========================================
   FEATURES SECTION
   ======================================== */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.feature {
  text-align: center;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.feature h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--text-light);
}

/* ========================================
   PRODUCTS SECTION
   ======================================== */

.products-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-light);
}

/* ========================================
   SEARCH SECTION
   ======================================== */

.search-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 1.5rem;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-container input {
  width: 100%;
  padding: 1rem 3rem 1rem 1.5rem;
  font-size: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--white);
  transition: var(--transition);
}

.search-container input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.1);
}

.search-container input::placeholder {
  color: var(--text-light);
}

#search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--border-color);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

#search-clear:hover {
  background: var(--error-color);
  color: var(--white);
}

.search-results {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.5rem;
}

/* Category Filters */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 2px solid var(--border-color);
  background: var(--white);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  text-transform: capitalize;
}

.filter-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.filter-btn.active {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--white);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-color);
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: var(--transition);
  padding: 0.5rem;
}

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

.out-of-stock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-size: 0.9rem;
}

.product-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-info h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.product-code {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.product-desc {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  flex: 1;
}

.product-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.qty-btn {
  background: var(--bg-color);
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--border-color);
}

.qty-input-small {
  width: 50px;
  text-align: center;
  border: none;
  padding: 0.5rem;
  font-size: 1rem;
  -moz-appearance: textfield;
}

.qty-input-small::-webkit-outer-spin-button,
.qty-input-small::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.add-to-cart-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-to-cart-btn:disabled {
  background: var(--border-color);
  cursor: not-allowed;
}

/* ========================================
   CART DRAWER
   ======================================== */

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: var(--white);
  z-index: 1002;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-drawer-header h2 {
  font-size: 1.25rem;
  color: var(--primary-color);
}

.cart-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.25rem;
  line-height: 1;
}

.cart-close:hover {
  color: var(--error-color);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.cart-drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-color);
}

/* Cart Items */
.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cart-empty p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item-image {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: var(--border-radius);
  background: var(--bg-color);
  padding: 0.25rem;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 1rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-code {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  padding: 0.4rem;
  font-size: 0.9rem;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-minus,
.qty-plus {
  background: var(--bg-color);
  border: none;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.qty-minus:hover,
.qty-plus:hover {
  background: var(--border-color);
}

.cart-item-unit {
  font-size: 0.85rem;
  color: var(--text-light);
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: var(--error-color);
}

/* Cart Notification */
.cart-notification {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-hover);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1003;
  max-width: 350px;
}

.cart-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.notification-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.notification-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.notification-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

.notification-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

/* ========================================
   ORDER PAGE
   ======================================== */

.order-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.order-summary-card {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.order-empty {
  text-align: center;
  padding: 3rem;
}

.order-empty p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.order-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-color);
}

.order-summary-header h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.order-items {
  padding: 1rem 1.5rem;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.order-item-info {
  flex: 1;
  min-width: 0;
}

.order-item-name {
  font-weight: 500;
  color: var(--primary-color);
  display: block;
}

.order-item-code {
  font-size: 0.85rem;
  color: var(--text-light);
}

.order-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.order-item-unit {
  font-size: 0.85rem;
  color: var(--text-light);
  min-width: 40px;
}

.order-item-remove {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: var(--transition);
}

.order-item-remove:hover {
  color: var(--error-color);
}

.order-summary-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-color);
  text-align: center;
}

/* ========================================
   FORM STYLES
   ======================================== */

.form-section {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-section h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

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

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

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.required {
  color: var(--highlight-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

input.error,
select.error,
textarea.error {
  border-color: var(--error-color);
}

.error-message {
  display: block;
  color: var(--error-color);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  min-height: 1.2rem;
}

.char-count {
  display: block;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

/* Checkbox styling */
.checkbox-group {
  margin-top: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-label a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Honeypot field */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* File Upload Styling */
input[type="file"] {
  padding: 0.5rem;
  border: 2px dashed var(--border-color);
  background: var(--bg-color);
  cursor: pointer;
  transition: var(--transition);
}

input[type="file"]:hover {
  border-color: var(--accent-color);
  background: rgba(15, 52, 96, 0.05);
}

#file-preview {
  padding: 0.75rem;
  background: #f0f8f0;
  border-radius: var(--border-radius);
  border: 1px solid #c3e6cb;
}

/* Invoice Fields */
#invoice-fields {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
  border: 1px solid var(--border-color);
}

#invoice-fields .form-group:last-child {
  margin-bottom: 0;
}

/* Checkbox styling improvements */
.checkbox-group {
  margin-top: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin-top: 0.25rem;
  min-width: 18px;
  min-height: 18px;
  cursor: pointer;
}

.checkbox-label a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Status messages */
.status-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.status-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.status-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* ========================================
   CONTACT & CTA SECTIONS
   ======================================== */

.contact-section {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--white);
  margin: 2rem auto;
  max-width: 800px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.contact-section h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-section a {
  color: var(--accent-color);
  font-weight: 500;
}

.cta-section {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  margin: 3rem 2rem;
  border-radius: var(--border-radius);
}

.cta-section h2 {
  margin-bottom: 0.5rem;
}

.cta-section p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-section .btn-primary {
  background-color: var(--white);
  color: var(--primary-color);
}

.cta-section .btn-primary:hover {
  background-color: var(--highlight-color);
  color: var(--white);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 2rem;
  margin-top: auto;
}

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

.footer-info a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.copyright {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   PRIVACY POLICY PAGE
   ======================================== */

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.privacy-content h2 {
  color: var(--primary-color);
  margin: 2rem 0 1rem;
  font-size: 1.3rem;
}

.privacy-content h2:first-child {
  margin-top: 0;
}

.privacy-content p {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.privacy-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.privacy-content li {
  margin-bottom: 0.5rem;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
  header {
    flex-wrap: wrap;
    padding: 1rem;
  }

  .menu-toggle {
    display: block;
    order: 1;
  }

  .logo {
    order: 0;
    flex: 1;
  }

  .cart-toggle {
    order: 2;
  }

  nav {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 0.75rem;
    text-align: center;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .features {
    padding: 2rem 1rem;
    gap: 1rem;
  }

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

  .products-section,
  .order-section {
    padding: 0 1rem 2rem;
  }

  .form-section {
    padding: 1.5rem;
  }

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

  .page-header {
    padding: 2rem 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .cta-section {
    margin: 2rem 1rem;
    padding: 2rem 1rem;
  }

  .cart-drawer {
    max-width: 100%;
  }

  .order-item {
    flex-wrap: wrap;
  }

  .order-item-quantity {
    width: 100%;
    margin-top: 0.5rem;
  }

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

  .cart-notification {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .btn {
    display: block;
    width: 100%;
  }

  .btn-secondary {
    margin-top: 0.5rem;
  }

  .feature {
    padding: 1.5rem 1rem;
  }

  .product-actions {
    flex-direction: column;
  }

  .quantity-selector {
    width: 100%;
    justify-content: center;
  }

  .add-to-cart-btn {
    width: 100%;
  }

  .category-filters {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.5rem;
  }

  .filter-btn {
    white-space: nowrap;
  }
}

/* ========================================
   COOKIE CONSENT BANNER (GDPR Compliant)
   ======================================== */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  min-width: 280px;
}

.cookie-text h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cookie-text p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.cookie-text a {
  color: var(--highlight-color);
  text-decoration: underline;
}

.cookie-text a:hover {
  color: #ff6b7a;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.95rem;
}

.cookie-btn-accept {
  background: var(--highlight-color);
  color: var(--white);
}

.cookie-btn-accept:hover {
  background: #d63d56;
}

.cookie-btn-reject {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-reject:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
  
  .cookie-btn {
    flex: 1;
    min-width: 120px;
  }
}

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */

.product-detail-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-detail-image {
  background: var(--bg-color);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 500px;
  padding: 1rem;
}

.product-detail-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.product-detail-category {
  display: inline-block;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  text-transform: capitalize;
  margin-bottom: 1rem;
  width: fit-content;
}

.product-detail-info h1 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.product-detail-code {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.product-detail-price.has-price {
  color: var(--highlight-color);
}

.product-detail-price.no-price {
  color: var(--text-light);
  font-size: 1.25rem;
}

.product-detail-description {
  color: var(--text-color);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.product-detail-stock {
  margin-bottom: 1.5rem;
}

.in-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #d4edda;
  color: #155724;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
}

.out-of-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8d7da;
  color: #721c24;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
}

.product-detail-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-detail-unit {
  color: var(--text-light);
  font-size: 1rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.btn-large:disabled {
  background: var(--border-color);
  cursor: not-allowed;
}

.product-detail-meta {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* Product Not Found */
.product-not-found {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
}

.not-found-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.product-not-found h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.product-not-found p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .product-detail-container {
    grid-template-columns: 1fr;
  }
  
  .product-detail-image {
    min-height: 250px;
  }
  
  .product-detail-info {
    padding: 1.5rem;
  }
  
  .product-detail-info h1 {
    font-size: 1.5rem;
  }
  
  .product-detail-price {
    font-size: 1.5rem;
  }
  
  .product-detail-actions {
    flex-wrap: wrap;
  }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--highlight-color);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}
