/* ===== HEADER BUTTON STYLES (cu efecte glitch) ===== */
.product-week-btn-container {
  position: relative;
  margin-left: 10px;
}

/* Main button styling cu glitch effect */
.product-week-btn {
  display: inline-flex;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(45deg, transparent 5%, #c1002d 5%);
  color: #fff !important;
  text-decoration: none;
  border: 0;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 6px 0px 0px #00e6f6;
  outline: transparent;
  position: relative;
  overflow: hidden;
  min-height: 36px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}

.product-week-btn::after {
  --slice-0: inset(50% 50% 50% 50%);
  --slice-1: inset(80% -6px 0 0);
  --slice-2: inset(50% -6px 30% 0);
  --slice-3: inset(10% -6px 85% 0);
  --slice-4: inset(40% -6px 43% 0);
  --slice-5: inset(80% -6px 5% 0);
  content: "PRODUSUL SĂPTĂMÂNII";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 3%, #00e6f6 3%, #00e6f6 5%, #ff003c 5%);
  text-shadow: -3px -3px 0px #f8f005, 3px 3px 0px #00e6f6;
  clip-path: var(--slice-0);
  z-index: -1;
  font-size: 12px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-transform: uppercase;
}

.product-week-btn:hover {
  color: #fff !important;
  text-decoration: none;
}

.product-week-btn:hover::after {
  animation: 1s glitch;
  animation-timing-function: steps(2, end);
}

/* Button content layout */
.btn-content {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
  position: relative;
}

.btn-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-icon i {
  font-size: 14px;
  color: #fff;
}

.btn-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.btn-title {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.btn-countdown {
  font-size: 10px;
  opacity: 0.9;
  font-weight: 500;
  color: #fff;
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 0px;
  right: -14px;
  background: #00e6f6;
  color: #000;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 4px;
  border-radius: 8px;
  line-height: 1;
  min-width: 50px;
  text-align: center;
  z-index: 3;
  text-shadow: none;
  letter-spacing: 0;
}

/* Mobile styling - SIMPLIFICAT */
.btn-text-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  width: 100%;
}

.mobile-discount-left {
  background: #00e6f6;
  color: #000;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  line-height: 1;
  text-shadow: none;
  letter-spacing: 0;
}

.mobile-title {
  font-size: 12px;
  font-weight: 600;
  flex: 1;
  text-align: center;
  color: #fff;
}

/* Urgency pulse effect */
.urgency-pulse {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  animation: urgencyPulse 1.5s infinite;
  pointer-events: none;
  z-index: -1;
}

/* ===== SIDEBAR BUTTON STYLES (cu efecte glitch) ===== */
.side-menu-product-week {
  margin: 15px 0;
  padding: 0 15px;
}

.side-menu-week-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px 20px;
  background: linear-gradient(45deg, transparent 5%, #c1002d 5%);
  border: 0;
  color: #fff !important;
  letter-spacing: 1px;
  line-height: 1;
  box-shadow: 6px 0px 0px #00e6f6;
  outline: transparent;
  position: relative;
  font-size: 14px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.side-menu-week-link::after {
  --slice-0: inset(50% 50% 50% 50%);
  --slice-1: inset(80% -6px 0 0);
  --slice-2: inset(50% -6px 30% 0);
  --slice-3: inset(10% -6px 85% 0);
  --slice-4: inset(40% -6px 43% 0);
  --slice-5: inset(80% -6px 5% 0);
  content: "🔥 PRODUSUL SĂPTĂMÂNII";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 3%, #00e6f6 3%, #00e6f6 5%, #ff003c 5%);
  text-shadow: -3px -3px 0px #f8f005, 3px 3px 0px #00e6f6;
  clip-path: var(--slice-0);
  z-index: -1;
  font-size: 14px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  text-transform: uppercase;
  white-space: nowrap;
}

.side-menu-week-link:hover {
  color: #fff !important;
  text-decoration: none;
}

.side-menu-week-link:hover::after {
  animation: 1s glitch;
  animation-timing-function: steps(2, end);
}

.side-menu-product-item {
  display: block;
  color: #fff;
  z-index: 2;
  position: relative;
}

.side-menu-product-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: nowrap;
}

.side-menu-product-badge {
  background: #00e6f6;
  color: #000;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 15px;
  line-height: 1;
  text-shadow: none;
  letter-spacing: 0;
  flex-shrink: 0;
}

.side-menu-product-title {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
  flex: 1;
}

.side-menu-product-name {
  font-size: 13px;
  opacity: 0.95;
  margin-bottom: 8px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.3;
  word-break: break-word;
}

.side-menu-product-urgency {
  font-size: 11px;
  background: #f8f005;
  color: #000;
  padding: 3px 6px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 600;
  animation: pulse-urgency 2s infinite;
  text-shadow: none;
  letter-spacing: 0;
}

/* ===== GLITCH ANIMATION ===== */
@keyframes glitch {
  0% {
    clip-path: var(--slice-1);
    transform: translate(-20px, -10px);
  }
  10% {
    clip-path: var(--slice-3);
    transform: translate(10px, 10px);
  }
  20% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 10px);
  }
  30% {
    clip-path: var(--slice-3);
    transform: translate(0px, 5px);
  }
  40% {
    clip-path: var(--slice-2);
    transform: translate(-5px, 0px);
  }
  50% {
    clip-path: var(--slice-3);
    transform: translate(5px, 0px);
  }
  60% {
    clip-path: var(--slice-4);
    transform: translate(5px, 10px);
  }
  70% {
    clip-path: var(--slice-2);
    transform: translate(-10px, 10px);
  }
  80% {
    clip-path: var(--slice-5);
    transform: translate(20px, -10px);
  }
  90% {
    clip-path: var(--slice-1);
    transform: translate(-10px, 0px);
  }
  100% {
    clip-path: var(--slice-1);
    transform: translate(0);
  }
}

@keyframes urgencyPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
  }
}

@keyframes pulse-urgency {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Responsive design */
@media (max-width: 991px) {
  .product-week-btn {
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 1px;
  }

  .product-week-btn::after {
    font-size: 11px;
    letter-spacing: 1px;
  }

  .btn-icon {
    display: none;
  }

  .discount-badge {
    display: none;
  }
}

@media (max-width: 767px) {
  .product-week-btn {
    padding: 8px 12px;
    min-width: auto;
    justify-content: center;
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .product-week-btn::after {
    content: "PRODUSUL SĂPTĂMÂNII";
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .btn-content {
    gap: 0;
    width: 100%;
  }

  .btn-icon {
    display: none;
  }

  .discount-badge {
    display: none;
  }

  .mobile-discount-left {
    font-size: 10px;
    padding: 2px 5px;
  }

  .mobile-title {
    font-size: 10px;
  }

  .side-menu-week-link {
    padding: 12px 16px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .side-menu-week-link::after {
    content: "🔥 PRODUSUL SĂPTĂMÂNII";
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .side-menu-product-title {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .side-menu-product-badge {
    font-size: 10px;
    padding: 3px 6px;
  }
}

@media (max-width: 480px) {
  .side-menu-week-link {
    padding: 10px 12px;
    font-size: 11px;
    letter-spacing: 0.3px;
  }

  .side-menu-week-link::after {
    content: "PRODUSUL SĂPTĂMÂNII";
    font-size: 11px;
    letter-spacing: 0.3px;
  }

  .side-menu-product-title {
    font-size: 11px;
    letter-spacing: 0.3px;
  }
}

/* Integration with RoyThemes header layouts */
.header_lay1 .product-week-btn-container,
.header_lay2 .product-week-btn-container,
.header_lay3 .product-week-btn-container {
  order: -1;
}

.header_lay4 .product-week-btn-container,
.header_lay5 .product-week-btn-container,
.header_lay6 .product-week-btn-container {
  margin-right: 15px;
}

/* Header mobile integration */
.header-mobile .product-week-mobile-btn {
  position: absolute;
  top: 10px;
  right: 60px;
  z-index: 10;
}
