/* Flipkart-style UI Overrides */
:root {
  --fk-blue: #6366f1;
  --fk-blue-hover: #4f46e5;
  --fk-yellow: #ffe500;
  --fk-yellow-hover: #f1dc00;
  --fk-white: #ffffff;
  --fk-bg: #f1f3f6;
  --fk-text: #212121;
  --fk-text-muted: #878787;
  --fk-green: #388e3c;
  --fk-border: #e0e0e0;
  --fk-shadow: 0 1px 2px 0 rgba(0,0,0,.2);
  --fk-shadow-card: 0 2px 4px 0 rgba(0,0,0,.08);
}

body {
  background: var(--fk-bg) !important;
  color: var(--fk-text);
  font-family: 'Roboto', Arial, sans-serif !important;
}

/* ========== Flipkart Header ========== */
.fk-header {
  background: var(--fk-blue) !important;
  min-height: 56px;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.fk-header .container {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-top: 0;
  padding-bottom: 0;
}

.fk-logo {
  color: var(--fk-white) !important;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  margin-right: 24px;
}

.fk-logo:hover {
  color: var(--fk-white) !important;
  text-decoration: none !important;
}

.fk-logo span {
  color: var(--fk-yellow);
  font-style: italic;
  margin-left: 2px;
}

.fk-search-wrap {
  flex: 1;
  max-width: 564px;
  margin: 0 16px;
  position: relative;
}

.fk-search-input {
  width: 100%;
  height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.fk-search-input:focus {
  outline: none;
  box-shadow: 0 2px 4px rgba(0,0,0,.15);
}

.fk-header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.fk-header-link {
  color: var(--fk-white) !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
}

.fk-header-link:hover {
  color: var(--fk-white) !important;
  text-decoration: none !important;
  opacity: 0.9;
}

.fk-btn-login {
  background: var(--fk-white) !important;
  color: var(--fk-blue) !important;
  padding: 6px 40px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: 2px;
  text-decoration: none !important;
  display: inline-block;
}

.fk-btn-login:hover {
  background: #f0f0f0 !important;
  color: var(--fk-blue) !important;
  text-decoration: none !important;
}

.fk-cart-wrap {
    position: relative !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
  }

.fk-cart-wrap:hover {
  color: var(--fk-white);
  text-decoration: none !important;
}

.fk-cart-wrap .ti-bag, .fk-cart-wrap .fa-shopping-cart {
  font-size: 20px;
}

/* ========== Category strip below header ========== */
.fk-nav-strip {
  background: var(--fk-white);
  box-shadow: var(--fk-shadow);
  padding: 12px 0;
  margin-bottom: 16px;
}

.fk-nav-strip .nav-link {
  color: var(--fk-text) !important;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px !important;
  text-decoration: none !important;
}

.fk-nav-strip .nav-link:hover {
  color: var(--fk-blue) !important;
}

/* ========== Main content area ========== */
.fk-main {
  background: var(--fk-bg);
  min-height: calc(100vh - 56px);
  padding: 20px 0 40px;
}

.fk-page-title {
  font-size: 24px;
  font-weight: 500;
  color: var(--fk-text);
  margin-bottom: 20px;
  background: var(--fk-white);
  padding: 16px 20px;
  border-radius: 2px;
  box-shadow: var(--fk-shadow-card);
}

/* ========== Flipkart-style product card ========== */
.fk-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.fk-product-card {
  background: var(--fk-white);
  border-radius: 2px;
  box-shadow: var(--fk-shadow-card);
  padding: 16px;
  transition: box-shadow 0.2s;
  text-decoration: none !important;
  color: inherit;
  display: block;
  height: 100%;
}

.fk-product-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  text-decoration: none !important;
  color: inherit;
}

.fk-product-card .img-wrap {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  background: #fff;
}

.fk-product-card .img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fk-product-card .title {
  font-size: 14px;
  font-weight: 500;
  color: var(--fk-text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.fk-product-card .price {
  font-size: 18px;
  font-weight: 600;
  color: var(--fk-text);
}

.fk-product-card .price .rupee {
  font-size: 14px;
  font-weight: 500;
}

.fk-product-card .unit {
  font-size: 12px;
  color: var(--fk-text-muted);
  font-weight: 400;
}

.fk-product-card .add-cart-btn {
  width: 100%;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--fk-yellow);
  color: var(--fk-text);
  border: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.fk-product-card .add-cart-btn:hover {
  background: var(--fk-yellow-hover);
  color: var(--fk-text);
}

.fk-product-card-wrapper {
  display: flex;
  flex-direction: column;
}

.fk-product-card-wrapper .fk-product-card {
  flex: 1;
}

/* ========== Sidebar categories (Flipkart style) ========== */
.fk-sidebar {
  background: var(--fk-white);
  border-radius: 2px;
  box-shadow: var(--fk-shadow-card);
  padding: 16px;
  margin-bottom: 20px;
}

.fk-sidebar .head {
  font-size: 16px;
  font-weight: 600;
  color: var(--fk-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--fk-border);
}

.fk-sidebar .main-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fk-sidebar .main-nav-list {
  margin: 0;
  border: none;
}

.fk-sidebar .main-nav-list a {
  display: block;
  padding: 10px 0;
  color: var(--fk-text) !important;
  font-size: 14px;
  text-decoration: none !important;
  border-bottom: 1px solid #f0f0f0;
}

.fk-sidebar .main-nav-list a:hover {
  color: var(--fk-blue) !important;
}

.fk-sidebar .main-nav-list a .lnr {
  margin-right: 8px;
  font-size: 12px;
}

/* ========== Filter bar ========== */
.fk-filter-bar {
  background: var(--fk-white);
  padding: 12px 16px;
  margin-bottom: 16px;
  border-radius: 2px;
  box-shadow: var(--fk-shadow-card);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.fk-filter-bar select {
  padding: 6px 12px;
  border: 1px solid var(--fk-border);
  border-radius: 2px;
  font-size: 14px;
  background: var(--fk-white);
}

/* ========== Product detail page ========== */
.fk-product-detail {
  background: var(--fk-white);
  border-radius: 2px;
  box-shadow: var(--fk-shadow-card);
  padding: 24px;
  margin-bottom: 20px;
}

.fk-product-detail .s_product_text h3 {
  font-size: 22px;
  font-weight: 500;
  color: var(--fk-text);
  margin-bottom: 12px;
}

.fk-product-detail .s_product_text h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--fk-text);
  margin-bottom: 16px;
}

.fk-product-detail .primary-btn {
  background: #ff9d00d7;
  /* color: var(--fk-text) !important; */
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 16px;
  border-radius: 2px;
}

/* .fk-product-detail .primary-btn:hover {
  background: var(--fk-yellow-hover) !important;
  color: var(--fk-text) !important;
} */

/* ========== Cart page ========== */
.fk-cart-card {
  background: var(--fk-white);
  border-radius: 2px;
  box-shadow: var(--fk-shadow-card);
  padding: 24px;
  margin-bottom: 20px;
}

.fk-cart-card .table {
  margin-bottom: 0;
}

.fk-cart-card .table th {
  border-top: none;
  font-weight: 600;
  color: var(--fk-text);
  padding: 12px;
}

.fk-cart-card .table td {
  padding: 16px 12px;
  vertical-align: middle;
}

.fk-cart-card .primary-btn {
  background: var(--fk-blue) !important;
  color: var(--fk-white) !important;
  border: none;
  padding: 4px 24px;
  font-weight: 600;
  border-radius: 2px;
}

.fk-cart-card .gray_btn {
  background: var(--fk-white);
  color: var(--fk-text);
  border: 1px solid var(--fk-border);
  padding: 10px 24px;
  margin-right: 12px;
  border-radius: 2px;
  text-decoration: none;
}

.fk-cart-card .gray_btn:hover {
  background: #f5f5f5;
  color: var(--fk-text);
  text-decoration: none;
}

/* ========== Login / Auth ========== */
.fk-login-box {
  background: var(--fk-white);
  border-radius: 2px;
  box-shadow: var(--fk-shadow-card);
  padding: 40px;
  max-width: 420px;
  margin: 40px auto;
}

.fk-login-box h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--fk-text);
  margin-bottom: 24px;
}

.fk-login-box .form-control {
  border: 1px solid var(--fk-border);
  border-radius: 2px;
  padding: 12px 16px;
  font-size: 14px;
}

.fk-login-box .btn-primary {
  background: var(--fk-blue) !important;
  border: none;
  padding: 12px 24px;
  font-weight: 600;
  width: 100%;
  border-radius: 2px;
}

/* ========== Footer ========== */
.fk-footer {
  background: var(--fk-white);
  border-top: 1px solid var(--fk-border);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.fk-footer .single-footer-widget h6 {
  font-size: 14px;
  font-weight: 600;
  color: var(--fk-text);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fk-footer .single-footer-widget p {
  font-size: 13px;
  color: var(--fk-text-muted);
  line-height: 1.6;
}

.fk-footer .footer-bottom {
  border-top: 1px solid var(--fk-border);
  padding-top: 24px;
  margin-top: 24px;
}

.fk-footer .footer-text {
  font-size: 12px;
  color: var(--fk-text-muted);
}

/* ========== Breadcrumb / Banner - minimal ========== */
.banner-area.organic-breadcrumb {
  min-height: 0;
  padding: 0;
  background: transparent !important;
}

/* ========== Alerts ========== */
.alert-success {
  background: #e8f5e9;
  color: var(--fk-green);
  border: none;
  border-radius: 2px;
}

/* ========== Remove old template background from layout ========== */
body .container {
  max-width: 1280px;
}

@media (max-width: 768px) {
  .fk-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .fk-product-card .img-wrap {
    height: 140px;
  }
  .fk-header .container {
    flex-wrap: wrap;
  }
  .fk-search-wrap {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0;
  }
  .fk-header {
    background: #5f64e7;
}

/* Mobile fixes */
@media (max-width: 991px) {

    .fk-header .navbar-collapse {
        background: #5f64e7;
        padding: 12px;
        margin-top: 10px;
        border-radius: 6px;
    }

    .fk-header-right a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,.2);
    }

    .fk-header-right a:last-child {
        border-bottom: none;
    }

    .fk-search-wrap input {
        width: 100%;
    }
  }

  .flipkart-add-cart {
    background-color: #ff9f00;   /* Flipkart yellow */
    color: #000;
    border: none !important;     /* removes border */
    outline: none;               /* removes focus outline */
    box-shadow: none;            /* removes shadow */
    padding: 14px 20px;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.flipkart-add-cart:hover {
    background-color: #f79400;
}

.flipkart-add-cart:focus,
.flipkart-add-cart:active {
    outline: none;
    box-shadow: none;
  }
  

/* 🔴 ROUND CART COUNT BADGE */
.fk-cart-count {
    position: absolute !important;
    top: -6px;
    right: -12px;
    background-color: #ff3f6c;
    color: #ffffff;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }

  
}

/* ==============================
   MOBILE RESPONSIVE FIX (CSS ONLY)
   ============================== */
@media (max-width: 768px) {

    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
    }

    /* Header container stack */
    .fk-header .container {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Logo center */
    .fk-logo {
        font-size: 18px;
        text-align: center;
        margin-bottom: 6px;
    }

    /* Search bar full width */
    .fk-search-wrap {
        width: 100% !important;
        margin: 8px 0 !important;
    }

    .fk-search-wrap form {
        width: 100%;
    }

    .fk-search-input {
        width: 100%;
        font-size: 14px;
    }

    /* Login + Cart row */
    .fk-header-right {
        width: 100%;
        display: flex !important;
        justify-content: space-between !important;
        margin-top: 6px;
    }

    .fk-btn-login {
        padding: 6px 12px;
        font-size: 14px;
    }

    /* Cart icon fix */
    .fk-cart-wrap {
        position: relative;
        font-size: 14px;
    }

    /* Cart badge fix */
    .fk-cart-count {
        position: absolute !important;
        top: -6px !important;
        right: -8px !important;
        width: 16px !important;
        height: 16px !important;
        font-size: 10px !important;
        line-height: 16px !important;
    }

    /* Category strip scroll */
    .fk-nav-strip {
        overflow-x: auto !important;
        white-space: nowrap !important;
    }

    .fk-nav-strip a {
        display: inline-block;
        font-size: 14px;
        padding: 8px 10px;
    }
}

/* ==============================
   MOBILE PRODUCT GRID FIX
   ============================== */
@media (max-width: 768px) {

    /* Product grid spacing */
    .fk-product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Card wrapper */
    .fk-product-card-wrapper {
        width: 100% !important;
    }

    /* Image scaling */
    .fk-product-card .img-wrap img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Product title */
    .fk-product-card .title {
        font-size: 14px;
        line-height: 1.3;
        min-height: 36px;
    }

    /* Price text */
    .fk-product-card .price {
        font-size: 14px;
    }

    /* 🔥 BUTTON FIX (KEY PART) */
    .fk-product-card-wrapper form button {
        width: 100% !important;   /* overrides inline 220px */
        max-width: 100%;
        height: 38px;
        font-size: 13px;
        border-radius: 4px;
    }

    /* Cart icon spacing */
    .fk-product-card-wrapper .cart-icon {
        margin-right: 6px;
    }
}

@media (max-width: 991px) {
    #navbarSupportedContent {
        width: 100%;
        background: #5f63f2;
        padding: 10px 15px;
        margin-top: 10px;
        border-radius: 4px;
    }

    .fk-header-link,
    .fk-btn-login,
    .fk-cart-wrap {
        display: block;
        padding: 8px 0;
        color: #fff !important;
    }
  }

@media (max-width: 991px) {

    .fk-header .fk-btn-login {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;

        visibility: visible !important;
        opacity: 1 !important;

        color: #5f63f2 !important;
        background-color: #ffffff !important;

        padding: 8px 14px !important;
        font-size: 14px !important;
        font-weight: 600 !important;

        min-height: 36px !important;
        min-width: 60px !important;

        border-radius: 4px !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        z-index: 99999 !important;
    }

  }

  .success-container {
            max-width: 900px;
            margin: 40px auto;
            background: #fff;
            border-radius: 4px;
            padding: 30px;
        }

        .success-header {
            display: flex;
            align-items: center;
            border-bottom: 1px solid #e0e0e0;
            padding-bottom: 20px;
        }

        .success-icon {
            width: 50px;
            height: 50px;
            background: #2ecc71;
            border-radius: 50%;
            color: #fff;
            font-size: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
        }

        .danger-icon {
            width: 50px;
            height: 50px;
            background: hwb(7 1% 5%);
            border-radius: 50%;
            color: #fff;
            font-size: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 15px;
        }

        .success-title h2 {
            margin: 0;
            color: #212121;
        }

        .success-title p {
            margin: 5px 0 0;
            color: #878787;
            font-size: 14px;
        }

        .order-box {
            display: flex;
            justify-content: space-between;
            padding: 25px 0;
            border-bottom: 1px solid #e0e0e0;
        }

        .order-box div {
            font-size: 14px;
            color: #212121;
        }

        .order-box span {
            display: block;
            color: #878787;
            font-size: 13px;
            margin-bottom: 5px;
        }

        .actions {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }


        .btn-outline {
            border: 1px solid #2874f0;
            color: #2874f0;
            background: #fff;
        }

        @media(max-width: 600px) {
            .order-box {
                flex-direction: column;
                gap: 15px;
            }
        }
.fk-wait-wrapper {
    background: #fff;
    max-width: 420px;
    margin: 80px auto;
    padding: 32px 24px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    font-family: system-ui, -apple-system, BlinkMacSystemFont;
  }

.fk-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e0e0e0;
    border-top: 4px solid #2874f0; /* Flipkart blue */
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: fk-spin 1s linear infinite;
  }

@keyframes fk-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

.fk-wait-wrapper h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212121;
  }

.fk-wait-wrapper p {
    margin: 8px 0 0;
    font-size: 14px;
    color: #757575;
  }

.fk-hint {
    margin-top: 18px;
    font-size: 12px;
    color: #9e9e9e;
  }

 .cursorptr {
    cursor: pointer;
  }
