:root{
  --red:#e31e24;
  --bg:#050505;
  --bg2:#0f0f0f;
  --gray:#b0b0b0;
  --white:#fff;
  --t:all .25s ease;
}

body{margin:0;background:#f4f4f4;font-family:Inter,system-ui,sans-serif}

/* ===============================
   FOOTER WRAP
=============================== */
.premium-footer{
  background:var(--bg);
  color:var(--white);
  border-top:2px solid var(--red);
}

.footer-container{
  width:min(100%, var(--apex-page-max-width, 1460px));
  max-width:var(--apex-page-max-width, 1460px);
  margin:0 auto;
  padding-inline:var(--apex-page-gutter, clamp(14px, 2.2vw, 34px));
}

.footer-main{
  padding:70px 0 50px;
}

/* ===============================
   GRID
=============================== */
.footer-grid{
  display:grid;
  grid-template-columns:1fr 1fr .8fr 1.2fr;
  gap:34px;
  align-items:start;
}

/* ===============================
   UNIFIED COLUMN HEADERS
   (THIS FIXES YOUR ALIGNMENT)
=============================== */
.footer-head{
  position:relative;
  min-height:52px;            /* same header height for all columns */
  display:flex;
  align-items:flex-end;       /* align titles/logo to the same baseline */
  padding-bottom:12px;
  margin-bottom:26px;
}

.footer-head::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:34px;
  height:2px;
  background:var(--red);
}

/* title text */
.footer-title{
  margin:0;
  font-size:1rem;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
}

/* logo inside header */
.footer-logo{
  height:30px;                /* KEY: keep logo same optical weight as title */
  width:auto;
  display:block;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.65));
}

/* small tagline under logo */
.footer-tagline{
  margin:-8px 0 20px;
  font-size:13px;
  color:var(--gray);
  letter-spacing:.25px;
}

/* ===============================
   CONTACT
=============================== */
.contact-box p{
  margin:0 0 12px;
  font-size:14px;
  color:var(--gray);
  display:flex;
  align-items:center;
  gap:12px;
}

.contact-box i{
  color:var(--red);
  width:16px;
}

.contact-box a{
  color:inherit;
  text-decoration:none;
  transition:var(--t);
}
.contact-box a:hover{color:var(--white)}

/* ===============================
   SERVICES
=============================== */
.feature-item{
  display:flex;
  gap:14px;
  margin-bottom:14px;
  padding:14px 14px;
  background:linear-gradient(180deg,#0f0f0f,#090909);
  border-radius:12px;
  border:1px solid #1a1a1a;
  transition:var(--t);
}

.feature-item:hover{
  border-color:var(--red);
  transform:translateY(-3px);
  box-shadow:0 14px 32px rgba(0,0,0,.35);
}

.feature-item i{
  color:var(--red);
  font-size:1.2rem;
  margin-top:2px;
}

.feature-item h5{
  margin:0;
  font-size:14px;
  font-weight:800;
}

.feature-item p{
  margin:4px 0 0;
  font-size:12px;
  color:var(--gray);
}

/* ===============================
   LINKS
=============================== */
.footer-links{list-style:none;padding:0;margin:0}
.footer-links li{margin-bottom:12px}

.footer-links a{
  color:var(--gray);
  text-decoration:none;
  font-size:14px;
  transition:var(--t);
}
.footer-links a:hover{
  color:var(--red);
  padding-left:6px;
}

/* ===============================
   MAP
=============================== */
.map-wrapper{
  border-radius:14px;
  overflow:hidden;
  border:1px solid #222;
  height:210px;
  filter:grayscale(1) invert(.9) contrast(1.2);
  transition:var(--t);
  background:#000;
}
.map-wrapper:hover{
  filter:grayscale(0) invert(0) contrast(1);
}

/* ===============================
   BOTTOM BAR
=============================== */
.footer-bottom{
  background:#000;
  padding:24px 0;
  border-top:1px solid #111;
}

.bottom-flex{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  font-size:13px;
  color:#666;
}

.developer a{
  color:var(--white);
  text-decoration:none;
  font-weight:800;
  border:1px solid #222;
  padding:6px 16px;
  border-radius:999px;
  transition:var(--t);
}
.developer a:hover{
  background:var(--red);
  border-color:var(--red);
}

/* ===============================
   RESPONSIVE
=============================== */
@media(max-width:1200px){
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:768px){
  .footer-grid{grid-template-columns:1fr;text-align:center}

  .footer-head{justify-content:center}
  .footer-head::after{left:50%;transform:translateX(-50%)}

  .contact-box p{justify-content:center}
  .feature-item{justify-content:center;text-align:left}
  .bottom-flex{flex-direction:column}
}

/* ===============================
   ADD TO CART TOAST
================================ */

.apex-cart-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;

  width: 320px;
  padding: 16px 16px 18px;

  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);

  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;

  transition: all .25s ease;
}

.apex-cart-toast.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Close */
.apex-cart-toast-close {
  position: absolute;
  top: 8px;
  right: 10px;

  background: none;
  border: none;

  font-size: 20px;
  font-weight: 700;
  color: #999;
  cursor: pointer;
}

.apex-cart-toast-close:hover {
  color: #dc2626;
}

/* Content */
.apex-cart-toast-content strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
  color: #111;
}

/* Actions */
.apex-cart-toast-actions {
  display: flex;
  gap: 10px;
}

/* Buttons */
.toast-btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 10px;

  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

/* View cart */
.toast-btn.outline {
  border: 2px solid #dc2626;
  color: #dc2626;
  background: #fff;
}

/* Checkout */
.toast-btn.primary {
  background: #dc2626;
  color: #fff;
}

/* Mobile */
@media (max-width: 480px) {
  .apex-cart-toast {
    left: 12px;
    right: 12px;
    width: auto;
  }
}
