/* ==========================================================================
   M&X GLOW SKINCARE - DESIGN SYSTEM & STYLES (css/mxglow.css)
   Inspirado en el isotipo corporativo: Elegancia, Nude, Blanco Marfil y Dorado
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  --color-gold: #c5a059;
  --color-gold-hover: #b38e46;
  --color-gold-light: #f5eedc;
  --color-dark: #1a1918;
  --color-charcoal: #2d2b2a;
  --color-nude-bg: #fbf7f4;
  --color-nude-card: #ffffff;
  --color-text-main: #333130;
  --color-text-muted: #787470;
  --color-border: #ebdcd0;
  
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --shadow-sm: 0 4px 12px rgba(197, 160, 89, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 32px rgba(197, 160, 89, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  color: var(--color-dark);
}

/* Header & Navbar Top Bar */
.mxglow-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1020;
}

.mxglow-brand-img {
  max-height: 65px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
  transition: var(--transition);
}

.mxglow-brand-img:hover {
  transform: scale(1.05);
}

.mxglow-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.mxglow-subtitle {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--color-gold);
  font-weight: 600;
  margin-top: -4px;
}

/* Custom Buttons */
.btn-mxglow-primary {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-hover) 100%);
  color: #fff !important;
  border: none;
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-mxglow-primary:hover {
  background: linear-gradient(135deg, var(--color-gold-hover) 0%, #997734 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
}

.btn-mxglow-outline {
  background: transparent;
  color: var(--color-dark) !important;
  border: 1.5px solid var(--color-gold);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-mxglow-outline:hover {
  background: var(--color-gold);
  color: #fff !important;
}

/* Hero / Banner */
.mxglow-hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--color-nude-bg) 100%);
  padding: 40px 0 30px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}

.mxglow-hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 10px;
}

.mxglow-hero p {
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Product Card */
.product-card {
  background: var(--color-nude-card);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 30px);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background-color: #f9f5f0;
}

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

.product-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.product-carousel .carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.product-carousel .carousel-inner .item {
  width: 100%;
  height: 100%;
}

.product-carousel .carousel-inner .item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

/* Product Carousel Custom Controls & Indicators */
.product-carousel .carousel-control.gallery-btn {
  background: rgba(255, 255, 255, 0.85);
  color: var(--color-dark);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.18);
  cursor: pointer;
  opacity: 0;
  transition: var(--transition);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  text-shadow: none;
  background-image: none !important;
}

.product-card:hover .product-carousel .carousel-control.gallery-btn {
  opacity: 0.9;
}

.product-carousel .carousel-control.gallery-btn:hover {
  background: var(--color-gold);
  color: #fff;
  opacity: 1;
}

.product-carousel .gallery-btn-left {
  left: 10px;
  right: auto;
}

.product-carousel .gallery-btn-right {
  right: 10px;
  left: auto;
}

.product-carousel .carousel-indicators.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  width: auto;
  display: flex;
  gap: 6px;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  padding: 5px 10px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
  z-index: 5;
}

.product-carousel .carousel-indicators.gallery-dots li {
  width: 7px;
  height: 7px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.product-carousel .carousel-indicators.gallery-dots li.active {
  background: var(--color-gold);
  transform: scale(1.35);
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-gold);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 1px;
  z-index: 6;
}

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

.product-category {
  font-size: 0.75rem;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.product-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-dark);
  line-height: 1.3;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
  white-space: pre-line;
}

.product-accordion-wrapper {
  margin-top: 8px;
  margin-bottom: 12px;
  flex-grow: 1;
}

.product-collapse-group {
  margin-bottom: 5px;
}

.product-collapse-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: #fdfbf7;
  border: 1px solid #eee5d8;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3e3e3e;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-collapse-toggle:hover {
  background: #f9f1e1;
  color: #8c6d26;
  border-color: #d6b880;
}

.product-collapse-toggle .toggle-icon-left {
  color: var(--color-gold, #c4a052);
  margin-right: 6px;
}

.product-collapse-toggle .toggle-chevron {
  font-size: 0.75rem;
  color: var(--color-gold, #c4a052);
  transition: transform 0.2s ease;
}

.product-collapse-toggle:not(.collapsed) {
  background: #f8f1e1;
  border-color: #d6b880;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.product-collapse-toggle:not(.collapsed) .toggle-chevron {
  transform: rotate(180deg);
}

.product-collapse-content {
  padding: 9px 12px;
  background: #fffcf8;
  border: 1px solid #ebdcc5;
  border-top: none;
  border-left: 3px solid var(--color-gold, #c4a052);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
  font-size: 0.83rem;
  color: #555;
  line-height: 1.55;
  white-space: pre-line;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
}

/* Floating Cart Trigger */
.cart-floating-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--color-gold);
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(197, 160, 89, 0.4);
  cursor: pointer;
  z-index: 1030;
  transition: var(--transition);
}

.cart-floating-btn:hover {
  transform: scale(1.1);
  background: var(--color-gold-hover);
}

.cart-badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-dark);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Modal Styling */
.modal-content {
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  background: var(--color-nude-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 18px 24px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-dark);
}

.loginmodal-container {
  padding: 25px;
}

.loginmodal-container h1 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.loginmodal-container input[type=text],
.loginmodal-container input[type=password],
.mxglow-input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 15px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  font-family: var(--font-body);
  transition: var(--transition);
}

.loginmodal-container input[type=text]:focus,
.loginmodal-container input[type=password]:focus,
.mxglow-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

/* Cart Items Table inside Modal */
.cart-table {
  width: 100%;
  margin-bottom: 15px;
}

.cart-table th {
  border-bottom: 2px solid var(--color-border);
  padding: 8px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.cart-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.cart-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-total-box {
  background: var(--color-nude-bg);
  padding: 15px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  margin-top: 15px;
}

/* Footer Styling */
footer {
  background: var(--color-dark);
  color: #d1cdb8;
  padding: 40px 0 20px;
  margin-top: 60px;
}

footer a {
  color: var(--color-gold);
  text-decoration: none;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   CHECKNEWS / DASHBOARD MODULE CARDS (M&X GLOW SKINCARE STYLING)
   ========================================================================== */

.mxglow-news-grid {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.mxglow-news-col {
  padding: 12px;
  box-sizing: border-box;
  width: 100%; /* Mobile 1 Column */
}

@media (min-width: 768px) {
  .mxglow-news-col {
    width: 33.3333%; /* Desktop 3 per row (2 rows total for 6 modules) */
  }
}

.mxglow-news-card {
  background: var(--color-nude-card);
  border: 1.5px solid var(--color-border);
  border-radius: 18px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mxglow-news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-gold-hover) 100%);
  opacity: 0;
  transition: var(--transition);
}

.mxglow-news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.mxglow-news-card:hover::before {
  opacity: 1;
}

.mxglow-news-card-img-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--color-nude-bg);
  border: 2px solid var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 12px;
  transition: var(--transition);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.03);
}

.mxglow-news-card:hover .mxglow-news-card-img-wrapper {
  background: #fff;
  border-color: var(--color-gold);
  box-shadow: 0 6px 16px rgba(197, 160, 89, 0.2);
  transform: scale(1.05);
}

.mxglow-news-card-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

.mxglow-news-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-dark);
  margin: 6px 0 0 0;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.mxglow-news-card:hover .mxglow-news-card-title {
  color: var(--color-gold);
}
