/* 
  Geneprotah - Financial Education Platform 
  Main Stylesheet
  2024
*/

/* ---------- Base Styles ---------- */
:root {
  --color-primary: #007c89;
  --color-primary-dark: #005f68;
  --color-secondary: #e2b33a;
  --color-secondary-dark: #c9972c;
  --color-accent: #d64933;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-background: #ffffff;
  --color-background-alt: #f8f8f8;
  --color-border: #e0e0e0;
  --color-success: #2ecc71;
  --color-error: #e74c3c;
  --color-warning: #f39c12;
  --color-info: #3498db;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --border-radius: 6px;
  --transition-speed: 0.3s;
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-background);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

ul, ol {
  list-style-position: inside;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4rem 0;
}

.hidden {
  display: none;
}

/* ---------- Typography ---------- */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

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

.text-error {
  color: var(--color-error);
}

.text-success {
  color: var(--color-success);
}

/* ---------- Utility Classes ---------- */
.flex {
  display: flex;
}

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

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.m-0 {
  margin: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

/* ---------- Header ---------- */
header {
  background-color: var(--color-background);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo img {
  max-height: 50px;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 1.5rem;
}

.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-speed);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.cart-link {
  display: flex;
  align-items: center;
}

.cart-link .icon {
  margin-right: 0.25rem;
}

#cart-count {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.8rem;
  text-align: center;
  line-height: 18px;
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 30px;
  height: 20px;
  justify-content: space-between;
}

.mobile-nav-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-text);
  transition: all var(--transition-speed);
}

/* ---------- Hero Section ---------- */
.hero {
  background-color: var(--color-primary);
  color: var(--color-background);
  text-align: center;
  padding: 6rem 0;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(45deg, rgba(0, 124, 137, 0.8), rgba(0, 95, 104, 0.8));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--color-background);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Features Section ---------- */
.features {
  text-align: center;
  background-color: var(--color-background-alt);
}

.features h2 {
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.feature-card {
  background-color: var(--color-background);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform var(--transition-speed);
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  margin: 0 auto 1rem;
  color: var(--color-primary);
  background-color: rgba(0, 124, 137, 0.1);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: 3rem 0;
  text-align: center;
}

.stat h3 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.stat p {
  font-size: 1rem;
  color: var(--color-text-light);
}

.cta-container {
  margin-top: 2rem;
}

/* ---------- About Products Section ---------- */
.about-products {
  background-color: var(--color-background);
}

.about-products h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.about-products-content {
  max-width: 900px;
  margin: 0 auto;
}

.quality-assurance {
  background-color: rgba(0, 124, 137, 0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.quality-assurance h3 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.quality-assurance ul {
  list-style-type: none;
}

.quality-assurance li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.quality-assurance li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

/* ---------- Products Section ---------- */
.products {
  background-color: var(--color-background);
}

.products h2 {
  text-align: center;
  margin-bottom: 3rem;
}

.products-grid, .related-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed);
}

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

.product-link {
  display: block;
  color: var(--color-text);
  text-decoration: none;
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed);
}

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

.product-details {
  padding: 1.5rem;
}

.product-description {
  color: var(--color-text-light);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.product-actions {
  padding: 0 1.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ---------- Recommendation Products ---------- */
.recommendations {
  background-color: var(--color-background-alt);
}

.recommendations h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.recommended-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all var(--transition-speed);
  font-size: 1rem;
  line-height: 1.5;
}

.btn:hover {
  background-color: var(--color-primary-dark);
  text-decoration: none;
  color: white;
}

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

.btn-secondary:hover {
  background-color: var(--color-secondary-dark);
}

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

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

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

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

.btn-add-to-cart, .btn-buy-now {
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}

/* ---------- Forms ---------- */
form {
  width: 100%;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  font-size: 1rem;
  background-color: white;
  transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(0, 124, 137, 0.1);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
}

.form-checkbox input {
  width: auto;
  margin-right: 0.75rem;
  margin-top: 0.25rem;
}

.form-checkbox.error label {
  color: var(--color-error);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

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

/* ---------- Newsletter ---------- */
.newsletter {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.newsletter h2 {
  color: white;
  margin-bottom: 1rem;
}

.newsletter p {
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form .form-group {
  display: flex;
  margin-bottom: 0;
}

.newsletter-form input {
  flex: 1;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border: none;
}

.newsletter-form button {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  background-color: var(--color-secondary);
}

.newsletter-form button:hover {
  background-color: var(--color-secondary-dark);
}

/* ---------- Footer ---------- */
footer {
  background-color: #333;
  color: #fff;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-column h3 {
  color: #fff;
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--transition-speed);
}

.footer-column ul li a:hover {
  color: var(--color-secondary);
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.8);
}

.contact-info li svg {
  margin-right: 0.75rem;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  margin: 0 0.5rem;
  color: white;
  transition: all var(--transition-speed);
}

.social-links a:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-links {
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  margin: 0 1rem;
}

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

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.footer-column .logo img {
  max-width: 150px;
  margin-bottom: 1.5rem;
}

/* ---------- Ask Question & Complaint Sections ---------- */
.ask-question, .complaint-section {
  background-color: var(--color-background-alt);
}

.ask-question h2, .complaint-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.question-form-container, .complaint-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* ---------- Notification ---------- */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--color-primary);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 9999;
}

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

/* ---------- Cookie Notice ---------- */
.cookie-notice {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--color-background);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 9998;
  transition: bottom 0.5s ease;
}

.cookie-notice.show {
  bottom: 0;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.cookie-content p {
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cookie-content a {
  font-size: 0.875rem;
}

/* ---------- Page Header ---------- */
.page-header {
  background-color: var(--color-primary);
  color: white;
  padding: 4rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.page-header h1 {
  color: white;
  margin-bottom: 0.75rem;
}

.page-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Product Details Page ---------- */
.product-details {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.product-image-container {
  background-color: white;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.product-main-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.breadcrumb {
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--color-text-light);
  margin-right: 0.5rem;
}

.breadcrumb span {
  color: var(--color-text);
}

.product-info h1 {
  margin-bottom: 1rem;
}

.product-info .product-price {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.product-info .product-price .price {
  font-size: 1.5rem;
  margin-right: 1.5rem;
}

.stock {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.in-stock {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--color-success);
}

.out-of-stock {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--color-error);
}

.product-short-description {
  margin-bottom: 2rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.quantity-selector {
  margin-bottom: 1rem;
}

.quantity-selector label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.quantity-controls {
  display: flex;
  align-items: center;
  max-width: 150px;
}

.quantity-btn {
  width: 36px;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-background-alt);
  border: 1px solid var(--color-border);
  cursor: pointer;
}

.quantity-btn.minus {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.quantity-btn.plus {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.quantity-controls input {
  width: 60px;
  height: 36px;
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
  text-align: center;
  font-size: 1rem;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.product-description {
  margin-top: 3rem;
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2rem;
  overflow-x: auto;
}

.tab-btn {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-light);
  transition: all var(--transition-speed);
  white-space: nowrap;
}

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

.tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  position: relative;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.5s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tab-pane h2 {
  margin-bottom: 1.5rem;
}

.tab-pane h3 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.specs-table th, .specs-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.specs-table th {
  width: 30%;
  font-weight: 600;
  color: var(--color-text);
}

.specs-table td {
  color: var(--color-text-light);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

.module {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.module:last-child {
  border-bottom: none;
}

.bonus {
  background-color: rgba(46, 204, 113, 0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--color-success);
}

.related-products {
  background-color: var(--color-background-alt);
}

.related-products h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.feature-highlight {
  margin-bottom: 2.5rem;
}

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

.feature-highlight ul {
  list-style: none;
}

.feature-highlight li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-highlight li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.feature-highlight li strong {
  color: var(--color-primary-dark);
}

.review-summary {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background-color: var(--color-background-alt);
  border-radius: var(--border-radius);
}

.rating {
  text-align: center;
}

.rating-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stars {
  display: flex;
  margin-bottom: 0.5rem;
}

.star {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 3px;
}

.star::before {
  content: "★";
  color: #e0e0e0;
  position: absolute;
}

.star.filled::before {
  content: "★";
  color: #ffc107;
}

.star.half-filled::before {
  content: "★";
  color: #e0e0e0;
}

.star.half-filled::after {
  content: "★";
  color: #ffc107;
  position: absolute;
  width: 10px;
  overflow: hidden;
}

.review-count {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.review {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.reviewer {
  font-weight: 600;
  color: var(--color-text);
}

.review-date {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.review-rating {
  margin-bottom: 1rem;
}

.review-content p {
  margin-bottom: 0;
  color: var(--color-text-light);
}

/* ---------- Cart Page ---------- */
.cart-section {
  padding: 2rem 0 4rem;
}

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

.empty-cart-message {
  max-width: 500px;
  margin: 0 auto;
}

.empty-cart-message svg {
  color: var(--color-text-light);
  margin: 0 auto 1.5rem;
}

.empty-cart-message h2 {
  margin-bottom: 1rem;
}

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

.cart-items {
  margin-bottom: 2rem;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
}

.cart-table th {
  text-align: left;
  padding: 1rem;
  border-bottom: 2px solid var(--color-border);
  font-weight: 600;
}

.cart-table td {
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.product-info {
  display: flex;
  align-items: center;
}

.product-image {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: var(--border-radius);
  margin-right: 1rem;
}

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

.product-name h4 {
  margin-bottom: 0.25rem;
}

.product-name h4 a {
  color: var(--color-text);
  transition: color var(--transition-speed);
}

.product-name h4 a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.product-price {
  color: var(--color-text);
}

.product-total {
  font-weight: 600;
  color: var(--color-primary);
}

.remove-item {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color var(--transition-speed);
}

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

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.cart-coupon {
  display: flex;
}

.cart-coupon input {
  width: 200px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-right: none;
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.cart-coupon button {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.cart-summary {
  background-color: var(--color-background-alt);
  padding: 2rem;
  border-radius: var(--border-radius);
  max-width: 400px;
  margin-left: auto;
}

.cart-summary h3 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.summary-table {
  width: 100%;
  margin-bottom: 1.5rem;
}

.summary-table tr {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.summary-table tr:last-child {
  border-bottom: none;
}

.total-row {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.discount-row {
  color: var(--color-success);
}

.continue-shopping {
  margin-top: 1.5rem;
  text-align: center;
}

.continue-shopping a {
  display: inline-flex;
  align-items: center;
  color: var(--color-text);
}

.continue-shopping a svg {
  margin-right: 0.5rem;
}

.continue-shopping a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* ---------- Checkout Page ---------- */
.checkout-section {
  padding: 2rem 0 4rem;
}

.checkout-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-background-alt);
  color: var(--color-text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 600;
  position: relative;
  z-index: 2;
}

.step-name {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.step.active .step-number {
  background-color: var(--color-primary);
  color: white;
}

.step.active .step-name {
  color: var(--color-primary);
  font-weight: 600;
}

.step.completed .step-number {
  background-color: var(--color-success);
  color: white;
}

.step.completed .step-name {
  color: var(--color-success);
}

.step-divider {
  flex-grow: 1;
  height: 2px;
  background-color: var(--color-background-alt);
  margin: 0 0.5rem;
  position: relative;
  top: -18px;
  z-index: 1;
}

.checkout-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.step-content {
  display: none;
}

.step-content.active {
  display: block;
  animation: fadeIn 0.5s;
}

.step-content h2 {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.order-items {
  margin-bottom: 2rem;
}

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

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

.order-item .item-image {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius);
  overflow: hidden;
  margin-right: 1rem;
}

.order-item .item-details {
  flex: 1;
}

.order-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.order-item .item-quantity, .order-item .item-price {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 0;
}

.order-item .item-total {
  font-weight: 600;
  color: var(--color-primary);
}

.order-totals {
  background-color: var(--color-background-alt);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.totals-row:last-child {
  border-bottom: none;
}

.step-actions {
  display: flex;
  justify-content: space-between;
}

.step-actions button, .step-actions a {
  min-width: 150px;
}

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

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

.review-items {
  margin-bottom: 1rem;
}

.review-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.review-info {
  margin-bottom: 1.5rem;
}

.review-info p {
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.review-totals {
  background-color: var(--color-background-alt);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-top: 1rem;
}

/* ---------- Success Page ---------- */
.success-section {
  padding: 4rem 0;
  text-align: center;
}

.success-content {
  max-width: 600px;
  margin: 0 auto;
}

.success-icon {
  color: var(--color-success);
  margin-bottom: 1.5rem;
}

.success-message {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.email-message {
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.next-steps {
  background-color: var(--color-background-alt);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  text-align: left;
}

.next-steps h2 {
  margin-bottom: 1rem;
}

.next-steps ul {
  list-style-position: inside;
}

.next-steps li {
  margin-bottom: 0.75rem;
}

.success-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Contact Page ---------- */
.contact-info-section {
  padding-bottom: 4rem;
}

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

.contact-info {
  padding: 2rem;
  border-radius: var(--border-radius);
}

.contact-info h2 {
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  margin-bottom: 2rem;
}

.contact-method .icon {
  flex-shrink: 0;
  margin-right: 1rem;
  color: var(--color-primary);
}

.contact-details h3 {
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--color-text-light);
  margin-bottom: 0;
}

.social-links h3 {
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(0, 124, 137, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  transition: all var(--transition-speed);
}

.social-icons a:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-3px);
}

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

.contact-form-container h2 {
  margin-bottom: 2rem;
}

.faq-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: var(--color-background-alt);
}

.faq-section h2 {
  text-align: center;
  margin-bottom: 3rem;
}

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

.faq-item {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.faq-question h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
  flex: 1;
}

.toggle-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
}

.faq-question.active {
  background-color: var(--color-primary);
  color: white;
}

.faq-question.active h3 {
  color: white;
}

.faq-question.active .toggle-icon {
  color: white;
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed);
}

.faq-answer.active {
  padding: 0 1.5rem 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  margin-bottom: 0;
  color: var(--color-text-light);
}

.hours-section {
  padding-top: 0;
}

.hours-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.hours-card {
  padding: 2rem;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.hours-card h3 {
  margin-bottom: 1.5rem;
  color: var(--color-primary);
  text-align: center;
}

.hours-card ul {
  list-style: none;
}

.hours-card li {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
}

.hours-card li span {
  font-weight: 600;
}

/* ---------- About Page ---------- */
.about-story {
  padding-bottom: 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.mission-vision {
  background-color: var(--color-background-alt);
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mission-box, .vision-box, .values-box {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
}

.mission-box .icon, .vision-box .icon, .values-box .icon {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.values-box ul {
  list-style: none;
  text-align: left;
}

.values-box li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.75rem;
}

.values-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.team {
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}

.section-intro {
  max-width: 600px;
  margin: 0 auto 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  padding-bottom: 1.5rem;
  transition: transform var(--transition-speed);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-member img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.team-member h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.25rem;
}

.team-member p {
  padding: 0 1.5rem;
  margin-bottom: 0.75rem;
}

.team-member p:nth-of-type(1) {
  font-weight: 600;
  color: var(--color-primary);
}

.team-member .social-links {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.achievements {
  background-color: var(--color-background-alt);
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.achievement-card {
  background-color: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.achievement-icon {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.partners {
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: center;
}

.partners p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.partner {
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: all var(--transition-speed);
}

.partner:hover {
  border-color: var(--color-primary);
  box-shadow: var(--box-shadow);
}

.partner h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.partner p {
  font-size: 0.875rem;
  margin-bottom: 0;
}

.cta-section {
  background-color: var(--color-primary);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ---------- Media Queries ---------- */
@media (max-width: 991px) {
  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  section {
    padding: 3rem 0;
  }

  .hero {
    padding: 4rem 0;
  }

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

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

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--color-background);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    transition: left var(--transition-speed);
    z-index: 999;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links li {
    margin: 1rem 0;
  }

  .mobile-nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

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

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

  .features-grid, .products-grid, .related-products-grid,
  .team-grid, .achievement-grid, .partners-grid {
    grid-template-columns: 1fr;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td {
    display: block;
    width: 100%;
    text-align: right;
  }

  .cart-table tr {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
  }

  .cart-table td {
    position: relative;
    padding: 0.5rem 0;
    padding-left: 50%;
    text-align: right;
    border-bottom: none;
  }

  .cart-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    width: 45%;
    padding-right: 10px;
    text-align: left;
    font-weight: 600;
  }

  .product-info {
    justify-content: flex-end;
  }

  .cart-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .cart-coupon {
    width: 100%;
  }

  .cart-coupon input {
    flex: 1;
  }

  .cart-summary {
    margin-left: 0;
    max-width: 100%;
  }

  .step-actions {
    flex-direction: column;
    gap: 1rem;
  }

  .step-actions button, .step-actions a {
    width: 100%;
  }

  .success-cta {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1rem;
  }

  section {
    padding: 2rem 0;
  }

  .hero {
    padding: 3rem 0;
  }

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

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

  .product-card {
    margin-bottom: 2rem;
  }

  .checkout-steps {
    flex-wrap: wrap;
  }

  .step {
    flex-basis: 100%;
    margin-bottom: 1.5rem;
  }

  .step-divider {
    display: none;
  }

  .checkout-form {
    padding: 1.5rem;
  }

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

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .cookie-buttons button {
    width: 100%;
  }
}

/* Animation for notification */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
