/* ============================================================
   GLOBAL STYLING
============================================================ */
*,
.crp-auth-wrapper *,
.crp-header *,
.crp-card *,
.crp-product-card *,
.crp-profile-container * {
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    background: #fafafa;
    margin: 0;
    padding: 0;
}

/* Remove input outline */
input {
    outline: none;
}

/* ============================================================
   AUTH WRAPPER (LOGIN + REGISTER)
============================================================ */
.crp-auth-wrapper {
    max-width: 420px;
    margin: 50px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
}

.crp-auth-logo {
    text-align: center;
    margin-bottom: 15px;
}

.crp-auth-logo img {
    width: 140px;          /* 👈 perfect size (not too big, not too small) */
    height: auto;
    object-fit: contain;
    display: inline-block;
    filter: drop-shadow(0px 3px 6px rgba(0,0,0,0.15)); /* optional premium look */
}

/* TABS */
.crp-auth-tabs {
    display: flex;
    margin-bottom: 20px;
}

.crp-auth-tab {
    flex: 1;
    padding: 10px;
    background: #000;
    font-size: 16px;
    text-align: center;
    border-radius: 6px;
    margin-right: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
}
.crp-auth-tab:last-child {
    margin-right: 0;
}

.crp-auth-tab.active {
    background: #ab853c;
    color: #fff;
}

/* INPUTS */
.crp-auth-box {
    display: none;
}
.crp-auth-box.active {
    display: block;
}

.crp-auth-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
}

/* BUTTONS */
.crp-btn-orange {
    width: 100%;
    padding: 12px;
    background: #ab853c;
    border: none;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.2s;
    font-size: 16px;
}

.crp-btn-orange:hover {
    background: #000;
}

/* Status messages */
#crp-login-status,
#crp-register-status {
    margin-top: 10px;
    font-size: 14px;
}

/* ============================================================
   HEADER (FLEX - translator near logout)
============================================================ */
.crp-header{
  background:#f8f5ee !important;
  padding:18px 30px !important;
  border-radius:0 0 12px 12px !important;
  color:#000 !important;

  display:flex !important;          /* ✅ grid removed */
  align-items:center !important;
  justify-content:space-between !important;
  gap:16px;
}

/* left */
.crp-header-title{
  display:flex;
  align-items:center;
}

/* logo (class is on img) */
.crp-header-logo{
  max-height:70px !important;
  width:auto !important;
  object-fit:contain !important;
  display:block !important;
}

/* right group */
.crp-header-right{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}

/* ✅ translator ko logout ke bilkul paas (right side) */
.crp-header-right .crp-header-translator{
  display:flex;
  align-items:center;
  margin-left:6px;   /* small gap before translator */
  margin-right:6px;  /* small gap after translator */
}

/* logout button */
.crp-logout-btn{
  background:transparent;
  border:1px solid #000 !important;
  padding:6px 14px;
  border-radius:6px;
  color:#000 !important;
  text-decoration:none;
  font-weight:600;
}
.crp-logout-btn:hover{
  background:#000 !important;
  color:#fff !important;
}

/* responsive */
@media (max-width:768px){
  .crp-header{
    flex-direction:column !important;
    text-align:center;
  }
  .crp-header-right{
    justify-content:center;
  }
}

/* ============================================================
   TOP CARDS
============================================================ */
.crp-card-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 18px !important;
    margin: 20px !important;
}

.crp-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);

    /* Center everything vertically */
    display: flex;
    flex-direction: column;
    justify-content: center;   /* vertical center */
    align-items: center;       /* horizontal center */

    height: 150px; /* force equal size for perfect centering */
}
.crp-card h3 {
    font-size: 18px;
    margin: 0 0 8px 0; /* bottom gap only */
    color: #444;
}

.crp-card-number {
    font-size: 34px;
    font-weight: 800;
    color: #ab853c;
    margin: 0; /* remove extra spacing */
}

/* ============================================================
   COUPON SECTION
============================================================ */
.crp-actions-box {
    background: #fff;
    padding: 22px;
    border-radius: 12px;
    margin: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.crp-actions-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.crp-coupon-row {
    display: flex;
    gap: 12px;
}

.crp-coupon-row input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.crp-btn-blue {
    padding: 12px 24px;
    background: #ab853c;
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}
.crp-btn-blue:hover {
    background: #000;
}

#crp-coupon-status {
    margin-top: 10px;
    font-size: 14px;
}

/* ============================================================
   PRODUCTS GRID
============================================================ */
h2 {
    margin: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #333;
}

.crp-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
    gap: 22px;
    padding: 20px;
}

.crp-product-card {
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: 0.25s;
}

.crp-product-card:hover {
    transform: translateY(-5px);
}

.crp-product-card img {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.crp-required-text {
    font-size: 14px;
    color: #777;
    margin-bottom: 10px;
}

.crp-btn-redeem {
    padding: 10px 22px;
    background: #ab853c;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
.crp-btn-redeem:hover {
    background: #000;
}

/* ============================================================
   PROFILE PAGE
============================================================ */
.crp-profile-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 25px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.08);
}

.crp-profile-container h2 {
    margin-bottom: 18px;
}

.crp-profile-container label {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.crp-profile-container input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 18px;
}

/* STATUS */
#crp-profile-status {
    margin-top: 12px;
    font-size: 15px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 768px) {

    .crp-header {
        flex-direction: column !important;
        text-align: center;
        gap: 12px;
    }

    .crp-header-translator {
        order: 2;
    }

    .crp-header-right {
        order: 3;
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .crp-card-row {
        grid-template-columns: 1fr !important;
    }

    .crp-product-grid {
        grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
    }

    .crp-coupon-row {
        flex-direction: column;
    }
}

