/**
 * Inner pages stylesheet - mirrors artropad.com inner page styles.
 * Product detail / Collection / Contact / Generic pages / Cart / Footer policies.
 */

/* ===== Generic narrow page (About Us, policies...) ===== */
.page-header {
    padding: 40px 0 8px;
}
.page-header h1 {
    font-size: 40px;
    font-weight: 600;
    text-align: left;
    margin: 0;
    color: #121212;
}
.page-content {
    padding: 0 0 60px;
}
.page-content .container {
    max-width: 750px;
}
.page-content .entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.page-content .entry-content h2 {
    font-size: 24px;
    margin: 32px 0 12px;
}
.page-content .entry-content h3 {
    font-size: 20px;
    margin: 28px 0 10px;
}
.page-content .entry-content p {
    margin: 0 0 16px;
}

/* ===== Collection / Shop page (mirrors artropad.com list) ===== */
.collection-page {
    background-color: #f7f7f7;
    padding: 28px 0 70px;
}
.collection-page__title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 12px;
    color: #121212;
}
.collection-page__desc {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 20px;
    color: #555;
    line-height: 1.7;
}

/* Toolbar: right aligned — "Sort by: [select]   N products" */
.collection-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    padding: 0 0 18px;
    margin-bottom: 0;
    border: 0;
}
.collection-toolbar__count {
    order: 2;
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}
.collection-toolbar__sort {
    order: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.collection-toolbar__sort::before {
    content: "Sort by:";
    font-size: 13px;
    color: #333;
    white-space: nowrap;
}
.collection-toolbar .woocommerce-ordering {
    margin: 0;
    float: none;
}
.collection-toolbar .woocommerce-ordering select {
    padding: 4px 24px 4px 8px;
    border: 0;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #121212;
    background-color: transparent;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}
.collection-toolbar .woocommerce-ordering select:focus {
    outline: none;
    background-color: #fff;
}

/* Grid */
.collection-page .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card: white panel, image inset with rounded corners */
.collection-page .product-card {
    background-color: #fff;
    border-radius: 12px;
    padding: 10px 10px 12px;
    box-shadow: none;
    overflow: hidden;
}
.collection-page .product-card:hover {
    transform: none;
    box-shadow: none;
}
.collection-page .product-card__image {
    border-radius: 10px;
    overflow: hidden;
    padding-top: 100%;
    background-color: #f2f2f2;
}
.collection-page .product-card:hover .product-card__image img {
    transform: none;
}

/* Badge: black pill at bottom-left of the image */
.collection-page .product-card__badge {
    top: auto;
    bottom: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #121212;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Content: centered title + price */
.collection-page .product-card__content {
    padding: 12px 4px 0;
    text-align: center;
}
.collection-page .product-card__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
}
.collection-page .product-card__prices {
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}
.collection-page .product-card__sale-price {
    font-size: 14px;
    font-weight: 700;
}
.collection-page .product-card__regular-price {
    font-size: 12px;
    color: #999;
}

/* Add to cart: full-width outlined button */
.collection-page .product-card__add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 38px;
    padding: 0 10px;
    border: 1.5px solid #003449;
    border-radius: 8px;
    background-color: #fff;
    color: #003449;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
    transition: background-color .2s ease, color .2s ease;
}
.collection-page .product-card__add-btn:hover,
.collection-page .product-card__add-btn.added {
    background-color: #003449;
    color: #fff;
}
.collection-page .product-card__add-btn.loading {
    opacity: .6;
}

/* Pagination */
.collection-page nav.woocommerce-pagination ul {
    display: flex;
    justify-content: center;
    gap: 8px;
    list-style: none;
    margin: 40px 0 0;
    padding: 0;
    border: 0;
}
.collection-page nav.woocommerce-pagination ul li {
    border: 0;
}
.collection-page nav.woocommerce-pagination ul li a,
.collection-page nav.woocommerce-pagination ul li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #121212;
    background-color: #fff;
    text-decoration: none;
}
.collection-page nav.woocommerce-pagination ul li span.current,
.collection-page nav.woocommerce-pagination ul li a:hover {
    background: #003449;
    border-color: #003449;
    color: #fff;
}
@media (max-width: 1024px) {
    .collection-page .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .collection-page { padding: 20px 0 50px; }
    .collection-page .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .collection-page__title { font-size: 28px; }
    .collection-toolbar { justify-content: space-between; gap: 10px; }
    .collection-page .product-card { padding: 8px 8px 10px; }
    .collection-page .product-card__title { font-size: 13px; }
    .collection-page .product-card__sale-price { font-size: 13px; }
    .collection-page .product-card__add-btn { height: 34px; font-size: 12px; }
}

/* ===== Single product page ===== */
.single-product-page {
    padding: 36px 0 90px;
}
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.product-gallery__main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #f6f6f6;
}
.product-gallery__main img {
    width: 100%;
    height: auto;
    display: block;
}
.product-gallery__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: #ff4444;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
}
.product-gallery__thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}
.product-gallery__thumbs .thumb {
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    background: #f6f6f6;
    cursor: pointer;
}
.product-gallery__thumbs .thumb.is-active {
    border-color: #003449;
}
.product-gallery__thumbs .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-info__title {
    font-size: 30px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
    color: #121212;
}
.product-info__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.product-info__rating .stars {
    position: relative;
    display: inline-block;
    font-size: 18px;
    letter-spacing: 2px;
    color: #ddd;
    line-height: 1;
}
.product-info__rating .stars::before {
    content: '★★★★★';
    position: absolute;
    top: 0;
    left: 0;
    width: calc(var(--rating, 5) / 5 * 100%);
    overflow: hidden;
    color: #ffd700;
    white-space: nowrap;
}
.product-info__rating .rating-count {
    font-size: 14px;
    color: #666;
}
.product-info__price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.product-info__price .price-sale {
    font-size: 30px;
    font-weight: 700;
    color: #ff4444;
}
.product-info__price .price-sale .woocommerce-Price-amount {
    font-size: inherit;
}
.product-info__price .price-regular {
    font-size: 20px;
    color: #999;
    text-decoration: line-through;
}
.price-badge {
    background: #ff4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
}
.product-info__selling-points {
    margin: 0 0 24px;
    padding: 0 0 0 20px;
    color: #333;
    font-size: 15px;
    line-height: 1.9;
}
.product-info__cart {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}
.quantity-selector {
    display: flex;
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.quantity-selector .qty-btn {
    width: 42px;
    border: 0;
    background: #f6f6f6;
    font-size: 20px;
    cursor: pointer;
    color: #121212;
}
.quantity-selector .qty-btn:hover {
    background: #eaeaea;
}
.quantity-selector .qty-input {
    width: 52px;
    border: 0;
    text-align: center;
    font-size: 16px;
    -moz-appearance: textfield;
    appearance: textfield;
}
.quantity-selector .qty-input::-webkit-outer-spin-button,
.quantity-selector .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.btn-add-to-cart {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 28px;
    background: #003449;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-add-to-cart:hover {
    background: #002536;
    color: #fff;
}
.product-info__payments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.product-info__payments span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #444;
    background: #fff;
}
.product-info__shipping-note {
    font-size: 14px;
    line-height: 1.7;
    color: #444;
    padding: 14px 16px;
    background: #f4f8f9;
    border-radius: 12px;
    margin-bottom: 24px;
}
.product-accordions .accordion-item {
    border-bottom: 1px solid #e5e5e5;
}
.product-accordions .accordion-item summary {
    position: relative;
    padding: 18px 34px 18px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    color: #121212;
}
.product-accordions .accordion-item summary::-webkit-details-marker {
    display: none;
}
.product-accordions .accordion-item summary::after {
    content: '+';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    font-weight: 400;
    color: #666;
}
.product-accordions .accordion-item[open] summary::after {
    content: '−';
}
.product-accordions .accordion-content {
    padding: 0 0 20px;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}
.product-accordions .accordion-content ul {
    padding-left: 20px;
}

/* Related products */
.related-products-section {
    margin-top: 64px;
}
.related-products-section .section__title {
    font-size: 28px;
    text-align: center;
    margin-bottom: 28px;
}
.related-products-section .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Sticky buy bar */
.sticky-buy-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    transform: translateY(110%);
    transition: transform 0.3s ease;
}
.sticky-buy-bar.is-visible {
    transform: translateY(0);
}
.sticky-buy-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.sticky-buy-bar__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.sticky-buy-bar__title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sticky-buy-bar__price {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #ff4444;
}
.sticky-buy-bar__btn {
    flex: 0 0 auto;
    padding: 12px 36px;
}

@media (max-width: 900px) {
    .product-layout { grid-template-columns: 1fr; gap: 28px; }
    .related-products-section .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-info__title { font-size: 24px; }
    .sticky-buy-bar__title { max-width: 180px; }
}

/* ===== Contact page ===== */
.contact-intro {
    padding: 40px 0 24px;
    text-align: center;
}
.contact-intro__title {
    font-size: 34px;
    font-weight: 600;
    margin: 0 0 16px;
    color: #121212;
}
.contact-intro__text {
    max-width: 640px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}
.contact-form-section {
    padding: 12px 0 70px;
}
.container--narrow {
    max-width: 750px;
}
.contact-success {
    padding: 14px 18px;
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 8px;
    color: #2e7d32;
    margin-bottom: 24px;
}
.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-field {
    position: relative;
    margin-bottom: 16px;
}
.form-field__input {
    width: 100%;
    padding: 16px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.form-field__input:focus {
    outline: none;
    border-color: #003449;
}
.form-field__textarea {
    resize: vertical;
    min-height: 160px;
}
.form-field__label {
    position: absolute;
    left: 12px;
    top: -8px;
    padding: 0 6px;
    background: #fff;
    font-size: 12px;
    color: #666;
}
.btn--full {
    width: 100%;
}
@media (max-width: 640px) {
    .contact-form__row { grid-template-columns: 1fr; }
    .contact-intro__title { font-size: 26px; }
}

/* ===== Cart / Checkout / My Account ===== */
.woocommerce-cart .site-main,
.woocommerce-checkout .site-main,
.woocommerce-account .site-main {
    padding: 40px 0 70px;
}
.woocommerce-cart .page-header h1,
.woocommerce-checkout .page-header h1,
.woocommerce-account .page-header h1 {
    text-align: center;
}
.woocommerce table.shop_table {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    font-size: 15px;
}
.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}
.woocommerce table.shop_table th {
    background: #f8f8f8;
    font-weight: 600;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    background: #003449;
    color: #fff;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border: 0;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: #002536;
    color: #fff;
}
.woocommerce .cart-collaterals .cart_totals {
    background: #f8f8f8;
    border-radius: 16px;
    padding: 24px;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}
.woocommerce-message,
.woocommerce-info {
    border-top: 0;
    background: #f4f8f9;
    border-radius: 8px;
    color: #003449;
}
.woocommerce-message::before,
.woocommerce-info::before {
    color: #003449;
}

/* ===== Cart page — WooCommerce Cart Block ===== */
.woocommerce-cart .site-main {
    background-color: #f6f7f8;
}

/* Cart needs a wide canvas (the generic page template caps it at 750px) */
.woocommerce-cart .page-content .container {
    max-width: 1240px;
}

/* Page title — light, matches the shop page instead of the dark band */
.woocommerce-cart .page-header {
    background-color: transparent;
    text-align: center;
    padding: 46px 0 28px;
    margin: 0;
}
.woocommerce-cart .page-header h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: .2px;
    margin: 0;
    text-align: center;
    color: #121212;
}
.woocommerce-cart .page-content {
    padding: 16px 0 64px;
}

/* White content sheet on the grey page background */
.woocommerce-cart .page-content .entry-content {
    background-color: #fff;
    border-radius: 20px;
    padding: 44px 40px 56px;
    box-shadow: 0 10px 40px rgba(16, 24, 40, .06);
    margin-bottom: 24px;
}

/* Empty cart state */
.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
    text-align: center;
    padding: 24px 0 4px;
}
.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.wc-block-cart__empty-cart__title {
    font-size: 26px;
    font-weight: 700;
    color: #121212;
    line-height: 1.4;
    margin: 0 0 12px;
}
.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.wc-block-cart__empty-cart__title::before {
    color: #003449;
    width: 76px;
    height: 76px;
    margin: 0 auto 24px;
    opacity: .95;
}
.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-paragraph {
    margin: 0 0 6px;
    color: #7a7a7a;
    font-size: 15px;
}
.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-paragraph a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 50px;
    margin-top: 18px;
    padding: 0 34px;
    background-color: #003449;
    color: #fff;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .2px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 52, 73, .22);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-paragraph a:hover {
    background-color: #002536;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 52, 73, .28);
}

/* Divider + "new products" heading on the cart page */
.woocommerce-cart .wp-block-separator {
    max-width: 96px;
    margin: 44px auto;
    border-color: #e6e6e6;
}
.woocommerce-cart .wp-block-heading.has-text-align-center:not(.wc-block-cart__empty-cart__title),
.woocommerce-cart h2.wp-block-heading:not(.wc-block-cart__empty-cart__title) {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #121212;
    margin: 0 0 26px;
}

/* Product grid inside the cart page */
.woocommerce-cart .wc-block-grid__products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce-cart .wc-block-grid__product {
    background-color: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 12px 12px 16px;
    text-align: center;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.woocommerce-cart .wc-block-grid__product:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(16, 24, 40, .10);
    border-color: #e8e8e8;
}
.woocommerce-cart .wc-block-grid__product-image {
    margin-bottom: 10px;
}
.woocommerce-cart .wc-block-grid__product-image img {
    border-radius: 10px;
    width: 100%;
    height: auto;
    display: block;
}
.woocommerce-cart .wc-block-grid__product-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #121212;
    margin: 0 0 6px;
}
.woocommerce-cart .wc-block-grid__product-price {
    font-size: 14px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 10px;
}
.woocommerce-cart .wc-block-grid__product-price del {
    color: #999;
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}
.woocommerce-cart .wc-block-grid__product-add-to-cart .wp-block-button__link,
.woocommerce-cart .wc-block-grid__product-add-to-cart a.added_to_cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
    border: 1.5px solid #003449;
    border-radius: 8px;
    background-color: #fff;
    color: #003449;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease;
}
.woocommerce-cart .wc-block-grid__product-add-to-cart .wp-block-button__link:hover {
    background-color: #003449;
    color: #fff;
}
.woocommerce-cart .wc-block-grid__product-onsale {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background-color: #121212;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Filled cart: item table */
.woocommerce-cart .wc-block-cart-items {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #ededed;
    border-radius: 16px;
    overflow: hidden;
    background-color: #fff;
}
.woocommerce-cart .wc-block-cart-items thead th {
    padding: 13px 16px;
    background-color: #f8f9fb;
    border-bottom: 1px solid #ededed;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8a8a8a;
    text-align: left;
}
.woocommerce-cart .wc-block-cart-items thead th:last-child {
    text-align: right;
}
.woocommerce-cart .wc-block-cart-items tbody td {
    padding: 20px 16px;
    vertical-align: middle;
    border-top: 1px solid #f3f3f3;
    background-color: #fff;
}
.woocommerce-cart .wc-block-cart-items tbody tr:first-child td {
    border-top: 0;
}
.woocommerce-cart .wc-block-cart-items tbody tr:hover td {
    background-color: #fcfcfc;
}
.woocommerce-cart .wc-block-cart-item__image {
    width: 108px;
}
.woocommerce-cart .wc-block-cart-item__image img {
    display: block;
    width: 88px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
}
.woocommerce-cart .wc-block-cart-item__product {
    padding-right: 8px;
}
.woocommerce-cart .wc-block-components-product-name {
    font-size: 15px;
    font-weight: 700;
    color: #121212;
    text-decoration: none;
    line-height: 1.4;
}
.woocommerce-cart .wc-block-components-product-name:hover {
    color: #003449;
    text-decoration: underline;
}
.woocommerce-cart .wc-block-components-product-price {
    font-size: 14px;
    color: #121212;
    font-weight: 600;
}
.woocommerce-cart .wc-block-cart-item__quantity {
    width: 150px;
}
.woocommerce-cart .wc-block-components-quantity-selector {
    display: inline-flex;
    align-items: center;
    min-width: 108px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    overflow: hidden;
    background-color: #fff;
}
.woocommerce-cart .wc-block-components-quantity-selector__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 34px;
    padding: 0;
    background-color: #fff;
    color: #121212;
    border: 0;
    cursor: pointer;
}
.woocommerce-cart .wc-block-components-quantity-selector__button:hover {
    background-color: #f3f4f5;
}
.woocommerce-cart .wc-block-components-quantity-selector__input,
.woocommerce-cart .wc-block-components-quantity-selector input {
    width: 42px;
    height: 34px;
    border: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #121212;
    background: transparent;
}
.woocommerce-cart .wc-block-cart-item__remove-link {
    margin-top: 6px;
    padding: 0;
    background: none;
    border: 0;
    font-size: 12px;
    color: #999;
    text-decoration: none;
    cursor: pointer;
}
.woocommerce-cart .wc-block-cart-item__remove-link:hover {
    color: #c0392b;
    text-decoration: underline;
}
.woocommerce-cart .wc-block-cart-item__total {
    text-align: right;
    white-space: nowrap;
}
.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price,
.woocommerce-cart .wc-block-cart-item__total .wc-block-components-product-price__value {
    font-size: 15px;
    font-weight: 700;
    color: #121212;
}

.woocommerce-cart .wc-block-components-sidebar {
    background-color: #f8f9fb;
    border: 1px solid #ededed;
    border-radius: 16px;
    padding: 26px;
}
.woocommerce-cart .wc-block-cart__totals-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}
.woocommerce-cart .wc-block-components-totals-item {
    font-size: 15px;
    padding: 8px 0;
}
.woocommerce-cart .wc-block-components-totals-item__value {
    font-weight: 700;
}
.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 20px;
    font-weight: 700;
}
.woocommerce-cart .wc-block-components-button.wc-block-cart__submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    margin-top: 12px;
    background-color: #003449;
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 52, 73, .22);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.woocommerce-cart .wc-block-components-button.wc-block-cart__submit-button:hover {
    background-color: #002536;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 52, 73, .28);
}

/* Priority overrides — WooCommerce forces background:none!important on the table */
.woocommerce-cart table.wc-block-cart-items thead th {
    padding: 13px 16px !important;
    background: #f8f9fb !important;
    border-bottom: 1px solid #ededed !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
    color: #8a8a8a !important;
}
.woocommerce-cart table.wc-block-cart-items thead th:last-child {
    text-align: right !important;
}
.woocommerce-cart table.wc-block-cart-items tbody td {
    padding: 20px 16px !important;
    background-color: #fff !important;
    border-top: 1px solid #f3f3f3 !important;
    vertical-align: middle !important;
}
.woocommerce-cart table.wc-block-cart-items tbody tr:first-child td {
    border-top: 0 !important;
}
.woocommerce-cart table.wc-block-cart-items tbody tr:hover td {
    background-color: #fcfcfc !important;
}
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image {
    width: 108px !important;
}
.woocommerce-cart table.wc-block-cart-items .wc-block-cart-item__image img {
    width: 84px !important;
    height: 84px !important;
    max-width: none !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    display: block !important;
}
.woocommerce-cart .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 104px !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    overflow: hidden !important;
}
.woocommerce-cart .wc-block-components-quantity-selector__button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    background-color: #fff !important;
    color: #121212 !important;
    cursor: pointer;
}
.woocommerce-cart .wc-block-components-quantity-selector__input,
.woocommerce-cart .wc-block-components-quantity-selector input[type="number"] {
    width: 42px !important;
    height: 32px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #121212 !important;
}

@media (max-width: 1024px) {
    .woocommerce-cart .page-content .entry-content {
        padding: 36px 28px 44px;
    }
}

@media (max-width: 900px) {
    .woocommerce-cart .wc-block-grid__products {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 768px) {
    .woocommerce-cart .page-header { padding: 28px 0 16px; }
    .woocommerce-cart .page-header h1 { font-size: 26px; }
    .woocommerce-cart .page-content .entry-content {
        padding: 26px 16px 34px;
        border-radius: 16px;
    }
    .woocommerce-cart .wp-block-woocommerce-empty-cart-block { padding-top: 4px; }
    .woocommerce-cart .wp-block-woocommerce-empty-cart-block h2.wc-block-cart__empty-cart__title { font-size: 21px; }
    .woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-paragraph a {
        min-width: 170px;
        height: 46px;
        font-size: 14px;
    }
    .woocommerce-cart .wc-block-grid__products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .woocommerce-cart .wc-block-grid__product { padding: 8px 8px 12px; }
    .woocommerce-cart .wc-block-grid__product-title { font-size: 13px; }
    .woocommerce-cart .wc-block-cart-items__row { padding: 14px; }
}


/* ===== Checkout page — WooCommerce Checkout Block ===== */
.woocommerce-checkout .site-main {
    background-color: #fff;
}
.woocommerce-checkout .page-header {
    background-color: transparent;
    padding: 46px 0 10px;
    text-align: center;
}
.woocommerce-checkout .page-header h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: .2px;
    color: #121212;
    margin: 0;
}
.woocommerce-checkout .page-content {
    padding: 10px 0 72px;
}
.woocommerce-checkout .page-content .container {
    max-width: 1120px;
}
.woocommerce-checkout .page-content .entry-content {
    background: transparent;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

/* Two-column layout */
.woocommerce-checkout .wc-block-components-sidebar-layout {
    display: flex;
    align-items: flex-start;
    gap: 64px;
}
.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 560px;
}
.woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
    flex: 0 0 420px;
    padding: 0 0 0 40px;
    background: transparent;
    border-left: 1px solid #f0f0f0;
}

/* Section headings */
.woocommerce-checkout .wc-block-components-checkout-step__title,
.woocommerce-checkout .wc-block-checkout__contact-fields h2,
.woocommerce-checkout .wc-block-checkout__shipping-fields h2,
.woocommerce-checkout .wc-block-checkout__payment-method h2 {
    font-size: 16px;
    font-weight: 700;
    color: #121212;
    letter-spacing: .1px;
    margin: 0 0 6px;
}
.woocommerce-checkout .wc-block-components-checkout-step__description {
    font-size: 13px;
    color: #7a7a7a;
    margin-bottom: 12px;
}
.woocommerce-checkout .wc-block-components-checkout-step {
    margin-bottom: 28px;
}

/* Text inputs */
.woocommerce-checkout .wc-block-components-text-input {
    background-color: #fff;
    border-radius: 8px;
}
.woocommerce-checkout .wc-block-components-text-input input {
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    font-size: 14px !important;
    color: #121212 !important;
    box-shadow: none !important;
}
.woocommerce-checkout .wc-block-components-text-input input::placeholder {
    color: #9a9a9a;
    font-size: 13px;
}
.woocommerce-checkout .wc-block-components-text-input input:focus {
    border-color: #003449;
    box-shadow: 0 0 0 3px rgba(0, 52, 73, .08);
    outline: none;
}
.woocommerce-checkout .wc-block-components-text-input label {
    font-size: 13px;
    color: #8a8a8a;
}
.woocommerce-checkout .wc-block-components-text-input.is-active label {
    font-size: 11px;
    color: #7a7a7a;
}

/* Selects */
.woocommerce-checkout .wc-block-components-select__select,
.woocommerce-checkout .wc-block-components-select select {
    height: 48px !important;
    padding: 0 14px !important;
    border: 1px solid #d9d9d9 !important;
    border-radius: 8px !important;
    background-color: #fff !important;
    font-size: 14px !important;
    color: #121212 !important;
}
.woocommerce-checkout .wc-block-components-select__select:focus,
.woocommerce-checkout .wc-block-components-select select:focus {
    border-color: #003449;
    box-shadow: 0 0 0 3px rgba(0, 52, 73, .08);
    outline: none;
}

/* Checkboxes */
.woocommerce-checkout .wc-block-components-checkbox__input {
    accent-color: #003449;
}
.woocommerce-checkout .wc-block-components-checkbox__label {
    font-size: 13px;
    color: #333;
}

/* Express payment block */
.woocommerce-checkout .wc-block-components-express-payment {
    margin-bottom: 28px;
}
.woocommerce-checkout .wc-block-components-express-payment__title {
    font-size: 13px;
    color: #8a8a8a;
    text-align: center;
    margin-bottom: 12px;
}
.woocommerce-checkout .wc-block-components-express-payment__event-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Order summary sidebar */
.woocommerce-checkout .wc-block-checkout__sidebar {
    margin: 0;
}
.woocommerce-checkout .wc-block-components-order-summary {
    margin-bottom: 20px;
}
.woocommerce-checkout .wc-block-components-order-summary-item {
    padding: 14px 0;
    border-bottom: 1px solid #f2f2f2;
}
.woocommerce-checkout .wc-block-components-order-summary-item__thumbnail img {
    width: 46px;
    height: 46px;
    border-radius: 7px;
    object-fit: cover;
}
.woocommerce-checkout .wc-block-components-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #121212;
    line-height: 1.4;
}
.woocommerce-checkout .wc-block-components-product-price,
.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
    font-size: 14px;
    font-weight: 600;
    color: #121212;
}
.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
    font-size: 11px;
}

/* Coupon field */
.woocommerce-checkout .wc-block-components-totals-coupon {
    padding: 18px 0;
    border-bottom: 1px solid #f2f2f2;
}
.woocommerce-checkout .wc-block-components-totals-coupon__form {
    display: flex;
    gap: 8px;
}
.woocommerce-checkout .wc-block-components-totals-coupon__input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    font-size: 13px;
}
.woocommerce-checkout .wc-block-components-totals-coupon__button {
    height: 40px;
    padding: 0 18px;
    border: 1px solid #003449;
    border-radius: 8px;
    background-color: #fff;
    color: #003449;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.woocommerce-checkout .wc-block-components-totals-coupon__button:hover {
    background-color: #003449;
    color: #fff;
}

/* Totals */
.woocommerce-checkout .wc-block-components-totals-item {
    padding: 7px 0;
    font-size: 15px;
    color: #555;
}
.woocommerce-checkout .wc-block-components-totals-item__label {
    font-size: 15px;
    color: #555;
}
.woocommerce-checkout .wc-block-components-totals-item__value {
    font-size: 15px;
    font-weight: 600;
    color: #121212;
}
.woocommerce-checkout .wc-block-components-totals-footer-item {
    margin-top: 10px;
    padding-top: 16px;
    border-top: 1px solid #e6e6e6;
}
.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 17px;
    font-weight: 700;
    color: #121212;
}
.woocommerce-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
    font-size: 20px;
    font-weight: 700;
    color: #121212;
}

/* Place order button */
.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px;
    margin-top: 18px;
    background-color: #003449;
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .2px;
    box-shadow: 0 6px 18px rgba(0, 52, 73, .22);
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.woocommerce-checkout .wc-block-components-button.wc-block-components-checkout-place-order-button:hover {
    background-color: #002536;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 52, 73, .28);
}

/* Order notes */
.woocommerce-checkout .wc-block-components-checkout-order-notes__title {
    font-size: 14px;
    font-weight: 600;
    color: #121212;
}
.woocommerce-checkout textarea {
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 12px 14px;
    font-size: 14px;
    min-height: 90px;
}
.woocommerce-checkout textarea:focus {
    border-color: #003449;
    box-shadow: 0 0 0 3px rgba(0, 52, 73, .08);
    outline: none;
}

@media (max-width: 1024px) {
    .woocommerce-checkout .wc-block-components-sidebar-layout {
        gap: 40px;
    }
    .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        flex: 0 0 360px;
    }
    .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        padding-left: 28px;
    }
}

@media (max-width: 900px) {
    .woocommerce-checkout .wc-block-components-sidebar-layout {
        display: block;
    }
    .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-main {
        max-width: none;
    }
    .woocommerce-checkout .wc-block-components-sidebar-layout .wc-block-components-sidebar {
        margin-top: 32px;
        padding: 24px 0 0;
        border-left: 0;
        border-top: 1px solid #f0f0f0;
    }
}

@media (max-width: 768px) {
    .woocommerce-checkout .page-header {
        padding: 28px 0 8px;
    }
    .woocommerce-checkout .page-header h1 {
        font-size: 26px;
    }
}

/* ===== Footer policies ===== */
.footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.footer-policies {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-policies a {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}
.footer-policies a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ===== Page-level spacing fixes ===== */

/* Give product page bottom room so sticky bar doesn't crush last content */
.single-product-page {
    padding-bottom: 96px;
}

/* Admin bar offset on inner pages too */
body.admin-bar .single-product-page,
body.admin-bar .collection-page,
body.admin-bar .contact-page {
    padding-top: 40px;
}

/* Hide WooCommerce default related/up-sells if they sneak in via hooks */
.woocommerce .related.products,
.woocommerce .single_add_to_cart_button + .related.products,
.woocommerce.product .related.products {
    display: none;
}

/* Ensure product info column doesn't jump when price changes */
.product-info {
    min-width: 0;
}
.product-info__cart .qty-input {
    min-width: 40px;
}

/* WC breadcrumb on archive pages: subtle styling */
.woocommerce-breadcrumb {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
}
.woocommerce-breadcrumb a {
    color: #003449;
    text-decoration: none;
}
.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* WC notices margin fix so they don't touch header */
.woocommerce-notices-wrapper {
    margin-bottom: 16px;
}

/* Collection page: avoid double titles when plugin breadcrumbs appear */
.collection-page h1.collection-page__title {
    margin-top: 8px;
}

/* Smooth transitions for price changes on quantity */
.price-sale, .price-regular, .price-badge {
    transition: color 0.2s, background 0.2s;
}

/* ===== My Account: 登录 / 注册 ===== */
.woocommerce-account .page-header {
    background: transparent;
    padding: 48px 0 10px;
}
.woocommerce-account .page-header h1 {
    color: var(--color-secondary);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin: 0;
}
.woocommerce-account .page-content {
    padding: 8px 0 72px;
}
.woocommerce-account .page-content .container {
    max-width: 980px;
}

/* 未登录：白色卡片容器 */
.woocommerce-account:not(.logged-in) .entry-content {
    background: #fff;
    border-radius: 20px;
    padding: 48px 44px 44px;
    box-shadow: 0 10px 40px rgba(16, 24, 40, 0.06);
    border: 1px solid #f0f0f0;
}

/* 登录 + 注册双栏 */
#customer_login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 56px;
    align-items: start;
}
/* WooCommerce 的 clearfix 伪元素在 grid 里会变成占位单元格，去掉 */
#customer_login::before,
#customer_login::after {
    content: none;
    display: none;
}
#customer_login .u-column1,
#customer_login .u-column2 {
    float: none;
    width: auto;
}
#customer_login .u-column2 {
    padding-left: 56px;
    border-left: 1px solid #ededed;
}
#customer_login h2,
.woocommerce-account .woocommerce-form-login ~ h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0 0 22px;
    letter-spacing: -0.3px;
}

/* 单栏（未开启注册）时的宽度约束 */
.woocommerce-account:not(.logged-in) .woocommerce-form-login {
    max-width: 420px;
}

/* 表单项 */
.woocommerce-account .woocommerce-form-row {
    margin: 0 0 18px;
    padding: 0;
}
.woocommerce-account .woocommerce-form-row label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-dark-gray);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}
.woocommerce-account .woocommerce-Input.input-text {
    width: 100%;
    height: 48px;
    line-height: normal;
    padding: 0 14px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    font-size: 14px;
    color: var(--color-secondary);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.woocommerce-account .woocommerce-Input.input-text:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 52, 73, 0.08);
}

/* 记住我 + 登录按钮同一行 */
.woocommerce-account .woocommerce-form-login .form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 0;
}
.woocommerce-account .woocommerce-form-login__rememberme {
    font-size: 14px;
    color: var(--color-gray);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.woocommerce-account .woocommerce-form-login__rememberme input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--color-primary);
}
.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit {
    width: auto;
    min-width: 148px;
    height: 48px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    transition: background 0.2s, transform 0.2s;
}
.woocommerce-account .woocommerce-form-login__submit:hover,
.woocommerce-account .woocommerce-form-register__submit:hover {
    background: var(--color-primary-light);
}
/* 注册按钮单独占一行并撑满 */
.woocommerce-account .woocommerce-form-register .form-row {
    margin: 8px 0 0;
}
.woocommerce-account .woocommerce-form-register__submit {
    width: 100%;
    margin-left: 0;
}

/* 忘记密码 */
.woocommerce-account .woocommerce-LostPassword {
    margin: 18px 0 0;
    font-size: 14px;
    text-align: right;
}
.woocommerce-account .woocommerce-LostPassword a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 52, 73, 0.25);
    padding-bottom: 1px;
}
.woocommerce-account .woocommerce-LostPassword a:hover {
    border-bottom-color: var(--color-primary);
}

/* 注册表单里的提示文字 */
.woocommerce-account .woocommerce-form-register > p:not(.woocommerce-form-row) {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.7;
    margin: 0 0 16px;
}

/* 通知条 */
.woocommerce-account .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

@media (max-width: 860px) {
    .woocommerce-account .page-header {
        padding: 32px 0 6px;
    }
    .woocommerce-account .page-header h1 {
        font-size: 28px;
    }
    .woocommerce-account:not(.logged-in) .entry-content {
        padding: 32px 22px 30px;
        border-radius: 16px;
    }
    #customer_login {
        grid-template-columns: 1fr;
        gap: 36px 0;
    }
    #customer_login .u-column2 {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid #ededed;
        padding-top: 36px;
    }
    .woocommerce-account .woocommerce-form-login__submit,
    .woocommerce-account .woocommerce-form-register__submit {
        width: 100%;
        margin-left: 0;
    }
}

