/**
 * File Name: Product Frontend CSS
 * Description: Frontend styles for LU Product templates.
 */

/* HERO TITLE - PROB CAN GO SOON */

/* Responsive */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 38px;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 34px;
  }
}

/* DETERMINE IF NEEDED and is h3 affects only product pages */
.h3 {
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 24px;
    letter-spacing: -0.02em; /* ONLY THING ACTUALLY DOING ANYTHING */
    line-height: 1.15;
}

/* NEW PRODUCT CARD STYLES */

.product-card .badge.bg-secondary {
    font-size: 0.65rem;
}

.btn-dark:hover {
    background-color: var(--lu-primary) !important;
    color: var(--lu-black) !important;
}

.product-card.border {
    border-width: 1.5px !important;
}

.border-dark-hover:hover {
    border-color: var(--lu-dark) !important;
}




.product-card .product-card-icon i {
	transition: transform .25s ease;
	will-change: transform;
}

.product-card.card-hover:hover .product-card-icon i {
	transform: scale(1.08);
}

/* Product Card Icon - Contain Icon Inconsistent Sizing */
.product-card-icon {
	width: 72px;
	height: 72px;

	display: flex;
	align-items: center;
	justify-content: center;

	flex-shrink: 0;
}

.product-card-icon i {
	font-size: 64px;
	line-height: 1;

	font-size: clamp(52px, 4vw, 64px);
	transform: scale(.92);

}

/* NEED TO FIND COMMON WAY TO MAKE TEXT-SOMETHING STILL HAVE HOVER EFFECTS */

a.text-primary-dark:hover {
    color: var(--lu-primary) !important;
}

/* SIZE TABLE - most of this is not needed too */

table.size-table .badge {
    font-size: 11px;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--lu-gray-200);
}

.size-table th {
    background: var(--lu-black) !important;
    color: var(--lu-white) !important;
    padding: 14px 18px !important;
    text-align: left !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.size-table td {
    padding: 18px 18px !important;
    font-size: 13px;
    border-bottom: 1px solid var(--lu-gray-100);
    line-height: 1.4;
}

/* BOOKING CARD */

.form-label-sm {
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--lu-gray-600);
}

.form-control,
.form-select {
  border-width: 1.5px;
  border-color: var(--lu-gray-200);
  border-radius: 8px;
  font-size: 14px;
  background: var(--lu-gray-50);
  color: var(--black);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--lu-primary);
  box-shadow: none;
  background: var(--lu-white);
}

/* Size buttons */
.size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.size-btn {
  border: 1.5px solid var(--lu-gray-200);
  border-radius: 10px;
  padding: 9px 4px;
  text-align: center;
  cursor: pointer;
  background: var(--lu-white);
  transition: all 0.15s ease;
}

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

.size-btn.active {
  border-color: var(--lu-primary);
  background: var(--lu-primary-light);
  box-shadow: 0 0 0 2px rgba(78, 211, 207, 0.2);
}

.sz-name {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--lu-black);
}

.sz-dim {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  color: var(--lu-gray-400);
}

.sz-price {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 800;
  color: var(--lu-primary-dark);
}

/* Qty row */
.multi-row {
  background: var(--lu-gray-50);
  border: 1.5px solid var(--lu-gray-200);
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--lu-gray-200);
  background: var(--lu-white);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  border-color: var(--lu-primary);
  color: var(--lu-primary-dark);
}

.qty-val {
  min-width: 18px;
  font-size: 14px;
}

/* Trust row */
.trust-item {
  font-size: 11px;
  color: var(--lu-gray-400);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trust-item::before {
    color: var(--lu-primary-dark);
    font-weight: 800;
    content: "\ea41";
    font-family: boxicons;
}

/* Responsive */
@media (max-width: 575.98px) {
  .size-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* END BOOKING CARD */


/* Primary Radial Gradient BG */

.bg-primary-radial::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(78, 211, 207, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* List Arrow Primary */

ul.list-arrow {
    padding-left: 10px;
}

ul.list-arrow li {
    list-style: none;
}

ul.list-arrow li:before {
    content: "→";
    /* position: absolute; */
    /* left: 0; */
    color: var(--lu-primary);
    font-weight: 800;
    margin-right: 5px;
}

/* BORDER TO TRUMP SEC DARK */

.sec-dark [class*="border-"].border-primary {
    border-color: var(--lu-primary) !important;
}

.sec-dark [class*="border-"].border-secondary {
    border-color: var(--lu-secondary) !important;
}

.sec-dark [class*="border-"].border-white {
    border-color: var(--lu-white) !important;
}

/* FORCE FS-XS ON BADGES */

.badge.fs-xs {
    font-size: 11px !important;
}


/* PRODUCT CARD HORIZONTAL SCROLLERS */

.lu-card-scroller {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
}

.lu-card-scroller > li {
  flex: 0 0 300px;
  scroll-snap-align: start;
}

/* OVERRIDES FROM BS FIGHTING STYLE IN SOME OTHER OLD LOADUP STYLESHEET */

.row>.col {
    margin-top: var(--si-gutter-y) !important;
}



/* WWT SEARCH BAR */

.wwt-search-input,.wwt-search-input:focus{
    border:2px solid #000;
}
#list-group-search {
    display: none;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 8px;
    background: white;
}
#list-group-search.lgs-visible {
    display: block !important;
    /* border: 1px solid #000; */
    animation: fadeIn .2s ease-in-out;
    box-shadow: var(--si-box-shadow-sm);
    border: 1px solid var(--lu-border-color);
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.wwt-search-icon {
    cursor: pointer;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    transition: color 0.2s ease;
}
.wwt-search-icon:hover {
    color: #007bff;
}
.search-highlight {
    border-radius: .25rem;
    background-color: rgba(var(--lu-primary-rgb), .15);
    color: var(--lu-primary-dark);
}
.list-group-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.list-group-item:hover {
    background-color: #f8f9fa;
    border-left-color: #007bff;
}

.list-group-item-action:hover, .list-group-item-action:focus {
    background-color: var(--lu-faded-primary);
}

.no-results {
    text-align: center;
    left:0;
    right:0;
    padding: 1.5rem;
    color: #6c757d;
    font-style: italic;
}
.clear-search {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.clear-search.show {
    opacity: 1;
}
.clear-search:hover {
    color: #dc3545;
}
