/*
Theme Name: Friends Gallery Reseller
Theme URI: https://reseller.friendsgallery.shop
Author: Friends Gallery
Description: Custom Reseller & Dropshipping Platform theme for Friends Gallery
Version: 1.0
Text Domain: fg-reseller
*/

:root{
  --fg-dark: #14352C;
  --fg-dark-2: #1d4a3c;
  --fg-gold: #D4AF37;
  --fg-gold-light: #F5D67A;
  --fg-gold-gradient: linear-gradient(90deg, #D4AF37 0%, #F5D67A 100%);
  --fg-bg: #FBF8F0;
  --fg-cream: #FFF6E0;
  --fg-text: #222222;
  --fg-muted: #6b7c76;
  --fg-radius: 14px;
  --fg-shadow: 0 8px 24px rgba(20,53,44,0.08);
}

*{box-sizing:border-box;margin:0;padding:0;}

body{
  font-family: 'Hind Siliguri', 'Noto Sans Bengali', Arial, sans-serif;
  background: var(--fg-bg);
  color: var(--fg-text);
  line-height: 1.6;
}

a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}
ul{list-style:none;}

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 28px;
  border-radius:50px;
  font-weight:700;
  font-size:15px;
  border:none;
  cursor:pointer;
  transition: all .25s ease;
}
.btn-gold{
  background: var(--fg-gold-gradient);
  color: var(--fg-dark);
  box-shadow: 0 6px 16px rgba(212,175,55,0.35);
}
.btn-gold:hover{ transform: translateY(-2px); box-shadow: 0 10px 22px rgba(212,175,55,0.45); }
.btn-outline{
  background: transparent;
  border: 2px solid var(--fg-gold);
  color: var(--fg-gold);
}
.btn-outline:hover{ background: var(--fg-gold); color: var(--fg-dark); }
.btn-dark{
  background: var(--fg-dark);
  color: #fff;
}
.btn-dark:hover{ background: var(--fg-dark-2); }

/* ===== Header ===== */
.site-header{
  background: var(--fg-dark);
  position: sticky;
  top:0;
  z-index: 999;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}
.site-logo{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:22px;
  color:#fff;
}
.site-logo .logo-icon{
  width:42px;height:42px;
  background: var(--fg-gold-gradient);
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color: var(--fg-dark);
  font-size:20px;
}
.site-logo span.accent{ color: var(--fg-gold); }
.site-logo small{
  display:block;
  font-size:11px;
  font-weight:400;
  color: rgba(255,255,255,0.6);
  letter-spacing:1px;
}

.nav-links{
  display:flex;
  gap:32px;
}
.nav-links a{
  color:#fff;
  font-weight:600;
  font-size:15px;
  opacity:0.85;
  transition:.2s;
  position:relative;
}
.nav-links a:hover, .nav-links a.active{
  color: var(--fg-gold);
  opacity:1;
}

.header-buttons{ display:flex; gap:12px; align-items:center; }
.hamburger{
  display:none;
  background:none;border:none;color:#fff;font-size:26px;cursor:pointer;
}

/* ===== Hero ===== */
.hero{
  background: linear-gradient(135deg, var(--fg-cream) 0%, #FBE9C8 100%);
  padding: 70px 0;
  overflow:hidden;
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:50px;
  align-items:center;
}
.hero-tag{
  display:inline-block;
  background: rgba(20,53,44,0.08);
  color: var(--fg-dark);
  padding:6px 16px;
  border-radius:50px;
  font-size:13px;
  font-weight:700;
  margin-bottom:18px;
}
.hero h1{
  font-size:42px;
  font-weight:800;
  line-height:1.3;
  color: var(--fg-dark);
  margin-bottom:18px;
}
.hero h1 .gold{
  color: var(--fg-gold);
  background: var(--fg-gold-gradient);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.hero p{
  font-size:16px;
  color: var(--fg-muted);
  margin-bottom:30px;
  max-width:520px;
}
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero-image{ position:relative; }

/* ===== Stats Bar ===== */
.stats{
  background: var(--fg-cream);
  padding: 0 0 70px;
}
.stats-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:20px;
}
.stat-card{
  background:#fff;
  border-radius: var(--fg-radius);
  padding:28px 20px;
  text-align:center;
  box-shadow: var(--fg-shadow);
  border-bottom: 4px solid var(--fg-gold);
}
.stat-card .num{
  font-size:30px;
  font-weight:800;
  color: var(--fg-dark);
  margin-bottom:6px;
}
.stat-card .label{
  font-size:14px;
  color: var(--fg-muted);
  font-weight:600;
}

/* ===== About ===== */
.about{ padding:70px 0; background:#fff; }
.about-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:50px;
  align-items:center;
}
.section-title{
  font-size:30px;
  font-weight:800;
  color: var(--fg-dark);
  margin-bottom:18px;
  position:relative;
  padding-bottom:14px;
}
.section-title::after{
  content:"";
  position:absolute;
  left:0;bottom:0;
  width:60px;height:4px;
  background: var(--fg-gold-gradient);
  border-radius:4px;
}
.about p{ color: var(--fg-muted); margin-bottom:14px; }
.about-media{
  position:relative;
  border-radius: var(--fg-radius);
  overflow:hidden;
  box-shadow: var(--fg-shadow);
}
.about-media img{ width:100%; height:100%; object-fit:cover; }
.play-btn{
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%);
  width:64px;height:64px;
  background: var(--fg-gold-gradient);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color: var(--fg-dark);
  font-size:24px;
  box-shadow:0 8px 20px rgba(212,175,55,0.5);
  cursor:pointer;
}

/* ===== Services ===== */
.services{ padding:70px 0; background: var(--fg-cream); text-align:center; }
.services .section-title{ display:inline-block; }
.services .section-title::after{ left:50%; transform:translateX(-50%); }
.services-sub{ color: var(--fg-muted); max-width:600px; margin: 0 auto 40px; }
.services-grid{
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:24px;
  text-align:left;
}
.service-card{
  background:#fff;
  border-radius: var(--fg-radius);
  padding:28px 22px;
  box-shadow: var(--fg-shadow);
  transition:.25s;
}
.service-card:hover{ transform: translateY(-6px); }
.service-icon{
  width:52px;height:52px;
  border-radius:12px;
  background: rgba(212,175,55,0.12);
  color: var(--fg-gold);
  display:flex;align-items:center;justify-content:center;
  font-size:24px;
  margin-bottom:16px;
}
.service-card h3{ color: var(--fg-dark); font-size:18px; margin-bottom:8px; }
.service-card p{ color: var(--fg-muted); font-size:14px; }

/* ===== CTA ===== */
.cta{
  background: var(--fg-dark);
  padding:60px 0;
  text-align:center;
  color:#fff;
}
.cta h2{ font-size:30px; font-weight:800; margin-bottom:14px; }
.cta .gold{ color: var(--fg-gold); }
.cta p{ color: rgba(255,255,255,0.7); margin-bottom:28px; }

/* ===== Footer ===== */
.site-footer{
  background: var(--fg-dark);
  color: rgba(255,255,255,0.85);
  padding-top:60px;
}
.footer-grid{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap:40px;
  padding-bottom:40px;
  border-bottom:1px solid rgba(255,255,255,0.1);
}
.footer-logo{
  display:flex;align-items:center;gap:10px;
  font-weight:800;font-size:20px;color:#fff;margin-bottom:14px;
}
.footer-logo .logo-icon{
  width:38px;height:38px;
  background: var(--fg-gold-gradient);
  border-radius:10px;
  display:flex;align-items:center;justify-content:center;
  color: var(--fg-dark);
}
.site-footer h4{ color: var(--fg-gold); margin-bottom:16px; font-size:16px; }
.site-footer ul li{ margin-bottom:10px; font-size:14px; }
.site-footer ul li a:hover{ color: var(--fg-gold); }
.footer-bottom{
  text-align:center;
  padding:20px 0;
  font-size:13px;
  color: rgba(255,255,255,0.5);
}

/* ===== Login / Register Page ===== */
.auth-wrap{
  padding:70px 0;
  background: var(--fg-bg);
}
.auth-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:50px;
  align-items:center;
}
.auth-form-box{
  background:#fff;
  border-radius: var(--fg-radius);
  padding:40px;
  box-shadow: var(--fg-shadow);
  max-width:460px;
}
.auth-form-box h2{
  color: var(--fg-gold);
  font-size:26px;
  font-weight:800;
  margin-bottom:24px;
  text-align:center;
}
.form-group{ margin-bottom:18px; }
.form-group label{
  display:block;
  font-size:14px;
  font-weight:600;
  color: var(--fg-dark);
  margin-bottom:6px;
}
.form-group input, .form-group select{
  width:100%;
  padding:13px 16px;
  border-radius:10px;
  border:1px solid #e3e3e3;
  background: var(--fg-bg);
  font-size:15px;
  outline:none;
  transition:.2s;
}
.form-group input:focus, .form-group select:focus{
  border-color: var(--fg-gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.auth-form-box .btn{ width:100%; padding:14px; font-size:16px; }
.auth-links{
  display:flex;
  justify-content:space-between;
  margin-top:16px;
  font-size:14px;
}
.auth-links a{ color: var(--fg-dark); font-weight:600; }
.auth-links a:hover{ color: var(--fg-gold); }
.auth-error{
  background:#fdeaea;
  color:#c0392b;
  padding:10px 14px;
  border-radius:8px;
  font-size:14px;
  margin-bottom:16px;
}
.auth-success{
  background:#e8f7ee;
  color:#1e7e44;
  padding:10px 14px;
  border-radius:8px;
  font-size:14px;
  margin-bottom:16px;
}

/* ===== Dashboard Layout ===== */
.dash-wrap{ display:flex; min-height: calc(100vh - 0px); background: var(--fg-bg); }
.dash-sidebar{
  width:260px;
  background: var(--fg-dark);
  color:#fff;
  flex-shrink:0;
  padding:20px 0;
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
}
.dash-sidebar .dash-logo{
  display:flex;align-items:center;gap:10px;
  padding: 10px 22px 24px;
  font-weight:800;font-size:18px;
  border-bottom:1px solid rgba(255,255,255,0.08);
  margin-bottom:14px;
}
.dash-sidebar .dash-logo .logo-icon{
  width:36px;height:36px;border-radius:9px;
  background: var(--fg-gold-gradient);
  display:flex;align-items:center;justify-content:center;
  color: var(--fg-dark);
}
.dash-nav a{
  display:flex;align-items:center;gap:12px;
  padding:12px 22px;
  font-size:14px;
  font-weight:600;
  color: rgba(255,255,255,0.75);
  border-left:3px solid transparent;
  transition:.2s;
}
.dash-nav a i, .dash-nav a .ic{ width:18px; text-align:center; }
.dash-nav a:hover, .dash-nav a.active{
  background: rgba(212,175,55,0.1);
  color: var(--fg-gold);
  border-left-color: var(--fg-gold);
}
.dash-main{ flex:1; min-width:0; }
.dash-topbar{
  background:#fff;
  padding:16px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  box-shadow: var(--fg-shadow);
  position:sticky;top:0;z-index:90;
}
.dash-topbar h1{ font-size:20px; color: var(--fg-dark); font-weight:800; }
.topbar-user{ display:flex; align-items:center; gap:12px; }
.topbar-user .avatar{
  width:38px;height:38px;border-radius:50%;
  background: var(--fg-gold-gradient);
  display:flex;align-items:center;justify-content:center;
  color: var(--fg-dark); font-weight:800;
}
.dash-content{ padding:28px; }

/* notice banners */
.notice-banner{
  background: linear-gradient(135deg, var(--fg-dark) 0%, #2a5b4a 100%);
  border-radius: var(--fg-radius);
  padding:30px;
  color:#fff;
  margin-bottom:24px;
  position:relative;
  overflow:hidden;
}
.notice-banner h2{ font-size:24px; font-weight:800; margin-bottom:6px; color: var(--fg-gold); }
.notice-banner p{ color: rgba(255,255,255,0.8); }

.ticker{
  background:#fff;
  border-right: 4px solid var(--fg-gold);
  border-radius:10px;
  padding:14px 18px;
  margin-bottom:24px;
  box-shadow: var(--fg-shadow);
  font-size:14px;
}
.ticker p{ margin-bottom:6px; color: var(--fg-text); }
.ticker p:last-child{ margin-bottom:0; }
.ticker strong{ color: var(--fg-gold); }

/* dashboard grid widgets */
.widgets-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:18px;
  margin-bottom:24px;
}
.widget-card{
  background:#fff;
  border-radius: var(--fg-radius);
  padding:20px;
  box-shadow: var(--fg-shadow);
  display:flex; flex-direction:column; align-items:center; gap:10px;
  text-align:center;
  transition:.2s;
}
.widget-card:hover{ transform: translateY(-4px); box-shadow:0 12px 28px rgba(20,53,44,0.12); }
.widget-card .w-icon{
  width:50px;height:50px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:22px;
  background: rgba(212,175,55,0.12);
  color: var(--fg-gold);
}
.widget-card h4{ font-size:14px; color: var(--fg-dark); font-weight:700; }

/* tables / cards generic */
.card{
  background:#fff;
  border-radius: var(--fg-radius);
  padding:24px;
  box-shadow: var(--fg-shadow);
  margin-bottom:24px;
}
.card h3{ color: var(--fg-dark); margin-bottom:18px; font-size:18px; }
table.fg-table{ width:100%; border-collapse:collapse; font-size:14px; }
table.fg-table th{
  text-align:left; padding:12px 14px;
  background: var(--fg-cream);
  color: var(--fg-dark);
  font-weight:700;
}
table.fg-table td{ padding:12px 14px; border-bottom:1px solid #f0f0f0; }
table.fg-table tr:hover td{ background: #fcfaf3; }
.badge{
  display:inline-block;
  padding:4px 12px;
  border-radius:50px;
  font-size:12px;
  font-weight:700;
}
.badge-success{ background:#e8f7ee; color:#1e7e44; }
.badge-warning{ background:#fff5e0; color:#b8860b; }
.badge-danger{ background:#fdeaea; color:#c0392b; }

/* Responsive */
@media (max-width: 968px){
  .hero-inner, .about-inner, .auth-inner{ grid-template-columns: 1fr; }
  .stats-grid, .services-grid, .widgets-grid{ grid-template-columns: repeat(2,1fr); }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
  .nav-links{ display:none; }
  .hamburger{ display:block; }
  .dash-sidebar{ position:fixed; left:-260px; z-index:200; transition:.3s; }
  .dash-sidebar.open{ left:0; }
}
@media (max-width: 600px){
  .stats-grid, .services-grid, .widgets-grid, .footer-grid{ grid-template-columns: 1fr; }
  .hero h1{ font-size:30px; }
  .dash-content{ padding:16px; }
}

/* ===== Force all images square (1:1 ratio) ===== */

/* Product card images */
.fg-img-square {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}
.fg-img-square img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* WooCommerce product images */
.woocommerce-product-gallery img,
.woocommerce img.wp-post-image,
.woocommerce .attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}

/* Catalog sub-category images */
.fg-cat-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* All images inside dashboard */
.dash-content img:not(.avatar img) {
    max-width: 100%;
    height: auto;
}

/* Force square on uploaded media thumbnails */
.wp-post-image,
img.attachment-medium,
img.attachment-medium_large,
img.size-medium,
img.size-medium_large {
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
}
