/* Royalrideons Child: custom styles go here. */

/* Product gallery: show the whole photo inside the square frame instead of
   cropping landscape/portrait images. Frame background (#f7f7f8) fills the gap. */
.single-product-gallery__main-slide img {
    object-fit: contain;
}

/* Header: Wonder Joy logo beside the Royal Ride-ons logo. */
.header-brands {
    display: flex;
    align-items: center;
    gap: 16px;
}
.header-brands__divider {
    width: 1px;
    height: 32px;
    background: currentColor;
    opacity: .2;
}
.header-brands__wonder-joy {
    display: block;
    line-height: 0;
}
.header-brands__wonder-joy img {
    width: 140px;
    height: auto;
}
@media (max-width: 767px) {
    .header-brands { gap: 10px; }
    .header-brands__divider { height: 24px; }
    .header-brands__wonder-joy img { width: 100px; }
}

/* Cart: price note and Add to Cart button on product pages. */
.rr-cart-price__note {
    font-size: 13px;
    font-weight: 500;
    color: #666666;
}
.rr-cart-price[hidden],
.rr-add-to-cart[hidden] {
    display: none;
}
.rr-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 0 100%;
    background-color: var(--wp--preset--color--color-02, #2B2B2B);
    color: #ffffff;
    font-family: inherit;
    font-weight: 600;
    font-size: 16px;
    padding: 17px 24px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.rr-add-to-cart .btn-icon {
    font-size: 20px;
}
.rr-add-to-cart:hover:not(:disabled) {
    background-color: #000000;
    transform: translateY(-2px);
}
.rr-add-to-cart:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.rr-add-to-cart.is-added {
    background-color: #1a7f4b;
}

/* Cart: header link with item count. */
.header-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    order: 3;
    margin-left: clamp(16px, 2.5vw, 36px);
    color: var(--wp--preset--color--color-02, #2B2B2B);
    line-height: 0;
}
.header-cart:hover {
    color: var(--wp--preset--color--color-01, #50047b);
}
.rr-cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--wp--preset--color--color-01, #50047b);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.rr-cart-count.is-empty {
    display: none;
}
@media (max-width: 1199px) {
    .header-cart { margin-left: auto; margin-right: 6px; }
}

/* Cart and checkout pages (WooCommerce blocks): keep them inside the page
   column and tone the theme's display headings down to form-sized text. */
.woocommerce-cart .page-header__tagline,
.woocommerce-checkout .page-header__tagline {
    display: none;
}
.woocommerce-cart .entry-content .wp-block-woocommerce-cart,
.woocommerce-checkout .entry-content .wp-block-woocommerce-checkout {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    left: auto;
    transform: none;
}
.woocommerce-page .wc-block-cart__totals-title,
.woocommerce-page .wc-block-components-checkout-order-summary__title-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .06em;
    line-height: 1.4;
}
.woocommerce-page .wc-block-components-checkout-step__title,
.woocommerce-page .wc-block-components-title {
    font-size: 22px;
    line-height: 1.3;
}
.woocommerce-page .wc-block-components-product-name,
.woocommerce-page .wc-block-components-order-summary-item__description h3 {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 600;
}
.woocommerce-page .wc-block-cart__submit-button,
.woocommerce-page .wc-block-components-checkout-place-order-button {
    background-color: var(--wp--preset--color--color-01, #50047b);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 15px 24px;
    transition: background-color .25s ease;
}
.woocommerce-page .wc-block-cart__submit-button:hover,
.woocommerce-page .wc-block-components-checkout-place-order-button:hover {
    background-color: #3b025b;
    color: #ffffff;
}
