/* Aşiyan V30 — account security, legal modal, dynamic footer, sale emphasis, catalog grid controls */

/* Authentication additions */
.storefront-v30 .auth-forgot-row{display:flex;justify-content:flex-end;margin-top:-5px}
.storefront-v30 .auth-forgot-row a{font-size:11px;font-weight:700;color:var(--brand-accent);text-decoration:underline;text-underline-offset:4px}
.storefront-v30 .auth-security-note{display:flex;align-items:flex-start;gap:11px;margin-top:18px;padding:14px 16px;border:1px solid #e8ddd7;background:#faf6f3;color:#64565b;font-size:11px;line-height:1.65}
.storefront-v30 .auth-security-note .icon{width:19px;height:19px;flex:0 0 19px;color:var(--brand-accent)}
.storefront-v30 .auth-disabled-note{margin-top:28px;padding:22px;border:1px solid #eadbd7;background:#fff7f5}
.storefront-v30 .auth-disabled-note strong{display:block;margin-bottom:7px;font-size:15px}.storefront-v30 .auth-disabled-note p{margin:0;color:#74656a;font-size:12px}
.storefront-v30 .auth-primary-link{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;margin-top:28px;background:#201719;color:#fff;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.storefront-v30 .auth-primary-link .icon{width:16px;height:16px}
.storefront-v30 .legal-check>span{font-size:11px!important;line-height:1.65;text-transform:none!important;font-weight:500!important}
.storefront-v30 .legal-check>span button{padding:0;border:0;background:none;color:var(--brand-accent);font:inherit;font-weight:800;text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* Legal membership/privacy dialog */
.storefront-v30 .legal-modal{width:min(860px,calc(100% - 30px));max-height:min(88svh,900px);padding:0;border:0;border-radius:24px;background:#fff;color:#2d2125;box-shadow:0 40px 120px rgba(28,10,18,.3);overflow:hidden}
.storefront-v30 .legal-modal::backdrop{background:rgba(28,9,17,.62);backdrop-filter:blur(8px)}
.storefront-v30 .legal-modal-shell{display:flex;flex-direction:column;max-height:min(88svh,900px)}
.storefront-v30 .legal-modal header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:26px 30px 20px;border-bottom:1px solid #eee3df}
.storefront-v30 .legal-modal header span{font-size:9px;font-weight:800;letter-spacing:.2em;color:#9d3659}
.storefront-v30 .legal-modal header h2{margin:5px 0 0;font:600 38px/1 "Cormorant Garamond",serif}
.storefront-v30 .legal-modal header>button{display:grid;place-items:center;width:42px;height:42px;border:1px solid #eadfdb;border-radius:50%;background:#fff;cursor:pointer}.storefront-v30 .legal-modal header .icon{width:18px;height:18px}
.storefront-v30 .legal-modal-tabs{display:grid;grid-template-columns:1fr 1fr;padding:0 30px;border-bottom:1px solid #eee3df}
.storefront-v30 .legal-modal-tabs button{min-height:52px;border:0;border-bottom:2px solid transparent;background:none;color:#86777c;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.storefront-v30 .legal-modal-tabs button.active{border-bottom-color:#7d1e43;color:#7d1e43}
.storefront-v30 .legal-modal-content{padding:28px 30px;overflow:auto;overscroll-behavior:contain}
.storefront-v30 .legal-modal-content article{display:none}.storefront-v30 .legal-modal-content article.active{display:block}
.storefront-v30 .legal-modal-content h3{margin:22px 0 7px;font-size:15px;color:#3b292f}.storefront-v30 .legal-modal-content h3:first-child{margin-top:0}
.storefront-v30 .legal-modal-content p{margin:0;color:#695c61;font-size:12px;line-height:1.85}
.storefront-v30 .legal-modal footer{padding:17px 30px;border-top:1px solid #eee3df;background:#fbf7f5}.storefront-v30 .legal-modal footer button{width:100%;min-height:48px;border:0;border-radius:12px;background:#6c1436;color:#fff;font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}

/* Footer: larger typography and only real category/page data is rendered by the view */
.storefront-v30 .footer-main{grid-template-columns:minmax(300px,1.35fr) repeat(auto-fit,minmax(170px,1fr))!important;gap:44px!important}
.storefront-v30 .footer-column summary{font-size:11px!important;letter-spacing:.14em!important;margin-bottom:20px!important}
.storefront-v30 .footer-column>div{gap:10px!important}
.storefront-v30 .footer-column a{font-size:12.5px!important;line-height:1.5!important;padding:3px 0!important}
.storefront-v30 .footer-bottom a{font-size:11px!important}

/* Discount badges: clearer and more clickable */
.storefront-v30 .product-tile-labels{gap:7px!important;align-items:flex-start!important}
.storefront-v30 .product-tile-labels .label-sale{display:grid!important;grid-template-columns:auto auto;align-items:center;gap:6px;padding:7px 10px!important;border-radius:999px!important;background:linear-gradient(135deg,#81183e,#d3436f)!important;color:#fff!important;box-shadow:0 9px 22px rgba(126,24,61,.28);animation:v30SaleGlow 2.6s ease-in-out infinite}
.storefront-v30 .product-tile-labels .label-sale b{font-size:13px;line-height:1;font-weight:900}
.storefront-v30 .product-tile-labels .label-sale small{font-size:7px;line-height:1;font-weight:900;letter-spacing:.13em}
@keyframes v30SaleGlow{0%,100%{box-shadow:0 9px 22px rgba(126,24,61,.24)}50%{box-shadow:0 10px 30px rgba(211,67,111,.48)}}
.storefront-v30 .product-discount-nudge{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;padding:9px 11px;border-radius:11px;background:#fff1f5;color:#721b3c;transition:transform .2s,background .2s}
.storefront-v30 .product-discount-nudge:hover{transform:translateY(-1px);background:#ffe6ee}
.storefront-v30 .product-discount-nudge span{display:flex;flex-direction:column;gap:1px}.storefront-v30 .product-discount-nudge b{font-size:10px}.storefront-v30 .product-discount-nudge small{font-size:8px;color:#9b5870}.storefront-v30 .product-discount-nudge .icon{width:14px;height:14px}
.storefront-v30 .product-price-block>span{display:inline-flex!important;margin-top:10px!important;padding:8px 12px!important;border-radius:999px!important;background:linear-gradient(135deg,#7f183d,#bd3d64)!important;color:#fff!important;font-weight:800!important;box-shadow:0 10px 24px rgba(109,20,55,.18)}

/* Catalog toolbar and view selector */
.storefront-v30 .catalog-toolbar-left{display:flex!important;align-items:center!important;gap:14px!important}
.storefront-v30 .catalog-view-switch{display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid #e5dad5;border-radius:12px;background:#fff}
.storefront-v30 .catalog-toolbar .catalog-view-switch button{display:grid!important;place-items:center!important;width:34px!important;height:32px!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#9c8c91!important}
.storefront-v30 .catalog-toolbar .catalog-view-switch button:hover,.storefront-v30 .catalog-toolbar .catalog-view-switch button.active{background:#f2e9e6!important;color:#651533!important}
.storefront-v30 .catalog-view-switch svg{width:18px;height:18px;fill:currentColor;stroke:none}
.storefront-v30 .catalog-product-grid[data-grid-view="2"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:34px 20px!important}
.storefront-v30 .catalog-product-grid[data-grid-view="3"]{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:30px 16px!important}
.storefront-v30 .catalog-product-grid[data-grid-view="4"]{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:25px 12px!important}
.storefront-v30 .catalog-product-grid[data-grid-view="2"] .product-tile-media{aspect-ratio:4/5!important}

@media(max-width:1180px){
  .storefront-v30 .footer-main{grid-template-columns:1.25fr repeat(2,minmax(150px,1fr))!important;gap:30px!important}
  .storefront-v30 .catalog-product-grid[data-grid-view="4"]{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media(max-width:767px){
  .storefront-v30 .legal-modal{width:calc(100% - 18px);border-radius:18px}.storefront-v30 .legal-modal header{padding:20px 18px 15px}.storefront-v30 .legal-modal header h2{font-size:30px}.storefront-v30 .legal-modal-tabs{padding:0 18px}.storefront-v30 .legal-modal-tabs button{font-size:9px}.storefront-v30 .legal-modal-content{padding:22px 18px}.storefront-v30 .legal-modal footer{padding:14px 18px}
  .storefront-v30 .footer-main{grid-template-columns:1fr!important}.storefront-v30 .footer-column summary{font-size:11px!important;margin-bottom:0!important}.storefront-v30 .footer-column a{font-size:12px!important}
  .storefront-v30 .catalog-toolbar{height:auto!important;min-height:62px!important;gap:10px!important;flex-wrap:wrap!important}.storefront-v30 .catalog-toolbar-left{gap:8px!important;flex:1;min-width:0}.storefront-v30 .catalog-toolbar-left>span{display:none}.storefront-v30 .catalog-view-switch{margin-left:auto}.storefront-v30 .catalog-toolbar .catalog-view-switch button{width:31px!important;height:30px!important}
  .storefront-v30 .catalog-product-grid[data-grid-view="2"]{grid-template-columns:1fr!important;gap:26px!important}
  .storefront-v30 .catalog-product-grid[data-grid-view="3"],.storefront-v30 .catalog-product-grid[data-grid-view="4"]{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 8px!important}
  .storefront-v30 .product-discount-nudge{padding:8px}.storefront-v30 .product-discount-nudge b{font-size:9px}.storefront-v30 .product-discount-nudge small{font-size:7px}
}
@media(prefers-reduced-motion:reduce){.storefront-v30 .product-tile-labels .label-sale{animation:none!important}}
