/* Dernier cri - Premium Furniture eCommerce
   Luxury Modern Design */

/* ==================== Variables ==================== */
:root {
  --primary-color: #111111;
  --secondary-color: #8d8d8d;
  --accent-color: #6d7755;
  --soft-cream: #f8f6f2;
  --soft-blue: #dff3ff;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --border-color: #e0e0e0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 12px;
  --border-radius-lg: 16px;
}

/* ==================== Global Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
.newsletter-bg{
  background-color: #1e2125;
}

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

body {
  font-family: "Poppins", "Inter", sans-serif;
  color: var(--primary-color);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 80px;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Montserrat", "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

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

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

/* ==================== Navbar ==================== */
.navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: visible;
  max-width: 100vw;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
}

.navbar .container {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.navbar-collapse {
  overflow: visible !important;
  position: relative;
  z-index: 2;
}

.navbar-collapse.show {
  overflow: visible !important;
}

/* Dropdown Menu Styles */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 1060;
  display: none;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: #212529;
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  overflow: visible !important;
  min-width: 250px;
  box-sizing: border-box;
}

.dropdown-menu.show {
  display: block;
  overflow: visible !important;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 12px 20px;
  white-space: nowrap;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  overflow: visible !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #1e2125;
  background-color: #e9ecef;
}

/* Desktop Dropdown Menu Improvements */
@media (min-width: 992px) {
  .dropdown-menu {
    margin-top: 0.5rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.18);
    border-radius: 0.5rem;
  }

  .dropdown-menu-end {
    right: 0;
    left: auto;
  }
}

/* Ensure dropdowns are visible on mobile */
@media (max-width: 991px) {
  .navbar-collapse {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  }

  .navbar-nav {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
  }

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

  .nav-link {
    padding: 1rem 1.5rem !important;
    width: 100%;
    display: block;
  }

  .dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    border: none;
    box-shadow: none;
    background-color: #f8f8f8;
    padding: 0.5rem 0;
    margin: 0;
  }

  .dropdown-menu.show {
    display: block;
  }

  .dropdown-item {
    padding: 0.75rem 2rem !important;
    white-space: normal;
  }

  /* Utility icons container */
  .d-flex.align-items-center {
    width: 100%;
    justify-content: center;
    padding: 1rem 0;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .nav-icon-btn {
    padding: 0.5rem !important;
    font-size: 1.25rem;
  }

  /* Dropdown toggle indicators */
  .dropdown-toggle::after {
    margin-left: auto;
    transition: transform 0.3s ease;
  }

  .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
  }
}

.navbar.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-md);
}

.brand-logo {
  font-family: "Montserrat", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  color: var(--primary-color) !important;
  padding: 0.5rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-icon-btn {
  color: var(--primary-color) !important;
  padding: 0.5rem !important;
  font-size: 1.1rem;
  position: relative;
}

.nav-icon-btn:hover {
  color: var(--accent-color) !important;
}

.badge {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
}

.mt {
  margin-top: 3.5rem;
}

.flex {
  display: flex;
}

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

.wrapper-hero {
  max-width: 1450px;
  margin: auto;
  padding-inline: 2rem;
}

/* Hero */
.hero-section {
  height: calc(100vh - 13vh);
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp cubic-bezier(0.39, 0.575, 0.565, 1) ease-out;
  padding: 0 1rem;
}


.hero-heading {
  font-size: 9rem;
  text-transform: uppercase;
  font-weight: 200;
}

span {
  font-weight: bold;
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 300;
}

.btnh {
  padding: .7rem 2rem;
  font-size: .9rem;
  color: white;
  background-color: var(--accent-color);
  border-radius: 5px;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: .3s ease-in-out;
  margin: 1rem 0;
}

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

.hero-image {
  width: 100%;
  max-width: 100vw;
  margin: 1rem auto 0;
  animation: fadeInUp 1s ease-out 0.4s both;
  overflow: hidden;
}

.hero-image img {
  animation: float 4s ease-in-out infinite;
  height: auto;
  display: block;
  width: 100%;

}

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

  50% {
    transform: translateY(-20px);
  }

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

/* Hero Content Animation */
.hero-content {
  animation: fadeUp 1s ease-out forwards;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Desktop Hero Layout - Original Design */
@media (min-width: 992px) {
  .hero-content {
    align-items: flex-start;
    text-align: left;
  }
  
  .hero-heading {
    margin-left: -30px;
  }
  
  .btnh {
    display: block;
    justify-self: flex-end;
    margin-left: auto;
    margin-right: 0;
    margin-top: -20px
  }
  
  .hero-image {
    margin: 2rem auto 0;
  }
}

/* Heading */
.hero-heading {
  opacity: 0;
  animation: slideDown 1s ease-out 0.2s forwards;
}

/* Subtitle */
.hero-subtitle {
  opacity: 0;
  animation: fadeUp 1s ease-out 0.5s forwards;
}

/* Sofa Image */
.hero-image {
  opacity: 0;
  animation: zoomIn 1.2s ease-out 0.8s forwards;
}

/* Buttons */
.btnh,
.hero-buttons {
  opacity: 0;
  animation: fadeUp 1s ease-out 1.1s forwards;
}

/* Keyframes */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-section {
  position: relative;
  overflow: hidden;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  z-index: 1;
  padding: 2rem 0;
}

.bg-balls {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ball {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0.2) 35%,
      rgba(255, 255, 255, 0.05) 100%);
  backdrop-filter: blur(10px);
  box-shadow:
    inset -20px -20px 40px rgba(0, 0, 0, 0.15),
    inset 10px 10px 25px rgba(255, 255, 255, 0.4),
    0 20px 50px rgba(0, 0, 0, 0.08);
}

/* Large Ball */
.ball-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  left: -20px;
  animation: float1 8s ease-in-out infinite;
}

/* Medium Ball */
.ball-2 {
  width: 220px;
  height: 220px;
  top: 15%;
  right: -60px;
  animation: float2 10s ease-in-out infinite;
}

/* Small Ball */
.ball-3 {
  width: 140px;
  height: 140px;
  bottom: 40%;
  left: 0;
  animation: float3 7s ease-in-out infinite;
}

/* Blur Ball */
.ball-4 {
  width: 280px;
  height: 280px;
  bottom: -100px;
  right: 0;
  opacity: 80%;
  filter: blur(1px);
  animation: float1 12s ease-in-out infinite;
}

@keyframes float1 {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-30px) rotate(8deg);
  }
}

@keyframes float2 {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(25px) translateX(-20px);
  }
}

@keyframes float3 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hero-section {
  background:
    radial-gradient(circle at top left, #f5f5f5, transparent 40%),
    radial-gradient(circle at bottom right, #ececec, transparent 35%),
    #ffffff;
}


/* Hero Section Responsive Media Queries */

/* Extra Small Mobile: 320px - 480px */
@media (max-width: 480px) {
  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 0 0.75rem;
    gap: 1rem;
    min-height: auto;
  }

  .hero-heading {
    font-size: clamp(2rem, 12vw, 3rem);
    letter-spacing: 0.01em;
    line-height: 1.15;
  }

  .hero-subtitle {
    font-size: clamp(0.75rem, 4vw, 1rem);
    letter-spacing: 0.05em;
  }

  .hero-sofa {
    max-height: 35vh;
  }

  .hero-image {
    max-width: 100%;
    width: 100%;
  }

  /* Scale down decorative balls */
  .ball-1 {
    width: 150px;
    height: 150px;
    top: -40px;
    left: -10px;
  }

  .ball-2 {
    width: 100px;
    height: 100px;
    top: 10%;
    right: -30px;
  }

  .ball-3 {
    width: 70px;
    height: 70px;
    bottom: 30%;
    left: 0;
  }

  .ball-4 {
    width: 120px;
    height: 120px;
    bottom: -50px;
    right: 0;
  }

  .btnh {
    font-size: 0.875rem;
    padding: 0.6rem 1.2rem;
  }

  /* Navbar responsiveness */
  .navbar {
    padding: 0.75rem 0;
  }

  .brand-logo {
    font-size: 1.25rem;
  }

  .navbar .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* Small Mobile / Tablet: 481px - 768px */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-content {
    padding: 0 1rem;
    gap: 1.25rem;
    min-height: auto;
  }

  .hero-heading {
    font-size: clamp(2.5rem, 10vw, 4rem);
    letter-spacing: 0.02em;
  }

  .hero-subtitle {
    font-size: clamp(0.875rem, 3vw, 1.25rem);
    letter-spacing: 0.08em;
  }

  .hero-sofa {
    max-height: 40vh;
  }

  .hero-image {
    max-width: 80%;
    width: 100%;
  }

  /* Scale down decorative balls */
  .ball-1 {
    width: 200px;
    height: 200px;
    top: -60px;
    left: -15px;
  }

  .ball-2 {
    width: 140px;
    height: 140px;
    top: 12%;
    right: -40px;
  }

  .ball-3 {
    width: 90px;
    height: 90px;
    bottom: 35%;
    left: 0;
  }

  .ball-4 {
    width: 160px;
    height: 160px;
    bottom: -70px;
    right: 0;
  }

  .btnh {
    font-size: 0.9rem;
    padding: 0.7rem 1.4rem;
  }

  /* Navbar responsiveness */
  .navbar {
    padding: 0.875rem 0;
  }

  .brand-logo {
    font-size: 1.5rem;
  }

  .navbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Tablet / Desktop: 769px+ */
@media (min-width: 769px) {
  .hero-section {
    min-height: 100vh;
  }

  .hero-content {
    max-width: 800px;
    padding: 0 2rem;
    gap: 2rem;
  }

  .hero-heading {
    font-size: clamp(3rem, 8vw, 8rem);
    letter-spacing: 0.05em;
    line-height: 1;
  }

  .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: 0.15em;
  }

  .hero-sofa {
    max-height: 50vh;
  }

  .hero-image {
    max-width: 50vw;
    width: 100%;
  }

  /* Restore original ball sizes for desktop */
  .ball-1 {
    width: 320px;
    height: 320px;
    top: -80px;
    left: -20px;
  }

  .ball-2 {
    width: 220px;
    height: 220px;
    top: 15%;
    right: -60px;
  }

  .ball-3 {
    width: 140px;
    height: 140px;
    bottom: 40%;
    left: 0;
  }

  .ball-4 {
    width: 280px;
    height: 280px;
    bottom: -100px;
    right: 0;
  }

  /* Restore original navbar for desktop */
  .navbar {
    padding: 1rem 0;
  }

  .brand-logo {
    font-size: 1.75rem;
  }

  .navbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Legacy media query - keep for backward compatibility */
@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-content {
    gap: 1rem;
  }

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

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-sofa {
    max-height: 35vh;
  }

  .hero-blob {
    width: 200px;
    height: 200px;
  }
}

.hero-add-link {
  display: inline-flex;
  align-items: center;
  color: #111111;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: all 0.3s ease;
  position: relative;
}

.hero-add-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-add-link:hover::after {
  width: 100%;
}

/*
@media (max-width: 149px) {
  .hero-section .container-fluid {
    padding-left: 4%;
    padding-right: 3%;
  }

  .hero-inner {
    gap: 4rem;
  }

  .hero-title {
    font-size: clamp(2rem, 5.5vw, 4.5rem);
  }

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

@media (max-width: 991px) {
  .hero-section {
    min-height: auto;
    padding: 3rem 0;
  }

  .hero-section .container-fluid {
    flex-direction: column;
    padding-left: 3%;
    padding-right: 3%;
    height: auto;
  }

  .hero-header {
    align-items: flex-start;
  }

  .hero-menu {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    height: auto;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    animation: none;
    opacity: 1;
  }

  .hero-title {
    font-size: clamp(1.8rem, 7vw, 3.5rem);
    margin-bottom: 1.2rem;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }

  .hero-cta-btn {
    padding: 0.85rem 2.2rem;
    font-size: 0.85rem;
  }

  .hero-visual {
    width: 100%;
    min-height: 400px;
    animation: none;
    opacity: 1;
  }

  .hero-visual-card {
    width: 100%;
    max-width: 100%;
  }

  .hero-image-wrapper {
    min-height: 350px;
  }

  .hero-visual-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-visual-line {
    width: 100%;
    height: 2px;
    margin: 0;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-inner {
    gap: 1.5rem;
  }

  .hero-copy-label {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6vw, 2.8rem);
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    gap: 1rem;
  }

  .hero-cta-btn {
    width: 100%;
    padding: 0.8rem 1.8rem;
    font-size: 0.8rem;
  }

  .hero-visual-card {
    gap: 1rem;
  }

  .hero-image-wrapper {
    min-height: 300px;
  }

  .hero-visual-footer {
    padding: 1rem;
  }

  .hero-visual-copy p {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
  }

  .hero-add-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero-section .container-fluid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero-title {
    font-size: clamp(1.3rem, 5vw, 2.2rem);
  }

  .hero-description {
    font-size: 0.85rem;
  }

  .hero-cta-btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.75rem;
  }

  .hero-image-wrapper {
    min-height: 250px;
  }
}

.hero-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding: 1.15rem 1rem;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.hero-brand {
  font-family: "Montserrat", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.42em;
  font-weight: 700;
  text-transform: uppercase;
  color: #1b1b1b;
  opacity: 0.9;
}

.hero-menu {
  justify-self: center;
  gap: 2.4rem;
}

.hero-menu-link {
  color: #1b1b1b;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: lowercase;
  opacity: 0.75;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.hero-menu-link:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.hero-top-actions {
  justify-self: end;
  gap: 1rem;
}

.hero-auth-link {
  color: #1b1b1b;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  opacity: 0.85;
}

.hero-top-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: rgba(255, 255, 255, 0.95);
  color: #1b1b1b;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.hero-top-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.12);
  border-color: rgba(17, 17, 17, 0.18);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 5rem;
  min-height: calc(100vh - 260px);
}

.hero-copy {
  flex: 0 0 auto;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.hero-copy-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3rem;
  color: var(--accent-color);
}

.hero-title {
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 3rem;
  font-weight: 800;
  color: #111111;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #6c6c6c;
  margin-bottom: 2rem;
  max-width: 480px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 50px;
  padding: 0.95rem 2.8rem;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.2);
  cursor: pointer;
  white-space: nowrap;
}

.hero-cta-btn:hover {
  transform: translateY(-3px);
  background: #2c2c2c;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.3);
}

.hero-cta-btn:active {
  transform: translateY(-1px);
}

.hero-visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: calc(100vh - 260px);
  position: relative;
  margin-right: -4rem;
  padding-right: 2rem;
}

.hero-visual-card {
  position: relative;
  width: 100%;
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.2;
  border-radius: 28px;
  overflow: hidden;
  background: #f5f2ed;
  box-shadow: 0 20px 60px rgba(17, 17, 17, 0.15);
}

.hero-display-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 28px;
  transition: transform 0.6s ease;
}

.hero-image-wrapper:hover .hero-display-image {
  transform: scale(1.03);
}

.hero-visual-footer {
  margin-top: 2.5rem;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  padding-top: 1.5rem;
}

.hero-visual-line {
  width: 2px;
  height: 60px;
  background: rgba(17, 17, 17, 0.12);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

.hero-visual-copy {
  flex: 1;
  max-width: 100%;
}

.hero-visual-copy p {
  margin: 0 0 1rem;
  color: #6c6c6c;
  font-size: 0.95rem;
  line-height: 1.75;
}

.hero-add-link {
  display: inline-flex;
  align-items: center;
  color: #111111;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  position: relative;
}

.hero-add-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #111111;
  transition: width 0.3s ease;
}

.hero-add-link:hover::after {
  width: 100%;
}

/*
@media (max-width: 1199px) {
  .hero-header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-inner {
    gap: 2rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-title {
    font-size: clamp(2.5rem, 7vw, 5rem);
  }
}

@media (max-width: 991px) {
  .hero-section {
    padding: 2rem 0;
  }

  .hero-section .container {
    flex-direction: column;
  }

  .hero-header {
    align-items: flex-start;
  }

  .hero-menu {
    display: none;
  }

  .hero-inner {
    flex-direction: column;
    gap: 3rem;
    min-height: auto;
    justify-content: flex-start;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    padding: 1rem 0;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-cta-btn {
    padding: 0.85rem 2.4rem;
    font-size: 0.9rem;
  }

  .hero-visual {
    width: 100%;
    min-height: auto;
    justify-content: center;
    align-items: flex-start;
  }

  .hero-visual-card {
    width: 100%;
    max-width: 450px;
  }

  .hero-image-wrapper {
    aspect-ratio: 1 / 1.15;
  }

  .hero-visual-footer {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .hero-visual-line {
    width: 60px;
    height: 2px;
    margin: 0.5rem 0 0 0;
  }
}

@media (max-width: 767px) {
  .hero-section {
    padding: 1.5rem 0;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-copy {
    padding: 1rem 0;
  }

  .hero-copy-label {
    font-size: 0.7rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero-cta-btn {
    width: 100%;
    padding: 0.85rem 2rem;
    font-size: 0.85rem;
  }

  .hero-visual-card {
    max-width: 100%;
  }

  .hero-image-wrapper {
    aspect-ratio: 1 / 1.2;
    max-width: 100%;
  }

  .hero-visual-footer {
    margin-top: 1.5rem;
    gap: 1rem;
  }

  .hero-visual-copy p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }

  .hero-add-link {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .hero-section::before {
    width: 600px;
    height: 600px;
  }

  .hero-inner {
    gap: 2rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 5.5vw, 2.5rem);
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-cta-btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.8rem;
  }
}

/*
.btn {
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
} */

/* ==================== Section Titles ==================== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 3rem;
}

/* ==================== Category Cards ==================== */
.category-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

/* ==================== Modern Categories Section ==================== */
.categories-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* ==================== Premium Hero Redesign Overrides ==================== */
/* These rules enhance typography, spacing, image treatment, buttons, and
   carousel appearance while keeping existing markup and functionality intact. */

.hero-section {
  padding: 4rem 0;
  background-clip: border-box;
}

.hero-inner {
  gap: 6rem;
  align-items: center;
  min-height: calc(100vh - 220px);
}

.hero-copy {
  max-width: 560px;
  padding: 3rem 0;
}

/* Luxurious headline treatment (applies to both variants found in the markup) */
.hero-title,
.hero-heading {
  font-family: "Playfair Display", "Montserrat", serif;
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 7.5rem);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  text-transform: none;
  opacity: 1; /* ensure visible when overridden elsewhere */
  transition: transform 0.6s cubic-bezier(.22,.9,.35,1), opacity .6s ease;
}

.hero-subtitle,
.hero-description {
  font-size: 1.05rem;
  color: var(--secondary-color);
  margin-bottom: 1.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Premium CTA button styling */
.hero-cta-btn,
.btnh {
  background: linear-gradient(180deg, rgba(109,119,85,0.98) 0%, rgba(77,84,64,0.98) 100%);
  color: var(--white);
  padding: 0.95rem 2.4rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.14em;
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.12);
  transition: transform 0.28s cubic-bezier(.22,.9,.35,1), box-shadow 0.28s ease, opacity .25s ease;
  border: none;
  cursor: pointer;
}

.hero-cta-btn:hover,
.btnh:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.18);
  opacity: 1;
}

.hero-cta-btn:active,
.btnh:active { transform: translateY(-2px); }

/* Hero image card: soft shadow, rounded corners, floating + reveal */
.hero-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfaf9 0%, #f5f2ed 100%);
  box-shadow: 0 30px 60px rgba(17, 17, 17, 0.12);
  transform: translateY(0);
  transition: transform 0.8s cubic-bezier(.22,.9,.35,1), box-shadow 0.6s ease;
}

.hero-image-wrapper:hover {
  transform: translateY(-10px) rotate(-0.2deg);
  box-shadow: 0 40px 80px rgba(17, 17, 17, 0.16);
}

.hero-display-image {
  opacity: 0;
  transform: translateY(18px) scale(0.995);
  transition: transform 0.9s cubic-bezier(.22,.9,.35,1), opacity 0.9s ease;
}

.hero-image-wrapper .hero-display-image.loaded,
.hero-image-wrapper img.loaded {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Subtle floating animation for the whole image card when idle */
@keyframes heroFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

.hero-image-wrapper.idle {
  animation: heroFloat 8s ease-in-out infinite;
}

/* Decorative and subtle gradient overlay for luxury feel */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 400px at 12% 18%, rgba(237,234,227,0.5), transparent 15%),
              linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0));
  mix-blend-mode: multiply;
  opacity: 0.55;
  z-index: 0;
}

/* Carousel controls & indicators (non-invasive styling for existing carousel markup) */
.carousel-control-prev,
.carousel-control-next {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 24px rgba(17,17,17,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover { transform: translateY(-4px); box-shadow: 0 14px 36px rgba(17,17,17,0.16); }

.carousel-control-prev .carousel-control-icon,
.carousel-control-next .carousel-control-icon {
  width: 18px;
  height: 18px;
}

.carousel-indicators {
  gap: 8px;
}

.carousel-indicators li {
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: rgba(17,17,17,0.12);
  transition: all 0.28s ease;
}

.carousel-indicators .active {
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  width: 34px;
  box-shadow: 0 6px 18px rgba(17,17,17,0.12);
}

/* Micro-interactions */
.hero-copy > * { opacity: 0; transform: translateY(14px); animation: contentReveal 900ms ease forwards; }
.hero-copy > *:nth-child(1) { animation-delay: 180ms; }
.hero-copy > *:nth-child(2) { animation-delay: 320ms; }
.hero-copy > *:nth-child(3) { animation-delay: 460ms; }

@keyframes contentReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive refinements */
@media (max-width: 991px) {
  .hero-inner { flex-direction: column; gap: 2.5rem; min-height: auto; }
  .hero-copy { padding: 1.25rem 0; max-width: 100%; }
  .hero-title, .hero-heading { font-size: clamp(2rem, 9vw, 3.8rem); text-align: center; }
  .hero-visual { margin-right: 0; padding-right: 0; }
  .hero-image-wrapper { max-width: 92%; margin: 0 auto; border-radius: 16px; }
  .carousel-control-prev, .carousel-control-next { display: none; }
  .carousel-indicators { justify-content: center; }
}

@media (max-width: 480px) {
  .hero-section { padding: 2rem 0; }
  .hero-title, .hero-heading { font-size: clamp(1.6rem, 12vw, 2.6rem); }
  .hero-subtitle, .hero-description { font-size: 0.95rem; }
  .hero-cta-btn, .btnh { width: 100%; justify-content: center; padding: 0.85rem 1rem; }
}

/* Utility: ensure image reveal class is applied when JS/carousel loads images */
.lazyloaded, .loaded { opacity: 1 !important; transform: none !important; }
/* ==================== Modern Categories Section ==================== */
.categories-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.category-card-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.6),
      rgba(255, 255, 255, 0.4));
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.08);
  transition:
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.35s,
    backdrop-filter 0.35s;
  border: 1px solid rgba(17, 17, 17, 0.04);
  backdrop-filter: blur(6px);
}

.category-card-modern:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.12);
}

.category-icon-wrap {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.category-icon-bg {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(135deg,
      rgba(109, 119, 85, 0.08),
      rgba(111, 133, 190, 0.03));
  transition: all 0.35s ease;
}

.category-icon {
  font-size: 34px;
  color: var(--primary-color);
  transition:
    transform 0.35s ease,
    color 0.35s ease;
  z-index: 2;
}

.category-card-modern:hover .category-icon {
  transform: scale(1.18);
  color: var(--accent-color);
}

.category-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* subtle floating animation */
@keyframes float-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.category-card-modern {
  animation: float-slow 6s ease-in-out infinite;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .category-card-modern {
    padding: 1rem;
  }

  .category-icon-wrap {
    width: 68px;
    height: 68px;
  }

  .category-icon {
    font-size: 28px;
  }
}

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

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

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

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
}

.category-title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

/* ==================== Product Cards ==================== */
.product-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  height: 100%;
}

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

.product-image-container {
  position: relative;
  overflow: hidden;
  background: var(--light-gray);
}

.product-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateX(20px);
  transition: var(--transition);
  z-index: 10;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateX(0);
}

.product-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.product-action-btn.active {
  background: var(--accent-color);
  color: var(--white);
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  font-size: 0.875rem;
  color: var(--secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.product-title a:hover {
  color: var(--accent-color);
}

.product-rating {
  color: #ffc107;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

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

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

.price-original {
  font-size: 1rem;
  color: var(--secondary-color);
  text-decoration: line-through;
}

.price-discount {
  font-size: 0.875rem;
  color: #e74c3c;
  font-weight: 600;
}

.add-to-cart-btn {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 1rem;
}

.add-to-cart-btn:hover {
  background: var(--accent-color);
}

/* ==================== Product Details Page ==================== */
.product-gallery {
  position: sticky;
  top: 100px;
}

.main-image {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
}

.thumbnail-container {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

.thumbnail:hover,
.thumbnail.active {
  border-color: var(--accent-color);
}

.product-details {
  padding: 2rem 0;
}

.product-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.product-detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1.5rem;
}

.product-detail-description {
  color: var(--secondary-color);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.color-selector {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.color-option {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
  transition: var(--transition);
}

.color-option:hover,
.color-option.active {
  border-color: var(--primary-color);
  transform: scale(1.1);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.quantity-btn {
  width: 45px;
  height: 45px;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: var(--border-radius);
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.quantity-input {
  width: 60px;
  height: 45px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1.1rem;
  appearance: textfield;
}

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

.product-action-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* ==================== Cart Page ==================== */
.cart-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  background: var(--white);
}

.cart-item:hover {
  background: #f8f9fa;
}

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

.cart-item-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

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

.cart-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.cart-item-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.cart-item-title a:hover {
  color: var(--accent-color);
}

.cart-item-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-color);
}

.cart-item-remove {
  color: #e74c3c;
  cursor: pointer;
  font-size: 0.9rem;
}

.remove-cart-item {
  border: 1px solid #e74c3c;
  color: #e74c3c;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.remove-cart-item:hover {
  background: #e74c3c;
  color: var(--white);
}

.cart-summary {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

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

.summary-row.total {
  font-size: 1.5rem;
  font-weight: 700;
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
  color: var(--accent-color);
}

/* Quantity selector improvements */
.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  background: var(--white);
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  background: var(--light-gray);
  border-color: var(--primary-color);
}

.quantity-input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
}

.quantity-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.1);
}

/* ==================== Auth Pages ==================== */
.auth-page {
  background: var(--soft-cream);
  min-height: 100vh;
}

.auth-card {
  background: var(--white);
  padding: 3rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 2rem 0;
}

.auth-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-subtitle {
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.auth-btn {
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 2rem;
  font-weight: 600;
  transition: var(--transition);
}

.auth-btn:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.auth-footer {
  color: var(--secondary-color);
}

.auth-link {
  color: var(--primary-color);
  font-weight: 600;
}

.auth-link:hover {
  color: var(--accent-color);
}

.forgot-link {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.forgot-link:hover {
  color: var(--primary-color);
}

/* ==================== Footer ==================== */
.footer {
  background: #000000;
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-brand {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

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

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-color);
  transform: translateY(-3px);
}

.footer-title {
  font-weight: 600;
  margin-bottom: 1.5rem;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

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

.newsletter-form {
  margin-top: 1rem;
}

.newsletter-form .form-control {
  border-radius: var(--border-radius);
  border: none;
  padding: 0.75rem 1rem;
}

.newsletter-form .btn {
  border-radius: var(--border-radius);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

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

/* ==================== Back to Top ==================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 1000;
  box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-color);
  transform: translateY(-5px);
}

/* ==================== Responsive ==================== */
@media (max-width: 991px) {}

@media (max-width: 767px) {
  .section-title {
    font-size: 2rem;
  }

  .product-detail-title {
    font-size: 1.75rem;
  }

  .product-detail-price {
    font-size: 1.5rem;
  }

  .product-action-buttons {
    flex-direction: column;
  }

  .footer-legal {
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1rem;
  }

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

  .cart-item-image {
    width: 100%;
    height: 200px;
  }
}

/* ==================== Loading Animation ==================== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--white);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== Tabs ==================== */
.nav-tabs {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 2rem;
}

.nav-tabs .nav-link {
  border: none;
  color: var(--secondary-color);
  font-weight: 500;
  padding: 1rem 1.5rem;
  position: relative;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  background: transparent;
}

.nav-tabs .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-color);
}

/* ==================== Alerts ==================== */
.alert {
  border: none;
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
}

.alert-success {
  background: #d4edda;
  color: #155724;
}

.alert-danger {
  background: #f8d7da;
  color: #721c24;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
}

.alert-info {
  background: #d1ecf1;
  color: #0c5460;
}

/* ==================== Forms ==================== */
.form-control {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.2rem rgba(109, 119, 85, 0.25);
}

.form-label {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

/* ==================== Wishlist ==================== */
.wishlist-item {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.wishlist-item:hover {
  box-shadow: var(--shadow-md);
}

/* ==================== Admin Styles ==================== */
.admin-sidebar {
  background: #4a4a4a;
  min-height: 100vh;
  padding: 2rem 0;
}

.admin-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1.5rem;
}

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

.admin-content {
  padding: 2rem;
}

.stat-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
}

.stat-label {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

/* ==================== Animations ==================== */
.fade-in {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.slide-up {
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Admin Additional Styles */
.admin-sidebar .nav-link {
  text-decoration: none;
  border-radius: var(--border-radius);
  margin-bottom: 0.5rem;
}

.admin-content {
  background: #f8f9fa;
  min-height: 100vh;
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== Google OAuth Styles ==================== */

.google-login-container {
  margin-top: 2rem;
}

.divider-text {
  text-align: center;
  position: relative;
  margin: 1.5rem 0;
}

.divider-text span {
  background: var(--white);
  padding: 0 0.5rem;
  font-size: 0.875rem;
  color: var(--secondary-color);
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.divider-text::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
}

.google-login-btn {
  background-color: var(--white) !important;
  border-color: var(--border-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.75rem 1.5rem !important;
  border: 1px solid var(--border-color) !important;
}

.google-login-btn:hover {
  background-color: #f9f9f9 !important;
  border-color: #4285F4 !important;
  color: #4285F4 !important;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.1) !important;
  transform: translateY(-1px);
}

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

.google-icon {
  display: inline-block;
}

/* Responsive Google Button */
@media (max-width: 767px) {
  .google-login-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem !important;
  }
  
  .google-icon {
    width: 18px !important;
    height: 18px !important;
  }
}

/* ==================== Comprehensive Responsive Styles ==================== */

/* Desktop: 1200px+ */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .hero-heading {
    font-size: 9rem;
  }

  .product-grid .col-lg-3 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  /* Shop page specific - wider cards */
  .shop-product-grid .col-lg-3 {
     flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }

  .shop-product-grid .product-image {
    height: 300px;
  }
}

/* Laptop: 992px - 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  .container {
    max-width: 960px;
  }

  .hero-heading {
    font-size: 7rem;
  }

  .product-grid .col-lg-3 {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

/* Tablet: 768px - 991px */
@media (min-width: 768px) and (max-width: 991px) {
  .container {
    max-width: 720px;
  }

  .hero-heading {
    font-size: 5rem;
  }

  .hero-subtitle {
    font-size: 1.4rem;
  }

  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 3rem 0;
  }

  .hero-image {
    width: 100%;
    max-width: 90vw;
    margin: 2rem auto 0;
  }

  .btnh {
    margin-right: 0;
    margin-bottom: 1rem;
  }

  .product-grid .col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-gallery {
    position: static;
  }

  .main-image {
    height: 400px;
  }

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

  .cart-item-image {
    width: 100%;
    height: 200px;
  }

  .auth-card {
    padding: 2rem;
  }

  .footer .row>div {
    margin-bottom: 2rem;
  }

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

  /* Profile Page Responsive */
  .profile-sidebar {
    margin-bottom: 2rem;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  .profile-card .card-body {
    padding: 1.5rem;
  }

  .profile-section .card-body {
    padding: 1.5rem;
  }

  .profile-table {
    font-size: 0.875rem;
  }

  .profile-table th,
  .profile-table td {
    padding: 0.5rem;
  }
}

/* Mobile: Below 768px */
@media (max-width: 767px) {
  body {
    padding-top: 70px;
    overflow-x: hidden;
  }

  html, body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
    overflow-x: hidden;
  }

  .navbar {
    padding: 0.75rem 0;
  }

  .brand-logo {
    font-size: 1.5rem;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 1rem;
  }

  /* Hero Section */
  .hero-section {
    height: auto;
    min-height: auto;
    padding: 2rem 0;
    flex-direction: column;
    text-align: center;
  }

  .hero-heading {
    font-size: 3rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-image {
    width: 100%;
    max-width: 95vw;
    margin: 1.5rem auto 0;
  }

  .btnh {
    width: auto;
    margin-right: 0;
    padding: 0.8rem 1.5rem;
  }

  .wrapper-hero {
    padding-inline: 1rem;
  }

  /* Product Grid */
  .product-grid .col-lg-3,
  .product-grid .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .product-image {
    height: 250px;
  }

  .product-info {
    padding: 1rem;
  }

  /* Categories */
  .categories-grid {
    flex-direction: column;
    width: 100%;
  }

  .category-card-modern {
    width: 100%;
    max-width: 100%;
  }

  .category-card img {
    height: 200px;
  }

  /* Product Details */
  .product-gallery {
    position: static;
  }

  .main-image {
    height: 300px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }

  .product-detail-title {
    font-size: 1.75rem;
  }

  .product-detail-price {
    font-size: 1.5rem;
  }

  .product-action-buttons {
    flex-direction: column;
    width: 100%;
  }

  .product-action-buttons .btn {
    width: 100%;
  }

  /* Cart */
  .cart-item {
    flex-direction: column;
    padding: 1rem;
  }

  .cart-item-image {
    width: 100%;
    height: 180px;
  }

  .cart-summary {
    padding: 1.5rem;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Auth Pages */
  .auth-card {
    padding: 1.5rem;
    margin: 1rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  /* User Dashboard */
  .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .col-lg-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .list-group-item {
    padding: 1rem;
    font-size: 1rem;
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer .row>div {
    margin-bottom: 2rem;
    text-align: center;
  }

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

  .footer-legal {
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    text-align: center;
  }

  /* Admin Panel */
  .admin-sidebar {
    position: fixed;
    left: -250px;
    top: 0;
    width: 250px;
    z-index: 1000;
    transition: left 0.3s ease;
  }

  .admin-sidebar.active {
    left: 0;
  }

  .admin-content {
    margin-left: 0;
    padding: 1rem;
  }

  .stat-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  /* Custom Orders */
  .custom-order-specs {
    padding: 1rem;
  }

  .reference-image {
    max-width: 100%;
    height: auto;
  }

  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  h5 {
    font-size: 1.1rem;
  }

  h6 {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  /* Buttons */
  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  /* Forms */
  .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
  }

  .form-label {
    font-size: 0.9rem;
  }

  /* Modals */
  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-content {
    border-radius: var(--border-radius);
  }

  /* Tables */
  .table {
    font-size: 0.85rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }

  /* Cards */
  .card {
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
  }

  .card-body {
    padding: 1rem;
  }

  /* Badges */
  .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  /* Alerts */
  .alert {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  /* Back to Top */
  .back-to-top {
    width: 45px;
    height: 45px;
    bottom: 1.5rem;
    right: 1.5rem;
  }

  /* Profile Page Responsive */
  .profile-sidebar {
    margin-bottom: 1.5rem;
    width: 100%;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .profile-card .card-body {
    padding: 1rem;
  }

  .profile-section .card-body {
    padding: 1rem;
  }

  .profile-section h4 {
    font-size: 1.25rem;
  }

  .profile-table {
    font-size: 0.75rem;
  }

  .profile-table th,
  .profile-table td {
    padding: 0.375rem;
    white-space: nowrap;
  }

  .profile-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .profile-form .form-control,
  .profile-form .form-select {
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    width: 100%;
  }

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

  .profile-nav .list-group-item {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }

  .profile-nav .list-group-item i {
    width: 16px;
  }

  /* Profile layout vertical stacking */
  .profile-page .row {
    flex-direction: column;
  }

  .profile-page .col-lg-3,
  .profile-page .col-lg-9 {
    width: 100%;
    max-width: 100%;
  }

  /* Profile image centering */
  .profile-avatar-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
  }

  /* Dropdown positioning */
  .dropdown-menu {
    max-width: 90vw;
    overflow-x: hidden;
  }

  .dropdown-menu.show {
    max-height: 80vh;
    overflow-y: auto;
  }

  /* Ensure no horizontal overflow */
  * {
    max-width: 100%;
    box-sizing: border-box;
  }

  img, video, iframe {
    max-width: 100%;
    height: auto;
  }
}

/* Extra Small Mobile: Below 480px */
@media (max-width: 479px) {
  .hero-heading {
    font-size: 2.5rem;
  }

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

  .product-image {
    height: 200px;
  }

  .main-image {
    height: 250px;
  }

  .thumbnail {
    width: 50px;
    height: 50px;
  }

  .product-detail-title {
    font-size: 1.5rem;
  }

  .product-detail-price {
    font-size: 1.25rem;
  }

  .cart-item-image {
    height: 150px;
  }

  .auth-card {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

/* Prevent horizontal overflow */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

* {
  max-width: 100%;
}

/* Ensure images don't overflow */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* Responsive tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Responsive embeds */
.embed-responsive {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
}

.embed-responsive::before {
  display: block;
  content: "";
}

/* Responsive utilities */
@media (max-width: 767px) {
  .d-none-mobile {
    display: none !important;
  }

  .d-block-mobile {
    display: block !important;
  }

  .text-center-mobile {
    text-align: center !important;
  }

  .w-100-mobile {
    width: 100% !important;
  }

  .flex-column-mobile {
    flex-direction: column !important;
  }

  .gap-1-mobile {
    gap: 0.5rem !important;
  }

  .gap-2-mobile {
    gap: 1rem !important;
  }
}