/*
Theme Name: egkdp Rokomari Bookstore
Theme URI: https://egkdp.com
Author: egkdp Tech & Dev Team
Author URI: https://egkdp.com
Description: রকমারি ডট কমের অ্যাফিলিয়েট বুকশপ এবং নিজস্ব বই বিক্রির জন্য সম্পূর্ণ রেসপন্সিভ, কাস্টমাইজ উপযোগী ওয়ার্ডপ্রেস থিম। এতে রয়েছে লাইভ কাস্টমাইজার, রকমারি অটো-অ্যাফিলিয়েট বাটন, একটু পড়ে দেখুন মোডাল এবং বিকাশ/নগদ পেমেন্ট সাপোর্ট।
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: egkdp-bookstore
Tags: e-commerce, book-store, affiliate, woocommerce, responsive-layout, custom-colors, custom-menu, translation-ready
*/

/* Google Fonts Import for Bengali & English */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --rokomari-orange: #ea580c;
  --rokomari-hover: #c2410c;
  --direct-green: #059669;
  --direct-hover: #047857;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --border-color: #e2e8f0;
}

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

body {
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Top Announcement Bar */
.egkdp-topbar {
  background: #0f172a;
  color: #f1f5f9;
  font-size: 12px;
  padding: 6px 0;
}
.egkdp-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

/* Header Styles */
.egkdp-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 99;
}
.egkdp-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.egkdp-logo a {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.egkdp-logo a span {
  color: var(--primary-color);
}
.egkdp-search-form {
  flex: 1;
  max-width: 580px;
  position: relative;
}
.egkdp-search-input {
  width: 100%;
  padding: 10px 45px 10px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 14px;
  background: #f1f5f9;
  outline: none;
  transition: all 0.2s;
}
.egkdp-search-input:focus {
  background: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.egkdp-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-color);
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

/* Navigation Menu */
.egkdp-nav-bar {
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  padding: 6px 0;
}
.egkdp-nav-menu ul {
  display: flex;
  list-style: none;
  gap: 16px;
}
.egkdp-nav-menu a {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.2s;
}
.egkdp-nav-menu a:hover {
  background: #e2e8f0;
  color: var(--primary-color);
}

/* Book Grid & Cards */
.egkdp-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.egkdp-book-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
}
.egkdp-book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08);
}
.egkdp-book-thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 3/4;
  margin-bottom: 12px;
  background: #f1f5f9;
}
.egkdp-book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.egkdp-book-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.4;
}
.egkdp-book-title a {
  color: var(--text-dark);
  text-decoration: none;
}
.egkdp-book-author {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.egkdp-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.egkdp-price {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.egkdp-regular-price {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Custom Buttons */
.btn-rokomari {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--rokomari-orange);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  width: 100%;
  text-align: center;
  transition: background 0.2s;
}
.btn-rokomari:hover {
  background-color: var(--rokomari-hover);
}
.btn-direct {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: var(--direct-green);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  width: 100%;
  text-align: center;
  transition: background 0.2s;
}
.btn-direct:hover {
  background-color: var(--direct-hover);
}

/* Look Inside Modal (একটু পড়ে দেখুন) */
.egkdp-preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.egkdp-preview-modal.active {
  display: flex;
}
.egkdp-preview-content {
  background: #fbf0d9;
  color: #433422;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Footer */
.egkdp-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 0 20px 0;
  margin-top: 50px;
  font-size: 13px;
}
.egkdp-footer a {
  color: #cbd5e1;
  text-decoration: none;
}
.egkdp-footer-bottom {
  border-top: 1px solid #1e293b;
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
}
