/*
Theme Name: Sana Shop
Theme URI: https://sanafashionstudio.com
Description: The Sana Fashion Studio storefront. The shop pages are the Sana React shop (files in /assets); WooCommerce keeps the cart, the checkout and the account pages. Search engines get real titles, descriptions, schema (from Rank Math) and the product text in the page itself.
Author: Sana Fashion Studio
Version: 0.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietary
Text Domain: sana-shop
*/

/* Only the pages WooCommerce draws itself (cart, checkout, my account, thank-you) use this file. The shop's own styles come with the built files in /assets. */
body.sana-native { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: #111827; background: #f9fafb; -webkit-font-smoothing: antialiased; line-height: 1.55; }
.sana-native *, .sana-native *::before, .sana-native *::after { box-sizing: border-box; }
.sana-native :is(button, input, select, textarea) { font-family: inherit; }
.sana-native a { color: #111827; }

/* top: a thin black strip, then the name and the menu */
.sana-native-strip { background: #000; color: #fff; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 8px 12px; }
.sana-native-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: #fff; border-bottom: 1px solid #e5e7eb; }
.sana-native-bar > a { color: #111; text-decoration: none; font-weight: 800; letter-spacing: .06em; font-size: 18px; }
.sana-native-bar nav { display: flex; gap: 6px; flex-wrap: wrap; }
.sana-native-bar nav a { color: #111; text-decoration: none; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
.sana-native-bar nav a:hover { background: #f3f4f6; }

.sana-native-main { max-width: 1180px; margin: 0 auto; padding: 28px 16px 72px; }
.sana-native-main h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; }
.sana-native-main h2, .sana-native-main h3 { font-weight: 800; letter-spacing: -.01em; }
.sana-native-foot { border-top: 1px solid #e5e7eb; background: #fff; padding: 22px; text-align: center; font-size: 13px; color: #4b5563; }

/* buttons */
.sana-native :is(.button, button.button, a.button, input.button, #place_order, .wc-block-components-button, .checkout-button) {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #111; color: #fff !important; border: 1px solid #111; border-radius: 999px;
	padding: 12px 22px; font-weight: 800; font-size: 14px; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .15s; line-height: 1.2;
}
.sana-native :is(.button, a.button, input.button, #place_order, .checkout-button):hover { background: #374151; border-color: #374151; }
.sana-native :is(.button, input.button):disabled, .sana-native .button[disabled] { opacity: .45; cursor: not-allowed; }
.sana-native :is(a.checkout-button, #place_order) { width: 100%; padding: 15px 22px; font-size: 15px; background: #0f7a3d; border-color: #0f7a3d; }
.sana-native :is(a.checkout-button, #place_order):hover { background: #0b5f2f; border-color: #0b5f2f; }

/* notices */
.sana-native .woocommerce-message, .sana-native .woocommerce-info, .sana-native .woocommerce-error { list-style: none; margin: 0 0 18px; padding: 14px 18px; border-radius: 12px; border: 1px solid #e5e7eb; background: #fff; font-size: 14px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.sana-native .woocommerce-message { border-color: #bbf7d0; background: #f0fdf4; }
.sana-native .woocommerce-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; display: block; }
.sana-native .woocommerce-error li { margin: 4px 0; }
.sana-native .woocommerce-message::before, .sana-native .woocommerce-info::before, .sana-native .woocommerce-error::before { display: none; }

/* cart table */
.sana-native table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; overflow: hidden; margin: 0 0 22px; }
.sana-native table.shop_table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; background: #f9fafb; padding: 12px 16px; }
.sana-native table.shop_table td { padding: 16px; border-top: 1px solid #f1f5f9; vertical-align: middle; }
.sana-native table.shop_table td.product-thumbnail img { width: 72px; height: 96px; object-fit: cover; border-radius: 10px; display: block; }
.sana-native table.shop_table td.product-name a { font-weight: 700; text-decoration: none; }
.sana-native table.shop_table td.product-name dl.variation { margin: 6px 0 0; font-size: 12.5px; color: #4b5563; }
.sana-native table.shop_table td.product-name dl.variation dt { font-weight: 700; display: inline; }
.sana-native table.shop_table td.product-name dl.variation dd { display: inline; margin: 0 8px 0 0; }
.sana-native table.shop_table td.product-name dl.variation p { display: inline; margin: 0; }
.sana-native a.remove { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: #fee2e2; color: #b91c1c !important; text-decoration: none; font-weight: 800; }
.sana-native .quantity input.qty { width: 70px; padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 10px; text-align: center; font-weight: 700; }
.sana-native td.actions { background: #f9fafb; }
.sana-native td.actions .coupon { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.sana-native td.actions .coupon input { width: 190px; }
.sana-native td.actions .button[name="update_cart"] { float: right; background: #fff; color: #111 !important; border-color: #d1d5db; }

/* totals box */
.sana-native .cart-collaterals { display: flex; justify-content: flex-end; }
.sana-native .cart_totals { width: 100%; max-width: 440px; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; }
.sana-native .cart_totals h2 { font-size: 18px; margin: 0 0 12px; }
.sana-native .cart_totals table.shop_table { border: 0; border-radius: 0; margin: 0 0 14px; }
.sana-native .cart_totals table.shop_table :is(th, td) { background: transparent; padding: 10px 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: #111827; }
.sana-native .cart_totals .order-total :is(th, td) { font-size: 17px; font-weight: 800; }
.sana-native .shipping-calculator-button { font-weight: 700; }
.sana-native ul#shipping_method { list-style: none; margin: 0; padding: 0; }
.sana-native ul#shipping_method li { margin: 0 0 6px; }

/* forms and checkout */
.sana-native :is(input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], select, textarea) {
	width: 100%; padding: 12px 14px; border: 1px solid #d1d5db; border-radius: 12px; background: #fff; font-size: 14px; color: #111827; min-height: 46px;
}
.sana-native :is(input, select, textarea):focus { outline: 2px solid #0f7a3d; outline-offset: 1px; border-color: #0f7a3d; }
.sana-native form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 28px; align-items: start; }
.sana-native form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 2; }
.sana-native form.checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0 0 12px; }
.sana-native form.checkout #order_review { grid-column: 2; grid-row: 2; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 18px; }
.sana-native #customer_details :is(.col-1, .col-2) { width: 100%; float: none; background: #fff; border: 1px solid #e5e7eb; border-radius: 16px; padding: 20px; margin-bottom: 18px; }
.sana-native .woocommerce-billing-fields h3, .sana-native .woocommerce-shipping-fields h3, .sana-native .woocommerce-additional-fields h3 { margin: 0 0 14px; font-size: 18px; }
.sana-native .form-row { margin: 0 0 14px; padding: 0; }
.sana-native .form-row label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: #374151; }
.sana-native .form-row .required { color: #b91c1c; text-decoration: none; }
.sana-native .form-row-first, .sana-native .form-row-last { width: calc(50% - 8px); display: inline-block; vertical-align: top; }
.sana-native .form-row-first { margin-right: 12px; }
.sana-native #payment { background: transparent; border-radius: 12px; }
.sana-native #payment ul.payment_methods { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.sana-native #payment ul.payment_methods li { padding: 14px 16px; border-bottom: 1px solid #f1f5f9; }
.sana-native #payment ul.payment_methods li:last-child { border-bottom: 0; }
.sana-native #payment .payment_box { background: #f9fafb; border-radius: 10px; padding: 12px; margin-top: 10px; font-size: 13px; }
.sana-native .woocommerce-privacy-policy-text { font-size: 12.5px; color: #6b7280; margin-bottom: 12px; }
.sana-native .woocommerce-checkout-review-order-table { border: 0; border-radius: 0; }
.sana-native .woocommerce-checkout-review-order-table :is(th, td) { background: transparent; padding: 10px 0; font-size: 14px; text-transform: none; letter-spacing: 0; color: #111827; }
.sana-native .woocommerce-checkout-review-order-table .order-total :is(th, td) { font-size: 17px; font-weight: 800; }

/* thank-you and my account */
.sana-native ul.woocommerce-order-overview { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0 0 22px; }
.sana-native ul.woocommerce-order-overview li { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; }
.sana-native ul.woocommerce-order-overview li strong { display: block; font-size: 15px; color: #111827; text-transform: none; letter-spacing: 0; }
.sana-native .woocommerce-MyAccount-navigation ul { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sana-native .woocommerce-MyAccount-navigation a { display: block; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid #e5e7eb; text-decoration: none; font-weight: 700; font-size: 13px; }
.sana-native .woocommerce-MyAccount-navigation .is-active a { background: #111; color: #fff; border-color: #111; }

/* phones */
@media (max-width: 800px) {
	.sana-native-bar { padding: 12px 14px; }
	.sana-native-bar > a { font-size: 15px; }
	.sana-native-bar nav a { padding: 6px 9px; font-size: 12px; }
	.sana-native-main h1 { font-size: 24px; }
	.sana-native form.checkout { display: block; }
	.sana-native .form-row-first, .sana-native .form-row-last { width: 100%; margin-right: 0; display: block; }
	.sana-native .cart-collaterals { justify-content: stretch; }
	.sana-native .cart_totals { max-width: none; }
	.sana-native table.shop_table_responsive thead { display: none; }
	.sana-native table.shop_table_responsive tr { display: block; border-top: 1px solid #f1f5f9; padding: 6px 0; }
	.sana-native table.shop_table_responsive td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 8px 14px; text-align: right; }
	.sana-native table.shop_table_responsive td::before { content: attr(data-title); font-weight: 700; color: #6b7280; text-align: left; }
	.sana-native table.shop_table_responsive td.product-remove::before, .sana-native table.shop_table_responsive td.product-thumbnail::before, .sana-native table.shop_table_responsive td.actions::before { display: none; }
	.sana-native td.actions .coupon { display: flex; }
	.sana-native td.actions .button[name="update_cart"] { float: none; width: 100%; margin-top: 8px; }
}

/* one font everywhere on these pages (WooCommerce and plugins set serif and typewriter fonts on cells, buttons and fields) */
body.sana-native, .sana-native :is(main, header, footer, div, p, span, a, td, th, dl, dt, dd, li, label, h1, h2, h3, h4, strong, button, input, select, textarea, .button, .select2-selection, .select2-results) {
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
}

/* The WhatsApp button floating at the corner (Click to Chat plugin) is replaced by the WhatsApp tab of the Get Help panel */
#ht-ctc-chat,
.ht-ctc.ht-ctc-chat { display: none !important; }
