/* ===== Blue Bar ===== */
.blue-bar {
    width: 100%;
    height: 10px;
    background: #0967b1;
}

/* ===== Section Header ===== */
.section-header {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

/* ===== Section Divider ===== */
.section-divider {
    width: 1280px;
    height: 1px;
    background: #666;
    margin: 0 auto;
}

/* ===== Product Cards - Home ===== */
.products-grid {
    display: grid;
    gap: 40px;
}

.home-grid {
    grid-template-columns: repeat(2, 620px);
    justify-content: center;
    gap: 40px 60px;
}

.list-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    width: 620px;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    border: 1px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(180deg, #94afc1, #b9d0df) border-box;
    transition: box-shadow 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
}

.product-card .card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.product-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.card-watermark {
    position: absolute;
    top: 55px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: "Anton", sans-serif;
    font-size: 128px;
    color: rgba(255,255,255,0.4);
    line-height: 1;
    letter-spacing: 2px;
    pointer-events: none;
}

/* ===== Product Card V2 (List Page) ===== */
.product-card-v2 {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 26px rgba(136,160,173,0.1);
    border: 1px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box,
                linear-gradient(180deg, #b9d0df, #94afc1) border-box;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.product-card-v2:hover {
    box-shadow: 0 8px 40px rgba(136,160,173,0.2);
}

.product-card-v2 .card-image {
    height: 260px;
    overflow: hidden;
}

.product-card-v2 .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info-v2 {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.card-name-v2 {
    font-family: "Anton", sans-serif;
    font-size: 20px;
    font-weight: normal;
    color: #333333;
    line-height: 1.2;
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.card-actions-v2 {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    background: #0a66b1;
    color: #fff;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
    gap: 15px;
}
.btn.add {
    padding: 18px;
    background: #e3a348;
}
.btn.remove {
    color: #999;
}
.btn:hover {
    background: #085191;
}
.btn.add:hover {
    background: #d4933a;
}
.btn.remove:hover {
    color: #e74c3c;
}

/* ===== More Link ===== */
.more-link {
    text-align: right;
    margin-top: 40px;
}

.more-link a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "Alibaba PuHuiTi 3.0", sans-serif;
    font-size: 36px;
    font-weight: 300;
    color: #333333;
}
.more-link a:hover {
    color: #085191;
}

/* ===== Form Components ===== */
.form-group {
    width: 100%;
}

.input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #333333;
    border-radius: 15px;
    padding: 15px 30px;
    gap: 12px;
    background: #fff;
    transition: border-color 0.2s;
}

.input-wrapper:focus-within {
    border-color: #3365c1;
}

.input-wrapper input {
    flex: 1;
    border: none;
    background: none;
    font-size: 18px;
    color: #333;
}

.input-wrapper input::placeholder {
    color: #999;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    font-size: 16px;
    color: #141414;
}

.remember-me input {
    width: 20px;
    height: 20px;
    border: 1px solid #333;
    border-radius: 4px;
}

.form-links a {
    font-size: 14px;
    color: #3365c1;
}

/* ===== Cart Components ===== */
.cart-divider {
    width: 100%;
    height: 1px;
    background: #cecece;
    margin: 40px 0;
}

.cart-summary-wrap {
    display: flex; 
    flex-direction: column; 
    align-items: flex-end;
}
.cart-summary-wrap .btn {
    width: 500px;
}

.cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 0;
}

.summary-label {
    font-size: 36px;
    font-weight: 500;
    color: #141414;
}

.summary-price {
    font-size: 36px;
    font-weight: 700;
    color: #141414;
}

.cart-empty {
    text-align: center;
    padding: 200px 20px;
    min-height: 400px;
    justify-content: center;
    justify-items: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cart-empty p {
    font-size: 36px;
    color: #999;
    margin-bottom: 30px;
    font-weight: 500;
}

/* ===== Recommend Section ===== */
.recommend-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.recommend-title {
    font-family: "Alibaba PuHuiTi 3.0", sans-serif;
    font-size: 64px;
    font-weight: 500;
    color: #141414;
    text-align: center;
    margin-bottom: 60px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 110px;
}

.recommend-card {
    overflow: hidden;
    background: #fff;
    cursor: pointer;
}

.recommend-card .card-image {
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #999;
}

.recommend-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recommend-card .card-info {
    padding: 35px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommend-card .card-name {
    font-family: "Alibaba PuHuiTi 3.0", sans-serif;
    font-size: 32px;
    font-weight: normal;
    color: #141414;
    line-height: 1;
}

/* ===== Pagination ===== */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
}

.page-btn {
    padding: 10px 24px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}

.page-btn:hover {
    background: #f5f5f5;
    border-color: #3365c1;
    color: #3365c1;
}

.page-btn.active {
    background: #3365c1;
    border-color: #3365c1;
    color: #fff;
}

.page-btn:disabled {
    color: #ccc;
    border-color: #eee;
    cursor: not-allowed;
    background: #fff;
}

.page-btn:disabled:hover {
    background: #fff;
    border-color: #eee;
    color: #ccc;
}

.page-numbers {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    border: 1px solid transparent;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
}

.page-num:hover {
    border-color: #ddd;
    background: #f5f5f5;
}

.page-num.active {
    background: #3365c1;
    color: #fff;
    border-color: #3365c1;
}

.page-info {
    font-size: 14px;
    color: #999;
}

/* ===== Empty States ===== */
.empty-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px;
    font-size: 18px;
    color: #999;
}

/* ===== Add to Cart Modal ===== */
#add-to-cart-modal.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#add-to-cart-modal.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

#add-to-cart-modal .modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 50px 60px;
    max-width: 520px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#add-to-cart-modal.modal-overlay.active .modal-content {
    transform: translateY(0);
}

#add-to-cart-modal .modal-icon {
    margin-bottom: 20px;
}

#add-to-cart-modal .modal-title {
    font-family: "Alibaba PuHuiTi 3.0", sans-serif;
    font-size: 28px;
    font-weight: 500;
    color: #141414;
    margin-bottom: 10px;
}

#add-to-cart-modal .modal-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 28px;
}

#add-to-cart-modal .modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

#add-to-cart-modal .modal-actions .btn {
    min-width: 180px;
}

/* ===== Cart Quantity Input ===== */
.qty-stepper input.qty-value {
    border: none;
    background: none;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
    font-family: inherit;
}

.qty-stepper input.qty-value::-webkit-outer-spin-button,
.qty-stepper input.qty-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Cart item links */
.cart-item .item-name a {
    color: inherit;
    transition: color 0.2s;
}

.cart-item .item-name a:hover {
    color: #3365c1;
}

.cart-item .item-image a {
    display: block;
    width: 100%;
    height: 100%;
}

/* Disabled button state */
.btn:disabled,
.btn.add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Checkout form enhancements */
.input-icon {
    flex-shrink: 0;
}

.required {
    color: #e74c3c;
}

.input-wrapper select {
    flex: 1;
    border: none;
    background: none;
    font-size: 18px;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    cursor: pointer;
}

.input-select-wrapper {
    position: relative;
}

.input-select-wrapper::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #999;
    pointer-events: none;
}

.woocommerce-error {
    background: #fce4e4;
    border: 1px solid #e74c3c;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #c0392b;
    font-size: 14px;
}

.woocommerce-error li {
    list-style: none;
}

.woocommerce-message {
    background: #e8f5e9;
    border: 1px solid #2e7d32;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
    color: #2e7d32;
    font-size: 14px;
}

/* ===== Checkout Payment Methods ===== */
.checkout-payment-wrap {
    margin: 24px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.checkout-payment-wrap .payment-title {
    font-family: "Alibaba PuHuiTi 3.0", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #141414;
    margin-bottom: 16px;
}

.checkout-payment-wrap .wc_payment_methods {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkout-payment-wrap .wc_payment_method {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #eee;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.checkout-payment-wrap .wc_payment_method:hover {
    border-color: #3365c1;
    background: #f8f9ff;
}

.checkout-payment-wrap .wc_payment_method input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #3365c1;
    cursor: pointer;
    flex-shrink: 0;
}

.checkout-payment-wrap .wc_payment_method label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    flex: 1;
}

.checkout-payment-wrap .payment_box {
    margin-top: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 13px;
    color: #666;
    width: 100%;
}

.checkout-payment-wrap .payment_box p {
    margin: 0;
}

/* Hide WooCommerce default place-order button inside payment (we have our own) */
.checkout-payment-wrap .place-order,
.checkout-payment-wrap .form-row.place-order {
    display: none !important;
}

/* ===== Confirm Modal ===== */
#confirm-modal.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#confirm-modal.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

#confirm-modal .modal-content {
    background: #fff;
    border-radius: 20px;
    padding: 50px 60px;
    max-width: 460px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#confirm-modal.modal-overlay.active .modal-content {
    transform: translateY(0);
}

#confirm-modal .modal-title {
    font-family: "Alibaba PuHuiTi 3.0", sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #141414;
    margin-bottom: 10px;
}

#confirm-modal .modal-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 28px;
}

#confirm-modal .modal-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

#confirm-modal .modal-actions .btn {
    min-width: 140px;
}

#confirm-modal .modal-cancel {
    background: #f5f5f5;
    color: #333;
}

#confirm-modal .modal-cancel:hover {
    background: #e0e0e0;
}

/* ===== Thankyou Page ===== */
.page-thankyou .thankyou-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #e8f5e9;
    border: 1px solid #2e7d32;
    border-radius: 16px;
    padding: 20px 28px;
    margin-bottom: 40px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.page-thankyou .thankyou-banner p {
    font-size: 16px;
    color: #2e7d32;
    margin: 0;
}

/* ===== PayPal Button ===== */
#paypal-button-container-thankyou,
#paypal-button-container-order {
    max-width: 400px;
}

#paypal-button-container-thankyou iframe,
#paypal-button-container-order iframe {
    display: block;
    margin: 0 auto;
}
