/*
Theme Name: Sidra
Theme URI: https://sidrabitkisel.net
Author: Sidra Bitkisel
Description: Sidra Bitkisel için hafif WooCommerce teması. Tasarım ve mağaza özellikleri Sidra Modern eklentisinden gelir; tema yalnızca iskelet, şablonlar ve temel stilleri sağlar.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sidra
*/

/* Base: the plugin's design tokens (body.sidra-modern) drive colours. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15px/1.6 "Poppins", "Noto Sans", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif; color: #1d1c1a; background: #f4f3f0; }
img, svg, video { max-width: 100%; height: auto; }
a { color: #8a5d0f; text-decoration: none; }
a:hover { color: #1d1c1a; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(22px, 2.2vw, 30px); }
h2 { font-size: clamp(19px, 1.7vw, 24px); }
h3 { font-size: 17px; }
p, ul, ol { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; border-radius: 8px; }

.sd-main { padding-block: 20px 48px; min-height: 50vh; }
.sd-container { max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.sd-narrow { max-width: 820px; }
.sd-card { background: #fff; border: 1px solid #e5e2dc; border-radius: 16px; padding: clamp(16px, 3vw, 32px); }
.sd-page-title { margin-bottom: 16px; }
.sd-entry > :last-child { margin-bottom: 0; }
.sd-entry img { border-radius: 10px; }
.sd-entry table { width: 100%; border-collapse: collapse; margin-bottom: 1em; }
.sd-entry th, .sd-entry td { border: 1px solid #e5e2dc; padding: 8px 10px; text-align: start; }

/* Forms */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], input[type="url"], select, textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #e5e2dc; border-radius: 10px; background: #fff; box-shadow: none; outline: 0; transition: border-color .15s;
}
textarea { min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: #dda642; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: #8a5d0f; }
label { display: block; font-size: 13px; font-weight: 500; color: #5d5a55; margin-bottom: 4px; }
.button, button[type="submit"], input[type="submit"], .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px;
	background: #dda642; color: #1d1c1a; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.button:hover, button[type="submit"]:hover, input[type="submit"]:hover { background: #c8912c; color: #1d1c1a; }
.button.alt { background: #dda642; }
.button:disabled, .button.disabled { opacity: .6; cursor: not-allowed; }

/* WooCommerce notices */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 16px; padding: 12px 16px; border-radius: 10px; background: #fff; border: 1px solid #e5e2dc; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.woocommerce-message { border-color: #cfe2bf; background: #e9f4ea; }
.woocommerce-error { border-color: #f1c4c0; background: #fdecea; color: #8c1d17; }
.woocommerce-error li { margin: 0; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 36px; padding: 0 14px; font-size: 13px; }

/* Breadcrumb, archive header */
.woocommerce-breadcrumb { font-size: 12.5px; color: #8f8b84; margin-bottom: 12px; }
.woocommerce-breadcrumb a { color: #8f8b84; }
.sd-archive-head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.sd-archive-head h1 { margin: 0; }
.woocommerce-result-count { margin: 0; font-size: 13px; color: #5d5a55; }
.woocommerce-ordering select { width: auto; min-height: 40px; }
.sd-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; padding-bottom: 2px; }
.sd-chips a { flex: none; height: 34px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 17px; border: 1px solid #e5e2dc; background: #fff; color: #1d1c1a; font-size: 13px; font-weight: 500; white-space: nowrap; }
.sd-chips a.is-on { background: #1d1c1a; border-color: #1d1c1a; color: #fff; }
.term-description { background: #fff; border: 1px solid #e5e2dc; border-radius: 16px; padding: 16px; margin-top: 24px; font-size: 14px; color: #5d5a55; }
.woocommerce-pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 24px 0 0; justify-content: center; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid #e5e2dc; color: #1d1c1a; }
.woocommerce-pagination .current { background: #dda642; border-color: #dda642; }
.sd-grid-products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sd-grid-products > .sm-col { padding: 0; width: auto; max-width: none; flex: none; }

/* Single product */
.sd-product div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.sd-product div.product > .woocommerce-product-gallery { grid-column: 1; position: sticky; top: 140px; background: #fff; border: 1px solid #e5e2dc; border-radius: 16px; padding: 12px; overflow: hidden; }
.sd-product div.product > .summary { grid-column: 2; }
.sd-product div.product > .woocommerce-tabs, .sd-product div.product > .related, .sd-product div.product > .upsells { grid-column: 1 / -1; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; border-radius: 10px; }
.flex-control-thumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 10px 0 0; overflow-x: auto; }
.flex-control-thumbs li { flex: 0 0 64px; }
.flex-control-thumbs img { width: 64px; height: 64px; object-fit: contain; border: 1.5px solid #e5e2dc; border-radius: 8px; cursor: pointer; opacity: .7; }
.flex-control-thumbs img.flex-active { border-color: #dda642; opacity: 1; }
.woocommerce-product-gallery__trigger { display: none; }
.summary .product_title { font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; }
.summary .price { font-size: 28px; font-weight: 700; margin: 6px 0 4px; color: #1d1c1a; }
.summary .price del { color: #8f8b84; font-size: .55em; font-weight: 400; }
.summary .price ins { text-decoration: none; color: #cf2f27; }
.summary .woocommerce-product-details__short-description { color: #5d5a55; font-size: 14px; }
.summary .stock { font-weight: 600; color: #2d7a35; }
form.cart { display: flex; gap: 10px; align-items: stretch; margin: 14px 0 0; }
form.cart .quantity { flex: none; }
form.cart .quantity .qty { width: 72px; min-height: 50px; text-align: center; font-weight: 700; }
form.cart .single_add_to_cart_button { flex: 1; min-height: 50px; font-size: 16px; }
.woocommerce-tabs { margin-top: 24px; background: #fff; border: 1px solid #e5e2dc; border-radius: 16px; padding: 8px 20px 20px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 18px; padding: 0; margin: 0 0 12px; border-bottom: 1px solid #e5e2dc; overflow-x: auto; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 0; color: #5d5a55; font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.woocommerce-tabs ul.tabs li.active a { color: #1d1c1a; border-color: #dda642; }
.woocommerce-Tabs-panel { font-size: 14.5px; max-width: 80ch; }
.woocommerce-Tabs-panel h2:first-child { display: none; }
.related > h2, .upsells > h2 { margin-top: 28px; }
.related ul.products, .upsells ul.products { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
#reviews .commentlist { list-style: none; padding: 0; }

/* Cart & checkout (layout; look comes from the plugin) */
.woocommerce-cart .sd-main .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.woocommerce-cart .woocommerce-notices-wrapper, .woocommerce-cart .cart-empty, .woocommerce-cart .return-to-shop { grid-column: 1 / -1; }
.shop_table { width: 100%; border-collapse: collapse; }
.shop_table th, .shop_table td { padding: 12px 8px; border-bottom: 1px solid #e5e2dc; text-align: start; vertical-align: middle; }
.shop_table img { width: 72px; height: 72px; object-fit: contain; }
.woocommerce-cart-form .actions .coupon { display: flex; gap: 8px; flex-wrap: wrap; }
.woocommerce-cart-form .actions .coupon input { width: auto; flex: 1; min-width: 140px; }
.shop_table .quantity .qty { width: 72px; text-align: center; }
.woocommerce-cart-form button[name="update_cart"] { background: #fff; border: 1px solid #e5e2dc; }
.cart-collaterals .cart_totals { position: sticky; top: 140px; }
.cart_totals h2 { font-size: 16px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; min-height: 52px; font-size: 16px; }
a.remove { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #8f8b84 !important; font-size: 20px; line-height: 1; }
a.remove:hover { background: #fdecea; color: #cf2f27 !important; }
form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
form.checkout > .woocommerce-NoticeGroup, form.checkout > .sm-curnote { grid-column: 1 / -1; }
#customer_details { grid-column: 1; }
#order_review_heading { display: none; }
#order_review { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: 140px; background: #fff; border: 1px solid #e5e2dc; border-radius: 16px; padding: 18px; }
.col2-set .col-1, .col2-set .col-2 { width: 100%; float: none; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form-row { margin: 0 0 12px; }
.form-row-wide, .form-row.notes, #billing_country_field, #billing_address_1_field, #shipping_address_1_field { grid-column: 1 / -1; }
.form-row .required { color: #cf2f27; text-decoration: none; }
.woocommerce-checkout-payment ul { list-style: none; padding: 0; margin: 0 0 10px; }
#ship-to-different-address label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.woocommerce-terms-and-conditions-wrapper label { display: flex; gap: 8px; align-items: flex-start; }
.woocommerce-order-overview { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.woocommerce-order-overview li { background: #fff; border: 1px solid #e5e2dc; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.woocommerce-order-overview li strong { display: block; font-size: 15px; }

/* Blog */
.sd-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sd-post { background: #fff; border: 1px solid #e5e2dc; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; color: #1d1c1a; }
.sd-post__img { aspect-ratio: 16 / 9; background: #f4f3f0; }
.sd-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-post__body { padding: 14px 16px 16px; display: grid; gap: 4px; }
.sd-post__body time { font-size: 12px; color: #8f8b84; }
.sd-post__body strong { line-height: 1.35; }
.sd-meta { color: #8f8b84; font-size: 13px; margin-bottom: 16px; }

/* Footer */
.sd-footer { background: #3b2314; color: #e9d7b6; margin-top: 40px; }
.sd-footer a { color: #e9d7b6; }
.sd-footer a:hover { color: #dda642; }
.sd-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; padding-block: 32px; }
.sd-footer h2 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.sd-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.sd-footer__tel { font-size: 18px; font-weight: 700; color: #fff; }
.sd-footer__pay { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #bfa983; }
.sd-footer__copy { border-top: 1px solid rgba(233, 215, 182, .2); padding-block: 14px; font-size: 12px; color: #bfa983; }

/* Flatsome leftovers rendered by the shortcode fallback */
.ux-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ux-col { flex: 1 1 260px; min-width: 0; }
.ux-section { margin-bottom: 24px; }
details.ux-acc { background: #fff; border: 1px solid #e5e2dc; border-radius: 10px; margin-bottom: 8px; padding: 0 14px; }
details.ux-acc summary { cursor: pointer; padding: 12px 0; font-weight: 600; }

@media (max-width: 1100px) {
	.sd-grid-products, .related ul.products, .upsells ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 849px) {
	.sd-grid-products, .related ul.products, .upsells ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.sd-product div.product { grid-template-columns: 1fr; gap: 14px; }
	.sd-product div.product > .woocommerce-product-gallery, .sd-product div.product > .summary { grid-column: 1; position: static; }
	.woocommerce-cart .sd-main .woocommerce, form.checkout { grid-template-columns: 1fr; }
	#order_review { grid-column: 1; grid-row: auto; position: static; }
	.cart-collaterals .cart_totals { position: static; }
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }
	.shop_table.cart thead { display: none; }
	.shop_table.cart tr.cart_item { display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid #e5e2dc; }
	.shop_table.cart tr.cart_item td { border: 0; padding: 0; }
	.shop_table.cart td.product-remove { grid-column: 3; grid-row: 1; }
	.shop_table.cart td.product-thumbnail { grid-row: 1 / span 3; }
	.shop_table.cart td.product-price { display: none; }
	.shop_table.cart td.actions { display: block; padding-top: 12px; }
	.sd-posts { grid-template-columns: 1fr; }
	.sd-footer__grid { grid-template-columns: 1fr 1fr; }
}
