/* ============================================================
   HOP Product Carousel — House of Parfum
   Matches Astra child theme: dark obsidian + gold #C5A059
   ============================================================ */

.hop-carousel-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: Georgia, serif;
}

/* Golden title */
.hop-carousel-title {
    font-family: Georgia, serif;
    font-size: clamp(22px, 3vw, 36px);
    font-weight: 400;
    color: #C5A059 !important;
    letter-spacing: 1px;
    margin: 0 0 8px 0;
    text-align: center;
    text-decoration: none !important;
}

/* Gold divider under title */
.hop-carousel-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #C5A059;
    margin: 12px auto 28px;
}

.hop-carousel-outer {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Arrows */
.hop-carousel-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #C5A059;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, color 0.3s;
    z-index: 2;
    padding: 0;
    color: #C5A059;
}

.hop-carousel-btn:hover {
    background: #C5A059;
    color: #0d1b2a;
}

.hop-carousel-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.hop-carousel-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

/* Track */
.hop-carousel-track-wrap {
    flex: 1;
    overflow: hidden;
}

.hop-carousel-track {
    display: flex;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    align-items: stretch;
}

/* Cards — uniform height with flex column */
.hop-carousel-item {
    flex: 0 0 calc(25% - 12px);
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(
        160deg,
        #1a1f2e 0%,
        #0d1118 40%,
        #151a27 100%
    );
    border: 1px solid rgba(197, 160, 89, 0.15);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 8px 24px rgba(0, 0, 0, 0.5);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.hop-carousel-item:hover {
    background: linear-gradient(
        160deg,
        #1f2535 0%,
        #0f1420 40%,
        #1a2030 100%
    );
    border-color: rgba(197, 160, 89, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 16px 40px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(197, 160, 89, 0.08);
    transform: translateY(-3px);
}

/* Image — dark background, fixed square */
.hop-carousel-image-wrap {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #0d1118;
    text-decoration: none !important;
    flex-shrink: 0;
}

.hop-carousel-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
    padding: 12px;
    box-sizing: border-box;
    background: #0d1118;
}

.hop-carousel-item:hover .hop-carousel-image-wrap img {
    transform: scale(1.05);
}

.hop-carousel-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d1118;
    font-size: 2rem;
    color: rgba(197, 160, 89, 0.3);
}

/* Info — flex grow so button always at bottom */
.hop-carousel-info {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* Spacer pushes button to bottom */
.hop-carousel-spacer {
    flex: 1;
}

/* Product name */
.hop-carousel-name,
.hop-carousel-name:visited,
.hop-carousel-name:focus {
    font-family: Georgia, serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #ffffff !important;
    text-decoration: none !important;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: 0.2px;
    min-height: 2.2em;
}

.hop-carousel-name:hover {
    color: #C5A059 !important;
    text-decoration: none !important;
}

/* Price */
.hop-carousel-price {
    font-family: Georgia, serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: #C5A059 !important;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

.hop-carousel-price .woocommerce-Price-amount,
.hop-carousel-price .woocommerce-Price-amount bdi {
    color: #C5A059 !important;
    font-weight: 500 !important;
    font-size: 0.85rem !important;
}

/* Hide tax suffix */
.hop-carousel-price .woocommerce-price-suffix {
    display: none !important;
}

/* Add to cart button */
.hop-carousel-btn-cart,
.hop-carousel-btn-cart:visited,
.hop-carousel-btn-cart:focus {
    display: block;
    text-align: center;
    padding: 9px 10px;
    border-radius: 0;
    font-family: Georgia, serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 1px solid #C5A059;
    line-height: 1.4;
    box-sizing: border-box;
    width: 100%;
}

.hop-carousel-btn-cart.in-stock {
    background: #C5A059;
    color: #0d1b2a !important;
}

.hop-carousel-btn-cart.in-stock:hover {
    background: #1a1a1a !important;
    color: #C5A059 !important;
    border-color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    text-decoration: none !important;
}

.hop-carousel-btn-cart.out-of-stock {
    background: transparent;
    color: rgba(197, 160, 89, 0.35) !important;
    border-color: rgba(197, 160, 89, 0.2);
    cursor: not-allowed;
    text-decoration: none !important;
}

/* Empty */
.hop-carousel-empty {
    text-align: center;
    color: rgba(197, 160, 89, 0.5);
    font-family: Georgia, serif;
    font-style: italic;
    padding: 40px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hop-carousel-item {
        flex: 0 0 calc(33.333% - 11px);
    }
}

@media (max-width: 768px) {
    .hop-carousel-item {
        flex: 0 0 calc(50% - 8px);
    }
    .hop-carousel-btn {
        width: 34px;
        height: 34px;
    }
}

@media (max-width: 480px) {
    .hop-carousel-item {
        flex: 0 0 100%;
    }
    .hop-carousel-outer {
        gap: 6px;
    }
}