:root {
  --primary: #2b3a2b;
  --secondary: #fdfcf8;
  --accent: #f08a5d;
  --success: #28a745;
  --info: #17a2b8;
  --dark: #212529;
  --light: #f8f9fa;
  --accent-light: #f5a585;
  --accent-dark: #d65a35;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --border-radius-sm: 8px;
  --border-radius-md: 12px;
  --border-radius-lg: 16px;
  --border-radius-xl: 20px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--secondary);
  color: var(--dark);
  line-height: 1.6;
  padding-top: 80px;
  overflow-x: hidden;
  font-size: 16px;
  letter-spacing: 0.3px;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-weight: 600;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2.5rem;
  line-height: 1.2;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.4rem;
}

h5 {
  font-size: 1.2rem;
}

/* ============= NAVIGATION ============= */

.myNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-base);
  padding: 12px 0;
}

.myNav.scrolled {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.myNav .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  flex-wrap: nowrap;
}

.myNav img {
  height: 50px;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.myNav img:hover {
  transform: scale(1.05);
}

.myNav input {
  flex: 1;
  min-width: 200px;
  padding: 12px 20px;
  border-radius: 50px;
  border: 2px solid var(--gray-200);
  background: var(--gray-50);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  transition: all var(--transition-base);
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.myNav input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--light);
  box-shadow: 0 0 0 3px rgba(240, 138, 93, 0.1);
}

.myNav input::placeholder {
  color: var(--gray-400);
}

.myNav .btn-cart {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  right: 0;
}

.myNav .btn-cart:hover {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 25px rgba(240, 138, 93, 0.4);
}

.myNav .btn-cart:active {
  transform: translateY(-1px) scale(1.05);
}

.myNav .btn-cart .cart-count {
  position: absolute;
  top: 10px;
  right: 15px;
  transform: translate(50%, -50%);
  font-size: 0.7rem;
  background: var(--dark);
  color: white;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

/* ============= HERO SECTION ============= */

.hero-section {
  position: relative;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-image,
.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  z-index: 1;
  transition: transform 1.2s ease;
}

.hero-section:hover .hero-image {
  transform: scale(1.05);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 700px;
  padding: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.hero-overlay h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

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

.btn-accent {
  display: inline-block;
  background: linear-gradient(135deg, #e76f51, #f4a261);
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(231, 111, 81, 0.4);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left var(--transition-base);
}

.btn-accent:hover::before {
  left: 100%;
}

.btn-accent:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 25px rgba(231, 111, 81, 0.5);
}

.btn-accent:active {
  transform: translateY(-1px) scale(1.03);
}

/* ============= SHAPES ============= */

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  z-index: 2;
  animation: float 6s infinite ease-in-out alternate;
}

.shape1 {
  width: 150px;
  height: 150px;
  background: #e76f51;
  top: 10%;
  left: 5%;
}

.shape2 {
  width: 200px;
  height: 200px;
  background: #f4a261;
  bottom: 15%;
  right: 10%;
  animation-delay: 2s;
}

.shape3 {
  width: 100px;
  height: 100px;
  background: #e9c46a;
  top: 30%;
  right: 25%;
  animation-delay: 4s;
}

/* ============= CATEGORY BANNER ============= */

.category-banner {
  position: relative;
  margin: 40px 0;
  padding: 25px 15px;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff8f0, #fdfcf8);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: all var(--transition-base);
}

.category-banner:hover {
  box-shadow: 0 10px 30px rgba(240, 138, 93, 0.15);
}

.category-banner h3 {
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
}

/* ============= CONTAINER ============= */

#featured.container {
  padding: 20px 15px;
  max-width: 100%;
}

/* ============= PRODUCTS GRID ============= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* ============= PRODUCT CARD ============= */

.product-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-img-wrapper {
  background: #f8f8f8;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-img-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}

.product-img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

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

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #333;
}

.product-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  color: #666;
  flex-grow: 1;
  margin-bottom: 15px;
}

.product-price {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: #e76f51;
  margin-bottom: 15px;
}

.btn-add-cart {
  background: linear-gradient(135deg, #e76f51, #f4a261);
  color: #fff;
  font-weight: 600;
  padding: 10px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 4px 15px rgba(231, 111, 81, 0.3);
}

.btn-add-cart:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(231, 111, 81, 0.4);
}

.btn-add-cart:active {
  transform: translateY(0);
}

/* ============= MODAL STYLES ============= */

.modal-content {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: var(--shadow-xl);
  background: white;
}

.modal-header {
  border-bottom: 1px solid var(--gray-200);
  padding: 24px;
  background: linear-gradient(135deg, var(--gray-50), var(--light));
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.3rem;
}

.modal-body {
  padding: 24px;
  overflow: hidden;
}

.modal-footer {
  border-top: 1px solid var(--gray-200);
  padding: 20px 24px;
  background: var(--gray-50);
}

.btn-outline-secondary {
  color: var(--text-secondary);
  border-color: var(--gray-300);
  transition: all var(--transition-base);
}

.btn-outline-secondary:hover {
  background: var(--gray-100);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border: none;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(240, 138, 93, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(240, 138, 93, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-close {
  opacity: 0.7;
  transition: opacity var(--transition-base);
}

.btn-close:hover,
.btn-close:focus {
  opacity: 1;
}

/* ============= IMAGE MODAL ============= */

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1rem);
}

#modalImage {
  max-height: 80vh;
  object-fit: contain;
}

/* ============= CART MESSAGE ============= */

.cartMsg {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #28a745;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  display: none;
  z-index: 9999;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  animation: slideIn 0.4s ease forwards;
}

.cartMsg.show {
  display: block;
}

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

.footer {
  background: #2b3a2b;
  color: #fff;
  padding: 60px 20px 30px;
}

.footer h5 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 8px;
  color: var(--accent-light);
  position: relative;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 10px;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: 0.3s;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
  padding-left: 5px;
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s;
}

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

/* ============= ANIMATIONS ============= */

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-15px) rotate(5deg);
  }
}

.fade-up {
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: all 0.6s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: fadeInUp 0.6s ease-out forwards;
}

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

/* Tablets (768px) */
@media (max-width: 992px) {
  .hero-overlay h1 {
    font-size: 2.5rem;
  }

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

  .btn-accent {
    font-size: 1rem;
    padding: 10px 25px;
  }

  .product-img {
    max-height: 160px;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  .myNav {
    padding: 10px 0;
  }

  .myNav .container-fluid {
    gap: 12px;
    padding: 0 15px;
  }

  .myNav input {
    min-width: 140px;
    padding: 10px 16px;
    font-size: 13px;
  }

  .myNav img {
    height: 45px;
  }

  .myNav .btn-cart {
    width: 48px;
    height: 48px;
  }

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

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

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
  }

  .product-img {
    height: 150px;
  }

  #featured.container {
    padding: 15px 10px;
  }
}

/* Small phones (576px) */
@media (max-width: 576px) {
  body {
    padding-top: 65px;
  }

  .myNav {
    padding: 8px 0;
  }

  .myNav .container-fluid {
    gap: 8px;
    padding: 0 12px;
  }

  .myNav input {
    min-width: 100px;
    padding: 9px 14px;
    font-size: 12px;
  }

  .myNav img {
    height: 40px;
  }

  .myNav .btn-cart {
    width: 45px;
    height: 45px;
    right: 5px;
  }

  .myNav .btn-cart .cart-count {
    font-size: 9px;
    min-width: 18px;
    height: 18px;
    top: 6px;
    right: 8px;
  }

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

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

  .btn-accent {
    font-size: 0.95rem;
    padding: 8px 20px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-img {
    max-height: 140px;
  }

  .product-title {
    font-size: 1.1rem;
  }

  .product-price {
    font-size: 1.1rem;
  }

  .cartMsg {
    top: 75px;
    right: 12px;
    left: 12px;
    font-size: 0.9rem;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 16px;
  }

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

  .modal-footer button {
    width: 100%;
    font-size: 0.9rem;
  }

  .footer {
    padding: 40px 12px 20px;
  }

  .footer h5 {
    font-size: 1.1rem;
  }

  .footer a {
    font-size: 0.9rem;
  }

  .footer .social-links a {
    width: 38px;
    height: 38px;
  }
}

/* Extra small phones (360px) */
@media (max-width: 360px) {
  body {
    padding-top: 60px;
  }

  .myNav .container-fluid {
    padding: 0 8px;
    gap: 4px;
  }

  .myNav input {
    min-width: 80px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .myNav img {
    height: 36px;
  }

  .myNav .btn-cart {
    width: 40px;
    height: 40px;
  }

  .hero-overlay h1 {
    font-size: 1.5rem;
  }

  .hero-overlay p {
    font-size: 0.9rem;
  }

  .btn-accent {
    font-size: 0.85rem;
    padding: 8px 16px;
  }

  .products-grid {
    gap: 10px;
  }

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

  .product-price {
    font-size: 1rem;
  }

  .product-body {
    padding: 12px;
  }

  .footer h5 {
    font-size: 1rem;
  }

  .footer a {
    font-size: 0.8rem;
  }
}



.cartMsg {
  position: fixed;
  top: 100px;
  right: 20px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  display: none;
  z-index: 9999;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideInNotification 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  max-width: 90%;
  word-wrap: break-word;
}

.cartMsg.show {
  display: block;
  animation: slideInNotification 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes slideInNotification {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutNotification {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100px);
  }
}

@media (max-width: 576px) {
  .cartMsg {
    top: 80px;
    right: 12px;
    left: 12px;
    font-size: 13px;
    padding: 12px 20px;
  }
}