/* 
  Okiem Asystenta - E-book Shop Styles
  Fonts: Lexend (Body), Fraunces (Headings)
  Colors: Navy (#140c5c), Light Blue (#4790d2), Dark Text (#2a2a2a)
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;500;600;700&family=Lexend:wght@300;400;500;600&display=swap');

:root {
  --primary-color: #140c5c;
  --secondary-color: #4790d2;
  --text-color: #2a2a2a;
  --bg-color: #ffffff;
  --card-bg: #f9f9fa;
  --border-color: rgba(2, 127, 153, 0.1);
  --font-body: 'Lexend', sans-serif;
  --font-heading: 'Fraunces', serif;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--text-color);
  background-color: var(--bg-color);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding: 15px 0;
  background: var(--bg-color);
  box-shadow: 0 2px 4px rgba(42, 42, 42, 0.1);
  border-bottom: none;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 55px;
  width: auto;
  display: block;
}

.navigator {
  display: flex;
  align-items: center;
}

.back-link {
  font-weight: 500;
  color: #2a2a2a;
  display: inline-block;
  font-size: 15px;
  transition: var(--transition);
}

.back-link:hover {
  color: #3c70bc;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 80px 0 100px;
  text-align: center;
  background-color: #0e4c73;
  color: #ffffff;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/bg-map.png');
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero p {
  font-family: var(--font-body);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
  color: #fdfdfd;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}


/* Products Grid */
.products-section {
  padding: 40px 0 100px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

/* Center product if it's the only one */
.products-grid > article:only-of-type {
  grid-column: 1 / -1;
  max-width: 430px;
  margin: 0 auto;
  width: 100%;
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(20, 12, 92, 0.08);
}

.product-image {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #eee;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.03);
}

.product-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 24px;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.product-price {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-color);
}

/* Buttons */
.payhip-buy-button {
  background: var(--primary-color) !important;
  /* Override inline payhip styles if needed */
  color: #fff !important;
  padding: 12px 24px !important;
  border-radius: 6px !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
  font-size: 1rem !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 14px rgba(20, 12, 92, 0.2) !important;
}

.payhip-buy-button:hover {
  background: var(--secondary-color) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(71, 144, 210, 0.3) !important;
}

/* Footer */
.site-footer {
  background: #f4f5f6;
  color: #2a2a2a;
  padding: 0;
}

.footer-widgets {
  padding: 0 0 50px;
}

.footer-widgets .container::before {
  content: "";
  display: block;
  height: 14px;
  background: #2a2a2a;
  width: 100%;
  margin-bottom: 50px;
}

.footer-widgets-inner {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-widgets aside {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-widgets h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 25px;
  color: #1a1a1a;
  letter-spacing: 0.5px;
}

.footer-widgets ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-widgets ul li {
  margin-bottom: 16px;
}

.footer-widgets ul li a {
  color: #2a2a2a;
  text-decoration: none;
  transition: var(--transition);
  font-size: 15px;
}

.footer-widgets ul li a:hover {
  color: #4790d2;
}

/* Linki links */
.footer-widgets aside ul {
  display: grid;
  grid-template-columns: auto auto;
  row-gap: 16px;
  column-gap: 30px;
  justify-content: center;
  text-align: left;
}

.footer-widgets aside ul li {
  margin-bottom: 0;
}

.footer-widgets aside ul li:first-child a {
  color: var(--secondary-color);
}

.post-views {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2a2a2a;
  font-size: 15px;
  margin-top: -3px;
  /* Align with headings visually */
}

.copyright-bar {
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

@media only screen and (min-width: 768px) {
  .copyright-bar {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #140c5c;
  transition: var(--transition);
  background: transparent;
}

.social-icons a:hover {
  background-color: #3c70bc;
  border-color: #3c70bc;
}

.copyright-content {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: #2a2a2a;
}

.footer-right {
  display: flex;
  align-items: center;
}

.scroll-to-top {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background-color: #4790d2;
  color: #fff;
  transition: var(--transition);
  text-decoration: none;
}

.scroll-to-top:hover {
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}