/* ArticleTex — Page-specific styles (shop, product, cart, checkout, blog, etc.) */

/* ── BLOG GRID ─────────────────────────────────────────── */
.at-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.at-blog-card { background: #fff; border-radius: var(--at-r); overflow: hidden; border: 1.5px solid var(--at-border); transition: transform 0.3s, box-shadow 0.3s; }
.at-blog-card:hover { transform: translateY(-4px); box-shadow: var(--at-sh); }
.at-blog-card-img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.at-blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.at-blog-card:hover .at-blog-card-img img { transform: scale(1.04); }
.at-blog-card-body { padding: 24px; }
.at-blog-card-title { font-family: var(--at-fn-bn); font-size: 18px; font-weight: 700; line-height: 1.35; margin-top: 8px; margin-bottom: 10px; }
.at-blog-card-title a { color: var(--at-black); text-decoration: none; transition: color 0.2s; }
.at-blog-card-title a:hover { color: var(--at-gold); }
.at-blog-card-excerpt { font-family: var(--at-fn-bn); font-size: 14px; color: var(--at-mid); line-height: 1.7; }
.at-pagination { margin-top: 40px; display: flex; justify-content: center; }
.at-pagination .nav-links { display: flex; gap: 8px; }
.at-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--at-fn-en); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--at-black); border: 1.5px solid var(--at-border); transition: all 0.2s; }
.at-pagination .page-numbers.current, .at-pagination .page-numbers:hover { background: var(--at-gold); color: #fff; border-color: var(--at-gold); }

/* ── PAGE CONTENT (generic) ────────────────────────────── */
.at-page-content { font-family: var(--at-fn-bn); font-size: 16px; line-height: 1.9; color: var(--at-black); max-width: 760px; }
.at-page-content h2 { font-size: 24px; font-weight: 700; margin: 36px 0 14px; }
.at-page-content h3 { font-size: 20px; font-weight: 700; margin: 28px 0 12px; }
.at-page-content p { margin-bottom: 18px; }
.at-page-content ul, .at-page-content ol { margin: 0 0 18px 24px; }
.at-page-content li { margin-bottom: 6px; }
.at-page-content a { color: var(--at-gold); }
.at-page-content a:hover { color: var(--at-black); }
.at-page-content img { max-width: 100%; border-radius: var(--at-r); }
.at-page-content blockquote { border-left: 4px solid var(--at-gold); padding: 12px 20px; margin: 24px 0; color: var(--at-mid); font-style: italic; background: var(--at-gray); border-radius: 0 var(--at-r) var(--at-r) 0; }

/* ── WC SHOP GRID ──────────────────────────────────────── */
.at-wc-wrap { width: 100%; }
.at-wc-wrap .woocommerce { width: 100%; }
.at-wc-wrap ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 20px !important; margin: 0 !important; list-style: none !important; padding: 0 !important; }
.at-wc-wrap ul.products li.product { width: auto !important; margin: 0 !important; background: #fff; border-radius: var(--at-r); overflow: hidden; box-shadow: 0 2px 16px rgba(17,17,17,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.at-wc-wrap ul.products li.product:hover { transform: translateY(-5px); box-shadow: var(--at-sh); }
.at-wc-wrap ul.products li.product img { object-fit: cover; display: block; width: 100%; aspect-ratio: 3/4; border-radius: 0; }
.at-wc-wrap ul.products li.product .woocommerce-loop-product__title { font-family: var(--at-fn-bn) !important; font-size: 14px !important; font-weight: 600 !important; padding: 12px 14px 4px !important; color: var(--at-black) !important; }
.at-wc-wrap ul.products li.product .woocommerce-loop-product__title a { color: var(--at-black) !important; text-decoration: none !important; }
.at-wc-wrap ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--at-gold) !important; }
.at-wc-wrap ul.products li.product .price { font-family: var(--at-fn-en) !important; color: var(--at-gold) !important; font-weight: 700 !important; padding: 0 14px 12px !important; font-size: 17px !important; }
.at-wc-wrap ul.products li.product .button { background: var(--at-black) !important; color: #fff !important; border-radius: 0 !important; width: 100% !important; margin: 0 !important; font-family: var(--at-fn-bn) !important; font-size: 13px !important; padding: 12px !important; transition: background 0.2s !important; text-align: center !important; display: block !important; }
.at-wc-wrap ul.products li.product .button:hover { background: var(--at-gold) !important; }
/* WC sale badge */
.at-wc-wrap ul.products li.product .onsale { background: var(--at-red) !important; border-radius: 100px !important; font-family: var(--at-fn-en) !important; font-size: 11px !important; font-weight: 700 !important; }
/* Product title + price overrides — covers shop archive AND shortcode grids */
ul.products li.product .woocommerce-loop-product__title { color: var(--at-black) !important; }
ul.products li.product .woocommerce-loop-product__title a { color: var(--at-black) !important; text-decoration: none !important; }
ul.products li.product .woocommerce-loop-product__title a:hover { color: var(--at-gold) !important; }
ul.products li.product .price { color: var(--at-gold) !important; font-size: 17px !important; font-weight: 700 !important; }
/* WC result count + ordering */
.woocommerce-result-count { font-family: var(--at-fn-bn); font-size: 13px; color: var(--at-mid); }
.woocommerce-ordering select { font-family: var(--at-fn-bn); font-size: 13px; padding: 8px 14px; border: 1.5px solid var(--at-border); border-radius: 100px; background: #fff; color: var(--at-black); cursor: pointer; }
/* WC breadcrumb */
.woocommerce-breadcrumb { font-family: var(--at-fn-en); font-size: 12px; color: var(--at-mid); display: none; }
/* WC pagination */
.woocommerce-pagination ul { display: flex; gap: 8px; list-style: none; justify-content: center; padding: 0; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; font-family: var(--at-fn-en); font-size: 14px; font-weight: 600; text-decoration: none; color: var(--at-black); border: 1.5px solid var(--at-border); transition: all 0.2s; }
.woocommerce-pagination ul li .current, .woocommerce-pagination ul li a:hover { background: var(--at-gold); color: #fff; border-color: var(--at-gold); }

/* ── WC SINGLE PRODUCT ─────────────────────────────────── */
.at-product-layout .woocommerce-product-gallery { border-radius: var(--at-r); overflow: hidden; }
.at-product-layout .woocommerce-product-gallery__image img { border-radius: var(--at-r); }
.at-product-layout .woocommerce-product-gallery__trigger { display: none; }
/* remove default price/title (we render custom) */
.at-product-summary .woocommerce-product-details__short-description { display: none; }
.at-product-summary h1.product_title.entry-title { display: none; }
.at-product-summary p.price, .at-product-summary span.price { display: none; }
.at-product-summary .woocommerce-review-link { display: none; }
/* Cart form */
.at-product-summary form.cart { margin: 0 0 10px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.at-product-summary form.cart .quantity { flex-shrink: 0; }
.at-product-summary form.cart .qty { border: 1.5px solid var(--at-border); border-radius: 8px; padding: 12px 14px; font-size: 15px; width: 72px; text-align: center; font-family: var(--at-fn-en); }
.at-product-summary form.cart .single_add_to_cart_button { background: var(--at-black) !important; color: #fff !important; border-radius: 100px !important; padding: 14px 44px !important; font-family: var(--at-fn-bn) !important; font-size: 15px !important; font-weight: 600 !important; transition: background 0.2s !important; border: none !important; cursor: pointer !important; flex: 1; min-width: 160px; }
.at-product-summary form.cart .single_add_to_cart_button:hover { background: var(--at-gold) !important; }
/* Variations */
.at-product-summary .variations td, .at-product-summary .variations th { font-family: var(--at-fn-bn); font-size: 14px; vertical-align: middle; padding: 6px 0; }
.at-product-summary .variations select { border: 1.5px solid var(--at-border); border-radius: 8px; padding: 9px 14px; font-family: var(--at-fn-bn); font-size: 14px; min-width: 160px; cursor: pointer; }
/* Tabs */
.woocommerce-tabs { margin-top: 40px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--at-border); list-style: none; padding: 0; margin-bottom: 28px; }
.woocommerce-tabs ul.tabs li { margin-right: 4px; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 24px; font-family: var(--at-fn-bn); font-size: 14px; font-weight: 600; color: var(--at-mid); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.2s; }
.woocommerce-tabs ul.tabs li.active a { color: var(--at-black); border-bottom-color: var(--at-gold); }
.woocommerce-tabs .panel { font-family: var(--at-fn-bn); font-size: 15px; line-height: 1.9; color: var(--at-mid); }

/* ── WC CART ───────────────────────────────────────────── */
.woocommerce-cart .woocommerce { font-family: var(--at-fn-bn); }
table.shop_table { width: 100%; border-collapse: collapse; border: 1.5px solid var(--at-border); border-radius: var(--at-r); overflow: hidden; }
table.shop_table th { font-family: var(--at-fn-bn); font-size: 13px; font-weight: 700; padding: 14px 18px; background: var(--at-gray); color: var(--at-black); text-align: left; }
table.shop_table td { padding: 16px 18px; border-top: 1px solid var(--at-border); font-size: 14px; vertical-align: middle; }
table.shop_table td.product-name a { color: var(--at-black); text-decoration: none; font-weight: 600; }
table.shop_table td.product-price, table.shop_table td.product-subtotal { font-family: var(--at-fn-en); color: var(--at-gold); font-weight: 700; }
.cart_totals { background: #fff; border: 1.5px solid var(--at-border); border-radius: var(--at-r); padding: 28px; }
.cart_totals h2 { font-family: var(--at-fn-bn); font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.cart_totals table { width: 100%; }
.cart_totals .cart-subtotal th, .cart_totals .order-total th { font-family: var(--at-fn-bn); font-size: 14px; font-weight: 600; padding: 8px 0; }
.cart_totals .wc-proceed-to-checkout a { display: block; background: var(--at-black); color: #fff; text-align: center; padding: 14px 24px; border-radius: 100px; font-family: var(--at-fn-bn); font-size: 16px; font-weight: 700; text-decoration: none; margin-top: 16px; transition: background 0.2s; }
.cart_totals .wc-proceed-to-checkout a:hover { background: var(--at-gold); }

/* ── WC CHECKOUT ───────────────────────────────────────── */
.woocommerce-checkout .woocommerce { font-family: var(--at-fn-bn); }
.woocommerce-checkout h3 { font-family: var(--at-fn-bn); font-size: 18px; font-weight: 700; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--at-border); }
.woocommerce-checkout .form-row label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; color: var(--at-black); }
.woocommerce-checkout .form-row input, .woocommerce-checkout .form-row select, .woocommerce-checkout .form-row textarea { width: 100%; border: 1.5px solid var(--at-border); border-radius: 8px; padding: 11px 16px; font-family: var(--at-fn-bn); font-size: 14px; color: var(--at-black); transition: border-color 0.2s; }
.woocommerce-checkout .form-row input:focus, .woocommerce-checkout .form-row select:focus, .woocommerce-checkout .form-row textarea:focus { outline: none; border-color: var(--at-gold); }
#place_order { background: var(--at-black) !important; color: #fff !important; border-radius: 100px !important; padding: 14px 36px !important; font-family: var(--at-fn-bn) !important; font-size: 16px !important; font-weight: 700 !important; border: none !important; cursor: pointer !important; transition: background 0.2s !important; width: 100% !important; }
#place_order:hover { background: var(--at-gold) !important; }

/* Checkout — simplified BD shipping form */
.woocommerce-billing-fields > h3 { visibility: hidden !important; height: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
.woocommerce-billing-fields::before { content: "শিপিং ঠিকানা"; display: block; font-family: var(--at-fn-bn); font-size: 18px; font-weight: 700; color: var(--at-black); margin-bottom: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--at-border); }
.woocommerce-shipping-fields, #ship-to-different-address { display: none !important; }
/* Cart page qty + remove styling */
table.shop_table td.product-quantity .qty { width: 60px; border: 1.5px solid var(--at-border); border-radius: 8px; padding: 6px 10px; text-align: center; font-family: var(--at-fn-en); font-size: 14px; }
button[name="update_cart"] { background: var(--at-black) !important; color: #fff !important; border-radius: 100px !important; padding: 10px 24px !important; font-family: var(--at-fn-bn) !important; font-size: 14px !important; border: none !important; cursor: pointer !important; transition: background 0.2s !important; margin-top: 12px !important; }
button[name="update_cart"]:hover { background: var(--at-gold) !important; }
table.shop_table td.product-remove a.remove { font-size: 18px !important; color: var(--at-mid) !important; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1.5px solid var(--at-border); border-radius: 50%; text-decoration: none; transition: all 0.2s; }
table.shop_table td.product-remove a.remove:hover { background: var(--at-red) !important; color: #fff !important; border-color: var(--at-red); }

/* ── WC MY ACCOUNT ─────────────────────────────────────── */
.woocommerce-account .woocommerce-MyAccount-navigation { width: 240px; flex-shrink: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; background: #fff; border: 1.5px solid var(--at-border); border-radius: var(--at-r); overflow: hidden; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li a { display: block; padding: 12px 20px; font-family: var(--at-fn-bn); font-size: 14px; font-weight: 500; color: var(--at-black); text-decoration: none; border-bottom: 1px solid var(--at-border); transition: all 0.2s; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child a { border-bottom: none; }
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a, .woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover { background: var(--at-black); color: var(--at-gold); padding-left: 26px; }
.woocommerce-account .woocommerce-MyAccount-content { flex: 1; font-family: var(--at-fn-bn); }

/* ── SEARCH FORM ───────────────────────────────────────── */
.search-form { display: flex; gap: 0; border: 1.5px solid var(--at-border); border-radius: 100px; overflow: hidden; background: #fff; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; border: none; padding: 11px 20px; font-family: var(--at-fn-bn); font-size: 14px; color: var(--at-black); outline: none; background: transparent; }
.search-form .search-submit { background: var(--at-gold); border: none; padding: 0 20px; color: #fff; cursor: pointer; font-family: var(--at-fn-bn); font-size: 14px; font-weight: 600; transition: background 0.2s; }
.search-form .search-submit:hover { background: #b8862e; }

/* ── WC NOTICES ────────────────────────────────────────── */
.woocommerce-message, .woocommerce-info, .woocommerce-error { padding: 14px 20px; border-radius: 8px; font-family: var(--at-fn-bn); font-size: 14px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.woocommerce-message { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.woocommerce-info { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.woocommerce-error { background: #f8d7da; color: #721c24; border-left: 4px solid var(--at-red); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .at-blog-grid { grid-template-columns: repeat(2, 1fr); }
  .at-wc-wrap ul.products { grid-template-columns: repeat(3, 1fr) !important; }
}
@media (max-width: 768px) {
  .at-blog-grid { grid-template-columns: 1fr; }
  .at-wc-wrap ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  .at-product-layout { grid-template-columns: 1fr !important; gap: 32px !important; }
  .at-product-layout .at-product-gallery { position: static !important; }
  .at-about-story { grid-template-columns: 1fr !important; gap: 32px; }
  .at-testi-grid { grid-template-columns: 1fr; }
  table.shop_table { font-size: 12px; }
  table.shop_table th, table.shop_table td { padding: 10px 12px; }
  .woocommerce-account .woocommerce-MyAccount-navigation { width: 100%; }
}
@media (max-width: 480px) {
  .at-wc-wrap ul.products { grid-template-columns: 1fr !important; }
}

/* ── SIZE SELECTOR ──────────────────────────────────────── */
.at-size-wrap { margin-bottom: 20px; border: 2px solid transparent; border-radius: 10px; padding: 8px; transition: border-color 0.2s; }
.at-size-wrap.at-size-error { border-color: var(--at-red) !important; background: #fff8f8; }
.at-size-label { font-family: var(--at-fn-bn); font-size: 14px; font-weight: 700; display: block; margin-bottom: 10px; color: var(--at-black); }
.at-required { color: var(--at-red); }
.at-size-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.at-size-btn { width: 48px; height: 48px; border: 2px solid var(--at-border); border-radius: 8px; background: #fff; font-family: var(--at-fn-en); font-size: 14px; font-weight: 700; color: var(--at-black); cursor: pointer; transition: all 0.18s; display: flex; align-items: center; justify-content: center; }
.at-size-btn:hover { border-color: var(--at-black); }
.at-size-btn.selected { background: var(--at-black); color: #fff; border-color: var(--at-black); }
.at-size-err { display: none; font-family: var(--at-fn-bn); font-size: 12px; color: var(--at-red); margin-top: 6px; }

/* ── BUY NOW BUTTON ─────────────────────────────────────── */
.at-buy-now-btn { width: 100%; padding: 13px 24px; margin-top: 10px; background: transparent; border: 2px solid var(--at-black); border-radius: 100px; font-family: var(--at-fn-bn); font-size: 15px; font-weight: 600; color: var(--at-black); cursor: pointer; transition: all 0.2s; }
.at-buy-now-btn:hover { background: var(--at-black); color: #fff; }

/* ── WA BUTTON (small variant for product page) ─────────── */
.at-product-secondary-actions { margin-bottom: 20px; }
.at-wa-btn-sm { font-size: 13px !important; padding: 9px 18px !important; display: inline-flex !important; width: auto !important; }

/* ── SIZE GUIDE TAB ─────────────────────────────────────── */
.at-size-guide { padding: 8px 0; }
.at-size-guide h3 { font-family: var(--at-fn-bn); font-size: 16px; font-weight: 700; color: var(--at-black); margin-bottom: 16px; }
.at-sg-table { width: auto; min-width: 320px; border-collapse: collapse; font-family: var(--at-fn-en); font-size: 14px; }
.at-sg-table th { background: var(--at-black); color: #fff; padding: 10px 24px; text-align: center; font-weight: 700; }
.at-sg-table td { border: 1px solid var(--at-border); padding: 10px 24px; text-align: center; color: var(--at-black); }
.at-sg-table tbody tr:nth-child(even) { background: var(--at-gray); }
.at-sg-table tbody tr:hover { background: #f5f2ec; }
.at-sg-note { font-family: var(--at-fn-bn); font-size: 13px; color: var(--at-mid); margin-top: 20px; }

/* ── RELATED PRODUCTS (3-col, 3:4 portrait thumbnails) ─── */
.at-related-wrap ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 20px !important; margin: 0 !important; list-style: none !important; padding: 0 !important; }
.at-related-wrap ul.products li.product { width: auto !important; margin: 0 !important; background: #fff; border-radius: var(--at-r); overflow: hidden; box-shadow: 0 2px 16px rgba(17,17,17,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.at-related-wrap ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--at-sh); }
.at-related-wrap ul.products li.product img { aspect-ratio: 3/4 !important; width: 100% !important; height: auto !important; max-height: 120px !important; object-fit: cover !important; display: block !important; }
@media (max-width: 768px) {
  .at-related-wrap ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
}
@media (max-width: 480px) {
  .at-related-wrap ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
}

/* ── PRODUCT GALLERY (vertical thumbs + main image) ─────── */
.at-pg-wrap {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.at-pg-thumbs-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 76px;
  flex-shrink: 0;
}
.at-pg-viewport {
  overflow: hidden;
  width: 76px;
}
.at-pg-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.28s ease;
}
.at-pg-arrow {
  width: 36px;
  height: 28px;
  border: 1.5px solid var(--at-border);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
  flex-shrink: 0;
  color: var(--at-black);
}
.at-pg-arrow:hover:not(:disabled) { background: var(--at-black); color: #fff; border-color: var(--at-black); }
.at-pg-arrow:disabled { opacity: 0.3; cursor: default; }
.at-pg-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 2px solid var(--at-border);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--at-gray);
  padding: 0;
  transition: border-color 0.18s;
}
.at-pg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.at-pg-thumb.is-active { border-color: var(--at-black); }
.at-pg-main { flex: 1; min-width: 0; }
#at-pg-main-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--at-r);
  display: block;
  max-height: 420px;
  transition: opacity 0.12s;
}

/* ── SHOP PRODUCT CARDS (with size buttons) ──────────────── */
.at-wc-wrap ul.products li.at-shop-card {
  background: #fff;
  border-radius: var(--at-r);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(17,17,17,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.at-wc-wrap ul.products li.at-shop-card:hover { transform: translateY(-4px); box-shadow: var(--at-sh); }

.at-shop-card-img { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.at-shop-card-img a { display: block; height: 100%; }
.at-shop-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.at-shop-card:hover .at-shop-card-img img { transform: scale(1.04); }
.at-onsale { position: absolute; top: 10px; left: 10px; background: var(--at-red) !important; border-radius: 100px !important; font-size: 11px !important; font-weight: 700 !important; }

.at-shop-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; flex: 1; }

.at-shop-card-name {
  display: block;
  font-family: var(--at-fn-bn);
  font-size: 14px;
  font-weight: 600;
  color: var(--at-black);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 6px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.at-shop-card-name:hover { color: var(--at-gold); }

.at-shop-card-price { font-family: var(--at-fn-en); font-size: 16px; font-weight: 700; color: var(--at-gold); margin-bottom: 10px; }
.at-shop-card-price del { font-size: 12px; color: var(--at-mid); font-weight: 400; }
.at-shop-card-price ins { text-decoration: none; }

/* Size selector on card */
.at-sc-sizes { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.at-sc-size-label { font-family: var(--at-fn-bn); font-size: 12px; color: var(--at-mid); flex-shrink: 0; }
.at-sc-size-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.at-sc-sz {
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border: 1.5px solid var(--at-border);
  border-radius: 6px;
  background: #fff;
  font-family: var(--at-fn-en);
  font-size: 12px;
  font-weight: 700;
  color: var(--at-black);
  cursor: pointer;
  transition: all 0.15s;
}
.at-sc-sz:hover { border-color: var(--at-black); }
.at-sc-sz.selected { background: var(--at-black); color: #fff; border-color: var(--at-black); }
.at-sc-size-err { font-family: var(--at-fn-bn); font-size: 11px; color: var(--at-red); margin: 0 0 6px; }

/* Add to cart button on card */
.at-shop-card-body .at-sc-atc-btn {
  margin-top: auto;
  background: var(--at-black) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 10px 20px !important;
  font-family: var(--at-fn-bn) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  width: 100% !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  text-align: center !important;
  display: block !important;
  text-decoration: none !important;
}
.at-shop-card-body .at-sc-atc-btn:hover { background: var(--at-gold) !important; }
.at-shop-card-body .at-sc-atc-btn.at-loading { opacity: 0.6; pointer-events: none; }
.at-shop-card-body .at-sc-atc-btn.at-added { background: #1B9E3E !important; }

/* cart bottom checkout button */
.at-cart-bottom-checkout { text-align: right; margin-top: 16px; }
.at-cart-bottom-btn {
  display: inline-block;
  background: var(--at-black);
  color: #fff;
  padding: 13px 32px;
  border-radius: 100px;
  font-family: var(--at-fn-bn);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.at-cart-bottom-btn:hover { background: var(--at-gold); color: #fff; }

/* ── MOBILE CART BADGE ───────────────────────────────────── */
.at-mob-cart-btn { position: relative; }
.at-mob-cart-badge { position: absolute; top: -3px; right: -3px; background: var(--at-red); color: #fff; font-family: var(--at-fn-en); font-size: 9px; font-weight: 700; min-width: 16px; height: 16px; border-radius: 100px; display: flex; align-items: center; justify-content: center; padding: 0 3px; line-height: 1; pointer-events: none; }

/* ── MINI CART QTY CONTROLS ─────────────────────────────── */
.at-mini-qty-row { display: flex; align-items: center; gap: 6px; margin: 4px 0 2px; }
.at-mini-qty-btn { width: 22px; height: 22px; border: 1.5px solid var(--at-border); border-radius: 4px; background: #fff; cursor: pointer; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; transition: all 0.15s; line-height: 1; padding: 0; flex-shrink: 0; color: var(--at-black); }
.at-mini-qty-btn:hover { background: var(--at-black); color: #fff; border-color: var(--at-black); }
.at-mini-qty-val { font-family: var(--at-fn-en); font-size: 13px; font-weight: 600; min-width: 18px; text-align: center; color: var(--at-black); }

/* ══════════════════════════════════════════════════════════
 * FABRILIFE-STYLE SHOP LAYOUT
 * ══════════════════════════════════════════════════════════ */

/* Shop page wrapper */
.at-shop-page-wrap { padding-top: 32px; padding-bottom: 60px; }

/* Two-column shop: sidebar + main */
.at-shop-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Sidebar ──────────────────────────────────────────────── */
.at-shop-sidebar { position: sticky; top: 90px; }
.at-shop-sb-sect {
  background: #fff;
  border: 1.5px solid var(--at-border);
  border-radius: var(--at-r);
  overflow: hidden;
  margin-bottom: 16px;
}
.at-shop-sb-hd {
  font-family: var(--at-fn-bn);
  font-size: 13px;
  font-weight: 700;
  color: var(--at-black);
  padding: 13px 18px 11px;
  border-bottom: 1.5px solid var(--at-border);
  background: var(--at-gray);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.at-shop-cat-list,
.at-shop-subcat-list { list-style: none; margin: 0; padding: 0; }

.at-shop-cat-list > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  font-family: var(--at-fn-bn);
  font-size: 13px;
  color: var(--at-black);
  text-decoration: none;
  border-bottom: 1px solid var(--at-border);
  transition: background 0.18s, padding-left 0.18s, color 0.18s;
}
.at-shop-cat-list > li > a:hover,
.at-shop-cat-list > li.is-active > a {
  background: var(--at-black);
  color: var(--at-cream);
  padding-left: 22px;
}
.at-shop-cat-list > li.is-active > a .at-shop-cat-cnt { color: var(--at-gold); }
.at-shop-cat-cnt {
  font-family: var(--at-fn-en);
  font-size: 11px;
  font-weight: 700;
  color: var(--at-mid);
  flex-shrink: 0;
}

.at-shop-subcat-list { background: var(--at-gray); }
.at-shop-subcat-list li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 18px 8px 28px;
  font-family: var(--at-fn-bn);
  font-size: 12px;
  color: var(--at-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--at-border);
  transition: color 0.15s, font-weight 0.15s;
}
.at-shop-subcat-list li a:hover,
.at-shop-subcat-list li.is-active a { color: var(--at-black); font-weight: 700; }

/* ── Shop main header ─────────────────────────────────────── */
.at-shop-title-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--at-border);
}
.at-shop-page-title {
  font-family: var(--at-fn-bn);
  font-size: 20px;
  font-weight: 700;
  color: var(--at-black);
  margin: 0 0 2px;
}
.at-shop-ordering { display: flex; align-items: center; gap: 12px; }
.at-shop-pagination { margin-top: 40px; }
.at-shop-empty {
  text-align: center;
  padding: 80px 0;
  font-family: var(--at-fn-bn);
}
.at-shop-empty h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.at-shop-empty p { color: var(--at-mid); margin-bottom: 24px; }

/* ══════════════════════════════════════════════════════════
 * FABRILIFE PRODUCT CARDS
 * ══════════════════════════════════════════════════════════ */

/* Reset WC default li.product styles for .at-pcard */
.at-wc-wrap ul.products li.at-pcard {
  background: #fff;
  border-radius: var(--at-r);
  overflow: visible;
  box-shadow: none;
  border: 1.5px solid var(--at-border);
  transition: box-shadow 0.25s, transform 0.25s;
}
.at-wc-wrap ul.products li.at-pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
}

.at-pcard-img {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--at-r) - 2px) calc(var(--at-r) - 2px) 0 0;
}
.at-pcard-img-link { display: block; }
.at-pcard-img img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.4s;
}
.at-pcard:hover .at-pcard-img img { transform: scale(1.04); }

/* Discount % badge — red top-left */
.at-pcard-badge-pct {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #E8194A;
  color: #fff;
  font-family: var(--at-fn-en);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.4;
  z-index: 2;
  pointer-events: none;
}

/* Save amount badge — green bottom-left */
.at-pcard-badge-save {
  position: absolute;
  bottom: 52px;
  left: 8px;
  background: #1B9E3E;
  color: #fff;
  font-family: var(--at-fn-en);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  line-height: 1.4;
  z-index: 2;
  pointer-events: none;
}

/* Circular cart button — dark bottom-right */
.at-pcard-cart-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 3;
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  text-decoration: none;
}
.at-pcard-cart-btn:hover {
  background: var(--at-gold);
  transform: scale(1.1);
}

/* Card body */
.at-pcard-body { padding: 10px 12px 14px; }

.at-pcard-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: var(--at-fn-bn);
  font-size: 13px;
  font-weight: 600;
  color: var(--at-black);
  text-decoration: none;
  line-height: 1.4;
  margin-bottom: 6px;
  transition: color 0.15s;
}
.at-pcard-name:hover { color: var(--at-gold); }

.at-pcard-price { font-family: var(--at-fn-en); font-size: 15px; font-weight: 700; color: var(--at-black); }
.at-pcard-price del { font-size: 12px; color: var(--at-mid); font-weight: 400; margin-left: 4px; }
.at-pcard-price ins { text-decoration: none; color: var(--at-black); }

/* Override WC default button styles inside at-pcard */
.at-wc-wrap ul.products li.at-pcard .button { display: none !important; }
.at-wc-wrap ul.products li.at-pcard .woocommerce-loop-product__title,
.at-wc-wrap ul.products li.at-pcard .price { display: none !important; }

/* ── Shop responsive ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .at-shop-wrap { grid-template-columns: 190px 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  .at-shop-wrap { grid-template-columns: 1fr; gap: 16px; }
  .at-shop-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .at-shop-sb-sect { flex: 1; min-width: 200px; margin-bottom: 0; }
}
@media (max-width: 480px) {
  .at-shop-sidebar { display: none; }
}
