/* ELK Sports responsive layer. Loaded last so every storefront and admin page shares the same mobile rules. */
html,body{max-width:100%;overflow-x:hidden}
body{min-width:0}
img,video,iframe{max-width:100%}
input,select,textarea{min-width:0;max-width:100%}
.page-wrapper,.main,.page-content,.section,.panel,.elk-container,.container{min-width:0}
.table td,.table th,.product-name,.card h3,.article-detail-content,.footer a{overflow-wrap:anywhere}
.home .carousel{position:relative}
.home .carousel-inner{position:relative;width:100%;overflow:hidden}
.home .carousel-item{position:relative;display:none;width:100%}
.home .carousel-item.active{display:block}
.home .carousel-control-prev,.home .carousel-control-next{position:absolute;top:0;bottom:0;z-index:2;display:flex;width:10%;align-items:center;justify-content:center;border:0;background:transparent;color:#fff;cursor:pointer}
.home .carousel-control-prev{left:0}.home .carousel-control-next{right:0}
.home .carousel-control-prev-icon:before{content:"‹"}.home .carousel-control-next-icon:before{content:"›"}
.home .carousel-control-prev-icon:before,.home .carousel-control-next-icon:before{font-size:38px;font-weight:400;text-shadow:0 2px 8px rgba(0,0,0,.55)}

@media(max-width:1199px){
  .header-middle .container{padding-right:15px;padding-left:15px}
  .catalog-menu>li>a{padding-right:14px!important;padding-left:14px!important;font-size:15px!important}
  .grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .shop-product-card>a>img{height:260px}
}

@media(max-width:991px){
  .header-middle{height:auto!important;min-height:78px}
  .header-middle .container{display:flex!important;align-items:center!important;gap:10px;min-height:78px;padding-top:8px;padding-bottom:8px}
  .header-middle .header-left{display:flex!important;flex:1 1 auto;min-width:0;align-items:center!important}
  .header-middle .header-right{display:flex!important;flex:0 0 auto;min-width:0;align-items:center!important;margin-left:auto}
  .header-middle .logo{flex:0 0 118px!important;width:118px!important;margin:0 18px 0 8px!important}
  .header-middle .logo img{width:118px!important;height:72px!important;max-width:100%!important}
  .header-middle .header-search{flex:1 1 auto;min-width:150px;max-width:330px}
  .header-middle .header-right .icon-box{margin-right:10px}
  .product-view{grid-template-columns:1fr;gap:24px}
  .product-detail-media,.product-info-panel{width:100%;max-width:760px;margin-right:auto;margin-left:auto}
  .product-detail-media{min-height:430px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .footer .row>[class*="col-"]{margin-bottom:25px}
  .about-page-image,.contact-page-image{height:auto;min-height:0}
  .admin-order-detail-grid{grid-template-columns:1fr}
}

@media(max-width:767px){
  body.inner,.home{font-size:14px}
  .container,.elk-container{width:calc(100% - 24px)!important;max-width:none!important;margin-right:auto!important;margin-left:auto!important}
  .section{padding:38px 0}
  .panel{padding:20px 16px}
  h1{font-size:clamp(26px,8vw,34px);line-height:1.2}
  h2,.title{font-size:clamp(22px,6.5vw,29px)!important;line-height:1.25}
  p{overflow-wrap:anywhere}

  /* Store header */
  .header-top{display:none!important}
  .header-middle{min-height:68px!important}
  .header-middle .container{gap:5px!important;min-height:68px!important;padding:5px 10px!important}
  .header-middle .header-left{gap:5px}
  .header-middle .mobile-menu-toggle{display:flex!important;flex:0 0 36px;width:36px;height:42px;align-items:center;justify-content:center;margin:0!important;font-size:24px}
  .header-middle .logo{flex:0 0 94px!important;width:94px!important;margin:0 4px!important}
  .header-middle .logo img{width:94px!important;height:58px!important;max-width:94px!important}
  .header-middle .header-search{display:none!important}
  .header-middle .header-right{gap:3px!important}
  .header-middle .header-right>a.icon-box{display:none!important}
  .header-middle .header-right>.divider{display:none!important}
  .header-wishlist-icon{min-width:38px!important;width:38px!important;height:42px!important}
  .header-wishlist-icon>i,.working-cart .cart-toggle>i{font-size:25px!important}
  .working-cart{margin:0!important}
  .working-cart .cart-toggle{display:flex!important;min-width:39px;height:42px;align-items:center;justify-content:center;padding:0!important}
  .working-cart .cart-label{display:none!important}
  .working-cart .cart-count,.header-wishlist-icon .wishlist-count{top:-8px!important;right:-10px!important;min-width:20px!important;height:20px!important;font-size:10px!important}
  .mobile-menu-container{width:min(320px,88vw)!important;max-width:88vw!important}
  .mobile-menu-container .input-wrapper{width:100%}
  .catalog-mobile-menu,.catalog-mobile-menu ul{max-width:100%;overflow-wrap:anywhere}
  .catalog-mobile-menu a{white-space:normal!important;line-height:1.35!important}

  /* Breadcrumb and page spacing */
  .hero-inner{height:120px!important;min-height:120px!important;padding:14px 0!important;background-position:60% center!important}
  .hero-inner .hero-inner-content{width:calc(100% - 28px)!important}
  .hero-inner h1{max-width:100%;margin-bottom:5px!important;font-size:clamp(24px,7vw,30px)!important;overflow-wrap:anywhere}
  .hero-inner p{font-size:12px!important;line-height:1.45}

  /* Product listings */
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .shop-product-card{min-width:0;min-height:0!important;height:auto;padding:12px}
  .shop-product-card>a>img,.home-selected-card>a>img{height:210px!important;padding:7px}
  .shop-product-card h3,.home-selected-card h3{min-height:0!important;margin:11px 0 7px;font-size:13px!important;line-height:1.4}
  .shop-product-card>p:not(.price):not(.stock-status),.home-product-meta{min-height:0!important;margin-bottom:8px;font-size:11px!important;line-height:1.45}
  .shop-product-card .price{margin:5px 0 9px;font-size:16px}
  .shop-product-card .stock-status{margin:4px 0 9px;font-size:11px}
  .shop-card-actions{grid-template-columns:1fr!important;gap:7px}
  .shop-card-actions button,.shop-card-actions .btn{min-height:43px;font-size:10px}
  .card-wishlist{top:8px;right:8px}
  .card-wishlist button{width:34px!important;height:34px!important}
  .shop-filter-grid{grid-template-columns:1fr!important;gap:0}
  .shop-filter-grid .form-control{margin-bottom:10px}
  .shop-filter-grid+button,.shop-filter-grid~button{width:100%;min-height:46px}
  .home-selected-products,.customer-reviews-section{padding:45px 0!important}
  .customer-reviews-heading h2{font-size:26px!important}
  .customer-review-card{min-height:0;padding:20px}
  .live-category-card .category-media{height:220px}

  /* Home-only sections */
  .home .intro-section .carousel,.home .intro-section .carousel-inner,.home .intro-section .carousel-item{width:100%;overflow:hidden}
  .home .intro-section .carousel-item img{display:block;width:100%!important;height:auto!important;min-height:0!important;object-fit:contain!important}
  .home .service-list{padding:0 4px}
  .home .service-list .icon-box{justify-content:flex-start;min-height:80px;padding:12px}
  .home .product-wrapper,.home section.container{width:calc(100% - 24px)!important}
  .home .uniform-product-card{min-height:0!important}
  .home .uniform-product-card .product-media{height:210px!important;flex-basis:210px!important}
  .home .uniform-product-card .product-details{padding:12px 7px 10px}
  .home .uniform-product-card .product-name{min-height:0;font-size:12px}
  .home .footer-top .row,.home .footer-bottom{align-items:flex-start!important;text-align:left!important}
  .home .footer-top .logo-footer{display:block;margin-bottom:20px}
  .home .footer-top .widget-newsletter,.home .footer-top .form-wrapper-inline,.home .footer-top form.input-wrapper{display:block!important;width:100%!important}
  .home .footer-top .newsletter-info{margin:0 0 15px!important}
  .home .footer-top form .form-control{width:100%!important;margin:0 0 10px!important}
  .home .footer-top form .btn{width:100%;margin:0!important}
  .home .footer-middle .widget{margin-left:0!important}
  .home .widget-instagram .row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0}
  .home .widget-instagram .col-3{width:auto;max-width:none;padding:0}
  .home .widget-instagram img{width:100%;height:auto;aspect-ratio:1;object-fit:cover}
  .home .footer-bottom{display:flex!important;gap:14px;flex-direction:column;padding-bottom:74px}
  .home .footer-center,.home .footer-right{width:100%;text-align:center}
  .home .copyright{line-height:1.55}
  .sticky-footer{display:flex!important;z-index:9999}
  .sticky-footer>.sticky-link{width:20%!important;min-width:0;padding-right:2px;padding-left:2px}
  .sticky-footer .header-search{display:none!important}
  .sticky-footer .sticky-link span{font-size:10px!important;white-space:nowrap}

  /* Product detail and gallery */
  .product-detail-page{padding:34px 0!important}
  .product-view{grid-template-columns:1fr!important;gap:18px!important}
  .product-detail-media,.product-info-panel{width:100%;min-width:0}
  .product-detail-media.product-detail-gallery-shell{grid-template-columns:1fr!important;min-height:0!important;padding:12px!important}
  .product-gallery-main{order:1;min-height:300px!important;aspect-ratio:1/1}
  .product-gallery-main>img{width:100%!important;height:100%!important;max-height:300px!important;padding:8px;object-fit:contain!important}
  .product-gallery-thumbnails{order:2;width:100%;max-width:100%;flex-direction:row!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x proximity}
  .product-gallery-thumbnail{flex:0 0 64px!important;width:64px!important;height:66px!important;scroll-snap-align:start}
  .product-info-panel{padding:22px 16px!important}
  .product-info-panel h1{margin-bottom:13px!important;font-size:clamp(23px,6.8vw,29px)!important}
  .product-category-path{font-size:12px;line-height:1.55}
  .product-detail-price{font-size:22px!important}
  .product-short-description{font-size:14px;line-height:1.65}
  .product-description{max-height:180px!important;padding-right:8px;font-size:13px;line-height:1.65}
  .product-purchase-box{padding:15px!important}
  .product-detail-actions{grid-template-columns:82px minmax(0,1fr)!important;gap:8px!important}
  .product-detail-actions .product-action-form:last-child{grid-column:1/-1!important}
  .product-action-btn{padding:0 8px!important;font-size:12px!important}
  .product-video-section{width:calc(100% - 24px)!important;margin-top:22px!important;padding:15px!important}

  /* Cart and account tables become stacked cards on phones */
  .responsive-data-table,.responsive-data-table thead,.responsive-data-table tbody,.responsive-data-table tr,.responsive-data-table td{display:block;width:100%}
  .responsive-data-table thead{display:none}
  .responsive-data-table tr{margin-bottom:14px;padding:8px 13px;border:1px solid #e7e7e7;border-radius:8px;background:#fff;box-shadow:0 4px 14px rgba(0,0,0,.04)}
  .responsive-data-table td{display:grid;grid-template-columns:minmax(105px,.42fr) minmax(0,.58fr);gap:12px;align-items:center;padding:10px 0!important;border-bottom:1px solid #eee!important;text-align:right!important}
  .responsive-data-table td:last-child{border-bottom:0!important}
  .responsive-data-table td[colspan]{display:block!important;text-align:center!important}
  .responsive-data-table td[colspan]:before{display:none}
  .responsive-data-table td:before{color:#70757a;font-size:11px;font-weight:800;letter-spacing:.03em;text-align:left;text-transform:uppercase;content:attr(data-label)}
  .responsive-data-table td>*{min-width:0;justify-self:end}
  .responsive-data-table td form{width:100%}
  .responsive-data-table .cart-remove-btn{width:100%;justify-content:center;white-space:normal}
  .cart-table-wrap{padding:0!important;background:transparent!important}
  .cart-quantity-input{width:70px}
  .cart-summary-actions{padding:16px;align-items:stretch;flex-direction:column}
  .cart-summary-actions>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .cart-summary-actions .btn{display:flex;width:100%;min-height:46px;align-items:center;justify-content:center;margin:0!important;text-align:center}
  .cart-empty-state,.empty-wishlist{padding:40px 16px}

  /* Content, forms and footer */
  .two{grid-template-columns:1fr!important;gap:0!important}
  .form-control{min-height:46px;font-size:16px}
  textarea.form-control{min-height:120px}
  .auth-card{width:calc(100% - 24px)!important;padding:24px 18px!important}
  .auth-actions{display:grid;gap:13px;text-align:center}
  .auth-actions .btn{width:100%;min-height:46px}
  .contact-layout{gap:28px!important}
  .contact-layout img{height:auto!important;min-height:0!important}
  .contact-layout form .btn{width:100%}
  .about-main-image{height:auto!important;min-height:240px!important;max-height:380px;object-position:center}
  .about-cta{min-height:280px!important;padding:40px 0}
  .about-cta h2{font-size:27px!important}
  .article-detail-card{padding:18px!important}
  .article-detail-image{height:auto!important;max-height:320px!important}
  .article-detail-excerpt{margin:18px 0!important;padding:14px!important;font-size:15px!important}
  .article-detail-content{font-size:14px!important;line-height:1.75!important}
  .article-detail-content table{display:block;width:100%;overflow-x:auto}
  .article-back-button{display:flex;width:100%;justify-content:center}
  .message-card{padding:28px 18px!important;text-align:center}
  .message-card .btn{width:100%}
  body.inner>.page-wrapper>.footer,.page-wrapper>.footer{padding:38px 0 26px!important}
  .footer .row>[class*="col-"]{width:100%;max-width:100%;margin-bottom:24px}
  .footer .logo-footer img{max-width:145px;height:auto}
  .footer p,.footer a{line-height:1.7}
  .cart-toast{top:10px!important;right:10px!important;left:10px!important;width:auto!important;max-width:none!important;gap:8px;padding:12px 13px!important;font-size:12px!important}
  .cart-toast a{white-space:normal!important;text-align:right}

  /* Checkout and payment */
  .checkout-layout{grid-template-columns:1fr!important;gap:18px!important}
  .payment-checkout-page{padding:35px 0!important}
  .payment-checkout-page .checkout-address-form,.payment-checkout-page .checkout-stock-summary{padding:20px 16px!important}
  .checkout-stock-summary>div{align-items:flex-start;gap:12px;font-size:13px}
  .checkout-stock-summary>div span{min-width:0;overflow-wrap:anywhere}
  .checkout-stock-summary>div strong{flex:0 0 auto}
  .payment-method-card{grid-template-columns:auto 56px minmax(0,1fr)!important;gap:9px!important;padding:13px 10px!important}
  .payment-method-mark{width:52px!important;height:38px!important;font-size:9px!important}
  .checkout-submit-button{padding:11px!important;font-size:13px!important;white-space:normal}
  .payment-result-page .payment-result-card{width:100%!important}
}

@media(max-width:575px){
  .grid,.home-products-grid{grid-template-columns:1fr!important}
  .shop-product-card>a>img,.home-selected-card>a>img{height:min(280px,78vw)!important}
  .shop-card-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .shop-card-actions button,.shop-card-actions .btn{font-size:11px}
  .live-category-card .category-media{height:min(250px,74vw)}
  .product-detail-actions{grid-template-columns:1fr!important}
  .product-detail-actions .product-action-form,.product-detail-actions .product-action-form:last-child{grid-column:auto!important}
  .product-quantity-control,.product-action-form,.product-action-btn{height:50px!important}
  .cart-summary-actions>div:last-child{grid-template-columns:1fr}
  .payment-method-card{grid-template-columns:auto 50px minmax(0,1fr)!important}
  .payment-method-mark{width:48px!important}
}

@media(max-width:380px){
  .container,.elk-container{width:calc(100% - 18px)!important}
  .header-middle .container{padding-right:5px!important;padding-left:5px!important}
  .header-middle .logo{flex-basis:82px!important;width:82px!important}
  .header-middle .logo img{width:82px!important;height:54px!important}
  .header-wishlist-icon{min-width:34px!important;width:34px!important}
  .working-cart .cart-toggle{min-width:35px}
  .panel{padding:17px 13px}
  .payment-method-card{grid-template-columns:auto minmax(0,1fr)!important}
  .payment-method-mark{display:none!important}
  .responsive-data-table td{grid-template-columns:90px minmax(0,1fr);gap:8px}
}

/* Mobile admin drawer and usable data tables */
.admin-menu-toggle,.admin-menu-close,.admin-sidebar-overlay{display:none}
.admin-main{min-width:0}
.admin-main>.admin-table-wrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.admin-main .table{min-width:720px}
.admin-main .admin-orders-table{min-width:1320px}

@media(max-width:768px){
  .admin-body{overflow-x:hidden}
  .admin-menu-open{overflow:hidden}
  .admin-shell{display:block!important;min-height:100vh}
  .admin-menu-toggle{display:flex;position:fixed;top:10px;left:10px;z-index:1002;min-height:42px;align-items:center;gap:8px;padding:8px 13px;border:0;border-radius:6px;background:#e4a62b;color:#171717;box-shadow:0 5px 18px rgba(0,0,0,.2);font-weight:800;cursor:pointer}
  .admin-sidebar-overlay{position:fixed;inset:0;z-index:1000;background:rgba(0,0,0,.48)}
  .admin-menu-open .admin-sidebar-overlay{display:block}
  .sidebar{position:fixed;top:0;bottom:0;left:0;z-index:1001;width:min(285px,86vw);min-height:100vh;padding:22px;overflow-y:auto;transform:translateX(-105%);transition:transform .25s ease;box-shadow:8px 0 30px rgba(0,0,0,.22)}
  .admin-menu-open .sidebar{transform:translateX(0)}
  .admin-menu-close{display:grid;position:absolute;top:11px;right:11px;width:36px;height:36px;place-items:center;border:1px solid rgba(255,255,255,.25);border-radius:50%;background:transparent;color:#fff;font-size:24px;cursor:pointer}
  .sidebar img{max-width:125px;margin-right:45px;margin-bottom:20px}
  .sidebar a{padding:11px 5px}
  .admin-main{width:100%;padding:70px 12px 24px!important}
  .admin-main>h1{margin:0 0 18px;font-size:27px}
  .admin-main .panel{padding:17px 14px}
  .admin-main .two{grid-template-columns:1fr!important;gap:0!important}
  .admin-main .btn{margin:3px 0;padding:10px 13px;white-space:normal;text-align:center}
  .admin-workflow{gap:6px;overflow-x:auto;padding-bottom:6px;flex-wrap:nowrap!important;scrollbar-width:thin}
  .admin-workflow span,.admin-workflow a{flex:0 0 auto;padding:8px 12px;font-size:12px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
  .stat{min-width:0;padding:16px 12px;font-size:12px}
  .stat h2{font-size:25px!important}
  .admin-main>.admin-table-wrap,.admin-main .panel.admin-table-wrap{padding:8px!important}
  .admin-main .table{min-width:720px;font-size:13px}
  .admin-main .table th,.admin-main .table td{padding:10px}
  .admin-row-actions{min-width:170px}
  .admin-row-actions .btn{display:inline-flex;align-items:center;justify-content:center}
  .admin-product-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .admin-product-image-frame{height:145px!important}
  .admin-detail-list>div{grid-template-columns:1fr!important;gap:4px!important}
  .admin-payment-status-form{align-items:stretch;flex-direction:column}
  .admin-payment-status-form select,.admin-payment-status-form .btn{width:100%}
}

@media(max-width:480px){
  .stats{grid-template-columns:1fr!important}
  .admin-product-image-grid{grid-template-columns:1fr!important}
  .admin-main .form-control{font-size:16px}
  .admin-main .panel>form>.btn,.admin-main .panel>form>a.btn{display:flex;width:100%;justify-content:center;margin:6px 0}
  .admin-login-card{width:calc(100% - 24px)!important;padding:26px 18px!important}
  .admin-login-card img{display:block;width:140px;margin:0 auto 18px}
  .admin-login-card h1{text-align:center}
  .admin-login-card .btn{width:100%;min-height:46px}
}
