/* AutoMart Premium Category V7.0
   Exact source-code integration of the approved 3D category reference.
   Scope: homepage category section only. */

.premium-category-section{
  padding:58px 0 46px;
  background:#fff;
}

.premium-category-shell.container{
  width:min(1540px,calc(100% - 48px));
  position:relative;
  overflow:hidden;
  padding:48px 38px 72px;
  border:1px solid rgba(15,143,85,.07);
  border-radius:32px;
  background:
    radial-gradient(circle at 94% 14%,rgba(19,164,101,.075) 0 90px,transparent 210px),
    radial-gradient(circle at 5% 88%,rgba(39,143,99,.035) 0 120px,transparent 310px),
    linear-gradient(180deg,#ffffff 0%,#fbfdfc 57%,#f5faf7 100%);
  box-shadow:
    0 24px 70px rgba(12,50,34,.065),
    inset 0 1px 0 rgba(255,255,255,.96);
}

.premium-category-shell:before,
.premium-category-shell:after{
  content:"";
  position:absolute;
  pointer-events:none;
  border-radius:50%;
}
.premium-category-shell:before{
  width:620px;height:620px;
  right:-365px;top:-405px;
  border:1px solid rgba(15,143,85,.05);
  box-shadow:0 0 0 34px rgba(15,143,85,.018),0 0 0 68px rgba(15,143,85,.012);
}
.premium-category-shell:after{
  width:650px;height:220px;
  right:-110px;bottom:-172px;
  border-top:3px solid rgba(15,143,85,.09);
  box-shadow:0 -11px 0 rgba(15,143,85,.022),0 -22px 0 rgba(15,143,85,.013);
  transform:rotate(-2deg);
}

.premium-category-head{
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:32px;
}

.premium-category-kicker{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:14px;
  color:#087445;
  font-size:12px;
  line-height:1;
  font-weight:700;
  letter-spacing:.31em;
  text-transform:uppercase;
}
.premium-category-kicker i{
  display:block;
  width:34px;
  height:2px;
  border-radius:99px;
  background:#0F8F55;
  box-shadow:0 0 12px rgba(15,143,85,.24);
}

.premium-category-copy h2{
  margin:0;
  color:#0B1220;
  font-size:52px;
  line-height:1.02;
  font-weight:800;
  letter-spacing:-.045em;
}
.premium-category-copy h2 span{color:#087445}
.premium-category-copy p{
  margin:9px 0 0;
  color:#7a8581;
  font-size:18px;
  line-height:1.45;
  font-weight:400;
}

.premium-category-view-all{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:13px;
  min-width:150px;
  height:64px;
  margin-top:18px;
  padding:0 24px;
  border:1px solid rgba(15,143,85,.16);
  border-radius:999px;
  color:#075E3A;
  background:rgba(247,252,249,.84);
  box-shadow:0 14px 32px rgba(15,143,85,.09),inset 0 1px 0 rgba(255,255,255,.9);
  backdrop-filter:blur(14px);
  font-size:16px;
  font-weight:700;
  transition:transform .2s ease,box-shadow .2s ease,background .2s ease;
}
.premium-category-view-all span{font-size:27px;line-height:1;transform:translateY(-1px)}
.premium-category-view-all:hover{
  color:#075E3A;
  background:#fff;
  transform:translateY(-2px);
  box-shadow:0 18px 38px rgba(15,143,85,.13),inset 0 1px 0 #fff;
}

.premium-category-grid{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns:repeat(9,minmax(0,1fr));
  gap:12px;
  margin-top:34px;
}

.premium-category-card{
  position:relative;
  min-width:0;
  height:292px;
  padding:16px 10px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  border:1px solid rgba(201,217,208,.72);
  border-radius:27px;
  color:#111827;
  background:
    linear-gradient(180deg,rgba(255,255,255,.95) 0%,rgba(252,254,253,.94) 65%,rgba(241,248,244,.96) 100%);
  box-shadow:
    0 15px 32px rgba(21,57,41,.075),
    0 2px 6px rgba(19,52,37,.025),
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 -1px 0 rgba(255,255,255,.65);
  overflow:hidden;
  isolation:isolate;
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.premium-category-card:before{
  content:"";
  position:absolute;
  z-index:-1;
  left:18%;right:18%;
  top:24px;
  height:145px;
  border-radius:50% 50% 47% 47%;
  background:linear-gradient(180deg,rgba(185,230,208,.56),rgba(229,245,237,.14));
  filter:blur(.15px);
  opacity:.74;
}
.premium-category-card:hover{
  color:#111827;
  transform:translateY(-6px);
  border-color:rgba(15,143,85,.22);
  box-shadow:
    0 24px 45px rgba(15,75,49,.13),
    0 6px 14px rgba(15,75,49,.05),
    inset 0 1px 0 #fff;
}

.premium-category-visual{
  width:100%;
  height:174px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border-radius:21px 21px 12px 12px;
}
.premium-category-visual img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
  filter:saturate(.98) contrast(1.01);
  transform:scale(1.035);
  transition:transform .3s ease;
}
.premium-category-card:hover .premium-category-visual img{transform:scale(1.075)}

.premium-category-card strong{
  display:block;
  margin-top:10px;
  color:#14201b;
  font-size:15px;
  line-height:1.2;
  font-weight:700;
  text-align:center;
  letter-spacing:-.015em;
}
.premium-category-arrow{
  width:37px;
  height:37px;
  margin-top:10px;
  display:grid;
  place-items:center;
  border:1px solid rgba(15,143,85,.10);
  border-radius:50%;
  color:#087445;
  background:#f1faf5;
  box-shadow:0 7px 17px rgba(15,143,85,.075),inset 0 1px 0 #fff;
  font-size:21px;
  line-height:1;
  font-weight:600;
  transition:background .2s ease,color .2s ease,transform .2s ease;
}
.premium-category-card:hover .premium-category-arrow{
  color:#fff;
  background:#0F8F55;
  transform:translateX(2px);
}

.premium-category-footer-mark{
  position:absolute;
  z-index:3;
  right:42px;
  bottom:23px;
  display:flex;
  align-items:center;
  gap:14px;
  color:#63746d;
  font-size:12px;
  line-height:1;
  font-weight:600;
  letter-spacing:.34em;
  text-transform:uppercase;
}
.premium-category-footer-mark i{
  width:38px;
  height:2px;
  border-radius:99px;
  background:#10a561;
}

@media(max-width:1180px){
  .premium-category-shell.container{width:min(100% - 28px,1220px);padding:40px 26px 64px}
  .premium-category-copy h2{font-size:44px}
  .premium-category-grid{
    display:flex;
    gap:13px;
    overflow-x:auto;
    overscroll-behavior-inline:contain;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
    padding:3px 2px 18px;
    margin-inline:-2px;
  }
  .premium-category-grid::-webkit-scrollbar{display:none}
  .premium-category-card{flex:0 0 158px;height:284px;scroll-snap-align:start}
}

@media(max-width:720px){
  .premium-category-section{padding:28px 0 26px}
  .premium-category-shell.container{
    width:calc(100% - 18px);
    padding:28px 15px 57px;
    border-radius:24px;
  }
  .premium-category-head{gap:12px;align-items:flex-start}
  .premium-category-kicker{font-size:12px;letter-spacing:.25em;gap:8px;margin-bottom:10px}
  .premium-category-kicker i{width:22px}
  .premium-category-copy h2{font-size:34px;line-height:1.02;letter-spacing:-.042em}
  .premium-category-copy p{font-size:13px;margin-top:7px}
  .premium-category-view-all{
    min-width:auto;height:43px;margin-top:3px;padding:0 13px;gap:7px;font-size:12px;
  }
  .premium-category-view-all span{font-size:20px}
  .premium-category-grid{margin-top:24px;gap:10px;padding-bottom:14px}
  .premium-category-card{flex-basis:151px;height:264px;padding:12px 8px 13px;border-radius:22px}
  .premium-category-card:before{top:18px;height:128px}
  .premium-category-visual{height:157px;border-radius:17px 17px 10px 10px}
  .premium-category-card strong{font-size:14px;margin-top:8px}
  .premium-category-arrow{width:34px;height:34px;margin-top:8px;font-size:19px}
  .premium-category-footer-mark{right:18px;bottom:20px;font-size:12px;letter-spacing:.25em;gap:9px}
  .premium-category-footer-mark i{width:25px}
}
