/*
 * Bmedia.Eshop — Global Stylesheet
 *
 * This file defines the typography, layout and colour palette for the static
 * e‑commerce site. The chosen palette follows current web design trends for
 * 2025/2026 by combining a warm, earthy accent with calming neutrals and
 * dark contrasts. Earthy tones such as muted oranges and browns are
 * trending because they convey warmth and authenticity【631634727205154†L45-L63】, while
 * monochromatic schemes with dark and light shades of one colour help
 * maintain harmony and focus【631634727205154†L89-L117】. The palette below uses a
 * neutral off‑white for backgrounds, charcoal for text and a rich
 * burnt‑orange accent for calls to action.
 */

:root {
  --background: #F9F7F1;            /* light neutral background */
  --surface:    #FFFFFF;            /* white card backgrounds */
  --text:       #2E2E2E;            /* dark grey for high contrast text */
  --primary:    #D87A4F;            /* earthy orange accent */
  --primary-dark: #B05E35;         /* darker shade for hover states */
  --secondary:  #28636A;            /* complementary teal for highlights */
  --border:     #E0E0E0;            /* light border colour */
  --radius:     10px;               /* base border radius */
  --max-width:  1200px;             /* constrain content width */
  --transition: 0.2s ease-in-out;   /* global transition timing */
}

html {
  scroll-behavior: smooth;
  box-sizing: border-box;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Utility classes */
.container {
  width: 100%;
  max-width: var(--max-width);
/*  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;*/
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

/* Header */
header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
}

nav a:hover {
  color: var(--primary);
}

/* Cart badge */
.cart-link {
  position: relative;
  font-size: 1.2rem;
}

.cart-badge {
  position: absolute;
  top: -0.6rem;
  right: -0.8rem;
  background-color: var(--primary);
  color: #fff;
  border-radius: 50%;
  padding: 0.15rem 0.4rem;
  font-size: 0.75rem;
  line-height: 1;
}

/* Hero section */
.hero {
  padding: 4rem 0 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #555;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero .btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  transition: background-color var(--transition);
}

.hero .btn:hover {
  background-color: var(--primary-dark);
}

/* Product grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.product-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
}

.product-card i {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.product-card p {
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
}

.product-card .price {
  font-weight: 900;
  font-family: 'Times New Roman', Times, serif;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #FFB800;
  background-color: #3D3F56;
}

.product-card button {
  padding: 0.6rem 1rem;
  border: none;
  background-color: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition);
}

.product-card button:hover {
  background-color: var(--primary-dark);
}

.product-card .seemoreBTN{
  width: max-content;
  border-radius: 24px;
  font-size: 25px;
  background-color: #000;
  color: lightblue;
  border: 1px dotted orange;
}

.detailscontainer{
  display: none;
}

.product-card .seemorecontainer{
  display: flex;
  align-items: right;
  justify-content: right;
}

/* Cart table */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
}

.cart-table th,
.cart-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.cart-table th {
  background-color: var(--background);
  font-weight: 600;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-controls button {
  background-color: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition);
}

.quantity-controls button:hover {
  background-color: var(--primary);
  color: #fff;
}

.remove-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.2rem;
  transition: color var(--transition);
}

.remove-btn:hover {
  color: var(--primary-dark);
}

/* Totals & actions */
.cart-summary {
  margin-top: 1.5rem;
  text-align: right;
  font-size: 1.2rem;
  font-weight: 600;
}

.btn-primary {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.8rem 1.6rem;
  background-color: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  transition: background-color var(--transition);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

/* Checkout form */
.checkout-form {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.checkout-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
}

.checkout-form textarea {
  resize: vertical;
  min-height: 80px;
}

.payment-methods {
  margin-top: 2rem;
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: var(--radius);
  background-color: var(--surface);
}

.payment-methods h4 {
  margin-top: 0;
}

.payment-methods .method {
  margin-bottom: 1rem;
}

.payment-details {
  margin-top: 1rem;
  padding: 1rem;
  background-color: var(--background);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hidden {
  display: none !important;
}

/* Footer */
footer {
  background-color: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #777;
}

.wallet-box{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid rgba(255,255,255,0.12);
  border-radius:12px;
  background: rgba(0,0,0,0.15);
}

.wallet-text{
  flex:1;
  min-width:0; /* IMPORTANT: allows wrapping inside without pushing the button */
}

.wallet-label{
  display:block;
  font-weight:600;
  margin-bottom:6px;
  opacity:0.9;
}

.wallet-address{
  display:block;
  /* wraps long strings nicely WITHOUT changing box width */
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.3;
}

.copy-btn{
  flex:0 0 auto;
  width:42px;
  height:42px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: inherit;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

.copy-btn:active{
  transform: scale(0.98);
}