/**
 * Motive Media - WooCommerce
 * Matches theme: primary #4fbd38, navy #072945
 * Same layout & UI as About, Contact, regular pages
 */

/* ==========================================================================
   Global: disable floating placeholder (all inputs site-wide)
   ========================================================================== */
body input::placeholder,
body textarea::placeholder {
    transition: none !important;
}
body input:focus::placeholder,
body textarea:focus::placeholder {
    opacity: 1 !important;
    transition: none !important;
}
body input::-webkit-input-placeholder,
body textarea::-webkit-input-placeholder,
body input:focus::-webkit-input-placeholder,
body textarea:focus::-webkit-input-placeholder {
    opacity: 1 !important;
    transition: none !important;
}
body input::-moz-placeholder,
body textarea::-moz-placeholder,
body input:focus::-moz-placeholder,
body textarea:focus::-moz-placeholder {
    opacity: 1 !important;
}

/* ==========================================================================
   WooCommerce Blocks: disable floating label (label stays above input, no move)
   ========================================================================== */
body .wc-block-components-text-input,
body .wc-block-components-form .wc-block-components-text-input {
    line-height: 1.5;
}
body .wc-block-components-text-input label,
body .wc-block-components-form .wc-block-components-text-input label {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    transition: none !important;
    display: block !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    cursor: default !important;
    font-size: 0.9375rem !important;
}
body .wc-block-components-text-input.is-active label,
body .wc-block-components-form .wc-block-components-text-input.is-active label,
body .wc-block-components-text-input input:-webkit-autofill + label,
body .wc-block-components-form .wc-block-components-text-input input:-webkit-autofill + label,
body .has-dark-controls .wc-block-components-text-input label,
body .has-dark-controls .wc-block-components-form .wc-block-components-text-input label {
    top: auto !important;
    transform: none !important;
    scale: none !important;
}
body .wc-block-components-text-input input[type="text"],
body .wc-block-components-text-input input[type="email"],
body .wc-block-components-text-input input[type="tel"],
body .wc-block-components-text-input input[type="password"],
body .wc-block-components-text-input input[type="number"],
body .wc-block-components-text-input input[type="url"],
body .wc-block-components-form .wc-block-components-text-input input[type="text"],
body .wc-block-components-form .wc-block-components-text-input input[type="email"],
body .wc-block-components-form .wc-block-components-text-input input[type="tel"],
body .wc-block-components-form .wc-block-components-text-input input[type="password"],
body .wc-block-components-form .wc-block-components-text-input input[type="number"],
body .wc-block-components-form .wc-block-components-text-input input[type="url"] {
    padding: 0.75rem 1rem !important;
}
body .wc-block-components-text-input.is-active input,
body .wc-block-components-form .wc-block-components-text-input.is-active input {
    padding: 0.75rem 1rem !important;
}

/* ==========================================================================
   Navbar Cart Icon & Dropdown
   ========================================================================== */

.motive-cart-trigger-wrapper {
    position: relative;
}

.motive-cart-trigger {
    text-decoration: none;
    min-width: 2.75rem;
    min-height: 2.75rem;
}

.motive-cart-trigger .motive-cart-icon,
.motive-cart-trigger .motive-cart-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.motive-cart-trigger .motive-cart-loading.hidden {
    display: none !important;
}

.motive-cart-count-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.25rem;
    color: #072945;
    background: #4fbd38;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.motive-cart-trigger-wrapper .xcellence-cart-dropdown.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.motive-cart-dropdown-panel::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    border: 8px solid transparent;
    border-bottom-color: rgba(255,255,255,0.1);
}

.motive-cart-trigger.motive-cart-loading-active .motive-cart-icon {
    opacity: 0.5;
}

@keyframes motive-spin {
    to { transform: rotate(360deg); }
}

.motive-cart-trigger .animate-spin {
    animation: motive-spin 0.8s linear infinite;
}

/* ==========================================================================
   Product Loop / Archive - Premium card design
   ========================================================================== */

.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid;
    grid-template-columns: repeat(var(--columns, 3), 1fr);
    gap: 1.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce ul.products.columns-2 { --columns: 2; }
.woocommerce ul.products.columns-3 { --columns: 3; }
.woocommerce ul.products.columns-4 { --columns: 4; }
.woocommerce ul.products.columns-5 { --columns: 5; }

@media (max-width: 1024px) {
    .woocommerce ul.products { --columns: 2; gap: 1.5rem; }
}

@media (max-width: 640px) {
    .woocommerce ul.products { --columns: 1; gap: 1.25rem; }
}

/* Product card - matches theme cards (rounded-xl, shadow-sm, border) */
.woocommerce ul.products li.product {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.woocommerce ul.products li.product:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    border-color: rgba(79, 189, 56, 0.25);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link::before {
    content: '';
    display: block;
    padding-top: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product .attachment-woocommerce_thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__link img,
.woocommerce ul.products li.product:hover .attachment-woocommerce_thumbnail {
    transform: scale(1.03);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1rem 1.25rem 0.5rem;
    line-height: 1.4;
    transition: color 0.2s;
}

.woocommerce ul.products li.product:hover .woocommerce-loop-product__title {
    color: #4fbd38;
}

.woocommerce ul.products li.product .price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #4fbd38;
    margin: 0 1.25rem 1rem;
}

.woocommerce ul.products li.product .price del {
    color: #94a3b8;
    font-weight: 500;
    font-size: 0.9375rem;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #4fbd38;
    color: #072945 !important;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none !important;
    margin: 0 1.25rem 1.25rem;
    transition: background 0.2s;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.button:hover {
    background: #45a82f !important;
    color: #072945 !important;
}

.woocommerce ul.products li.product .onsale {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: #4fbd38;
    color: #072945;
    padding: 0.35rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 0.375rem;
    z-index: 2;
}

/* ==========================================================================
   Buttons (global) - High specificity to override WooCommerce defaults
   ========================================================================== */

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input[type="submit"].button,
.woocommerce input.button,
.woocommerce #respond input#submit,
body.woocommerce-cart a.button,
body.woocommerce-cart button.button,
body.woocommerce-checkout a.button,
body.woocommerce-checkout button.button,
body.woocommerce-checkout input[type="submit"],
.motive-media-woo-page-content a.button,
.motive-media-woo-page-content button.button {
    background: #4fbd38 !important;
    color: #072945 !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.9375rem !important;
    transition: background 0.2s !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
body.woocommerce-cart a.button:hover,
body.woocommerce-checkout a.button:hover,
body.woocommerce-checkout button.button:hover,
body.woocommerce-checkout input[type="submit"]:hover,
.motive-media-woo-page-content a.button:hover,
.motive-media-woo-page-content button.button:hover {
    background: #45a82f !important;
}

.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
body.woocommerce-checkout #place_order,
.motive-media-woo-page-content .button.alt {
    background: #072945 !important;
    color: #fff !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover,
body.woocommerce-checkout #place_order:hover,
.motive-media-woo-page-content .button.alt:hover {
    background: #0a3a6b !important;
}

/* Block-based cart/checkout buttons */
.wc-block-components-button,
.wp-block-woocommerce-checkout .wc-block-components-button,
.wc-block-mini-cart__footer-checkout {
    background: #4fbd38 !important;
    color: #072945 !important;
    border: none !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
}

.wc-block-mini-cart__footer-checkout {
    background: #4fbd38 !important;
    color: #072945 !important;
}

/* ==========================================================================
   Single Product
   ========================================================================== */

/* Two-column layout: gallery left, summary right; tabs/related full width */
.woocommerce div.product {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 3rem 3rem;
    align-items: start;
    margin-top: 0;
}

.woocommerce div.product .motive-product-gallery-wrap {
    grid-column: 1;
    grid-row: 1;
    position: relative;
}

.woocommerce div.product .summary.entry-summary {
    grid-column: 2;
    grid-row: 1;
}

.woocommerce div.product > .woocommerce-tabs,
.woocommerce div.product > .related.products,
.woocommerce div.product > .upsells {
    grid-column: 1 / -1;
}

/* Gallery wrapper: no sticky/fixed - normal flow */
.woocommerce div.product .motive-product-gallery-wrap {
    position: relative;
}

.woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery {
    border-radius: 1rem;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery__wrapper {
    aspect-ratio: 1;
}

.woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image,
.woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image a {
    display: block;
    height: 100%;
}

.woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery__wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child {
    flex: 1 1 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.5rem;
}

.woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:first-child img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2) {
    flex: 0 0 4.5rem;
    width: 4.5rem;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    border: 2px solid #e2e8f0;
    opacity: 0.8;
    transition: opacity 0.2s, border-color 0.2s;
}

.woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2):hover,
.woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2).flex-active-slide {
    opacity: 1;
    border-color: #4fbd38;
}

.woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery__wrapper .woocommerce-product-gallery__image:nth-child(n+2) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sale badge: overlay on gallery */
.woocommerce div.product .motive-product-gallery-wrap .onsale {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: #4fbd38;
    color: #072945;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
}

/* Title */
.woocommerce div.product .product_title {
    font-size: 2rem;
    font-weight: 800;
    color: #072945;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Rating */
.woocommerce div.product .woocommerce-product-rating {
    margin-bottom: 1rem;
}

/* Star rating display (Unicode stars - no WC font required) */
.woocommerce .star-rating {
    overflow: hidden;
    position: relative;
    height: 1.1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    display: inline-block;
    vertical-align: middle;
}
.woocommerce .star-rating::before {
    content: "\2605\2605\2605\2605\2605";
    color: #e2e8f0;
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: 0.05em;
}
.woocommerce .star-rating span {
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    padding: 0 !important;
    width: 100% !important;
    /* Hide "Rated X out of 5" / "1 of 5 stars" text - show only stars */
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    text-indent: -9999px !important;
}
.woocommerce .star-rating span .rating,
.woocommerce .star-rating .rating {
    display: none !important;
}
.woocommerce .star-rating span::before {
    content: "\2605\2605\2605\2605\2605";
    color: #4fbd38;
    position: absolute;
    top: 0;
    left: 0;
    letter-spacing: 0.05em;
}
.woocommerce div.product .star-rating {
    color: #4fbd38;
}

/* Price */
.woocommerce div.product p.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4fbd38;
    margin: 0 0 1.25rem;
}

.woocommerce div.product p.price del {
    color: #94a3b8;
    font-weight: 600;
}

.woocommerce div.product p.price ins {
    text-decoration: none;
}

/* Short description */
.woocommerce div.product .woocommerce-product-details__short-description {
    color: #475569;
    line-height: 1.7;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.woocommerce div.product .woocommerce-product-details__short-description p:last-child {
    margin-bottom: 0;
}

/* Add to cart */
.woocommerce div.product form.cart {
    margin-top: 0;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.woocommerce div.product form.cart .quantity {
    margin-right: 0;
}

.woocommerce div.product form.cart .quantity input {
    width: 4rem;
    padding: 0.75rem 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-align: center;
    background: #fff;
    font-weight: 600;
    font-size: 1rem;
}

.woocommerce div.product form.cart .quantity input:focus {
    border-color: #4fbd38;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 189, 56, 0.12);
}

.woocommerce div.product form.cart .single_add_to_cart_button {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background: #4fbd38 !important;
    color: #072945 !important;
    border: none !important;
    transition: background 0.2s;
}

.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: #45a82f !important;
}

/* Product meta (SKU, categories) */
.woocommerce div.product .product_meta {
    padding-top: 1rem;
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
}

.woocommerce div.product .product_meta a {
    color: #4fbd38;
    font-weight: 600;
}

.woocommerce div.product .product_meta a:hover {
    color: #072945;
}

/* Tabs - full width below product, styled */
.woocommerce div.product > .woocommerce-tabs {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

.woocommerce div.product .woocommerce-tabs .wc-tabs,
.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid #e2e8f0;
}

.woocommerce div.product .woocommerce-tabs .wc-tabs li,
.woocommerce div.product .woocommerce-tabs ul.tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs .wc-tabs li a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s;
}

.woocommerce div.product .woocommerce-tabs .wc-tabs li a:hover,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: #072945;
}

.woocommerce div.product .woocommerce-tabs .wc-tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: #072945;
    border-bottom-color: #4fbd38;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel,
.woocommerce div.product .woocommerce-tabs .panel {
    padding: 1.5rem 0;
    color: #475569;
    line-height: 1.75;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel h2,
.woocommerce div.product .woocommerce-tabs .panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #072945;
    margin: 0 0 1rem;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel p,
.woocommerce div.product .woocommerce-tabs .panel p {
    margin-bottom: 1rem;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel table,
.woocommerce div.product .woocommerce-tabs .panel table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel table th,
.woocommerce div.product .woocommerce-tabs .panel table th {
    text-align: left;
    padding: 0.5rem 1rem 0.5rem 0;
    font-weight: 600;
    color: #072945;
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel table td,
.woocommerce div.product .woocommerce-tabs .panel table td {
    padding: 0.5rem 0;
    color: #475569;
}

/* Related products - full width, styled */
.woocommerce div.product > .related.products {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

.woocommerce div.product .related.products h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #072945;
    margin: 0 0 1.5rem;
}

.woocommerce div.product .related.products ul.products {
    gap: 1.5rem;
}

/* Upsells */
.woocommerce div.product > .upsells {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    width: 100%;
}

.woocommerce div.product .upsells h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #072945;
    margin: 0 0 1rem;
}

/* ==========================================================================
   Product Reviews (single product)
   ========================================================================== */

#reviews.woocommerce-Reviews {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

#reviews .woocommerce-Reviews-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #072945;
    margin: 0 0 1.5rem;
}

#reviews .commentlist {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

#reviews .commentlist li {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

#reviews .commentlist li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

#reviews .comment_container {
    display: flex;
    gap: 1rem;
}

#reviews .comment_container .avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

#reviews .comment-text {
    flex: 1;
    min-width: 0;
}

#reviews .comment-text .star-rating {
    color: #4fbd38;
    margin-bottom: 0.5rem;
}

#reviews .woocommerce-review__author {
    font-weight: 600;
    color: #072945;
}

#reviews .woocommerce-review__verified {
    color: #4fbd38;
    font-size: 0.8125rem;
}

#reviews .woocommerce-review__published-date {
    color: #64748b;
    font-size: 0.875rem;
}

#reviews .comment-text .description {
    margin-top: 0.5rem;
    color: #475569;
    line-height: 1.6;
}

#reviews .woocommerce-noreviews {
    color: #64748b;
    margin-bottom: 1.5rem;
}

/* Review form */
#review_form_wrapper {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

#review_form .comment-reply-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #072945;
    margin: 0 0 1rem;
    display: block;
}

#review_form .comment-form-rating {
    margin-bottom: 1rem;
}

#review_form .comment-form-rating label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

/* Review form: star rating selector (replaces dropdown) */
#review_form .comment-form-rating .star-rating-select {
    display: flex;
    gap: 0.15rem;
    font-size: 1.5rem;
    line-height: 1;
}
#review_form .comment-form-rating .star-rating-select a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.15s;
}
#review_form .comment-form-rating .star-rating-select a:hover,
#review_form .comment-form-rating .star-rating-select a.active {
    color: #4fbd38;
}
#review_form .comment-form-rating .star-rating-select a:hover ~ a {
    color: #e2e8f0;
}
/* Hover fill */
#review_form .comment-form-rating .star-rating-select.hover-1 a.star-1,
#review_form .comment-form-rating .star-rating-select.hover-2 a.star-1,
#review_form .comment-form-rating .star-rating-select.hover-2 a.star-2,
#review_form .comment-form-rating .star-rating-select.hover-3 a.star-1,
#review_form .comment-form-rating .star-rating-select.hover-3 a.star-2,
#review_form .comment-form-rating .star-rating-select.hover-3 a.star-3,
#review_form .comment-form-rating .star-rating-select.hover-4 a.star-1,
#review_form .comment-form-rating .star-rating-select.hover-4 a.star-2,
#review_form .comment-form-rating .star-rating-select.hover-4 a.star-3,
#review_form .comment-form-rating .star-rating-select.hover-4 a.star-4,
#review_form .comment-form-rating .star-rating-select.hover-5 a.star-1,
#review_form .comment-form-rating .star-rating-select.hover-5 a.star-2,
#review_form .comment-form-rating .star-rating-select.hover-5 a.star-3,
#review_form .comment-form-rating .star-rating-select.hover-5 a.star-4,
#review_form .comment-form-rating .star-rating-select.hover-5 a.star-5 {
    color: #4fbd38;
}
/* Selected fill (container gets .selected-N) */
#review_form .comment-form-rating.selected-1 .star-rating-select a.star-1,
#review_form .comment-form-rating.selected-2 .star-rating-select a.star-1,
#review_form .comment-form-rating.selected-2 .star-rating-select a.star-2,
#review_form .comment-form-rating.selected-3 .star-rating-select a.star-1,
#review_form .comment-form-rating.selected-3 .star-rating-select a.star-2,
#review_form .comment-form-rating.selected-3 .star-rating-select a.star-3,
#review_form .comment-form-rating.selected-4 .star-rating-select a.star-1,
#review_form .comment-form-rating.selected-4 .star-rating-select a.star-2,
#review_form .comment-form-rating.selected-4 .star-rating-select a.star-3,
#review_form .comment-form-rating.selected-4 .star-rating-select a.star-4,
#review_form .comment-form-rating.selected-5 .star-rating-select a.star-1,
#review_form .comment-form-rating.selected-5 .star-rating-select a.star-2,
#review_form .comment-form-rating.selected-5 .star-rating-select a.star-3,
#review_form .comment-form-rating.selected-5 .star-rating-select a.star-4,
#review_form .comment-form-rating.selected-5 .star-rating-select a.star-5 {
    color: #4fbd38;
}

#review_form .comment-form-author,
#review_form .comment-form-email,
#review_form .comment-form-comment {
    margin-bottom: 1rem;
}

#review_form .comment-form-author label,
#review_form .comment-form-email label,
#review_form .comment-form-comment label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

#review_form .comment-form-author input,
#review_form .comment-form-email input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
}

#review_form .comment-form-comment textarea {
    width: 100%;
    min-height: 120px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    resize: vertical;
}

#review_form .form-submit {
    margin-top: 1rem;
}

#review_form .submit {
    background: #4fbd38 !important;
    color: #072945 !important;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
}

#review_form .submit:hover {
    background: #45a82f !important;
}

#review_form .must-log-in,
#reviews .woocommerce-verification-required {
    color: #64748b;
    margin-top: 1rem;
}

#review_form .must-log-in a,
#reviews .woocommerce-verification-required a {
    color: #4fbd38;
    font-weight: 600;
}

@media (max-width: 768px) {
    .woocommerce div.product {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .woocommerce div.product .motive-product-gallery-wrap {
        grid-column: 1;
        grid-row: auto;
        position: static;
    }
    .woocommerce div.product .summary.entry-summary {
        grid-column: 1;
    }
    .woocommerce div.product .product_title {
        font-size: 1.5rem;
    }
    .woocommerce div.product .motive-product-gallery-wrap .woocommerce-product-gallery__wrapper {
        aspect-ratio: 4/3;
    }
}

/* ==========================================================================
   Forms & Inputs (global)
   ========================================================================== */

/* Form row layout */
.woocommerce form .form-row {
    margin-bottom: 1.75rem;
}

.woocommerce form .form-row label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.woocommerce form .form-row label .optional {
    font-weight: 400;
    color: #94a3b8;
}

/* Text inputs - matches theme (border-slate-200, rounded-lg) */
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="number"],
.woocommerce form input[type="password"],
.woocommerce form input.input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.motive-media-woo-page-content input[type="text"],
.motive-media-woo-page-content input[type="email"],
.motive-media-woo-page-content input[type="tel"],
.motive-media-woo-page-content input.input-text {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1e293b;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.woocommerce form input::placeholder,
.woocommerce form textarea::placeholder,
.motive-media-woo-page-content input::placeholder,
.wc-block-components-text-input input::placeholder {
    color: #64748b;
    opacity: 1;
    transition: none !important;
}

/* Disable floating placeholder on focus - keep placeholder visible, no fade/move */
.woocommerce form input:focus::placeholder,
.woocommerce form textarea:focus::placeholder,
.motive-media-woo-page-content input:focus::placeholder,
.wc-block-components-text-input input:focus::placeholder {
    opacity: 1 !important;
    color: #64748b !important;
    transition: none !important;
}
.woocommerce form input::-webkit-input-placeholder,
.woocommerce form textarea::-webkit-input-placeholder,
.woocommerce form input:focus::-webkit-input-placeholder,
.woocommerce form textarea:focus::-webkit-input-placeholder,
.motive-media-woo-page-content input:focus::-webkit-input-placeholder {
    opacity: 1 !important;
    transition: none !important;
}
.woocommerce form input::-moz-placeholder,
.woocommerce form textarea::-moz-placeholder,
.woocommerce form input:focus::-moz-placeholder,
.woocommerce form textarea:focus::-moz-placeholder {
    opacity: 1 !important;
}

/* Select dropdowns */
.woocommerce form .form-row select,
.woocommerce form select,
.motive-media-woo-page-content select {
    display: block;
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #1e293b;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.125rem center;
    background-size: 12px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Textarea */
.woocommerce form .form-row textarea,
.woocommerce form textarea {
    min-height: 120px;
    padding: 0.875rem 1.25rem;
    resize: vertical;
}

/* Focus states - clean ring */
.woocommerce form input[type="text"]:focus,
.woocommerce form input[type="email"]:focus,
.woocommerce form input[type="tel"]:focus,
.woocommerce form input[type="number"]:focus,
.woocommerce form input.input-text:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.motive-media-woo-page-content input:focus,
.motive-media-woo-page-content select:focus,
.motive-media-woo-page-content textarea:focus {
    border-color: #4fbd38;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 189, 56, 0.12);
}

.woocommerce form .form-row select:focus,
.motive-media-woo-page-content select:focus {
    background-color: #fff;
}

/* Checkbox & Radio */
.woocommerce form .form-row .input-checkbox,
.woocommerce form .form-row .input-radio,
.woocommerce form input[type="checkbox"],
.woocommerce form input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    accent-color: #4fbd38;
    cursor: pointer;
    vertical-align: middle;
}

.woocommerce form .form-row .input-checkbox + span,
.woocommerce form .form-row .input-radio + span {
    vertical-align: middle;
    cursor: pointer;
}

/* Quantity input */
.woocommerce .quantity input.qty,
.woocommerce form .quantity input {
    width: 4.5rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    background: #fff;
}

.woocommerce .quantity input.qty:focus,
.woocommerce form .quantity input:focus {
    background: #fff;
    border-color: #4fbd38;
}

/* Block-based form inputs */
.wc-block-components-text-input input,
.wc-block-components-select input,
.wc-block-components-combobox input {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #fff;
}

.wc-block-components-text-input input:focus {
    border-color: #4fbd38;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 189, 56, 0.15);
}

/* Form row columns (billing: first/last name side by side) */
.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
    width: 48%;
    float: left;
}

.woocommerce form .form-row-first {
    margin-right: 4%;
}

.woocommerce form .woocommerce-billing-fields__field-wrapper,
.woocommerce form .woocommerce-shipping-fields__field-wrapper {
    margin-top: 1.25rem;
}

.woocommerce .woocommerce-billing-fields,
.woocommerce .woocommerce-shipping-fields {
    margin-bottom: 2rem;
}

.woocommerce form .form-row-wide {
    clear: both;
}

@media (max-width: 640px) {
    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last {
        width: 100%;
        float: none;
        margin-right: 0;
    }
}

/* Login form */
.woocommerce-form-login input[type="text"],
.woocommerce-form-login input[type="password"] {
    padding: 0.875rem 1.25rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    width: 100%;
    background: #f1f5f9;
}

.woocommerce-form-login input:focus {
    background: #fff;
}

/* Validation error state */
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
    border-color: #ef4444;
}

.woocommerce form .form-row.woocommerce-invalid input.input-text:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* ==========================================================================
   Notices
   ========================================================================== */

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.woocommerce-message {
    background: #f0fdf4;
    border-color: #4fbd38;
    color: #166534;
}

.woocommerce-info {
    background: #f0f9ff;
    border-color: #0ea5e9;
    color: #0369a1;
}

.woocommerce-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
}

/* ==========================================================================
   Shop - header, breadcrumb, result count
   ========================================================================== */

.woocommerce-breadcrumb {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.woocommerce-breadcrumb a {
    color: #4fbd38;
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    color: #072945;
}

.woocommerce-breadcrumb .delimiter {
    margin: 0 0.5rem;
    color: #94a3b8;
}

/* Shop loop header - result count + ordering */
.woocommerce .woocommerce-result-count {
    color: #64748b;
    font-size: 0.9375rem;
}

.woocommerce .woocommerce-ordering {
    margin-bottom: 1.5rem;
}

.woocommerce-ordering select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
}

/* Before shop loop - flex layout for count + ordering */
.woocommerce .woocommerce-notices-wrapper {
    margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-products-header {
    margin-bottom: 1.5rem;
}

.woocommerce .woocommerce-products-header__title,
.woocommerce .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #072945;
    margin: 0 0 0.5rem;
}

.woocommerce .term-description {
    margin-bottom: 1.5rem;
    color: #475569;
    line-height: 1.6;
}

.woocommerce .term-description p:last-child {
    margin-bottom: 0;
}

/* Shop toolbar: result count + ordering */
.woocommerce .woocommerce-result-count {
    margin-bottom: 1rem;
}

.woocommerce .woocommerce-ordering {
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Result count & ordering (legacy)
   ========================================================================== */

.woocommerce-result-count,
.woocommerce-ordering {
    color: #64748b;
    font-size: 0.875rem;
}

/* ==========================================================================
   Cart & Checkout tables
   ========================================================================== */

.woocommerce table.shop_table {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 1rem 1.25rem;
    border-color: #f1f5f9;
}

.woocommerce table.shop_table thead th {
    background: #f8fafc;
    font-weight: 600;
    color: #072945;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.woocommerce nav.woocommerce-pagination ul {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    background: rgba(0,0,0,0.05);
    color: #072945;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: #4fbd38;
    color: #072945;
}

/* ==========================================================================
   Cart Page
   ========================================================================== */

.motive-media-cart {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .motive-media-cart {
        grid-template-columns: 1fr 360px;
        gap: 2.5rem;
        align-items: start;
    }

    .motive-media-cart-form {
        grid-column: 1;
        min-width: 0;
    }

    .motive-media-cart-collaterals {
        grid-column: 2;
        position: sticky;
        top: 6rem;
    }
}

.motive-media-cart-form .shop_table.cart {
    margin-bottom: 0;
}

.motive-media-cart-form .shop_table.cart .actions {
    padding-top: 1.5rem;
}

.motive-media-cart-form .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 0.5rem;
}

.motive-media-cart-form .product-remove a {
    color: #ef4444;
    font-size: 1.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    transition: background 0.2s, color 0.2s;
}

.motive-media-cart-form .product-remove a:hover {
    background: #fef2f2;
    color: #dc2626;
}

.motive-media-cart-form .product-name a {
    color: #072945;
    font-weight: 600;
    text-decoration: none;
}

.motive-media-cart-form .product-name a:hover {
    color: #4fbd38;
}

.motive-media-cart-form .product-quantity .quantity input {
    width: 4.5rem;
    padding: 0.625rem 0.875rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-align: center;
    background: #fff;
}

.motive-media-cart-form .product-quantity .quantity input:focus {
    border-color: #4fbd38;
    box-shadow: 0 0 0 3px rgba(79, 189, 56, 0.12);
}

.motive-media-cart-form .coupon {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.motive-media-cart-form .coupon input {
    flex: 1;
    min-width: 150px;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    background: #fff;
}

.motive-media-cart-form .coupon input:focus {
    border-color: #4fbd38;
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 189, 56, 0.12);
}

/* Apply coupon button: square (width = height) via fixed size */
.motive-apply-coupon-btn,
.motive-media-cart-form .coupon .button,
.motive-media-cart-form .coupon button[name="apply_coupon"],
.woocommerce-form-coupon .button,
.woocommerce-form-coupon button[name="apply_coupon"],
.checkout_coupon .button,
.checkout_coupon button[name="apply_coupon"],
body.woocommerce-cart .coupon .button,
body.woocommerce-cart .coupon button[name="apply_coupon"],
body.woocommerce-checkout .woocommerce-form-coupon .button,
body.woocommerce-checkout .woocommerce-form-coupon button[name="apply_coupon"],
body .wc-block-components-totals-coupon__button,
body .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
    --motive-coupon-btn-size: 2.75rem;
    width: var(--motive-coupon-btn-size) !important;
    height: var(--motive-coupon-btn-size) !important;
    min-width: var(--motive-coupon-btn-size) !important;
    min-height: var(--motive-coupon-btn-size) !important;
    max-width: var(--motive-coupon-btn-size) !important;
    max-height: var(--motive-coupon-btn-size) !important;
    padding: 0 !important;
    font-size: 0.6875rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    border-radius: 0.5rem !important;
    flex: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: center !important;
}

.motive-media-cart-totals {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
}

.motive-media-cart-totals-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #072945;
    margin: 0 0 1.25rem 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.motive-media-cart-totals .order-total th,
.motive-media-cart-totals .order-total td {
    font-size: 1.125rem;
    font-weight: 700;
    color: #4fbd38;
}

.motive-media-proceed-to-checkout .button {
    width: 100%;
    text-align: center;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    font-size: 1rem;
}

.motive-media-return-to-shop {
    margin-top: 1.5rem;
}

.motive-media-return-to-shop .button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
}

/* Cart responsive: stack table on mobile */
@media (max-width: 768px) {
    .motive-media-cart-form .shop_table.cart thead {
        display: none;
    }

    .motive-media-cart-form .shop_table.cart .cart_item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
        padding: 1rem 0;
        border-bottom: 1px solid #f1f5f9;
    }

    .motive-media-cart-form .shop_table.cart .product-remove {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    .motive-media-cart-form .shop_table.cart .product-thumbnail {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .motive-media-cart-form .shop_table.cart .product-name {
        grid-column: 1 / -1;
    }

    .motive-media-cart-form .shop_table.cart .product-price::before {
        content: attr(data-title);
        font-weight: 600;
        color: #64748b;
        display: block;
        font-size: 0.75rem;
    }

    .motive-media-cart-form .shop_table.cart .product-quantity::before {
        content: attr(data-title);
        font-weight: 600;
        color: #64748b;
        display: block;
        font-size: 0.75rem;
    }

    .motive-media-cart-form .shop_table.cart .product-subtotal::before {
        content: attr(data-title);
        font-weight: 600;
        color: #64748b;
        display: block;
        font-size: 0.75rem;
    }

    .motive-media-cart-form .shop_table.cart .actions {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* ==========================================================================
   Checkout Page
   ========================================================================== */

.motive-media-checkout {
    max-width: 100%;
}

@media (min-width: 1024px) {
    .motive-media-checkout-form {
        display: grid;
        grid-template-columns: 1fr 380px;
        gap: 2.5rem;
        align-items: start;
    }

    .motive-media-checkout-form #customer_details {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    .motive-media-checkout-form #order_review_heading {
        grid-column: 2;
        grid-row: 1;
        margin-top: 0;
    }

    .motive-media-checkout-form #order_review {
        grid-column: 2;
        grid-row: 2;
        position: sticky;
        top: 6rem;
    }
}

.motive-media-checkout-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .motive-media-checkout-details {
        grid-template-columns: 1fr 1fr;
    }
}

.motive-media-checkout-billing,
.motive-media-checkout-shipping {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
}

.motive-media-checkout-billing h3,
.motive-media-checkout-shipping h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #072945;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.motive-media-order-review-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #072945;
    margin: 0 0 1rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.motive-media-order-review {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem 1.75rem;
}

.motive-media-order-review .shop_table {
    margin-bottom: 0;
}

.motive-media-order-review #place_order {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    border-radius: 0.5rem;
}

/* ==========================================================================
   My Account
   ========================================================================== */

.motive-myaccount-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .motive-myaccount-wrap {
        grid-template-columns: 240px 1fr;
        gap: 2.5rem;
        align-items: start;
    }
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    order: 1;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid #f1f5f9;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
    display: block;
    padding: 0.875rem 1.25rem;
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover {
    background: #f8fafc;
    color: #072945;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    background: #f0fdf4;
    color: #4fbd38;
    font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content {
    order: 2;
    min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-content p {
    margin-bottom: 1rem;
    color: #475569;
    line-height: 1.6;
}

.woocommerce-account .woocommerce-MyAccount-content a {
    color: #4fbd38;
    font-weight: 600;
}

.woocommerce-account .woocommerce-MyAccount-content a:hover {
    color: #45a82f;
}

.woocommerce-account .woocommerce-MyAccount-orders,
.woocommerce-account .account-orders-table {
    margin-top: 1rem;
}

.woocommerce-account .woocommerce-orders-table__row {
    vertical-align: middle;
}

/* ==========================================================================
   Block-based WooCommerce templates
   ========================================================================== */

.wp-block-woocommerce-product-collection .wc-block-grid__product,
.wp-block-woocommerce-product-collection .wc-block-components-product-image {
    border-radius: 0.75rem;
    overflow: hidden;
}

.wp-block-woocommerce-product-collection .wc-block-grid__product-title,
.wp-block-woocommerce-product-collection .wc-block-components-product-title a {
    color: #072945;
    font-weight: 700;
}

.wp-block-woocommerce-product-collection .wc-block-grid__product-title:hover,
.wp-block-woocommerce-product-collection .wc-block-components-product-title a:hover {
    color: #4fbd38;
}

.wp-block-woocommerce-product-collection .wc-block-components-product-price,
.wp-block-woocommerce-product-collection .wc-block-grid__product-price {
    color: #4fbd38;
    font-weight: 700;
}

.wp-block-woocommerce-product-collection .wc-block-grid__product-add-to-cart-button,
.wp-block-woocommerce-product-collection .wc-block-components-product-button a,
.wp-block-woocommerce-product-collection .wc-block-components-product-button button {
    background: #4fbd38 !important;
    color: #072945 !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-weight: 700 !important;
}

.wp-block-woocommerce-product-collection .wc-block-grid__product-add-to-cart-button:hover,
.wp-block-woocommerce-product-collection .wc-block-components-product-button a:hover,
.wp-block-woocommerce-product-collection .wc-block-components-product-button button:hover {
    background: #45a82f !important;
    color: #072945 !important;
}

/* Block checkout: ensure inputs match theme */
.wp-block-woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control,
.wp-block-woocommerce-checkout .wc-block-components-text-input input {
    border-radius: 0.5rem !important;
    border-color: #cbd5e1 !important;
}

.wp-block-woocommerce-checkout .wc-block-components-text-input input:focus {
    border-color: #4fbd38 !important;
    box-shadow: 0 0 0 3px rgba(79, 189, 56, 0.15) !important;
}
