/* IMPORTS & 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');

/* DESIGN TOKENS & VARIABLES */
:root {
  --primary-color: #E76F51;      /* Coral Orange - Kích thích hành động mua hàng */
  --primary-hover: #D85D3F;
  --secondary-color: #2A9D8F;    /* Sage/Teal Green - Cảm giác thiên nhiên, yên bình */
  --accent-color: #F4A261;       /* Warm Yellow-Sand */
  --bg-color: #FAF6F0;           /* Cream White - Sang trọng, ấm cúng */
  --card-bg: #FFFFFF;
  --text-main: #264653;          /* Dark Charcoal */
  --text-muted: #6C757D;
  --border-color: #E9ECEF;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(38, 70, 83, 0.08);
  --shadow-lg: 0 16px 40px rgba(38, 70, 83, 0.12);
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--border-radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary-color);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(231, 111, 81, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 2px solid var(--text-main);
}

.btn-secondary:hover {
  background-color: var(--text-main);
  color: #FFFFFF;
  transform: translateY(-2px);
}

.btn-accent {
  background-color: var(--secondary-color);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(42, 157, 143, 0.3);
}

.btn-accent:hover {
  background-color: #218276;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 157, 143, 0.4);
}

/* HEADER & NAVIGATION */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38, 70, 83, 0.06);
  padding: 1.2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 0.8rem 5%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary-color);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-smooth);
}

nav ul li a:hover {
  color: var(--primary-color);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cart-icon-wrapper {
  position: relative;
  cursor: pointer;
  font-size: 1.3rem;
  transition: var(--transition-smooth);
}

.cart-icon-wrapper:hover {
  color: var(--primary-color);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--primary-color);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-link {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  background-color: rgba(38, 70, 83, 0.05);
  transition: var(--transition-smooth);
}

.admin-link:hover {
  background-color: var(--text-main);
  color: #FFFFFF;
}

/* FOOTER */
footer {
  background-color: #264653;
  color: #E9ECEF;
  padding: 4.5rem 5% 2rem 5%;
  margin-top: 5rem;
}

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

.footer-col h3 {
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-col p {
  color: #CED4DA;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links li a {
  font-size: 0.9rem;
  color: #CED4DA;
  transition: var(--transition-smooth);
}

.footer-links li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: #ADB5BD;
}

/* HERO BANNER */
.hero {
  position: relative;
  height: calc(100vh - 80px);
  min-height: 550px;
  background-color: #E2D9CE;
  display: flex;
  align-items: center;
  padding: 0 5%;
  overflow: hidden;
}

.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
}

.hero-bg-shapes .shape-1 {
  width: 400px;
  height: 400px;
  background-color: rgba(231, 111, 81, 0.15);
  top: -100px;
  right: -50px;
}

.hero-bg-shapes .shape-2 {
  width: 500px;
  height: 500px;
  background-color: rgba(42, 157, 143, 0.15);
  bottom: -150px;
  left: 30%;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 550px;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--secondary-color);
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: #4A5568;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 45%;
  height: 90%;
  background-size: cover;
  background-position: center;
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: fadeInRight 1s ease;
}

/* SECTION COMMON STYLES */
.section {
  padding: 6rem 5% 2rem 5%;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* FEATURED CATEGORIES */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.category-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  height: 250px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.category-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(38, 70, 83, 0.85) 0%, rgba(38, 70, 83, 0.2) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: var(--transition-smooth);
}

.category-card h3 {
  color: #FFFFFF;
  font-size: 1.35rem;
  margin-bottom: 0.3rem;
}

.category-card span {
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.category-card:hover img {
  transform: scale(1.08);
}

.category-card:hover .category-card-overlay {
  background: linear-gradient(to top, rgba(38, 70, 83, 0.95) 0%, rgba(38, 70, 83, 0.3) 60%);
}

/* PRODUCT CARD GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

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

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary-color);
  color: #FFFFFF;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  z-index: 10;
}

.product-image-wrapper {
  position: relative;
  padding-bottom: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #F8F9FA;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

.product-action-overlay {
  position: absolute;
  bottom: -50px;
  left: 0;
  width: 100%;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  transition: var(--transition-smooth);
}

.product-card:hover .product-action-overlay {
  bottom: 0;
}

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

.product-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.product-name {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-main);
  height: 48px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

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

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

.product-card-btn {
  width: 100%;
  padding: 0.6rem;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
  background-color: var(--primary-color);
  color: #FFFFFF;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

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

/* BENEFITS SECTION */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  background-color: #FFFFFF;
  padding: 3.5rem 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.benefit-card {
  text-align: center;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(42, 157, 143, 0.1);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  font-size: 1.5rem;
}

.benefit-card h3 {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ABOUT PAGE */
.about-hero {
  background-color: #FAF6F0;
  padding: 5rem 5%;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-hero-content {
  flex: 1;
}

.about-hero-image {
  flex: 1;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  text-align: center;
}

.stat-item h4 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 0.3rem;
}

.stat-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* CONTACT PAGE */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.contact-details {
  margin: 2rem 0;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-detail-icon {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-detail-text h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-detail-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form-wrapper {
  background-color: #FFFFFF;
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
}

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

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

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-color);
  background-color: #F8F9FA;
  border-radius: var(--border-radius-md);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background-color: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(231, 111, 81, 0.1);
}

textarea.form-control {
  resize: vertical;
}

/* SHOP/PRODUCTS FILTERS */
.shop-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
}

.shop-sidebar {
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  height: fit-content;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}

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

.filter-widget:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

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

.filter-list li {
  margin-bottom: 0.8rem;
}

.filter-list li a {
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
  color: var(--text-muted);
}

.filter-list li a:hover,
.filter-list li a.active {
  color: var(--primary-color);
  font-weight: 600;
}

.price-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.price-range-inputs input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
}

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

.shop-results-count {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.sort-select {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  font-size: 0.85rem;
  background-color: #FFFFFF;
  outline: none;
  cursor: pointer;
}

/* PRODUCT DETAIL PAGE */
.detail-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

.detail-image-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.detail-main-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background-color: #FFFFFF;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1;
}

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

.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-cat {
  font-size: 0.85rem;
  color: var(--secondary-color);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.8rem;
}

.detail-name {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.detail-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.detail-old-price {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.detail-description {
  font-size: 0.95rem;
  color: #4A5568;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.detail-stock {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-stock.in-stock {
  color: #2E7D32;
}

.detail-stock.out-of-stock {
  color: #C62828;
}

.detail-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

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

.quantity-btn {
  background-color: transparent;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  width: 44px;
  height: 48px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.quantity-btn:hover {
  background-color: rgba(38, 70, 83, 0.05);
}

.quantity-input {
  width: 50px;
  height: 48px;
  border: none;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
  background-color: transparent;
}

.detail-actions .btn {
  height: 48px;
  flex: 1;
}

.shipping-info-box {
  background-color: #FFFFFF;
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.shipping-info-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.shipping-info-item:last-child {
  margin-bottom: 0;
}

.shipping-info-item i {
  color: var(--secondary-color);
  font-size: 1.1rem;
}

/* CART DRAWERS & MODALS */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(38, 70, 83, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background-color: #FFFFFF;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.cart-drawer.active {
  right: 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 h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-close-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

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

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

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

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  background-color: #F8F9FA;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.cart-item-ctrl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.cart-item-qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-weight: bold;
}

.cart-item-qty-input {
  width: 30px;
  height: 28px;
  border: none;
  text-align: center;
  font-size: 0.85rem;
  outline: none;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  text-decoration: underline;
}

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

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

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cart-subtotal-row span {
  font-weight: 600;
}

.cart-subtotal-price {
  font-size: 1.3rem;
  color: var(--primary-color);
  font-weight: 700;
}

.cart-drawer-footer .btn {
  width: 100%;
}

.cart-empty-msg {
  text-align: center;
  color: var(--text-muted);
  margin-top: 3rem;
  font-size: 0.95rem;
}

/* CART PAGE (CART.HTML) */
.cart-page-container {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3.5rem;
}

.cart-table-wrapper {
  background-color: #FFFFFF;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
}

.cart-page-header {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.checkout-summary {
  background-color: #FFFFFF;
  padding: 2.5rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.checkout-summary h3 {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

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

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* NOTIFICATION MODAL / TOAST */
.toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #264653;
  color: #FFFFFF;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition-smooth);
}

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

.toast-success {
  border-left: 4px solid var(--secondary-color);
}

.toast-error {
  border-left: 4px solid var(--primary-color);
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* RESPONSIVE STYLES */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
  z-index: 1001;
  transition: var(--transition-smooth);
}

.menu-toggle:hover {
  color: var(--primary-color);
}

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    padding: 3rem 5%;
    text-align: center;
    height: auto;
  }
  
  .hero-content {
    max-width: 100%;
    margin-bottom: 3rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    position: relative;
    right: 0;
    width: 100%;
    height: 350px;
  }
  
  .shop-container,
  .detail-container,
  .cart-page-container,
  .contact-container,
  .about-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-hero {
    flex-direction: column;
  }
  
  .shop-sidebar {
    position: relative;
    top: 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Header & Mobile Menu */
  .menu-toggle {
    display: block;
  }
  
  header nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background-color: var(--card-bg);
    box-shadow: -10px 0 30px rgba(38, 70, 83, 0.1);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    padding: 3rem 2rem;
    display: block;
  }
  
  header nav.active {
    right: 0;
  }
  
  header nav ul {
    flex-direction: column;
    gap: 1.8rem;
  }
  
  header nav ul li a {
    font-size: 1.1rem;
    display: block;
  }
  
  /* Cart Drawer Width on mobile */
  .cart-drawer {
    width: 100%;
  }
  
  /* Tables wrap */
  .cart-table-wrapper {
    padding: 1rem;
    overflow-x: auto;
  }
  
  .cart-table-wrapper table {
    min-width: 550px;
  }
}

@media (max-width: 576px) {
  header {
    padding: 1rem 4% !important;
  }
  
  header.scrolled {
    padding: 0.7rem 4% !important;
  }
  
  .nav-actions {
    gap: 1rem;
  }
  
  .admin-link {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
  
  .section {
    padding: 4rem 4% 1.5rem 4%;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  /* 2 Column Product Grid on Mobile */
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-card .product-name {
    font-size: 0.9rem;
    height: 38px;
    margin-bottom: 0.4rem;
  }
  
  .product-card .price {
    font-size: 1rem;
  }
  
  .product-card .old-price {
    font-size: 0.8rem;
  }
  
  .product-info {
    padding: 0.8rem;
  }
  
  .product-action-overlay {
    bottom: 0; /* Always visible on mobile since there is no hover */
    background: rgba(255, 255, 255, 0.85);
    padding: 0.5rem;
  }
  
  .product-card-btn {
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  
  /* Stats grid */
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Detail Actions wrap on small screens */
  .detail-actions {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .detail-actions .btn {
    width: 100%;
  }
}

/* SHOP CATALOG CATEGORY GROUPED SECTIONS */
.category-section {
  margin-bottom: 4rem;
}

.category-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.6rem;
}

.category-section-header h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-main);
  margin: 0;
}

.view-all-category-btn {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition-smooth);
}

.view-all-category-btn:hover {
  color: var(--primary-hover);
  transform: translateX(4px);
}


