/*
 * Tilichez — Artículos Religiosos
 * Paleta: Dorado #C9A961 · Azul profundo #1E3A5F · Vino #8B2635
 * Tipografía: Cormorant Garamond (display) · EB Garamond (cuerpo)
 */

/* ── Google Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Variables de color ───────────────────────────────────────────────── */
:root {
  --gold:          #C9A961;
  --gold-light:    #E2C98A;
  --gold-dark:     #9E7E3F;
  --navy:          #1E3A5F;
  --navy-dark:     #132740;
  --navy-light:    #2A4F82;
  --wine:          #8B2635;
  --wine-light:    #A83344;
  --cream:         #F7F4EE;
  --cream-dark:    #EDEAE2;
  --gray-100:      #F5F5F3;
  --gray-300:      #D8D4CC;
  --gray-500:      #8E8880;
  --gray-700:      #4A4640;
  --gray-900:      #1C1A18;
  --text-main:     #2E2B26;
  --border:        #DDD9D0;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
body {
  width: 100%;
  height: 100%;
  background-color: var(--cream);
  color: var(--text-main);
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Times New Roman', serif;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.4rem; }

a {
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--gold-dark);
}

legend {
  padding: 7px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gold-light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: 0.05em;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

button:focus {
  outline: none !important;
}

/* ── Contenedor ───────────────────────────────────────────────────────── */
#container {
  width: 100%;
  min-height: 100%;
  position: absolute;
  margin-bottom: 300px;
}

#content, #column-left, #column-right {
  padding-bottom: 730px;
}

@media (min-width: 576px) {
  #content, #column-left, #column-right {
    padding-bottom: 400px;
  }
}

/* ── Alertas ──────────────────────────────────────────────────────────── */
#alert {
  z-index: 9999;
  position: fixed;
  top: 30%;
  left: 50%;
  width: 400px;
  margin-left: -200px;
}

@media (min-width: 992px) {
  #alert { width: 600px; margin-left: -300px; }
}
@media (min-width: 1140px) {
  #alert { width: 600px; margin-left: -300px; }
}
@media (min-width: 1320px) {
  #alert { width: 600px; margin-left: -300px; }
}

#alert .alert {
  margin-bottom: 15px;
  border-radius: 2px;
  font-family: 'EB Garamond', serif;
  border-left: 4px solid var(--gold);
}
#alert .alert-primary   { box-shadow: 0 4px 16px rgba(30,58,95,0.12); }
#alert .alert-secondary { box-shadow: 0 4px 16px rgba(30,58,95,0.08); }
#alert .alert-success   { box-shadow: 0 4px 16px rgba(50,100,60,0.12); }
#alert .alert-warning   { box-shadow: 0 4px 16px rgba(201,169,97,0.18); }
#alert .alert-danger    { box-shadow: 0 4px 16px rgba(139,38,53,0.15); }
#alert .alert-info      { box-shadow: 0 4px 16px rgba(30,58,95,0.10); }
#alert .alert-light     { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }
#alert .alert-dark      { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }

/* ── Barra superior ───────────────────────────────────────────────────── */
#top {
  background-color: var(--cream-dark);
  border-bottom: 1px solid var(--gold-light);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 5px;
}

#top ul.list-inline {
  margin-bottom: 0;
}

#top .list-inline-item > a,
#top .list-inline-item .dropdown > a {
  font-size: 0.95em;
  font-family: 'EB Garamond', serif;
  color: var(--navy);
  line-height: 40px;
  vertical-align: middle;
  padding: 10px 0px 5px 0px;
  letter-spacing: 0.03em;
}

#top .list-inline-item > a:hover,
#top .list-inline-item .dropdown > a:hover {
  color: var(--gold-dark);
}

/* ── Logo ─────────────────────────────────────────────────────────────── */
#logo {
  text-align: center;
  margin: 10px 0;
}

#logo img {
  max-width: 200px;
}

@media (min-width: 768px) {
  #logo { text-align: left; }
}

/* ── Buscador ─────────────────────────────────────────────────────────── */
#search {
  margin-bottom: 10px;
}

#search .form-control-lg {
  height: 40px;
  font-size: 13px;
  font-family: 'EB Garamond', serif;
  line-height: 20px;
  padding: 0 12px;
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--text-main);
}

#search .form-control-lg:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.12);
}

#search .btn-lg {
  font-size: 14px;
  line-height: 18px;
  padding: 0.57rem 35px;
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--gold-light);
  border-radius: 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'EB Garamond', serif;
  transition: background-color 0.2s, color 0.2s;
}

#search .btn-lg:hover {
  background-color: var(--navy-dark);
  border-color: var(--navy-dark);
  color: var(--gold);
}

/* ── Carrito ──────────────────────────────────────────────────────────── */
#cart {
  margin-bottom: 10px;
}

#cart .img-thumbnail {
  min-width: 100px;
  border-color: var(--border);
}

#cart .btn-lg {
  font-size: 14px;
  line-height: 18px;
  padding: 14px 35px;
  background-color: var(--navy);
  border-color: var(--navy-dark);
  color: var(--gold-light);
  border-radius: 0;
  letter-spacing: 0.05em;
  transition: background-color 0.2s;
}

#cart .btn-lg:hover {
  background-color: var(--navy-dark);
  color: var(--gold);
}

#cart .dropdown-menu {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(30,58,95,0.10);
}

#cart .dropdown-menu li {
  min-width: 300px;
}

@media (max-width: 768px) {
  #cart .dropdown-menu li { min-width: 100%; }
}

/* ── Botones globales ─────────────────────────────────────────────────── */
.btn-primary {
  background-color: var(--navy) !important;
  border-color: var(--navy-dark) !important;
  color: var(--gold-light) !important;
  border-radius: 0;
  font-family: 'EB Garamond', serif;
  letter-spacing: 0.05em;
  transition: background-color 0.2s, color 0.2s;
}
.btn-primary:hover {
  background-color: var(--navy-dark) !important;
  color: var(--gold) !important;
}

.btn-danger {
  background-color: var(--wine) !important;
  border-color: var(--wine) !important;
  color: #fff !important;
  border-radius: 0;
}
.btn-danger:hover {
  background-color: var(--wine-light) !important;
}

/* ── Menú de navegación ───────────────────────────────────────────────── */
#menu {
  background-color: var(--navy);
  background-image: linear-gradient(to bottom, var(--navy-light), var(--navy-dark));
  background-repeat: repeat-x;
  border: none;
  border-bottom: 2px solid var(--gold);
  min-height: 44px;
  border-radius: 0;
  padding: 0 1rem;
  margin-bottom: 20px;
}

#menu .navbar-nav > li > a {
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-shadow: none;
  padding: 10px 16px;
  background-color: transparent;
  transition: color 0.2s, background-color 0.2s;
}

#menu .navbar-nav > li > a:hover {
  color: var(--gold);
  background-color: rgba(201, 169, 97, 0.08);
}

#menu .dropdown-menu {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-top: 2px solid var(--gold);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background-color: #fff;
  box-shadow: 0 8px 24px rgba(30,58,95,0.10);
  border-radius: 0;
}

#menu .dropdown-menu a {
  font-family: 'EB Garamond', serif;
  color: var(--navy);
  font-size: 0.97rem;
  letter-spacing: 0.02em;
  padding: 8px 20px;
}

#menu .dropdown-menu a:hover {
  color: var(--gold-dark);
  background-color: var(--cream);
}

#menu .dropdown-inner {
  display: flex;
  flex-direction: column;
}

#menu .dropdown-inner ul {
  width: 100%;
  min-width: 200px;
}

@media (min-width: 960px) {
  #menu .dropdown:hover .dropdown-menu           { display: block; }
  #menu .dropdown-inner                          { flex-direction: row; }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-3                           { left: -200px; }
  #menu .nav-item + .nav-item + .nav-item .dropdown-column-4                           { left: -400px; }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-2               { left: -200px; }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-3               { left: -400px; }
  #menu .nav-item + .nav-item + .nav-item + .nav-item .dropdown-column-4               { left: -600px; }
}

#category {
  float: left;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 44px;
  color: var(--gold-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#menu .navbar-toggler i {
  color: var(--gold-light);
  border-color: var(--gold-light);
  font-size: 0.9em;
}

/* ── Formularios ──────────────────────────────────────────────────────── */
div.required .col-form-label:before,
div.required .form-label:before {
  content: "* ";
  color: var(--wine);
  font-weight: bold;
}

.form-switch-lg {
  font-size: 20px;
  min-height: 30px;
  line-height: 30px;
}

.form-control, .form-select {
  border-radius: 0;
  border-color: var(--border);
  color: var(--text-main);
  font-family: 'EB Garamond', serif;
}

.form-control:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.12);
}

.nav-tabs {
  margin-bottom: 15px;
  border-bottom: 1px solid var(--gold-light);
}

.nav-tabs .nav-link {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--gray-500);
  border-radius: 0;
  border: none;
  padding: 8px 18px;
  transition: color 0.2s;
}

.nav-tabs .nav-link.active {
  color: var(--navy);
  background-color: transparent;
  border-bottom: 2px solid var(--gold);
}

.nav-tabs .nav-link:hover {
  color: var(--navy);
}

.form-check .form-check-input {
  margin-top: 0.25rem;
  accent-color: var(--navy);
}

@media (min-width: 768px) {
  .col-form-label { text-align: right; }
}

/* ── Pie de página ────────────────────────────────────────────────────── */
footer {
  border: none;
  border-top: 3px solid var(--gold);
  position: absolute;
  bottom: -1px;
  width: 100%;
  padding-top: 40px;
  background-color: var(--navy-dark);
  color: #C8C4BC;
  font-family: 'EB Garamond', serif;
  font-size: 0.97rem;
}

footer hr {
  border-top: none;
  border-bottom: 1px solid rgba(201,169,97,0.25);
}

footer a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: var(--gold);
}

footer h5 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 10px;
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Migas de pan ─────────────────────────────────────────────────────── */
.breadcrumb {
  margin: 0 0 20px 0;
  padding: 8px 0;
  border: 1px solid var(--border);
  border-radius: 0;
  background-color: var(--cream-dark);
}

.breadcrumb i {
  font-size: 15px;
  color: var(--gold);
}

.breadcrumb > li.breadcrumb-item {
  text-shadow: none;
  padding: 0 20px;
  position: relative;
  white-space: nowrap;
  font-family: 'EB Garamond', serif;
  font-size: 0.95rem;
  color: var(--gray-500);
}

.breadcrumb > li.breadcrumb-item > a {
  text-decoration: none;
  color: var(--navy);
}

.breadcrumb > li.breadcrumb-item > a:hover {
  color: var(--gold-dark);
}

.breadcrumb > li.breadcrumb-item:after {
  content: "";
  display: block;
  position: absolute;
  top: -3px;
  right: -5px;
  width: 29px;
  height: 29px;
  border-right: 1px solid var(--gold-light);
  border-bottom: 1px solid var(--gold-light);
  transform: rotate(-45deg);
}

.breadcrumb > li.breadcrumb-item + li:before {
  content: "";
  padding: 0;
}

/* ── Tarjetas de producto ─────────────────────────────────────────────── */
.product-thumb {
  border: 1px solid var(--border);
  position: relative;
  height: 100%;
  background-color: #fff;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.product-thumb:hover {
  border-color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(201,169,97,0.12);
}

.product-thumb .image {
  text-align: center;
  overflow: hidden;
}

.product-thumb .image img {
  transition: transform 0.35s ease;
}

.product-thumb .image a:hover img {
  transform: scale(1.04);
  opacity: 1;
}

.product-thumb .description {
  padding: 15px;
  margin-bottom: 45px;
}

.product-thumb .description h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--navy);
}

.product-thumb .button {
  display: flex;
  position: absolute;
  width: 100%;
  bottom: 0;
}

.product-thumb .button button {
  width: 33.33%;
  border: none;
  border-top: 1px solid var(--border);
  background-color: var(--cream-dark);
  color: var(--navy);
  line-height: 38px;
  text-align: center;
  font-size: 0.9rem;
  transition: background-color 0.2s, color 0.2s;
}

.product-thumb .button button:hover {
  color: var(--gold-dark);
  background-color: var(--navy);
  color: var(--gold-light);
  text-decoration: none;
  cursor: pointer;
}

.product-thumb .button button + button {
  border-left: 1px solid var(--border);
}

@media (min-width: 960px) {
  .product-list .product-thumb              { display: flex; }
  .product-list .product-thumb .image       { flex-direction: column; margin-bottom: 0; }
  .product-list .product-thumb .content     { flex-direction: column; flex: 75%; position: relative; }
  .product-list .product-thumb .button      { border-left: 1px solid var(--border); width: calc(100% - 15px); margin-left: 15px; }
}

/* ── Estrellas de valoración ──────────────────────────────────────────── */
.rating .fa-stack {
  width: 20px;
}

.rating .fa-star {
  color: var(--gray-300);
  font-size: 15px;
}

.rating .fa-star.checked,
.rating .fa-star + .fa-star {
  color: var(--gold);
}

/* Signature: separador dorado ornamental ─────────────────────────────── */
.rating .fa-star + .fa-star {
  color: var(--gold-dark);
}

/* ── Precios ──────────────────────────────────────────────────────────── */
.price {
  color: var(--navy);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
}

.price-new {
  font-weight: 700;
  color: var(--navy);
}

.price-old {
  color: var(--wine);
  text-decoration: line-through;
  font-weight: 400;
}

.price-tax {
  color: var(--gray-500);
  font-size: 12px;
  display: block;
}

/* ── Blog / Artículos ─────────────────────────────────────────────────── */
.blog-thumb {
  border: 1px solid var(--border);
  margin-bottom: 15px;
  background-color: #fff;
  transition: border-color 0.25s;
}

.blog-thumb:hover {
  border-color: var(--gold-light);
}

.blog-thumb h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--navy);
}

.blog-thumb .image {
  text-align: center;
  margin-bottom: 15px;
  overflow: hidden;
}

.blog-thumb .image a:hover {
  opacity: 0.85;
}

.blog-thumb .description {
  padding: 15px;
}

/* ── Cookie banner ────────────────────────────────────────────────────── */
#cookie {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  z-index: 9999;
  opacity: 0.97;
  color: var(--cream);
  background: var(--navy-dark);
  border-top: 2px solid var(--gold);
}

#cookie div {
  font-size: 15px;
  font-family: 'EB Garamond', serif;
  color: var(--cream);
}

/* ── Firma ornamental (elemento de diseño único) ──────────────────────── */
/*
   En OpenCart puedes agregar esta clase "section-divider" a cualquier
   separador de sección para el ornamento dorado característico del sitio:
*/
.section-divider {
  text-align: center;
  margin: 24px 0;
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: linear-gradient(to var(--dir, right), var(--gold-light), transparent);
}

.section-divider::before { left: 0; --dir: right; }
.section-divider::after  { right: 0; --dir: left; }

.section-divider span {
  display: inline-block;
  color: var(--gold);
  font-size: 1.1rem;
  padding: 0 12px;
  background: var(--cream);
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.1em;
}

/* ── Paginación ───────────────────────────────────────────────────────── */
.pagination .page-link {
  color: var(--navy);
  border-color: var(--border);
  font-family: 'EB Garamond', serif;
  border-radius: 0 !important;
}

.pagination .page-link:hover {
  background-color: var(--cream-dark);
  color: var(--gold-dark);
  border-color: var(--gold-light);
}

.pagination .page-item.active .page-link {
  background-color: var(--navy);
  border-color: var(--navy);
  color: var(--gold-light);
}
