/*
 * Mobile display fixes for WiseKings E-commerce
 *
 * 1. Make product cards feel larger on mobile.
 * 2. Improve the add-to-cart button display on small screens.
 * 3. Keep the homepage layout feeling spacious without wasting vertical room.
 */

.add-to-cart-button {
    white-space: nowrap;
    padding: 0 14px;
    min-height: 44px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #033958 !important;
    background-color: #033958 !important;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
    width: 100%;
    box-shadow: 0 8px 18px -10px rgba(3, 57, 88, 0.55);
    -webkit-appearance: none;
    appearance: none;
}

.add-to-cart-button:hover {
    background: #f5bd4b !important;
    background-color: #f5bd4b !important;
    color: #111;
    transform: translateY(-1px);
}

.ajax-add-to-cart {
    display: block;
    width: 100%;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 8px;
}

.product-card-price {
    font-family: 'Fraunces', serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}

@media (max-width: 760px) {
    .product-grid {
        gap: 10px !important;
    }

    .product-card {
        border-radius: 14px !important;
    }

    .product-card > div:first-child {
        aspect-ratio: 4 / 5 !important;
    }

    .product-card .product-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-top: 10px;
    }

    .product-card .product-card-price {
        font-size: 16px;
    }

    .product-card .add-to-cart-button {
        min-height: 42px;
        padding: 0 12px;
        font-size: 12.5px;
        width: 100%;
    }

    .hero {
        padding-top: 20px !important;
        padding-bottom: 12px !important;
    }

    .hero .hero-inner {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 18px !important;
        align-items: start !important;
        padding-bottom: 24px !important;
        text-align: left !important;
    }

    .hero .hero-copy {
        text-align: left !important;
        order: 1 !important;
        min-width: 0 !important;
    }

    .hero .hero-copy h1 {
        font-size: clamp(1.7rem, 6vw, 2.6rem) !important;
        line-height: 1.02 !important;
        margin-bottom: 14px !important;
    }

    .hero .hero-copy p {
        margin: 0 0 18px !important;
        max-width: 100% !important;
        font-size: 0.95rem !important;
    }

    .hero .hero-actions,
    .hero .hero-lines {
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .hero .hero-art {
        order: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero .hero-card {
        aspect-ratio: 16 / 10 !important;
        border-radius: 20px !important;
        min-height: 220px !important;
        box-shadow: 0 24px 44px -24px rgba(3, 57, 88, 0.55) !important;
    }

    .hero .hero-card > div {
        padding: 18px !important;
    }

    .hero .hero-card h3 {
        font-size: 1.05rem !important;
        margin-bottom: 6px !important;
    }

    .hero .hero-card p {
        font-size: 0.82rem !important;
        max-width: 100% !important;
    }
}
