/* Grammarket Hesabım — Üye Ol sayfasıyla aynı tasarım dili */
.gm-hs {
  --navy-900:#12203f; --navy-800:#1b2c54; --navy-700:#24356a;
  --tan-600:#b78f52; --tan-100:#f4ead9;
  --bg-soft:#f6f7fa; --border-soft:#e5e8ef; --text-muted:#6b7280;
  --blue-select-bg:#eef2fb; --kirmizi:#c0392b;
  font-family:'Inter',sans-serif; color:var(--navy-900);
  display:grid; grid-template-columns:290px minmax(0,1fr); gap:28px; align-items:start;
  width:100%; box-sizing:border-box; padding:10px 0 40px;
  /* WoodMart dış kutusu içeriğe göre daralıyorsa bile tam genişlikte kal */
  min-width:min(1100px, calc(100vw - 40px)); max-width:100%; flex:1 1 100%; float:none; clear:both;
}
/* Dış kaplayıcıyı (WoodMart/WooCommerce) tam genişliğe zorla */
.woocommerce:has(> .gm-hs), .woocommerce-account .woocommerce:has(.gm-hs), .wd-my-account-wrapper:has(.gm-hs), .entry-content:has(> .woocommerce > .gm-hs) { display:block !important; width:100% !important; max-width:100% !important; float:none !important; }
.gm-hs *, .gm-hs *::before, .gm-hs *::after { box-sizing:border-box; }

/* ---------- Yan menü ---------- */
.gm-hs-nav { min-width:0; border:1px solid var(--border-soft); border-radius:20px; padding:22px; background:#fff; position:sticky; top:24px; width:auto !important; float:none !important; margin:0 !important; }
.gm-hs-kimlik { display:flex; align-items:center; gap:12px; padding-bottom:18px; margin-bottom:14px; border-bottom:1px solid var(--border-soft); }
.gm-hs-avatar { width:46px; height:46px; border-radius:50%; background:var(--navy-900); color:#fff; font-weight:800; font-size:17px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.gm-hs-kimlik-metin { min-width:0; }
.gm-hs-kimlik-ad { font-size:15px; font-weight:800; line-height:1.3; }
.gm-hs-kimlik-eposta { font-size:12px; color:var(--text-muted); word-break:break-all; margin-top:2px; }
.gm-hs-nav ul { list-style:none !important; margin:0 !important; padding:0 !important; display:flex; flex-direction:column; gap:6px; }
.gm-hs-nav li { margin:0 !important; padding:0 !important; border:0 !important; list-style:none !important; }
.gm-hs-nav li a { display:flex; align-items:center; gap:12px; padding:12px 14px; border:1.5px solid transparent; border-radius:14px; font-size:14px; font-weight:600; color:var(--navy-900) !important; text-decoration:none !important; transition:all .2s ease; line-height:1.3; }
.gm-hs-nav li a svg { width:19px; height:19px; stroke:var(--tan-600); fill:none; flex-shrink:0; }
.gm-hs-nav li a:hover { background:var(--bg-soft); }
.gm-hs-nav li.is-active a { background:var(--blue-select-bg); border-color:var(--navy-900); box-shadow:0 0 0 1.5px var(--navy-900) inset; }
.gm-hs-nav li.woocommerce-MyAccount-navigation-link--customer-logout a { color:#b3312c !important; }
.gm-hs-nav li.woocommerce-MyAccount-navigation-link--customer-logout a svg { stroke:#b3312c; }

/* ---------- İçerik kartı ---------- */
.gm-hs-icerik { border:1px solid var(--border-soft); border-radius:20px; padding:30px; background:#fff; min-width:0; width:auto !important; float:none !important; margin:0 !important; }
.gm-hs-icerik > :first-child { margin-top:0; }
.gm-hs-icerik h2, .gm-hs-icerik h3 { font-family:'Inter',sans-serif; font-weight:800; color:var(--navy-900); line-height:1.25; }
.gm-hs-icerik h2 { font-size:22px; margin:0 0 16px; }
.gm-hs-icerik h3 { font-size:18px; margin:0 0 14px; }
.gm-hs-icerik p { font-size:14px; line-height:1.7; color:var(--text-muted); }
.gm-hs-icerik a:not(.button):not(.gm-hs-kutu) { color:var(--navy-900); font-weight:700; }
.gm-hs-icerik mark { background:var(--tan-100); color:var(--tan-600); padding:2px 8px; border-radius:6px; font-weight:700; }

/* ---------- Pano ---------- */
.gm-hs-karsilama { background:var(--bg-soft); border:1px solid var(--border-soft); border-radius:18px; padding:28px 30px; margin-bottom:22px; }
.gm-hs-eyebrow { display:flex; align-items:center; gap:14px; font-size:12px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:var(--tan-600); margin-bottom:14px; }
.gm-hs-eyebrow::before { content:''; width:34px; height:1px; background:var(--tan-600); }
.gm-hs-karsilama h2 { font-size:28px; margin:0 0 10px; }
.gm-hs-karsilama p { margin:0; max-width:620px; }
.gm-hs-kutular { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.gm-hs-kutu { display:flex; flex-direction:column; gap:8px; padding:22px; border:1.5px solid var(--border-soft); border-radius:16px; background:#fff; text-decoration:none !important; color:var(--navy-900) !important; transition:all .2s ease; }
.gm-hs-kutu:hover { border-color:var(--navy-700); transform:translateY(-2px); box-shadow:0 10px 22px -14px rgba(18,32,63,.35); }
.gm-hs-kutu-ikon { width:46px; height:46px; border-radius:50%; background:var(--tan-100); display:flex; align-items:center; justify-content:center; margin-bottom:4px; }
.gm-hs-kutu-ikon svg { width:22px; height:22px; stroke:var(--tan-600); fill:none; }
.gm-hs-kutu-baslik { font-size:15.5px; font-weight:800; }
.gm-hs-kutu-metin { font-size:12.5px; color:var(--text-muted); line-height:1.55; font-weight:500; }
.gm-hs-kutu--cikis .gm-hs-kutu-ikon { background:#fdecea; }
.gm-hs-kutu--cikis .gm-hs-kutu-ikon svg { stroke:#b3312c; }

/* ---------- Butonlar ---------- */
.gm-hs .button, .gm-hs button.button, .gm-hs .woocommerce-Button, .gm-hs input[type=submit].button {
  display:inline-block; background:var(--navy-900) !important; color:#fff !important; border:0 !important; border-radius:12px !important;
  padding:12px 22px !important; font-family:'Inter',sans-serif; font-size:13.5px !important; font-weight:700 !important; line-height:1.3 !important;
  text-transform:none !important; letter-spacing:0 !important; box-shadow:none !important; cursor:pointer; text-decoration:none !important; transition:background .2s ease, transform .2s ease; }
.gm-hs .button:hover, .gm-hs .woocommerce-Button:hover { background:var(--navy-800) !important; transform:translateY(-1px); }

/* ---------- Bildirimler ---------- */
.gm-hs .woocommerce-message, .gm-hs .woocommerce-info, .gm-hs .woocommerce-error {
  list-style:none; margin:0 0 20px !important; padding:14px 18px !important; border-radius:14px !important; border:1px solid var(--border-soft) !important; background:var(--bg-soft) !important; color:var(--navy-900) !important; font-size:13.5px; line-height:1.6; }
.gm-hs .woocommerce-error { background:#fdecea !important; border-color:#f5c6c0 !important; color:#8e2a20 !important; }
.gm-hs .woocommerce-message::before, .gm-hs .woocommerce-info::before, .gm-hs .woocommerce-error::before { display:none !important; }

/* ---------- Siparişler tablosu ---------- */
.gm-hs table.shop_table, .gm-hs table.woocommerce-orders-table, .gm-hs table.my_account_orders { width:100%; border-collapse:separate !important; border-spacing:0; border:1px solid var(--border-soft) !important; border-radius:14px; overflow:hidden; margin:0 0 20px; background:#fff; }
.gm-hs table.shop_table thead th { background:var(--bg-soft); font-size:11.5px; font-weight:700; letter-spacing:.6px; text-transform:uppercase; color:var(--text-muted); padding:14px 16px; border:0 !important; text-align:left; }
.gm-hs table.shop_table td, .gm-hs table.shop_table tbody th { padding:15px 16px; font-size:13.5px; color:var(--navy-900); border:0 !important; border-top:1px solid var(--border-soft) !important; background:#fff; vertical-align:middle; font-weight:500; }
.gm-hs table.shop_table tbody th a { color:var(--navy-900); font-weight:800; text-decoration:none; }
.gm-hs table.shop_table .button { padding:9px 16px !important; font-size:12.5px !important; margin:2px 4px 2px 0; }

/* ---------- Adresler ---------- */
.gm-hs .woocommerce-Addresses { display:grid !important; grid-template-columns:1fr 1fr; gap:18px; margin:0; }
.gm-hs .woocommerce-Addresses .col-1, .gm-hs .woocommerce-Addresses .col-2, .gm-hs .woocommerce-Address { float:none !important; width:auto !important; max-width:none !important; }
.gm-hs .woocommerce-Address { border:1px solid var(--border-soft); border-radius:16px; padding:22px; background:#fff; }
.gm-hs .woocommerce-Address-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; padding-bottom:12px; border-bottom:1px solid var(--border-soft); }
.gm-hs .woocommerce-Address-title h2, .gm-hs .woocommerce-Address-title h3 { margin:0; font-size:16px; }
.gm-hs .woocommerce-Address-title a.edit { font-size:12.5px; font-weight:700; color:var(--tan-600) !important; text-decoration:none; background:var(--tan-100); padding:5px 12px; border-radius:20px; float:none !important; }
.gm-hs .woocommerce-Address address { font-style:normal; font-size:13.5px; line-height:1.8; color:var(--text-muted); }

/* ---------- Formlar (adres düzenle / hesap detayları) ---------- */
.gm-hs form.woocommerce-EditAccountForm, .gm-hs .woocommerce-address-fields__field-wrapper { display:flex; flex-wrap:wrap; gap:16px; }
.gm-hs .woocommerce-address-fields__field-wrapper { display:grid; grid-template-columns:1fr 1fr; }
.gm-hs .woocommerce-address-fields__field-wrapper .form-row-wide { grid-column:1 / -1; }
.gm-hs form.woocommerce-EditAccountForm > .form-row, .gm-hs form.woocommerce-EditAccountForm > p { margin:0 !important; width:100%; float:none !important; }
.gm-hs form.woocommerce-EditAccountForm > .form-row-first, .gm-hs form.woocommerce-EditAccountForm > .form-row-last { width:calc(50% - 8px); }
.gm-hs .form-row { margin:0 !important; padding:0 !important; float:none !important; width:auto; }
.gm-hs .form-row label { display:block; font-size:12.5px; font-weight:700; margin-bottom:6px; color:var(--navy-900); line-height:1.4; }
.gm-hs .form-row .required { color:var(--kirmizi); text-decoration:none; border:0; }
.gm-hs .form-row input.input-text, .gm-hs .form-row input[type=text], .gm-hs .form-row input[type=email], .gm-hs .form-row input[type=tel], .gm-hs .form-row input[type=password], .gm-hs .form-row select, .gm-hs .form-row textarea {
  width:100%; padding:13px 14px !important; border:1.5px solid var(--border-soft) !important; border-radius:12px !important; font-family:'Inter',sans-serif; font-size:14px; color:var(--navy-900); background:#fff !important; height:auto !important; box-shadow:none !important; }
.gm-hs .form-row input:focus, .gm-hs .form-row select:focus, .gm-hs .form-row textarea:focus { outline:none; border-color:var(--navy-700) !important; }
.gm-hs .form-row em, .gm-hs .form-row span em { font-size:11.5px; color:var(--text-muted); font-style:normal; display:block; margin-top:6px; }
.gm-hs fieldset { width:100%; border:1px solid var(--border-soft); border-radius:16px; padding:22px; margin:6px 0 0; }
.gm-hs fieldset legend { font-size:15px; font-weight:800; padding:0 10px; }
.gm-hs fieldset .form-row { margin-bottom:14px !important; }
.gm-hs .select2-container .select2-selection--single { height:48px !important; border:1.5px solid var(--border-soft) !important; border-radius:12px !important; display:flex; align-items:center; }
.gm-hs .select2-container--default .select2-selection--single .select2-selection__rendered { line-height:normal !important; padding-left:14px; color:var(--navy-900); font-size:14px; }
.gm-hs .select2-container--default .select2-selection--single .select2-selection__arrow { height:46px !important; }
.gm-hs .woocommerce-address-fields > p, .gm-hs form.woocommerce-EditAccountForm > p:last-child { width:100%; margin-top:6px !important; }

/* ---------- Mobil / tablet ---------- */
@media (max-width:960px) {
  .gm-hs { grid-template-columns:minmax(0,1fr); gap:20px; }
  .gm-hs-nav { position:static; padding:16px; }
  .gm-hs-nav ul { flex-direction:row; overflow-x:auto; gap:8px; padding-bottom:4px !important; scrollbar-width:none; }
  .gm-hs-nav ul::-webkit-scrollbar { display:none; }
  .gm-hs-nav li { flex-shrink:0; }
  .gm-hs-nav li a { padding:10px 14px; white-space:nowrap; }
  .gm-hs-kutular { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:640px) {
  .gm-hs-icerik { padding:20px; }
  .gm-hs-karsilama { padding:22px; }
  .gm-hs-kutular { grid-template-columns:1fr; }
  .gm-hs .woocommerce-Addresses, .gm-hs .woocommerce-address-fields__field-wrapper { grid-template-columns:1fr; }
  .gm-hs form.woocommerce-EditAccountForm > .form-row-first, .gm-hs form.woocommerce-EditAccountForm > .form-row-last { width:100%; }
}
