
/* SHREE SWAAD 6AMMART APP UI v1.5 */

.ss6ma-app,.ss6ma-cart-page{width:100%;max-width:1200px;margin:0 auto;box-sizing:border-box}
.ss6ma-app *,.ss6ma-cart-page *{box-sizing:border-box}

.ss6ma-category-section{padding:22px 0 28px;background:#fff}
.ss6ma-category-rail{display:flex;gap:16px;overflow-x:auto;scrollbar-width:none;padding:4px 4px 8px}
.ss6ma-category-rail::-webkit-scrollbar{display:none}
.ss6ma-category{flex:0 0 88px;border:0!important;background:transparent!important;padding:0!important;text-decoration:none!important;color:#222!important;text-align:center;cursor:pointer}
.ss6ma-category-img{width:78px;height:78px;display:flex;align-items:center;justify-content:center;margin:0 auto 8px;border-radius:50%;overflow:hidden;background:#f5f5f5}
.ss6ma-category-img img{width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
.ss6ma-category-name{display:block;font-size:13px;line-height:1.25;font-weight:500}
.ss6ma-category:hover .ss6ma-category-name,.ss6ma-category.is-active .ss6ma-category-name{font-weight:700}
.ss6ma-category.is-active .ss6ma-category-img{outline:3px solid #bd2026;outline-offset:2px}

.ss6ma-section{margin:0 0 26px;padding:20px 18px;background:#f6f6f6;border-radius:4px}
.ss6ma-special{background:#f5f5f5}
.ss6ma-popular{background:#ffe1e1}
.ss6ma-section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}
.ss6ma-section-head h2{margin:0!important;font-size:20px!important;line-height:1.2!important;font-weight:800!important;color:#111!important}
.ss6ma-section-head h2 span{font-size:18px}
.ss6ma-see-all{font-size:13px;color:#777!important;text-decoration:underline!important}

.ss6ma-product-rail{display:flex;gap:16px;overflow-x:auto;scrollbar-width:none;padding-bottom:3px}
.ss6ma-product-rail::-webkit-scrollbar{display:none}
.ss6ma-card{position:relative;flex:0 0 200px;overflow:hidden;border:1px solid #e2e2e2;border-radius:12px;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.ss6ma-card-media{position:relative;width:100%;height:134px;background:#f5f5f5;overflow:hidden}
.ss6ma-card-media img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;margin:0!important;padding:0!important}
.ss6ma-off{position:absolute;top:9px;left:8px;background:#f10d18;color:#fff;border-radius:8px;padding:6px 9px;font-size:11px;font-weight:800;z-index:2}
.ss6ma-plus{position:absolute!important;right:8px!important;bottom:8px!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;max-width:36px!important;max-height:36px!important;padding:0!important;margin:0!important;border:1px solid #ff1c2a!important;border-radius:50%!important;background:#fff!important;color:#f10d18!important;display:flex!important;align-items:center!important;justify-content:center!important;font-size:26px!important;font-weight:500!important;line-height:1!important;box-shadow:0 2px 5px rgba(0,0,0,.08)!important;cursor:pointer!important;z-index:3!important}
.ss6ma-plus:hover{background:#fff7f7!important;transform:scale(1.05)}
.ss6ma-plus.is-loading{font-size:0!important}
.ss6ma-plus.is-added{background:#bd2026!important;color:#fff!important}
.ss6ma-btn-spinner{display:block;width:15px;height:15px;border:2px solid #f1b4b4;border-top-color:#bd2026;border-radius:50%;animation:ss6ma-spin .7s linear infinite}
@keyframes ss6ma-spin{to{transform:rotate(360deg)}}

.ss6ma-card-content{padding:11px 10px 14px}
.ss6ma-card-content h3{margin:0 0 7px!important;font-size:16px!important;line-height:1.3!important;font-weight:800!important;color:#171717!important}
.ss6ma-rating{font-size:12px;color:#777;margin-bottom:7px}
.ss6ma-star{color:#ef111b}
.ss6ma-old{font-size:12px;color:#777;text-decoration:line-through;margin-bottom:2px}
.ss6ma-price{font-size:17px;color:#111;font-weight:500}
.ss6ma-add-msg{display:none}

.ss6ma-menu-section{padding:10px 0 80px}
.ss6ma-menu-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.ss6ma-menu-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:155px;padding:12px!important;border:1px solid #e7e7e7!important;border-radius:12px!important;background:#fff!important;color:#222!important;text-decoration:none!important;box-shadow:0 2px 8px rgba(0,0,0,.04);cursor:pointer}
.ss6ma-menu-tile img{width:92px!important;height:92px!important;border-radius:50%!important;object-fit:cover!important;margin-bottom:9px!important}
.ss6ma-menu-tile span{font-size:14px;font-weight:700;text-align:center}

.ss6ma-category-page{padding-bottom:80px}
.ss6ma-category-page-head{padding:22px 0 18px}
.ss6ma-back{display:inline-block;margin-bottom:10px;color:#555!important;text-decoration:none!important;font-size:14px}
.ss6ma-category-page-head h1{margin:0!important;font-size:30px!important;font-weight:800!important}
.ss6ma-category-page-head p{margin:5px 0 0!important;color:#777}
.ss6ma-category-switcher{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;margin-bottom:22px;padding:4px 3px 10px}
.ss6ma-category-switcher::-webkit-scrollbar{display:none}
.ss6ma-category-switcher .ss6ma-category{flex-basis:82px}
.ss6ma-category-switcher .ss6ma-category-img{width:66px;height:66px}
.ss6ma-category-results{padding:0}
.ss6ma-category-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.ss6ma-category-product-grid .ss6ma-card{flex-basis:auto;width:100%}
.ss6ma-category-product-grid .ss6ma-card-media{height:210px}

.ss6ma-sticky-cart{position:fixed;left:50%;bottom:18px;transform:translate(-50%,20px);width:min(560px,calc(100% - 24px));z-index:99999;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:9px;background:#49b84f;color:#fff;box-shadow:0 8px 28px rgba(0,0,0,.2);opacity:0;transition:all .2s ease}
.ss6ma-sticky-cart[hidden]{display:none}
.ss6ma-sticky-cart.is-visible{opacity:1;transform:translate(-50%,0)}
.ss6ma-sticky-cart-text{display:flex;flex-direction:column;line-height:1.2}
.ss6ma-sticky-cart-text strong{font-size:15px}
.ss6ma-sticky-count{font-size:12px;opacity:.9}
.ss6ma-view-cart{display:inline-flex!important;align-items:center;justify-content:center;padding:9px 17px;border-radius:7px;background:#fff!important;color:#23852b!important;text-decoration:none!important;font-weight:800;font-size:14px;white-space:nowrap}

.ss6ma-toast{position:fixed;left:50%;bottom:82px;transform:translateX(-50%);z-index:100000;background:#222;color:#fff;padding:9px 14px;border-radius:6px;font-size:13px;opacity:0;pointer-events:none;transition:opacity .2s}
.ss6ma-toast.is-visible{opacity:1}

.ss6ma-cart-page{padding:30px 15px 90px;max-width:900px}
.ss6ma-cart-head{margin-bottom:22px}
.ss6ma-cart-head h1{margin:0!important;font-size:32px!important;font-weight:800!important}
.ss6ma-cart-head p{margin:5px 0 0;color:#777}
.ss6ma-cart-list{display:grid;gap:12px}
.ss6ma-cart-row{display:grid;grid-template-columns:76px minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:12px;border:1px solid #e5e5e5;border-radius:12px;background:#fff}
.ss6ma-cart-thumb{width:76px;height:76px;border-radius:9px;overflow:hidden;background:#f5f5f5}
.ss6ma-cart-thumb img{width:100%!important;height:100%!important;object-fit:cover!important}
.ss6ma-cart-info h3{margin:0 0 5px!important;font-size:16px!important}
.ss6ma-cart-unit{font-size:13px;color:#777}
.ss6ma-cart-qty{display:flex;align-items:center;gap:8px}
.ss6ma-cart-qty button{width:28px;height:28px;border:1px solid #ddd;border-radius:50%;background:#f7f7f7;color:#777}
.ss6ma-cart-qty span{min-width:18px;text-align:center;font-weight:700}
.ss6ma-cart-line{font-size:16px;min-width:70px;text-align:right}
.ss6ma-cart-summary{margin-top:18px;padding:18px;border-radius:12px;background:#f7f7f7}
.ss6ma-cart-summary>div:first-child{display:flex;justify-content:space-between;font-size:18px}
.ss6ma-cart-note{margin-top:7px;font-size:12px;color:#777}
.ss6ma-checkout-disabled{display:block;margin-top:16px;text-align:center;padding:13px;border-radius:8px;background:#ddd;color:#777!important;text-decoration:none!important;font-weight:800;cursor:not-allowed}
.ss6ma-cart-empty{text-align:center;padding:55px 20px;border:1px solid #eee;border-radius:14px;background:#fff}
.ss6ma-empty-icon{font-size:45px}
.ss6ma-cart-empty h2{margin:8px 0 4px!important}
.ss6ma-cart-empty p{color:#777}
.ss6ma-cart-primary{display:inline-block;margin-top:12px;padding:12px 20px;border-radius:8px;background:#bd2026;color:#fff!important;text-decoration:none!important;font-weight:800}

@media(max-width:1024px){
 .ss6ma-menu-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
 .ss6ma-category-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:767px){
 .ss6ma-app{max-width:100%}
 .ss6ma-section{border-radius:0;padding:18px 8px}
 .ss6ma-category-section{padding-left:6px;padding-right:6px}
 .ss6ma-category-rail{gap:12px}
 .ss6ma-card{flex-basis:190px}
 .ss6ma-card-media{height:128px}
 .ss6ma-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
 .ss6ma-menu-tile{min-height:125px;padding:8px!important}
 .ss6ma-menu-tile img{width:70px!important;height:70px!important}
 .ss6ma-category-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .ss6ma-category-product-grid .ss6ma-card-media{height:150px}
 .ss6ma-cart-row{grid-template-columns:58px minmax(0,1fr) auto;gap:9px}
 .ss6ma-cart-thumb{width:58px;height:58px}
 .ss6ma-cart-line{grid-column:2/4;text-align:right}
 .ss6ma-cart-qty{grid-column:3;grid-row:1}
 .ss6ma-sticky-cart{bottom:8px}
}
@media(max-width:420px){
 .ss6ma-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ss6ma-category-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ss6ma-category-product-grid .ss6ma-card-media{height:135px}
 .ss6ma-card-content h3{font-size:14px!important}
 .ss6ma-price{font-size:16px}
}

/* v1.6 product details + cart fixes */
.ss6ma-product-open{cursor:pointer}
.ss6ma-product-open:focus{outline:2px solid #bd2026;outline-offset:2px}
.ss6ma-plus{z-index:5!important;display:flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;border:1px solid #bd2026!important;border-radius:50%!important;background:#fff!important;color:#bd2026!important;font-size:24px!important;line-height:1!important;font-weight:500!important;box-shadow:0 2px 7px rgba(0,0,0,.12)!important}
.ss6ma-plus:hover{background:#bd2026!important;color:#fff!important}
.ss6ma-plus.ss6ma-oos{font-size:10px!important;color:#777!important;border-color:#ddd!important;cursor:not-allowed}
.ss6ma-btn-spinner{display:inline-block;width:14px;height:14px;border:2px solid rgba(255,255,255,.5);border-top-color:#fff;border-radius:50%;animation:ss6ma-spin .7s linear infinite}
@keyframes ss6ma-spin{to{transform:rotate(360deg)}}
.ss6ma-toast{position:fixed;left:50%;bottom:22px;transform:translate(-50%,20px);z-index:999999;background:#bd2026;color:#fff;padding:12px 18px;border-radius:999px;font-size:14px;font-weight:600;opacity:0;pointer-events:none;transition:.2s ease;box-shadow:0 8px 25px rgba(0,0,0,.18)}
.ss6ma-toast.is-visible{opacity:1;transform:translate(-50%,0)}

.ss6ma-modal[hidden]{display:none!important}
.ss6ma-modal{position:fixed;inset:0;z-index:999990;display:flex;align-items:center;justify-content:center;padding:18px}
.ss6ma-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.52)}
.ss6ma-modal-panel{position:relative;z-index:2;width:min(760px,100%);max-height:min(90vh,760px);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 25px 70px rgba(0,0,0,.25);display:grid;grid-template-columns:minmax(260px,42%) 1fr}
.ss6ma-modal-image-wrap{background:#f7f7f7;min-height:320px}
.ss6ma-modal-image-wrap img{display:block;width:100%;height:100%;min-height:320px;object-fit:cover}
.ss6ma-modal-body{padding:26px}
.ss6ma-modal-close{position:absolute;right:12px;top:12px;z-index:3;width:38px;height:38px;border:0!important;border-radius:50%!important;background:#fff!important;color:#222!important;font-size:25px!important;line-height:1!important;box-shadow:0 2px 10px rgba(0,0,0,.12)!important;cursor:pointer!important}
.ss6ma-modal-body h2{margin:8px 0 8px!important;font-size:26px!important;line-height:1.2!important}
.ss6ma-modal-price{margin:12px 0;font-size:21px}
.ss6ma-modal-price strong{color:#bd2026;margin-right:8px}
.ss6ma-modal-price del{color:#888;font-size:14px}
.ss6ma-modal-description{color:#555;line-height:1.65;margin:12px 0}
.ss6ma-modal-meta{display:flex;flex-wrap:wrap;gap:8px;color:#777;font-size:13px;margin:12px 0}
.ss6ma-modal-meta span{background:#f6f6f6;padding:7px 10px;border-radius:999px}
.ss6ma-modal-options{margin:12px 0}
.ss6ma-option-note{padding:10px 12px;background:#fff7f4;border:1px solid #f1ded8;border-radius:9px;font-size:13px;color:#666;margin-top:7px}
.ss6ma-modal-add{width:100%!important;border:0!important;border-radius:10px!important;background:#bd2026!important;color:#fff!important;padding:13px 18px!important;font-weight:700!important;font-size:16px!important;cursor:pointer!important}
.ss6ma-modal-add.is-added{background:#2f8f3b!important}
.ss6ma-modal-message{min-height:20px;margin-top:8px;font-size:13px;color:#2f8f3b}
body.ss6ma-modal-open{overflow:hidden}

@media(max-width:700px){
 .ss6ma-modal{padding:8px;align-items:flex-end}
 .ss6ma-modal-panel{grid-template-columns:1fr;width:100%;max-height:94vh;border-radius:18px 18px 0 0}
 .ss6ma-modal-image-wrap,.ss6ma-modal-image-wrap img{min-height:230px;height:230px}
 .ss6ma-modal-body{padding:20px}
 .ss6ma-modal-body h2{font-size:21px!important}
}
/* v2 mobile app header + checkout */
.ss6ma-app-header{background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:1000;margin-bottom:12px}.ss6ma-header-inner{max-width:1180px;margin:auto;min-height:68px;padding:8px 16px;display:flex;align-items:center;gap:20px}.ss6ma-brand{display:inline-block;background:#75100d;color:#fff!important;text-decoration:none!important;border:2px solid #d79b22;border-radius:18px;padding:7px 14px;font-style:italic;font-weight:800;line-height:.8;text-align:center}.ss6ma-location{border:0;background:transparent;font-size:14px;max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ss6ma-header-actions{margin-left:auto;display:flex;align-items:center;gap:16px}.ss6ma-header-actions a,.ss6ma-header-actions button{background:none;border:0;color:#222!important;text-decoration:none!important;font-weight:600}.ss6ma-header-cart{position:relative;font-size:20px}.ss6ma-header-cart-count{position:absolute;right:-10px;top:-9px;background:#bd2026;color:#fff;border-radius:20px;min-width:18px;height:18px;font-size:11px;text-align:center;line-height:18px}.ss6ma-menu-toggle{display:none}.ss6ma-mobile-menu{border-top:1px solid #eee;padding:12px 16px;gap:16px;flex-wrap:wrap}.ss6ma-mobile-menu a{color:#222!important;text-decoration:none!important}.ss6ma-checkout{display:block;margin-top:16px;text-align:center;padding:13px;border-radius:8px;background:#bd2026;color:#fff!important;text-decoration:none!important;font-weight:800}.ss6ma-checkout-page{max-width:720px;margin:30px auto;padding:20px}.ss6ma-checkout-form{display:grid;gap:12px;padding:20px;border:1px solid #eee;border-radius:16px;background:#fff}.ss6ma-checkout-form input,.ss6ma-checkout-form textarea{width:100%;padding:14px;border:1px solid #ddd;border-radius:9px}.ss6ma-checkout-form textarea{min-height:110px}.ss6ma-checkout-form button{border:0;border-radius:9px;background:#bd2026;color:#fff;padding:14px;font-weight:800}.ss6ma-checkout-message{font-weight:700;color:#2f8f3b}.ss6ma-cart-page{max-width:980px;margin:20px auto;padding:20px}
@media(max-width:767px){.ss6ma-app-header{position:sticky;top:0}.ss6ma-header-inner{min-height:58px;padding:6px 10px;gap:8px}.ss6ma-brand{font-size:12px;padding:6px 10px;border-radius:15px}.ss6ma-location{flex:1;min-width:0;text-align:left;font-size:12px}.ss6ma-search-toggle,.ss6ma-profile-link{display:none!important}.ss6ma-menu-toggle{display:block!important;background:#7a1713!important;color:#fff!important;border-radius:10px!important;width:40px;height:40px}.ss6ma-header-actions{gap:10px}.ss6ma-mobile-menu:not([hidden]){display:flex}.ss6ma-modal{padding:0;align-items:flex-end}.ss6ma-modal-panel{border-radius:18px 18px 0 0;max-height:92vh}.ss6ma-modal-image-wrap,.ss6ma-modal-image-wrap img{height:250px;min-height:250px}.ss6ma-modal-body{padding:16px;padding-bottom:20px}.ss6ma-modal-add{position:sticky;bottom:0;z-index:3}.ss6ma-cart-page{padding:10px;margin:0}.ss6ma-sticky-cart{left:0;right:0;bottom:0;border-radius:0;padding:10px 14px}.ss6ma-checkout-page{margin:0;padding:12px}.ss6ma-category-section{margin-top:0}.ss6ma-card{flex-basis:180px}}

/* v2.1 location + checkout */
.ss6ma-location-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:1150px;margin:0 auto 18px;padding:10px 14px;border:1px solid #eee;border-radius:12px;background:#fff}
.ss6ma-location-select{border:0;background:transparent;font:inherit;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:80%;text-align:left}
.ss6ma-header-cart{color:#222;text-decoration:none;font-weight:700;padding:7px 10px;border-radius:10px;background:#f7f7f7}
.ss6ma-header-cart-count{display:inline-flex;min-width:18px;height:18px;align-items:center;justify-content:center;background:#c92328;color:#fff;border-radius:50%;font-size:11px}
.ss6ma-use-location{background:#f3f3f3!important;color:#333!important;margin-bottom:8px}
@media(max-width:600px){.ss6ma-location-bar{margin:0 10px 12px;border-radius:10px}.ss6ma-location-select{font-size:13px}.ss6ma-header-cart{font-size:13px}}
