/*
Theme Name: Tamara Stojkovska
Theme URI: https://tamarastojkovska.mk/
Author: Tamara Stojkovska
Author URI: https://tamarastojkovska.mk/
Description: DESC
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* =============================================
   TAMARA STOJKOVSKA - WEBSITE STYLES
   =============================================
   Table of Contents:
   1. Global Styles & Variables
   2. Navigation (All Pages)
   3. Home Page
   4. Product Page
   5. Cart Page
   6. Responsive Styles
   ============================================= */

/* =============================================
   1. GLOBAL STYLES & VARIABLES
   ============================================= */

:root {
  --brand-red: #c62828;
}

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

html,
body {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
}

/* =============================================
   2. NAVIGATION (ALL PAGES)
   ============================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  order: 1;
}

.menu {
  order: 2;
}

.header-cart {
  order: 3;
  margin-left: 24px;
}

.menu-toggle {
  order: 4;
}

.header-cart {
  position: relative;
  margin-left: auto;
  margin-right: 12px;
}

.header-cart img {
  width: 22px;
  height: 22px;
}

#cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #c62828;
  color: #fff;
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
}

.logo {
  font-size: 12px;
  letter-spacing: 3px;
  text-decoration: none;
  color: #000;
}

.logo .red {
  color: var(--brand-red);
}

.menu a {
  font-size: 12px;
  letter-spacing: 3px;
  text-decoration: none;
  color: #222;
}

.menu .merch-link {
  color: var(--brand-red);
}

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-icon {
  width: 20px;
  height: auto;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: #000;
  transition: all 0.3s ease;
}

#cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #d32f2f;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 50%;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
}

/* =============================================
   3. HOME PAGE
   ============================================= */

/* Hero Section */
.hero {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f5f5f5;
  background-image: url("assets/images/hero-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.05) 70%);
}

/* Release Section */
.release {
  position: relative;
  z-index: 2;
  text-align: center;
}

.release-image {
  width: 400px;
  max-width: 80vw;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin-bottom: 22px;
  border: 4px solid var(--brand-red);
}

.release-artist {
  font-size: 11px;
  letter-spacing: 3px;
  margin-bottom: 10px;
  color: #222;
}

.release-title {
  font-size: 16px;
  letter-spacing: 4px;
  margin-bottom: 26px;
  color: #000;
  white-space: nowrap;
}

.release-button {
  display: block;
  width: 100%;
  max-width: 400px;
  padding: 14px 36px;
  font-size: 12px;
  letter-spacing: 3px;
  color: #000;
  border: 1px solid #000;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
}

.release-button:hover {
  background: #000;
  color: #fff;
}

/* Mini Audio Player */
.audio-player-mini {
  position: absolute;
  bottom: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  z-index: 5;
}

.player-btn-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #000;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.player-btn-mini:hover {
  transform: scale(1.05);
}

.song-title-mini {
  font-size: 13px;
  font-weight: 500;
  color: #000;
  white-space: nowrap;
}

.time-remaining {
  font-size: 12px;
  color: #000;
  min-width: 40px;
}

/* Merch Section */
.merch {
  min-height: 100vh;
  padding: 160px 80px;
  background: url("assets/images/hero-bg.jpg") center / cover no-repeat;
  position: relative;
}

.merch::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
}

.merch-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 70px 50px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Product Cards */
.product-card {
  text-align: center;
}

.product-link {
  text-decoration: none;
  color: inherit;
}

.product-image {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto 18px;
}

.product-image img {
  width: 100%;
  display: block;
}

.img-front {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .img-front {
  opacity: 1;
}

.product-card:hover .img-back {
  opacity: 0;
}

.product-info h3 {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin-bottom: 6px;
}

.product-info .price {
  font-size: 14px;
  color: #000;
}

/* =============================================
   4. PRODUCT PAGE
   ============================================= */

.product-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product Image Gallery */
.product-image-wrapper {
  position: relative;
}

.product-image-wrapper img {
  width: 100%;
  display: block;
}

.image-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  font-size: 32px;
  cursor: pointer;
  padding: 10px 14px;
}

.image-nav.left {
  left: 10px;
}

.image-nav.right {
  right: 10px;
}

/* Product Details */
.product-description {
  margin-top: 30px;
  color: #333;
  line-height: 1.5;
}

.size-chart {
  margin-top: 20px;
}

.size-chart img {
  max-width: 100%;
  border: 1px solid #eee;
}

/* Size Selection */
#sizes,
.sizes {
  margin: 20px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#sizes button,
.sizes button,
.size-btn {
  padding: 10px 14px;
  border: 1px solid #111;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  user-select: none;
}

#sizes button.active,
.sizes button.active,
.size-btn.active {
  background: #111;
  color: #fff;
}

/* Quantity Control */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.quantity-control button {
  width: 36px;
  height: 36px;
  border: 1px solid #000;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-value {
  width: 36px;
  height: 36px;
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

/* Price & Add to Cart */
.price-price-inline {
  margin: 16px 0;
  font-size: 16px;
  font-weight: 500;
}

#add-to-cart {
  margin-top: 16px;
  padding: 14px 28px;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  font-size: 14px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
}

#add-to-cart:hover {
  background: #fff;
  color: #000;
}

#add-to-cart:active {
  transform: scale(0.98);
}

.add-to-cart-message {
  margin-top: 10px;
  font-size: 14px;
}

.add-to-cart-message.success {
  color: #1a7f37;
}

.add-to-cart-message.error {
  color: #c62828;
}

/* =============================================
   5. MUSIC PAGE
   ============================================= */

.music-section {
  min-height: 100vh;
  padding: 140px 80px 80px;
  background: url("assets/images/hero-bg.jpg") center / cover no-repeat;
  position: relative;
}

.music-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.4);
  z-index: 0;
}

.music-title {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 32px;
  letter-spacing: 4px;
  margin-bottom: 60px;
  color: #000;
}

.music-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.song-card {
  text-align: center;
  transition: transform 0.3s ease;
}

.song-card:hover {
  transform: translateY(-5px);
}

.song-image {
  width: 100%;
  margin-bottom: 12px;
  overflow: hidden;
  border: 4px solid transparent;
  transition: border-color 0.3s ease;
}

.song-card:hover .song-image {
  border-color: var(--brand-red);
}

.song-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.song-name {
  font-size: 16px;
  font-weight: 500;
  color: #000;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.listen-btn {
  display: block;
  width: 100%;
  padding: 12px 32px;
  font-size: 12px;
  letter-spacing: 2px;
  color: #000;
  border: 1px solid #000;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  background: transparent;
}

.listen-btn:hover {
  background: #000;
  color: #fff;
}

/* =============================================
   6. CART PAGE
   ============================================= */

.cart-page {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  max-width: 1100px;
  margin: 60px auto;
  padding-top: 60px;
  padding-bottom: 220px;
  align-items: flex-start;
}

.cart-left h2 {
  margin-bottom: 30px;
}

/* Cart Items */
#cart-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cart-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid #eaeaea;
}

.cart-item img {
  width: 90px;
  height: auto;
}

.cart-info h3 {
  margin: 0;
  font-size: 16px;
}

.cart-info p {
  margin: 4px 0;
  font-size: 14px;
}

.cart-total {
  margin-top: 30px;
  font-size: 18px;
  font-weight: 600;
}

/* Cart Form */
.cart-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-form h2 {
  margin-bottom: 12px;
}

#order-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#order-form input,
.cart-form input {
  padding: 14px;
  font-size: 14px;
  border: 1px solid #ccc;
}

.reserve-btn {
  margin-top: 20px;
  padding: 16px;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 1px;
}

.reserve-btn:hover {
  opacity: 0.85;
}

.order-message {
  margin: 12px 0;
  padding: 12px 14px;
  font-size: 14px;
  border-radius: 4px;
}

.order-message.error {
  background: #ffe5e5;
  color: #b00020;
  border: 1px solid #ffb3b3;
}

.order-message.success {
  background: #e6f7ea;
  color: #1b7a3a;
  border: 1px solid #9ddbb2;
}

/* =============================================
   7. RESPONSIVE STYLES
   ============================================= */

/* Tablet & Mobile (768px and below) */
@media (max-width: 768px) {
  /* Mobile Navigation */
  .nav {
    padding: 20px;
  }

  .logo {
    order: 1;
  }

  .header-cart {
    order: 2;
    margin-left: auto;
    margin-right: 12px;
  }

  .menu-toggle {
    order: 3;
  }

  .menu {
    order: 4; /* hidden until opened anyway */
  }

  .menu-toggle {
    display: flex;
    order: 3;
    z-index: 101;
  }

  .menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none !important;
    z-index: 100;
  }

  .menu .cart-link {
    display: none;
  }


  .menu.active {
    display: flex !important;
  }

  .menu a {
    margin: 10px 0;
    margin-left: 0;
    padding: 10px;
    border-bottom: 1px solid #eee;
  }

  .menu .cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: auto;
  }

  .menu .cart-link #cart-count {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 8px;
  }

  .menu a:last-child {
    border-bottom: none;
  }

  .cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
  }

  /* Hamburger animation when active */
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Audio Player Mobile */
  .audio-player-mini {
    bottom: 15px;
    left: 15px;
    gap: 8px;
    padding: 10px 12px;
    max-width: calc(100vw - 30px);
  }

  .song-title-mini {
    font-size: 11px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .volume-slider-mini {
    width: 40px;
  }

  /* Home Page - Merch Grid */
  .merch-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-link {
    width: 100%;
  }

  .product-link img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* Product Page */
  .product-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
    padding-top: 100px;
  }

  .product-image-wrapper {
    width: 100%;
    position: relative;
  }

  #product-image {
    width: 100%;
    height: auto;
    display: block;
  }

  .product-info {
    width: 100%;
  }

  .image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    font-size: 22px;
    cursor: pointer;
  }

  .image-nav.left {
    left: 8px;
  }

  .image-nav.right {
    right: 8px;
  }

  .sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sizes button {
    min-width: 48px;
    height: 44px;
  }

  .quantity-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 12px 0;
  }

  #add-to-cart {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .price-price-inline {
    font-size: 18px;
    margin: 12px 0;
  }

  /* Cart Page */
  .cart-page {
    grid-template-columns: 1fr;
    padding-top: 30px;
	padding: 0 16px;
  }

  .cart-form {
    order: 2;
    margin-top: 32px;
  }

  /* Music Page */
  .music-section {
    padding: 120px 20px 60px;
  }

  .music-title {
    font-size: 24px;
    margin-bottom: 40px;
  }

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


/* FOOTER */
.site-footer {
  border-top: 1px solid #eaeaea;
  padding: 24px 0;
  font-size: 14px;
  background: #fff;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-left {
  text-align: left;
}

.footer-center {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.footer-center a {
  color: #000;
  text-decoration: none;
}

.footer-center a:hover {
  text-decoration: underline;
}

.footer-right {
  text-align: right;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}

.footer-social a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
}

.footer-social a:hover {
  text-decoration: underline;
}

/* Mobile footer */
@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }

  .footer-social {
    justify-content: center;
    flex-wrap: wrap;
  }
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;              /* THIS pushes footer down */
  width: 100%;
}

.site-footer {
  margin-top: auto;     /* safety net */
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: #000;
  transition: opacity 0.2s ease;
}

.footer-social a:hover .social-icon {
  opacity: 0.6;
}

.footer-social a[aria-label="Spotify"]:hover .social-icon {
  fill: #1DB954;
}

/* YouTube hover */
.footer-social a[aria-label="YouTube"]:hover .social-icon {
  fill: #FF0000;
}

/* Instagram hover (gradient effect) */
.footer-social a[aria-label="Instagram"]:hover .social-icon {
  fill: url(#instagram-gradient);
}


.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 20px;
  font-size: 16px;
  line-height: 1.6;
}

.legal-page h1 {
  font-size: 36px;
  margin-bottom: 30px;
}

.legal-page h2 {
  font-size: 22px;
  margin-top: 40px;
  margin-bottom: 15px;
}

.legal-page p {
  margin-bottom: 16px;
}

.legal-page ul {
  margin: 10px 0 20px 20px;
}

.legal-page li {
  margin-bottom: 8px;
}

@media (min-width: 769px) {
  .nav {
    display: flex;
    align-items: center;
    padding: 20 32 20px;
  }

  .logo {
    order: 1;
    margin-right: auto; /* pushes everything else right */
    white-space: nowrap;
  }

   .menu {
    display: flex;
    justify-content: flex-end; /* IMPORTANT */
    gap: 24px;               /* CONTROL spacing here */
    flex: 0;                 /* REMOVE flex-grow */
  }

  .header-cart {
    margin-left: 16px;
    display: flex;
    align-items: center;
  }

  .menu-toggle {
    display: none;
  }
}
