/* ===== AULIA ECOMMERCE — WOOCOMMERCE OVERRIDES ===== */

/* === Shop / Archive (handled inline in archive-product.php) === */

/* === Single Product === */
.woocommerce div.product {
    margin-bottom: 0;
}
.woocommerce div.product .woocommerce-product-gallery {
    display: none;
}
.woocommerce div.product .summary {
    width: 100% !important;
    float: none !important;
    padding: 0;
}

/* === Price Table === */
.ae-price-table {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px;
    margin: 16px 0;
}
.ae-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}
.ae-price-row:last-child {
    border-bottom: none;
}
.ae-price-row.ae-profit {
    border-top: 1px dashed #e2e8f0;
    margin-top: 4px;
    padding-top: 12px;
}
.ae-price-icon {
    font-size: 16px;
    width: 24px;
    text-align: center;
}
.ae-price-label {
    flex: 1;
    color: #475569;
    font-weight: 500;
}
.ae-price-value {
    font-weight: 700;
    color: #0f172a;
}
.ae-price-row.ae-profit .ae-price-value {
    color: #10b981;
}

/* === Cart === */
.woocommerce table.shop_table {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.woocommerce table.shop_table th {
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    padding: 12px 16px;
}
.woocommerce table.shop_table td {
    padding: 12px 16px;
    border-color: #f1f5f9;
}
.woocommerce .cart .button {
    background: #0d9488;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    padding: 12px 24px;
}
.woocommerce .cart .button:hover {
    background: #0f766e;
}
.woocommerce .cart_totals h2 {
    font-size: 18px;
    font-weight: 700;
}
.woocommerce .wc-proceed-to-checkout .button {
    background: #0d9488;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    padding: 14px 24px;
    font-size: 16px;
}

/* === Checkout === */
.woocommerce-checkout .form-row label {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    margin-bottom: 4px;
}
.woocommerce-checkout .form-row input,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}
.woocommerce-checkout .form-row input:focus {
    border-color: #0d9488;
    outline: none;
}
.woocommerce-checkout .checkout .button {
    background: #0d9488 !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    padding: 14px 24px !important;
    font-size: 16px !important;
}

/* === Account / Orders === */
.woocommerce-MyAccount-navigation {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #f1f5f9;
}
.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}
.woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
}
.woocommerce-MyAccount-navigation ul li.is-active a {
    color: #0d9488;
    font-weight: 600;
}
.woocommerce table.my_account_orders {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* === Notices === */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 12px !important;
    border: none !important;
    padding: 14px 16px !important;
    margin: 16px 0 !important;
    font-size: 14px !important;
    background: #f0fdf4 !important;
    color: #166534 !important;
}
.woocommerce-error {
    background: #fef2f2 !important;
    color: #991b1b !important;
}
.woocommerce-info {
    background: #eff6ff !important;
    color: #1e40af !important;
}

/* === Variation === */
.woocommerce div.product form.cart .variations {
    margin-bottom: 16px;
}
.woocommerce div.product form.cart .variations td.label {
    display: none;
}
.woocommerce div.product form.cart .variations td.value select {
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #fff;
}
.woocommerce div.product form.cart .quantity input {
    padding: 10px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}
.woocommerce div.product form.cart .single_add_to_cart_button {
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}
.woocommerce div.product form.cart .single_add_to_cart_button:hover {
    background: #0f766e;
}

/* ===== Custom Checkout (override) ===== */
.checkout-page {
    padding: 6px 15px 50px;
    width: 100%;
}

.checkout-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 8px;
}

.checkout-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: #334155;
    transition: background 0.2s;
    flex-shrink: 0;
}

.checkout-back:hover {
    background: #f1f5f9;
}

.checkout-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.checkout-section {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.checkout-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.checkout-field {
    margin-bottom: 14px;
}

.checkout-field label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: #334155;
    margin-bottom: 6px;
}

.checkout-field .required {
    color: #ef4444;
}

.checkout-field input,
.checkout-field textarea,
.checkout-field select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    color: #1e293b;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.checkout-field select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.checkout-field textarea {
    resize: vertical;
    min-height: 72px;
}

.checkout-field select:disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Payment & Shipping */
.checkout-payment,
.checkout-shipping {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.payment-option:hover {
    border-color: #0d9488;
    background: #f0fdfa;
}

.payment-option:has(input:checked) {
    border-color: #0d9488;
    background: #f0fdfa;
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.payment-option input[type="radio"] {
    margin-top: 3px;
    accent-color: #0d9488;
    flex-shrink: 0;
}

.payment-option-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.payment-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.payment-desc {
    font-size: 12px;
    color: #64748b;
}

/* Summary */
.checkout-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkout-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.checkout-summary-name {
    font-size: 14px;
    color: #334155;
    flex: 1;
}

.checkout-summary-price {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    margin-left: 12px;
}

.checkout-summary-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 14px;
    color: #475569;
}

.checkout-summary-total {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
}

/* Place order button */
.checkout-place-btn {
    width: 100%;
    padding: 16px;
    background: #0d9488;
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    margin-top: 4px;
}

.checkout-place-btn:hover {
    background: #0f766e;
}

.checkout-place-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    .checkout-section {
        padding: 16px;
    }
}

/* Toast notification */
.notification {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    padding: 10px 20px;
    background: #1e293b;
    color: #fff;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 9999;
    transition: transform 0.3s ease;
    max-width: calc(100vw - 32px);
    white-space: nowrap;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
}

.notification.error {
    background: #ef4444;
}

