@import url('https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;500;600&display=swap');

:root {
  --background: linear-gradient(135deg, #fdfdfd 0%, #f9f7ff 50%, #f5f2ff 100%);
  --background-solid: #fdfdfd;
  --foreground: #2d2d2d;
  --accent: #5c5c5c;
  --border: rgba(0, 0, 0, 0.08);
  --card-bg: rgba(255, 255, 255, 0.8);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-blur: 15px;
  --paper-shadow: 0 8px 30px rgba(0, 0, 0, 0.03);
  --artwork-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.08);
  --header-height: 80px;

  /* Artist Palette - Vibrant Funk Colors */
  --paint-red: #ff4d4d;
  --paint-blue: #4d94ff;
  --paint-yellow: #ffd633;
  --paint-purple: #66023c;
  --paint-teal: #4dffdb;
  --paint-orange: #ff944d;

  /* Additional shades for gradients */
  --paint-red-light: #ff8a8a;
  --paint-blue-light: #8abaff;
  --paint-purple-light: #993d6e;
  --paint-teal-light: #8affeb;
  --paint-orange-light: #ffb88a;

  /* Bright shades for buttons */
  --paint-purple-bright: #99055c;
  --paint-red-bright: #ff6b6b;
  --gradient-primary-bright: linear-gradient(135deg, var(--paint-purple-bright) 0%, var(--paint-red-bright) 100%);

  /* Gradient Definitions */
  --gradient-primary: linear-gradient(135deg, var(--paint-purple) 0%, var(--paint-red) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--paint-blue) 0%, var(--paint-teal) 100%);
  --gradient-warm: linear-gradient(135deg, var(--paint-orange) 0%, var(--paint-yellow) 100%);
  --gradient-cool: linear-gradient(135deg, var(--paint-blue) 0%, var(--paint-purple) 100%);
  --gradient-artist: linear-gradient(135deg,
      var(--paint-red) 0%,
      var(--paint-orange) 25%,
      var(--paint-yellow) 50%,
      var(--paint-teal) 75%,
      var(--paint-blue) 100%);

  --gradient-mesh: radial-gradient(at 0% 0%, hsla(253, 16%, 7%, 0.05) 0, transparent 50%),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 0.05) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 0.05) 0, transparent 50%);
}

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

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  background: var(--background-solid);
  background: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-mesh);
  pointer-events: none;
  z-index: -1;
  opacity: 0.6;
}

h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

h2,
h3,
h4 {
  color: #1a1a1a;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 6rem 0;
}

/* Glassmorphism Utility */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-secondary);
  opacity: 0.7;
}

/* Polaroid Style */
.polaroid {
  background: white;
  padding: 15px 15px 40px 15px;
  box-shadow: var(--paper-shadow);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.polaroid::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: var(--gradient-artist);
  opacity: 0;
  z-index: -1;
  border-radius: 2px;
  transition: opacity 0.4s ease;
}

.polaroid:hover {
  transform: rotate(-1deg) scale(1.02);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.polaroid:hover::before {
  opacity: 0.3;
}

.polaroid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  margin-top: 15px;
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  color: var(--accent);
}

/* Gallery Frame Style - Variant 2 */
.gallery-frame {
  background: white;
  padding: 15px;
  /* Symmetrical matte */
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.05),
    0 10px 20px rgba(0, 0, 0, 0.05);
  border: 4px solid #f0f0f0;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  /* overflow: hidden; -- Removed to let shadow breathe if needed, though usually good to keep */
}

.gallery-caption {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.shop-item-container:hover .gallery-frame {
  transform: translateY(-4px);
  box-shadow:
    0 5px 10px rgba(0, 0, 0, 0.08),
    0 15px 30px rgba(0, 0, 0, 0.1);
  border-color: #e6e6e6;
}

.shop-item-container:hover .gallery-caption {
  opacity: 1;
}

.gallery-frame img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  display: block;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Existing styles... */

.navbar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-primary);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  text-decoration: none;
}

.logo-the {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--paint-purple), var(--paint-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  align-self: flex-start;
  margin-bottom: -0.1rem;
  margin-left: 0.1rem;
}

.logo-main {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--paint-purple), var(--paint-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.logo-gallery {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--paint-purple), var(--paint-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  align-self: flex-end;
  margin-top: -0.1rem;
  margin-right: 0.1rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.nav-links a {
  color: black;
  text-decoration: none;
}

.nav-links a:visited {
  color: black;
}

.nav-links a:hover {
  color: black;
}

.nav-links a:active {
  color: black;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  gap: 6px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.footer {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 250, 0.95) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-artist);
  opacity: 0.9;
}

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

.social-links a {
  padding: 0.5rem 1rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.social-links a:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 2, 60, 0.2);
}

/* Artistic Social Icons */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 248, 255, 0.9) 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.social-icon::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  background: var(--gradient-artist);
  z-index: -1;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.social-icon svg {
  width: 20px;
  height: 20px;
  color: var(--paint-purple);
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 25px rgba(102, 2, 60, 0.25);
}

.social-icon:hover::before {
  opacity: 1;
}

.social-icon:hover svg {
  color: white;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Individual social icon accent colors on hover */
.social-icon[aria-label*="X"]:hover,
.social-icon[href*="x.com"]:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.social-icon[aria-label*="Instagram"]:hover,
.social-icon[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon[aria-label*="Email"]:hover,
.social-icon[href*="mailto"]:hover {
  background: linear-gradient(135deg, var(--paint-purple) 0%, var(--paint-red) 100%);
}

/* Social icons floating animation */
@keyframes social-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.social-links:hover .social-icon {
  animation: social-float 2s ease-in-out infinite;
}

.social-links:hover .social-icon:nth-child(2) {
  animation-delay: 0.2s;
}

.social-links:hover .social-icon:nth-child(3) {
  animation-delay: 0.4s;
}

/* Mobile adjustments for social icons */
@media (max-width: 480px) {
  .social-icon {
    width: 40px;
    height: 40px;
  }

  .social-icon svg {
    width: 18px;
    height: 18px;
  }
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1rem 0;
}

.footer-links a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--paint-purple);
  text-decoration: underline;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
}

.grid-2>* {
  transition: transform 0.3s ease;
}

.grid-2>*:hover {
  transform: translateY(-4px);
}

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

@media (max-width: 640px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.shop-row {
  display: flex;
  overflow-x: auto;
  gap: 2rem;
  padding: 1rem 0.5rem 3rem 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--paint-purple) transparent;
  -webkit-overflow-scrolling: touch;
}

.shop-row::-webkit-scrollbar {
  height: 6px;
}

.shop-row::-webkit-scrollbar-track {
  background: transparent;
}

.shop-row::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

.shop-row:hover::-webkit-scrollbar-thumb {
  background: var(--paint-purple-light);
}

.shop-row .polaroid {
  flex: 0 0 300px;
}

.shop-row .gallery-frame {
  flex: 0 0 300px;
}

@media (max-width: 640px) {
  .shop-row .polaroid {
    flex: 0 0 260px;
  }

  .shop-row .gallery-frame {
    flex: 0 0 260px;
  }
}

@media (max-width: 480px) {
  .shop-row .polaroid {
    flex: 0 0 240px;
  }

  .shop-row .gallery-frame {
    flex: 0 0 240px;
  }
}

.grid-3>* {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-3>*:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btn-black {
  padding: 1.2rem 2.5rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(102, 2, 60, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}

.btn-black::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-warm);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: 50px;
}

.btn-black:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 2, 60, 0.5);
}

.btn-black:hover::before {
  opacity: 1;
}

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

.form-group h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.price-box {
  padding: 2rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 250, 255, 0.9) 100%);
  border-radius: 4px;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.price-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* Segmented Tab Control - Navigation tabs */
.segmented-tabs {
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
  width: 100%;
  max-width: 400px;
}

.segmented-tab {
  flex: 1;
  text-align: center;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--accent);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: none;
  background: transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.segmented-tab:hover {
  color: var(--paint-purple);
  background: rgba(255, 255, 255, 0.5);
}

.segmented-tab.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 2px 12px rgba(102, 2, 60, 0.25);
}

.segmented-tab.active:hover {
  color: white;
  background: var(--gradient-primary);
}

/* Responsive: full width on small screens */
@media (max-width: 480px) {
  .segmented-tabs {
    max-width: none;
    width: 100%;
  }

  .segmented-tab {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}

/* Size Selector Radio Buttons */
.size-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-radio-label {
  cursor: pointer;
}

.size-radio-btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--foreground);
}

.size-radio-label:hover .size-radio-btn {
  border-color: var(--paint-purple-light);
  background: rgba(102, 2, 60, 0.02);
}

.size-radio:checked + .size-radio-btn {
  background: var(--paint-purple) !important;
  color: white !important;
  border-color: var(--paint-purple) !important;
  box-shadow: 0 4px 15px rgba(102, 2, 60, 0.3);
}

/* Price Display with transition */
#price-display, #prints-price-display, #original-price-display {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.feature-announcement {
  margin-top: 2rem;
  padding: 5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 250, 0.95) 100%), var(--gradient-mesh);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.feature-announcement::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--gradient-artist);
  opacity: 0.9;
}

.feature-announcement::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(255, 77, 77, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(77, 148, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.feature-content h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.feature-content p {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.feature-image {
  display: flex;
  justify-content: center;
  position: relative;
  height: 400px;
}

.polaroid-collage {
  position: relative;
  width: 100%;
  height: 100%;
}

.polaroid-collage .polaroid {
  position: absolute;
  max-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  pointer-events: none;
  /* Let the banner link handle clicks */
}

.collage-1 {
  top: 10%;
  left: 5%;
  transform: rotate(-8deg);
  z-index: 1;
}

.collage-2 {
  top: 20%;
  left: 35%;
  transform: rotate(4deg);
  z-index: 3;
}

.collage-3 {
  top: 5%;
  left: 60%;
  transform: rotate(-4deg);
  z-index: 2;
}

@media (max-width: 992px) {
  .feature-image {
    height: 350px;
    margin-top: 2rem;
  }

  .polaroid-collage .polaroid {
    max-width: 180px;
  }
}

@media (max-width: 992px) {
  .feature-announcement {
    grid-template-columns: 1fr;
    padding: 3rem 2rem;
    gap: 3rem;
    text-align: center;
  }

  .feature-content p {
    margin: 0 auto 2.5rem auto;
  }
}

/* Artwork Display */
.main-artwork-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  /* Reduced room for the shadow since we removed the frame */
}

.main-artwork-container img {
  max-width: 100%;
  height: auto;
  box-shadow: var(--artwork-shadow);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.artwork-detail-wrapper {
  background: white;
  padding: 3rem;
  box-shadow: var(--paper-shadow);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Love Button Styles - Instagram-like heart */
.love-button-wrapper {
  display: flex;
  justify-content: flex-start;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding-left: 20px;
}

.love-button {
  position: relative;
  width: auto;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  transition: transform 0.2s ease;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 100px;
}

.love-button:hover {
  transform: scale(1.1);
}

.love-button:active {
  transform: scale(0.95);
}

.love-button.animating {
  animation: love-bounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Heart SVG styles */
.love-button .heart-outline {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #8e8e8e;
  stroke-width: 2;
  transition: all 0.2s ease;
}

.love-button .heart-filled {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%) scale(0);
  width: 28px;
  height: 28px;
  fill: var(--paint-red);
  stroke: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Liked state */
.love-button.liked .heart-outline {
  stroke: var(--paint-red);
  opacity: 0;
}

.love-button.liked .heart-filled {
  transform: translateY(-50%) scale(1);
}

/* Like count badge */
.love-button .like-count {
  position: static;
  color: var(--paint-red);
  font-size: 16px;
  font-weight: 600;
  padding: 4px 8px;
  min-width: 28px;
  text-align: center;
  line-height: 1.2;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
  margin-left: 35px;
}

.love-button:hover .like-count {
  transform: scale(1.05);
  color: #ff3333;
}

.love-button.liked .like-count {
  color: var(--paint-red);
}

/* Animation keyframes */
@keyframes love-bounce {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.3);
  }

  50% {
    transform: scale(0.95);
  }

  75% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

/* Floating particles */
.love-particle {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  animation: particle-float 0.6s ease-out forwards;
}

@keyframes particle-float {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0);
    opacity: 0;
  }
}

/* Heart explosion particles */
.heart-particle {
  will-change: transform, opacity;
}

/* Heart pulse effect on double-tap area */
.love-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  pointer-events: none;
  z-index: 10;
}

.love-overlay .heart-big {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 80px;
  height: 80px;
  fill: white;
  opacity: 0.9;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.love-overlay.show .heart-big {
  animation: love-overlay-anim 0.8s ease-out forwards;
}

@keyframes love-overlay-anim {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }

  15% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.9;
  }

  30% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }

  80% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.9;
  }

  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

/* Double-click hint */
.love-hint {
  text-align: left;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.6;
  margin-top: 0;
  margin-bottom: 1rem;
  padding-left: 20px;
  font-family: 'Inter', sans-serif;
}

/* Action Buttons Wrapper - Contains Like and Subscribe buttons */
.action-buttons-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  padding-left: 20px;
}

/* Subscribe Button Styles */
.subscribe-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary-bright);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 15px rgba(153, 5, 92, 0.35);
}

.subscribe-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(153, 5, 92, 0.5);
  filter: brightness(1.1);
}

.subscribe-button:active {
  transform: translateY(0) scale(0.98);
}

.subscribe-button .subscribe-icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
  stroke: white;
}

.subscribe-button:hover .subscribe-icon {
  transform: scale(1.1) rotate(-5deg);
}

.subscribe-button.subscribed {
  background: #9ca3af;
  color: white;
  border-color: transparent;
  box-shadow: none;
  cursor: default;
}

.subscribe-button.subscribed .subscribe-icon {
  stroke: white;
}

.subscribe-button.subscribed:hover {
  box-shadow: none;
  filter: none;
  transform: none;
}

/* Subscribe Modal Overlay */
.subscribe-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.subscribe-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Subscribe Modal */
.subscribe-modal {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 248, 255, 0.98) 100%);
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.15),
    0 10px 30px rgba(102, 2, 60, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  position: relative;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.subscribe-modal-overlay.show .subscribe-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Modal decorative top border */
.subscribe-modal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-artist);
  border-radius: 24px 24px 0 0;
}

/* Close button */
.subscribe-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--accent);
}

.subscribe-modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: rotate(90deg);
}

.subscribe-modal-close svg {
  width: 20px;
  height: 20px;
}

/* Modal Header */
.subscribe-modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.subscribe-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(102, 2, 60, 0.25);
}

.subscribe-modal-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.subscribe-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subscribe-modal p {
  color: var(--accent);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Form Styles */
.subscribe-form {
  margin-top: 1.5rem;
}

.subscribe-input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.subscribe-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  background: white;
  transition: all 0.3s ease;
  color: var(--foreground);
}

.subscribe-input:focus {
  outline: none;
  border-color: var(--paint-purple);
  box-shadow: 0 0 0 4px rgba(102, 2, 60, 0.08);
}

.subscribe-input::placeholder {
  color: rgba(0, 0, 0, 0.35);
}

.subscribe-input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--accent);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.subscribe-input:focus+.subscribe-input-icon,
.subscribe-input-wrapper:focus-within .subscribe-input-icon {
  opacity: 1;
  color: var(--paint-purple);
}

.subscribe-submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(102, 2, 60, 0.3);
  position: relative;
  overflow: hidden;
}

.subscribe-submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(102, 2, 60, 0.4);
}

.subscribe-submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

.subscribe-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Loading spinner */
.subscribe-submit-btn.loading {
  color: transparent;
}

.subscribe-submit-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* Success State */
.subscribe-success {
  text-align: center;
  padding: 1rem 0;
}

.subscribe-success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.3);
  animation: success-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes success-pop {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(1.1);
  }

  100% {
    transform: scale(1);
  }
}

.subscribe-success-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.subscribe-success h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #16a34a;
}

.subscribe-success p {
  color: var(--accent);
  font-size: 0.95rem;
}

/* Privacy note */
.subscribe-privacy {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0.7;
}

.subscribe-privacy a {
  color: var(--paint-purple);
  text-decoration: none;
}

.subscribe-privacy a:hover {
  text-decoration: underline;
}

/* Error message */
.subscribe-error {
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: shake 0.5s ease;
}

@keyframes shake {

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

  20%,
  60% {
    transform: translateX(-5px);
  }

  40%,
  80% {
    transform: translateX(5px);
  }
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 2rem;
  margin: 2rem 0 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.trust-badge svg {
  flex-shrink: 0;
  opacity: 0.8;
}

@media (max-width: 640px) {
  .trust-badges {
    gap: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Like-Triggered Subscribe Modal - Two Column Layout */
.subscribe-modal-overlay.like-triggered .subscribe-modal {
  max-width: 800px;
  width: 95%;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 90vh;
  border-radius: 28px;
  overscroll-behavior: contain;
}

.subscribe-modal-overlay.like-triggered .subscribe-modal-close {
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.like-subscribe-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  min-height: 450px;
}

.like-subscribe-left {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.08) 0%, rgba(102, 2, 60, 0.12) 100%);
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-width: 0;
}

.like-subscribe-left::before {
  content: '💕';
  font-size: 8rem;
  opacity: 0.12;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(3px);
}

.like-subscribe-left h3 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--paint-red) 0%, var(--paint-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.like-subscribe-left p {
  font-size: 1.05rem;
  color: var(--accent);
  line-height: 1.6;
  position: relative;
  z-index: 1;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.like-subscribe-right {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: white;
  min-width: 0;
}

.like-subscribe-right .subscribe-form {
  margin-top: 0;
}

.like-subscribe-right .subscribe-input-wrapper {
  margin-bottom: 1.25rem;
}

.like-subscribe-right .subscribe-input {
  border-radius: 50px;
  padding: 1rem 1.5rem 1rem 3rem;
}

.like-subscribe-right .subscribe-submit-btn {
  border-radius: 50px;
  margin-top: 0.5rem;
}

.like-subscribe-right .subscribe-privacy {
  margin-top: 1.25rem;
  font-size: 0.75rem;
}

/* Responsive for like-triggered modal */
@media (max-width: 1024px) {
  .subscribe-modal-overlay.like-triggered .subscribe-modal {
    width: 92%;
    max-width: 1000px !important;
  }

  .like-subscribe-left,
  .like-subscribe-right {
    padding: 3rem 2.5rem;
  }

  .like-subscribe-left h3 {
    font-size: 2rem;
  }
}

@media (max-width: 640px) {
  .like-subscribe-layout {
    grid-template-columns: 1fr;
  }

  .like-subscribe-left {
    padding: 2rem 1.5rem;
    min-height: 180px;
  }

  .like-subscribe-left::before {
    font-size: 4rem;
  }

  .like-subscribe-left h3 {
    font-size: 1.6rem;
  }

  .like-subscribe-right {
    padding: 2rem 1.5rem;
  }
}

/* ============================================
   MOBILE RESPONSIVE STYLES
   ============================================ */

/* Large tablets and small desktops */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .feature-content h2 {
    font-size: 2.8rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .container {
    padding: 0 1rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  /* Mobile Navigation */
  .mobile-menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-actions {
    gap: 0.25rem;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 248, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
  }

  /* Hero Section */
  .feature-announcement {
    padding: 2.5rem 1.5rem;
    gap: 2rem;
  }

  .feature-content h2 {
    font-size: 2.2rem;
  }

  .feature-content p {
    font-size: 1.05rem;
  }

  .feature-image {
    height: 300px;
  }

  .polaroid-collage .polaroid {
    max-width: 150px;
  }

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

  h2 {
    font-size: 1.75rem !important;
  }

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

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

  .footer-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  /* Artwork detail page */
  .artwork-detail-wrapper {
    padding: 1.5rem;
  }

  /* Gallery thumbnails */
  .main-artwork-container + div img,
  .main-artwork-container + div div[style*="width: 120px"] {
    width: 80px !important;
    height: 80px !important;
  }

  /* Price box */
  .price-box {
    padding: 1.5rem;
  }
}

/* Large phones */
@media (max-width: 640px) {
  .feature-content h2 {
    font-size: 1.9rem;
  }

  .polaroid {
    padding: 10px 10px 30px 10px;
  }

  .polaroid-caption {
    font-size: 0.85rem;
    margin-top: 10px;
  }

  /* About page polaroid */
  .about-page .polaroid,
  div[style*="transform: rotate"] {
    transform: none !important;
  }

  /* Shop section headers */
  h2 {
    font-size: 1.5rem !important;
  }

  /* Button sizing */
  .btn-black {
    padding: 1rem 2rem;
    font-size: 0.85rem;
  }

  /* Size buttons on product page */
  .size-radio-btn {
    padding: 0.4rem 1rem !important;
    font-size: 0.85rem;
  }
}

/* Small phones */
@media (max-width: 480px) {
  :root {
    --header-height: 65px;
  }

  .container {
    padding: 0 0.75rem;
  }

  .logo-main {
    font-size: 1.1rem;
  }

  .logo-the,
  .logo-gallery {
    font-size: 0.55rem;
  }

  /* Feature section */
  .feature-announcement {
    padding: 1.5rem 1rem;
    border-radius: 16px;
  }

  .feature-content h2 {
    font-size: 1.6rem;
  }

  .feature-content p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .feature-image {
    height: 250px;
  }

  .polaroid-collage .polaroid {
    max-width: 120px;
  }

  .collage-1 {
    left: 2%;
    top: 15%;
  }

  .collage-2 {
    left: 30%;
  }

  .collage-3 {
    left: 55%;
    top: 10%;
  }

  /* Typography */
  h1 {
    font-size: 1.75rem !important;
  }

  h2 {
    font-size: 1.4rem !important;
  }

  h3 {
    font-size: 1.2rem !important;
  }

  /* Section spacing */
  .section-padding {
    padding: 2.5rem 0;
  }

  /* Polaroid adjustments */
  .polaroid {
    padding: 8px 8px 25px 8px;
  }

  /* Form elements */
  .form-group {
    margin-bottom: 1.5rem;
  }

  /* Shop rows */
  .shop-row {
    padding: 0.5rem 0.25rem 2rem 0.25rem;
    gap: 1rem;
  }

  /* Subscribe modal */
  .subscribe-modal {
    padding: 2rem 1.5rem;
    margin: 1rem;
    width: 92%;
  }

  .subscribe-button .subscribe-label {
    display: none;
  }

  .subscribe-button {
    padding: 0.5rem;
  }

  /* Love button adjustments */
  .love-button-wrapper,
  .action-buttons-wrapper {
    padding-left: 10px;
  }

  /* Footer */
  .footer {
    padding: 2.5rem 0;
    margin-top: 2.5rem;
  }

  .footer p {
    font-size: 0.9rem;
    padding: 0 1rem;
  }

  .social-links a {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }

  /* Product page thumbnails */
  .main-artwork-container + div img,
  .main-artwork-container + div div[style*="width: 80px"] {
    width: 65px !important;
    height: 65px !important;
  }

  /* Gallery frame adjustments */
  .gallery-frame {
    padding: 10px;
    border-width: 3px;
  }

  /* Blog post list */
  article {
    margin-bottom: 2.5rem !important;
  }

  article h2 {
    font-size: 1.5rem !important;
  }

  /* Blog post content */
  .prose {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }

  /* Size selector buttons */
  .size-radio-btn {
    padding: 0.35rem 0.85rem !important;
    font-size: 0.8rem;
  }

  /* Material selector */
  label {
    font-size: 0.9rem;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .logo-main {
    font-size: 1rem;
  }

  .logo-the,
  .logo-gallery {
    font-size: 0.5rem;
  }

  .feature-content h2 {
    font-size: 1.4rem;
  }

  .polaroid-collage .polaroid {
    max-width: 100px;
  }

  h1 {
    font-size: 1.5rem !important;
  }

  .btn-black {
    padding: 0.85rem 1.5rem;
    font-size: 0.8rem;
  }
}

/* ==================== SHOPPING CART ==================== */

/* Nav Actions Container */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
}

/* Navbar right section - groups nav links and actions together */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

/* Cart Nav Item */
.cart-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Cart Icon Wrapper */
.cart-icon-wrapper {
  position: relative;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--foreground);
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.cart-icon-wrapper:hover {
  color: var(--paint-purple);
  transform: scale(1.05);
}

.cart-icon {
  width: 24px;
  height: 24px;
}

/* Cart Badge */
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--paint-purple);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 2px 4px rgba(102, 2, 60, 0.3);
}

.cart-badge.bounce {
  animation: cart-badge-bounce 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes cart-badge-bounce {
  0% { transform: scale(1); }
  30% { transform: scale(1.4); }
  50% { transform: scale(0.9); }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

/* Cart Dropdown */
.cart-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  z-index: 1001;
  max-height: calc(100vh - 100px);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.98);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
}

.cart-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Cart Dropdown Header */
.cart-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.cart-dropdown-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--foreground);
  margin: 0;
}

.cart-close {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--accent);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.cart-close svg {
  width: 20px;
  height: 20px;
}

/* Cart Dropdown Content */
.cart-dropdown-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Empty Cart State */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--accent);
}

.cart-empty svg {
  margin-bottom: 1rem;
  opacity: 0.5;
}

.cart-empty p {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}

/* Cart Items List */
.cart-items {
  padding: 0.5rem 0;
}

/* Individual Cart Item */
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.cart-item:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

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

.cart-item-image {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f5;
  border: 1px solid var(--border);
}

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

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

.cart-item-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-variant {
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.cart-item-price {
  font-weight: 600;
  color: var(--paint-purple);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Quantity Controls */
.cart-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: white;
}

.cart-qty button {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--accent);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-qty button:hover {
  background-color: var(--background-solid);
  color: var(--foreground);
}

.cart-qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--foreground);
}

/* Remove Button */
.cart-remove {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: var(--accent);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-remove:hover {
  color: #dc2626;
}

/* Cart Dropdown Footer */
.cart-dropdown-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 0 12px 12px;
}

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

.cart-subtotal span:first-child {
  font-weight: 500;
  color: var(--foreground);
}

.cart-subtotal-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--paint-purple);
}

.cart-note {
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 1rem 0;
}

.cart-checkout-btn {
  position: relative;
}

.cart-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Cart Notification */
.cart-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #16a34a;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.cart-notification.error {
  background: #dc2626;
}

.cart-notification svg {
  flex-shrink: 0;
}

/* Button Loading State */
.btn-black.loading {
  position: relative;
  color: transparent !important;
}

.btn-black.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: btn-loading-spin 0.8s linear infinite;
}

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

/* Mobile Cart Adjustments */
@media (max-width: 480px) {
  .cart-dropdown {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 80vh;
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
  }

  .cart-dropdown.show {
    transform: translateY(0);
  }

  .cart-item {
    padding: 0.875rem 1rem;
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
  }
}

/* Cart Overlay for Mobile */
@media (max-width: 480px) {
  .cart-dropdown::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .cart-dropdown.show::before {
    opacity: 1;
    visibility: visible;
  }
}

/* Ensure cart dropdown doesn't get cut off on small screens */
@media (max-height: 700px) {
  .cart-dropdown {
    max-height: calc(100vh - 80px);
  }
}
