/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden !important;
}

/* WooCommerce Override - Protect header logo from WooCommerce styles */
.woocommerce #header img,
.woocommerce-page #header img,
body.woocommerce #header img,
body.woocommerce-page #header img {
  max-width: none;
  width: auto;
  height: 2.5rem; /* h-10 = 40px */
}

/* Line clamp utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mini cart dropdown styles */
#miniCartDropdown {
  min-width: 320px;
}

.mini-cart-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  max-width: none !important;
}

.mini-cart-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mini-cart-qty-wrap {
  user-select: none;
}

.mini-cart-qty-wrap .mini-qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mini-cart-item .variation {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 2px;
}

.mini-cart-item .variation dt,
.mini-cart-item .variation dd {
  display: inline;
  margin: 0;
  padding: 0;
}

.mini-cart-item .variation dt::after {
  content: ": ";
}

.mini-cart-item .variation dd::after {
  content: "";
}

/* Footer images - protect from WooCommerce styles */
footer img.h-10 {
  height: 2.5rem !important;
  width: auto !important;
  max-width: none !important;
}
footer img.h-5 {
  height: 1.25rem !important;
  max-width: none !important;
}
footer img.h-6 {
  height: 1.5rem !important;
  max-width: none !important;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
.animate-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes line-reveal {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}
.line-reveal {
  animation: line-reveal 0.8s ease-out forwards;
}

.heading-underline {
  position: relative;
  display: block;
}
.heading-underline::after {
  content: "";
  display: block;
  margin-top: 12px;
  width: 60px;
  height: 3px;
  background: #642515;
}
.heading-underline.centered::after {
  margin-left: auto;
  margin-right: auto;
}

.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img {
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.img-zoom-container:hover img {
  transform: scale(1.05);
}

.marquee {
  overflow: hidden;
  white-space: nowrap;
}
.marquee-content {
  display: inline-block;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  background: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.form-input:focus {
  outline: none;
  border-color: #642515;
  box-shadow: 0 0 0 3px rgba(100, 37, 21, 0.1);
}
.form-input::-moz-placeholder {
  color: #9ca3af;
}
.form-input::placeholder {
  color: #9ca3af;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}
.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(100, 37, 21, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.play-btn::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}
.play-btn:hover {
  background: #642515;
  transform: translate(-50%, -50%) scale(1.1);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: #642515;
  z-index: 9999;
  transition: width 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.alignleft {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

#artistsGrid.list-view {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}
#artistsGrid.list-view [data-artist-card] > div {
  display: flex;
  flex-direction: row;
}
#artistsGrid.list-view [data-artist-image] {
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: 1/1 !important;
}
@media (min-width: 640px) {
  #artistsGrid.list-view [data-artist-image] {
    width: 180px;
  }
}
@media (min-width: 768px) {
  #artistsGrid.list-view [data-artist-image] {
    width: 200px;
  }
}
#artistsGrid.list-view [data-artist-info] {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}
@media (min-width: 640px) {
  #artistsGrid.list-view [data-artist-info] {
    padding: 1.25rem;
  }
}

#eventsGrid.list-view {
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}
#eventsGrid.list-view [data-event-card] > div {
  display: flex;
  flex-direction: row;
}
#eventsGrid.list-view [data-event-image] {
  width: 200px;
  flex-shrink: 0;
  aspect-ratio: 16/10 !important;
}
@media (min-width: 640px) {
  #eventsGrid.list-view [data-event-image] {
    width: 240px;
  }
}
@media (min-width: 768px) {
  #eventsGrid.list-view [data-event-image] {
    width: 280px;
  }
}
#eventsGrid.list-view [data-event-info] {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem;
}
@media (min-width: 640px) {
  #eventsGrid.list-view [data-event-info] {
    padding: 1.25rem;
  }
}

/* ========================================
   WooCommerce Cart Quantity Input
   ======================================== */
/* Hide default number input spinners */
.quantity input[type="number"]::-webkit-inner-spin-button,
.quantity input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.quantity input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Cart item remove button */
.woocommerce-cart-form .remove-item:hover {
  color: #ef4444;
}

/* Cart quantity container */
.woocommerce-cart-form .quantity {
  display: flex;
  align-items: center;
  border: 1px solid #e5e7eb;
  border-radius: 0.125rem;
}

/* Cart item image */
.woocommerce-cart-form .cart_item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =================================================================
   WOOCOMMERCE GLOBAL NOTICE STYLES (Museon Custom)
   ================================================================= */

/* Notice wrapper */
.woocommerce-notices-wrapper {
  margin-bottom: 0;
}
.woocommerce-notices-wrapper:empty {
  display: none;
}

/* Museon Notice Base Styles */
.museon-notice {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.125rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Notice Icon */
.museon-notice-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Notice Content */
.museon-notice-content {
  flex: 1;
}
.museon-notice-content a {
  font-weight: 500;
  text-decoration: underline;
}

/* Success Notice */
.museon-notice-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.museon-notice-icon-success {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2316a34a' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
}
.museon-notice-success a {
  color: #166534;
}

/* Info Notice */
.museon-notice-info {
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}
.museon-notice-icon-info {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%233b82f6' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
}
.museon-notice-info a {
  color: #1e40af;
}

/* Error Notice */
.museon-notice-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  align-items: flex-start;
}
.museon-notice-icon-error {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23dc2626' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'/%3E%3C/svg%3E");
  margin-top: 2px;
}
.museon-notice-error a {
  color: #991b1b;
}

/* Error List */
.museon-error-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.museon-error-list li {
  margin: 0.25rem 0;
}
.museon-error-list li:first-child {
  margin-top: 0;
}
.museon-error-list li:last-child {
  margin-bottom: 0;
}

/* Coupon form styling - Global */
.woocommerce-form-coupon-toggle {
  background-color: #ffffff;
  border-radius: 0.125rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.checkout_coupon.woocommerce-form-coupon {
  background-color: #ffffff;
  border-radius: 0.125rem;
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: none !important;
}

/* =================================================================
   WOOCOMMERCE PRODUCT REVIEWS (Museon Custom)
   ================================================================= */

/* Reviews Section Container */
#reviews,
.woocommerce-Reviews {
  font-family: inherit;
}

/* Hide default review title - we handle this in tabs */
#reviews .woocommerce-Reviews-title {
  display: none;
}

/* Reviews List */
#reviews #comments {
  margin-bottom: 2rem;
}

#reviews .commentlist {
  list-style: none;
  margin: 0;
  padding: 0;
}

#reviews .commentlist li.review {
  margin: 0;
  padding: 0;
}

/* Individual Review Item */
#reviews .commentlist .comment_container {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
}

#reviews .commentlist li.review:last-child .comment_container {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Review Avatar */
#reviews .commentlist .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: #f3e8e5;
  object-fit: cover;
}

/* Review Content */
#reviews .commentlist .comment-text {
  flex: 1;
  margin: 0;
  padding: 0;
  border: none;
}

/* Review Meta (name, rating, date) */
#reviews .commentlist .comment-text .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

#reviews .commentlist .comment-text .woocommerce-review__author {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 0.9375rem;
}

#reviews .commentlist .comment-text .woocommerce-review__dash {
  display: none;
}

#reviews .commentlist .comment-text .woocommerce-review__published-date {
  display: block;
  width: 100%;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
  order: 3;
}

/* Star Rating in Reviews */
#reviews .commentlist .star-rating {
  display: inline-flex;
  font-size: 0.875rem;
  line-height: 1;
  color: #fbbf24;
  letter-spacing: 2px;
  overflow: hidden;
  position: relative;
  width: 5.4em;
  height: 1em;
}

#reviews .commentlist .star-rating::before {
  content: "★★★★★";
  color: #d1d5db;
}

#reviews .commentlist .star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}

#reviews .commentlist .star-rating span::before {
  content: "★★★★★";
  color: #fbbf24;
}

/* Review Description */
#reviews .commentlist .comment-text .description {
  margin: 0;
  padding: 0;
}

#reviews .commentlist .comment-text .description p {
  margin: 0;
  color: #4b5563;
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* No Reviews Message */
#reviews .woocommerce-noreviews {
  padding: 2rem;
  background-color: #faf9f8;
  border-radius: 0.125rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

/* =================================================================
   REVIEW FORM STYLES
   ================================================================= */

#review_form_wrapper {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

#review_form #respond {
  margin: 0;
  padding: 0;
}

/* Form Title */
#review_form #reply-title {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  display: block;
}

#review_form #reply-title small {
  display: none;
}

/* Comment Notes (logged in as, etc) */
#review_form .comment-notes {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

#review_form .logged-in-as {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

#review_form .logged-in-as a {
  color: #642515;
  font-weight: 500;
}

/* Rating Field */
#review_form .comment-form-rating {
  margin-bottom: 1.5rem;
}

#review_form .comment-form-rating label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

/* Hide default select dropdown - keep WooCommerce stars */
#review_form .comment-form-rating select {
  display: none !important;
}

/* Style WooCommerce default star rating */
#review_form .comment-form-rating p.stars {
  margin: 0.5rem 0 0 0;
  line-height: 1;
}

#review_form .comment-form-rating p.stars a {
  display: inline-block;
  font-size: 1.75rem;
  color: #d1d5db;
  text-decoration: none;
  transition: color 0.15s ease;
  position: relative;
  width: 1.5em;
  text-indent: -9999px;
}

#review_form .comment-form-rating p.stars a::before {
  content: "★";
  position: absolute;
  left: 0;
  text-indent: 0;
}

/* Default state - empty stars */
#review_form .comment-form-rating p.stars a::before {
  color: #d1d5db;
}

/* Hover states */
#review_form .comment-form-rating p.stars:hover a::before {
  color: #fbbf24;
}

#review_form .comment-form-rating p.stars:hover a:hover ~ a::before {
  color: #d1d5db;
}

/* Selected state */
#review_form .comment-form-rating p.stars.selected a.active::before {
  color: #fbbf24;
}

#review_form .comment-form-rating p.stars.selected a.active ~ a::before {
  color: #d1d5db;
}

#review_form .comment-form-rating p.stars.selected a:not(.active)::before {
  color: #fbbf24;
}

/* Text Input Fields */
#review_form .comment-form-comment,
#review_form .comment-form-author,
#review_form .comment-form-email {
  margin-bottom: 1.25rem;
}

#review_form .comment-form-comment label,
#review_form .comment-form-author label,
#review_form .comment-form-email label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

#review_form .comment-form-comment label .required,
#review_form .comment-form-author label .required,
#review_form .comment-form-email label .required,
#review_form .comment-form-rating label .required {
  color: #dc2626;
  margin-left: 0.25rem;
}

#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.125rem;
  background-color: #faf9f8;
  font-family: inherit;
  font-size: 0.9375rem;
  color: #1a1a1a;
  transition: all 0.2s ease;
}

#review_form input[type="text"]:focus,
#review_form input[type="email"]:focus,
#review_form textarea:focus {
  outline: none;
  border-color: #642515;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(100, 37, 21, 0.1);
}

#review_form input[type="text"]::placeholder,
#review_form input[type="email"]::placeholder,
#review_form textarea::placeholder {
  color: #9ca3af;
}

#review_form textarea {
  min-height: 120px;
  resize: vertical;
}

/* Cookies Consent */
#review_form .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

#review_form .comment-form-cookies-consent input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin-top: 0.125rem;
  accent-color: #642515;
  cursor: pointer;
}

#review_form .comment-form-cookies-consent label {
  font-size: 0.875rem;
  color: #6b7280;
  cursor: pointer;
}

/* Submit Button */
#review_form .form-submit {
  margin: 0;
}

#review_form .form-submit input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background-color: #642515;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: 0.125rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

#review_form .form-submit input[type="submit"]:hover {
  background-color: #4a1b10;
}

#review_form .form-submit input[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(100, 37, 21, 0.3);
}

/* Verified Owner Badge */
#reviews .commentlist .woocommerce-review__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #059669;
  background-color: #d1fae5;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-left: 0.5rem;
}

/* Review Images if any */
#reviews .commentlist .review-images {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

#reviews .commentlist .review-images img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.25rem;
}
