/* ============================================================
   GIFTTORA — customizer + mobile UI (Meesho-style bits)
   Brand colours from the logo: teal #1F6F8B, orange #E8622A, navy #1B3A5B
   ============================================================ */
:root{
  --gt-teal:#0E7C86; --gt-orange:#E8622A; --gt-navy:#1F2A33;
  --gt-blue:#2563eb;
}

/* ---------- STEP-1 SELECTOR (brand/model/cover) ---------- */
.cz-wrap{max-width:720px}
.cz-title{font-weight:800;margin:.6rem 0 1rem;color:var(--gt-navy)}
.cz-back{background:none;border:none;color:var(--gt-teal);font-weight:600;padding:.2rem 0;margin-bottom:.4rem}
.cz-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}
.cz-tile{background:#fff;border:1px solid #eee;border-radius:16px;box-shadow:0 4px 14px rgba(0,0,0,.05);
  padding:1rem .5rem;display:flex;flex-direction:column;align-items:center;gap:.4rem;min-height:104px;transition:.15s}
.cz-tile:active,.cz-tile:hover{transform:translateY(-2px);box-shadow:0 8px 22px rgba(0,0,0,.1)}
.cz-tile img{height:36px;object-fit:contain}
.cz-tile-txt{font-weight:800;font-size:1.1rem;color:var(--gt-navy)}
.cz-tile small{color:#555;font-size:.82rem}
.cz-search{width:100%;padding:.7rem 1rem;border:1px solid #ddd;border-radius:12px;margin-bottom:.8rem}
.cz-list{display:flex;flex-direction:column;gap:.55rem}
.cz-row{background:#f6f7f9;border:1px solid #eee;border-radius:12px;padding:1rem;text-align:center;
  font-weight:600;color:var(--gt-navy);transition:.12s}
.cz-row:active,.cz-row:hover{background:#eef1f5;border-color:var(--gt-teal)}
.cz-cover-list{display:flex;flex-direction:column;gap:.6rem}
.cz-cover-card{display:flex;align-items:center;gap:.8rem;background:#fff;border:1px solid #eee;border-radius:14px;
  padding:.7rem;text-decoration:none;color:var(--gt-navy);box-shadow:0 3px 12px rgba(0,0,0,.05)}
.cz-cover-thumb{width:52px;height:52px;border-radius:10px;background:#f2f2f2;display:flex;align-items:center;justify-content:center;overflow:hidden}
.cz-cover-thumb img{width:100%;height:100%;object-fit:cover}
.cz-cover-info{flex:1;display:flex;flex-direction:column}
.cz-cover-info .cz-price{color:var(--gt-orange);font-weight:800}
.cz-loading,.cz-empty{padding:1.4rem;text-align:center;color:#888}

/* ---------- EDITOR ---------- */
.ed-wrap{max-width:520px;margin:0 auto;padding-bottom:82px}
.ed-top{display:flex;justify-content:space-between;align-items:center;padding:.6rem .9rem;border-bottom:1px solid #eee}
.ed-top-info strong{display:block;color:var(--gt-navy)}
.ed-top-info span{font-size:.82rem;color:#666}
.ed-btn{border:none;border-radius:10px;padding:.5rem .9rem;font-weight:700;cursor:pointer;font-size:.9rem}
.ed-btn-ghost{background:#f1f3f5;color:#333}
.ed-btn-solid{background:var(--gt-blue);color:#fff}
.ed-tabs{display:flex;gap:.4rem;padding:.6rem .9rem}
.ed-tab{flex:1;background:#f1f3f5;border:none;border-radius:10px;padding:.55rem;font-weight:700;color:#555;font-size:.85rem}
.ed-tab.active{background:var(--gt-blue);color:#fff}
.ed-stage{padding:.4rem .9rem}
.ed-canvas-holder{position:relative;width:100%;display:flex;justify-content:center;overflow:visible;touch-action:pan-y}
.ed-canvas-holder canvas{touch-action:pan-y}
.ed-canvas-holder canvas{position:relative;z-index:2;border-radius:8px}
.ed-mockup-overlay{display:none} /* mockup ab canvas ke andar overlay-image hai */
.ed-canvas-holder{background:#eceff1;border-radius:10px}
/* PrintShoppy-style centered Select Photo pill (canvas ke beech me) */
.ed-select-photo{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:5;
  background:#2563eb;color:#fff;border:none;border-radius:9px;padding:10px 16px;
  font-weight:800;font-size:.82rem;line-height:1.15;text-align:center;cursor:pointer;
  box-shadow:0 3px 12px rgba(37,99,235,.4)}
.ed-select-photo:hover{background:#1d4ed8}
.ed-select-photo.d-none{display:none}
/* Change Photo button: photo aane par mockup ke upar, photo ke left me */
.ed-change-photo{position:absolute;top:12px;left:12px;z-index:6;
  background:#2563eb;color:#fff;border:none;border-radius:8px;padding:7px 12px;
  font-weight:700;font-size:.75rem;cursor:pointer;box-shadow:0 2px 8px rgba(37,99,235,.35);
  display:inline-flex;align-items:center;gap:5px}
.ed-change-photo:hover{background:#1d4ed8}
.ed-change-photo.d-none{display:none}
.ed-tip{font-size:.78rem;color:#777;text-align:center;margin:.5rem 0 0}
.ed-panels{padding:0 .9rem}
.ed-panel{display:none}.ed-panel.active{display:block}
.ed-file-btn{display:flex;align-items:center;justify-content:center;gap:.5rem;background:var(--gt-blue);color:#fff;
  border-radius:12px;padding:.75rem;font-weight:700;cursor:pointer;width:100%}
.ed-row-controls{display:flex;align-items:center;gap:.5rem;margin-top:.7rem;flex-wrap:wrap}
.ed-row-controls input[type=range]{flex:1;min-width:120px}
.ed-mini{width:44px;height:44px;border:1px solid #ddd;background:#fff;border-radius:10px;font-size:1.05rem;display:flex;align-items:center;justify-content:center}
.ed-mini.ed-danger{color:#dc3545;border-color:#f3c2c7}
.ed-text-add{display:flex;gap:.5rem}
.ed-text-add input{flex:1;padding:.6rem;border:1px solid #ddd;border-radius:10px}
.ed-select{padding:.55rem;border:1px solid #ddd;border-radius:10px}
.ed-color{width:44px;height:44px;border:1px solid #ddd;border-radius:10px;padding:2px}
.ed-tpl-cats{display:flex;gap:.4rem;overflow-x:auto;padding:.2rem 0 .5rem}
.ed-chip{white-space:nowrap;border:1px solid #ddd;background:#fff;border-radius:20px;padding:.35rem .9rem;font-size:.82rem}
.ed-chip.active{background:var(--gt-navy);color:#fff;border-color:var(--gt-navy)}
.ed-tpl-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;max-height:220px;overflow-y:auto}
.ed-tpl-thumb{width:100%;height:96px;object-fit:cover;border-radius:8px;cursor:pointer;border:1px solid #eee}
.ed-cta{position:fixed;left:0;right:0;bottom:0;padding:.6rem .9rem;background:#fff;box-shadow:0 -4px 14px rgba(0,0,0,.08);z-index:55}
.ed-cta-btn{width:100%;padding:.9rem;font-size:1rem}
.ed-spin{display:inline-block;width:16px;height:16px;border:2px solid #fff;border-top-color:transparent;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-2px}
@keyframes spin{to{transform:rotate(360deg)}}
/* preview modal */
.ed-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:60;display:flex;align-items:center;justify-content:center;padding:1rem}
.ed-modal-card{background:#fff;border-radius:16px;max-width:420px;width:100%;padding:1rem;position:relative}
.ed-modal-close{position:absolute;right:.6rem;top:.3rem;border:none;background:none;font-size:1.6rem;line-height:1}
.ed-preview-img img{width:100%;border-radius:12px;background:#f4f4f4}
.ed-preview-meta{display:flex;justify-content:space-between;align-items:center;margin:.7rem 0}
.ed-preview-price{color:var(--gt-orange);font-weight:800}
.ed-preview-price small{color:#2e7d32;font-weight:700;font-size:.72rem}
.ed-preview-actions{display:flex;gap:.6rem}
.ed-preview-actions .ed-btn{flex:1;padding:.8rem}

/* ============================================================
   MEESHO-STYLE MOBILE BOTTOM NAV  (requirement #3)
   ============================================================ */
.gt-bottom-nav{display:none}
@media(max-width:991px){
  .gt-bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:50;background:#fff;
    box-shadow:0 -2px 12px rgba(0,0,0,.08);border-top:1px solid #eee}
  .gt-bottom-nav a{flex:1;text-align:center;padding:.45rem 0;color:#777;text-decoration:none;font-size:.68rem;font-weight:600}
  .gt-bottom-nav a i{display:block;font-size:1.25rem;margin-bottom:1px}
  .gt-bottom-nav a.active{color:var(--gt-orange)}
  body{padding-bottom:60px}
  /* Preview button ko bottom-nav ke upar rakho */
  .ed-cta{bottom:58px}
  .ed-wrap{padding-bottom:130px}
}

/* ============================================================
   MEESHO-STYLE VERTICAL CATEGORIES PAGE (requirement #2)
   ============================================================ */
.gt-cat-layout{display:flex;min-height:70vh}
.gt-cat-rail{width:86px;flex:0 0 86px;background:#faf7f5;border-right:1px solid #eee;overflow-y:auto}
.gt-cat-rail button{width:100%;border:none;background:none;padding:.8rem .3rem;text-align:center;font-size:.72rem;
  font-weight:600;color:#555;border-left:3px solid transparent}
.gt-cat-rail button.active{background:#fff;color:var(--gt-orange);border-left-color:var(--gt-orange)}
.gt-cat-rail button img{width:42px;height:42px;object-fit:cover;border-radius:50%;display:block;margin:0 auto .25rem}
.gt-cat-panel{flex:1;padding:.8rem;overflow-y:auto}
.gt-cat-panel h6{font-weight:800;color:var(--gt-navy);margin:.4rem 0 .7rem}
.gt-sub-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem}
.gt-sub-grid a{text-decoration:none;color:#333;text-align:center;font-size:.76rem}
.gt-sub-grid a img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:12px;margin-bottom:.3rem}

/* ---------- product listing 1/2 column toggle (requirement #5) ---------- */
.gt-prod-grid{display:grid;gap:.7rem}
.gt-prod-grid.cols-1{grid-template-columns:1fr}
.gt-prod-grid.cols-2{grid-template-columns:repeat(2,1fr)}
.gt-prod-grid.cols-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:400px){.gt-prod-grid.cols-3{grid-template-columns:repeat(2,1fr)}}

/* ---------- whatsapp product button (requirement #6) ---------- */
.btn-whatsapp{background:#25D366;color:#fff!important}
.btn-whatsapp:hover{background:#1da851}

/* ============================================================
   PRINTSHOPPY-STYLE FLOW: cover-select + browse-designs + preview
   ============================================================ */
/* ---- model landing (cover-select.php) ---- */
.cs-wrap{padding:14px 0 90px}
.cs-title{font-family:'Rozha One',serif;text-align:center;font-size:1.5rem;margin:.4rem 0 0;color:var(--gt-navy)}
.cs-sub{text-align:center;color:#777;font-size:.9rem;margin:0 0 16px}
.cs-cards{display:flex;flex-direction:column;gap:16px;max-width:820px;margin:0 auto}
.cs-card{display:flex !important;flex-direction:row !important;gap:14px;background:#fff;border:1px solid #eee;border-radius:16px;overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.05);position:relative}
.cs-media{flex:0 0 44%;max-width:44%;position:relative;background:#f3f4f6;min-height:170px;display:flex;align-items:center;justify-content:center}
.cs-media video,.cs-media img{width:100%;height:100%;object-fit:cover}
.cs-noimg{font-size:2.4rem;color:#c7ccd1}
.cs-badge{position:absolute;top:10px;right:10px;background:#fff;border:1px solid var(--gt-teal);color:var(--gt-teal);font-size:.68rem;font-weight:800;padding:3px 10px;border-radius:999px;z-index:2}
.cs-info{flex:1;padding:14px 14px 14px 0;display:flex;flex-direction:column;justify-content:center;gap:4px}
.cs-cover-name{font-size:1.15rem;font-weight:800;color:var(--gt-teal);margin:0}
.cs-tagline{font-size:.82rem;color:#666}
.cs-price{font-size:1.05rem;color:var(--gt-navy);margin:2px 0 8px}
.cs-price b{color:var(--gt-orange);font-size:1.2rem}
.cs-browse{align-self:flex-start;background:var(--gt-orange);color:#fff;font-weight:800;font-size:.82rem;padding:9px 18px;border-radius:8px;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.cs-browse:hover{filter:brightness(1.05);color:#fff}
.cs-empty{text-align:center;padding:40px 0;color:#777}





@media(max-width:560px){
  /* MOBILE: desktop jaisa horizontal layout
     video LEFT + details RIGHT */
  .cs-card{
    flex-direction:row !important;
    align-items:stretch;
  }

  .cs-media{
    flex:0 0 44% !important;
    max-width:44% !important;
    width:44%;
    min-height:220px;
  }

  .cs-info{
    flex:1 1 auto;
    min-width:0;
    padding:14px 12px 14px 0;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  .cs-cover-name{
    font-size:1rem;
    line-height:1.15;
  }

  .cs-tagline{
    font-size:.76rem;
  }

  .cs-price{
    font-size:.9rem;
    margin:2px 0 7px;
  }

  .cs-price b{
    font-size:1.05rem;
  }

  .cs-browse{
    font-size:.7rem;
    padding:8px 10px;
    white-space:nowrap;
  }
}

/* Extra small phones */
@media(max-width:360px){
  .cs-media{
    flex-basis:42% !important;
    max-width:42% !important;
    width:42%;
    min-height:205px;
  }

  .cs-info{
    padding-right:10px;
  }

  .cs-cover-name{
    font-size:.92rem;
  }

  .cs-browse{
    font-size:.66rem;
    padding:7px 8px;
  }
}




/* ---- browse-designs.php ---- */
.bd-wrap{padding:14px 0 90px;max-width:900px;margin:0 auto}
.bd-title{font-family:'Rozha One',serif;font-size:1.3rem;text-align:center;color:var(--gt-navy);margin:.3rem 0 14px}
.bd-blank{display:flex;align-items:center;gap:12px;background:#fff;border:1.5px dashed var(--gt-teal);border-radius:14px;padding:14px;text-decoration:none;color:var(--gt-navy);margin-bottom:16px}
.bd-blank i:first-child{font-size:1.5rem;color:var(--gt-teal)}
.bd-blank span{display:flex;flex-direction:column}
.bd-blank small{color:#888;font-size:.76rem}
.bd-filters,.bd-cats{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:10px}
.bd-chip,.bd-cat{flex:0 0 auto;border:1px solid #ddd;background:#fff;color:#555;font-weight:700;font-size:.8rem;padding:7px 16px;border-radius:999px;cursor:pointer;white-space:nowrap}
.bd-chip.active{background:var(--gt-teal);border-color:var(--gt-teal);color:#fff}
.bd-cat.active{background:var(--gt-navy);border-color:var(--gt-navy);color:#fff}
.bd-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
@media(min-width:640px){.bd-grid{grid-template-columns:repeat(3,1fr)}}
.bd-card{background:#faf7f2;border-radius:14px;overflow:hidden;text-decoration:none;display:flex;flex-direction:column;box-shadow:0 3px 12px rgba(0,0,0,.06)}
.bd-thumb{aspect-ratio:9/16;background:#eee;display:flex;align-items:center;justify-content:center;overflow:hidden}
.bd-thumb img{width:100%;height:100%;object-fit:cover}
.bd-start{background:var(--gt-blue,#2563eb);color:#fff;font-weight:800;font-size:.82rem;text-align:center;padding:10px;display:flex;align-items:center;justify-content:center;gap:5px}

/* ---- preview progress + quality ---- */
.ed-preview-loading{padding:40px 20px;text-align:center}
.ed-prog{height:8px;background:#eee;border-radius:999px;overflow:hidden;margin-bottom:14px}
.ed-prog-bar{height:100%;width:0;background:linear-gradient(90deg,var(--gt-teal),var(--gt-orange));transition:width .18s ease}
.ed-prog-text{color:#666;font-size:.9rem;margin:0}
.ed-quality{background:#e8f7ee;border:1px solid #b5e6c6;color:#1a7f44;border-radius:10px;padding:9px 12px;font-size:.82rem;margin:10px 0;display:flex;align-items:center;gap:7px}
.ed-quality i{color:#1a9d52}
/* homepage subcategory grid (admin rows x cols) */
.gt-subcat-grid{display:grid;gap:12px}
.gt-subcat-cell{display:flex;flex-direction:column;align-items:center;gap:6px;text-decoration:none}
.gt-subcat-cell .ph{width:100%;aspect-ratio:1;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 3px 12px rgba(31,42,51,.08);display:flex;align-items:center;justify-content:center}
.gt-subcat-cell .ph img{width:100%;height:100%;object-fit:cover}
.gt-subcat-cell .nm{font-size:.78rem;font-weight:700;color:var(--gt-navy,#1F2A33);text-align:center;line-height:1.15}
@media(max-width:560px){.gt-subcat-grid{grid-template-columns:repeat(3,1fr) !important}}