/*
Theme Name: Dead Reckoning Elementor
Author: Custom
Description: Minimal starter theme for Dead Reckoning Rum — designed for Elementor Free
Version: 1.0
*/

/* ── Google Fonts loaded via functions.php ── */

:root {
  --cream:  #F5EFE0;
  --dark:   #1A1209;
  --gold:   #C8922A;
  --red:    #B01C1C;
  --text:   #2C1A08;
  --muted:  #7A6040;
  --white:  #FFFFFF;
  --border: #E8DCC8;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', sans-serif;
  --font-accent:  'Cinzel', serif;
  --radius: 8px;
  --shadow: 0 8px 32px rgba(26,18,9,.14);
  --tr: .3s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
}
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--dark);
}

/* ── Elementor resets ── */
.elementor-section .elementor-container { max-width: 1180px; }
.elementor-widget-wrap { padding: 0; }

/* ── Global button styles (used in Elementor button widget) ── */
.dr-btn-red {
  background: var(--red) !important;
  color: var(--white) !important;
  border: none !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  letter-spacing: .4px !important;
  transition: var(--tr) !important;
  padding: 12px 28px !important;
}
.dr-btn-red:hover { background: #8e1616 !important; transform: translateY(-2px) !important; }

.dr-btn-outline {
  background: transparent !important;
  color: var(--dark) !important;
  border: 1.5px solid var(--dark) !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 20px !important;
  transition: var(--tr) !important;
}
.dr-btn-outline:hover { background: var(--dark) !important; color: var(--white) !important; }

/* ── NAVIGATION ── */
#site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 16px 0;
  transition: var(--tr);
}
#site-header.scrolled {
  position: fixed;
  background: rgba(26,18,9,.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
  animation: slideDown .3s ease;
  padding: 10px 0;
}
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { height: 52px; width: auto; }
.site-logo .logo-text {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 2px;
}
.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-menu a {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  opacity: .9;
  transition: var(--tr);
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a { opacity: 1; color: var(--gold); }
.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 4px !important;
  opacity: 1 !important;
  font-weight: 700 !important;
}
.nav-cta:hover { background: #8e1616 !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 10000;
}
.hamburger span {
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  display: block;
  transition: var(--tr);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}
.footer-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center bottom;
  opacity: .5;
}
.footer-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 52px 0 0;
}
.footer-logo-wrap { margin-bottom: 28px; }
.footer-logo-wrap img { height: 80px; margin: 0 auto; }
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.footer-nav a { color: rgba(255,255,255,.75); font-size: 14px; transition: var(--tr); }
.footer-nav a:hover { color: var(--gold); }
.footer-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 36px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 15px; font-weight: 700;
  transition: var(--tr);
}
.footer-social a:hover { background: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-bottom span,
.footer-bottom a { color: rgba(255,255,255,.5); font-size: 12px; transition: var(--tr); }
.footer-bottom a:hover { color: var(--gold); }

/* ── Elementor: Section background helpers ── */
.e-section-dark  { background: var(--dark) !important; }
.e-section-cream { background: var(--cream) !important; }
.e-section-white { background: var(--white) !important; }

/* ── Product card style (used with Elementor widgets) ── */
.dr-product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(26,18,9,.07);
  transition: var(--tr);
}
.dr-product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.dr-product-card img { width: 100%; height: 220px; object-fit: cover; }
.dr-product-card-body { padding: 18px 20px 22px; }
.dr-product-card-body h3 { font-size: .98rem; margin-bottom: 8px; font-family: var(--font-display); }
.dr-product-card-body p { font-size: .84rem; color: var(--muted); margin-bottom: 14px; }
.dr-product-card-body a {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border);
  padding: 7px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700; color: var(--dark);
  transition: var(--tr);
}
.dr-product-card-body a:hover { border-color: var(--dark); }
.dr-product-card-body a::after { content: '→'; }

/* ── Blog card ── */
.dr-blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 16px rgba(26,18,9,.07);
  transition: var(--tr);
}
.dr-blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.dr-blog-card img { width: 100%; height: 185px; object-fit: cover; }
.dr-blog-card-body { padding: 20px; }
.dr-blog-card-body h3 { font-family: var(--font-body); font-size: .93rem; font-weight: 700; margin-bottom: 9px; }
.dr-blog-card-body p { font-size: .83rem; color: var(--muted); margin-bottom: 14px; }
.dr-blog-card-body a {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--border);
  padding: 7px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 700; color: var(--dark);
  transition: var(--tr);
}
.dr-blog-card-body a:hover { border-color: var(--dark); }
.dr-blog-card-body a::after { content: '→'; }

/* ── Testimonial card ── */
.dr-testimonial-card {
  background: #FDFAF4;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.dr-testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--gold);
  opacity: .18;
  position: absolute;
  top: 8px; left: 18px;
  line-height: 1;
}
.dr-reviewer { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dr-reviewer-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--gold);
}
.dr-reviewer-init {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); display: flex; align-items: center;
  justify-content: center; color: var(--white); font-weight: 700;
  font-size: 1rem; flex-shrink: 0;
}
.dr-reviewer-info strong { display: block; font-size: .93rem; }
.dr-reviewer-info span  { font-size: .8rem; color: var(--muted); }
.dr-stars { color: var(--gold); font-size: 13px; margin-bottom: 8px; }
.dr-testimonial-card p { font-size: .88rem; color: var(--muted); line-height: 1.7; }
.dr-read-more { color: var(--red); font-size: 13px; font-weight: 700; display: inline-block; margin-top: 10px; }

/* ── Section title style ── */
.dr-section-title {
  font-size: clamp(1.9rem,3.5vw,2.6rem);
  text-align: center;
  margin-bottom: 44px;
  font-family: var(--font-display);
  color: var(--dark);
}
.dr-section-title::after {
  content: '';
  display: block;
  width: 56px; height: 3px;
  background: var(--gold);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ── About quote block ── */
.dr-about-quote {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 14px 18px;
  font-style: italic;
  font-size: .9rem;
  color: var(--brown);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 20px;
}

/* ── Page hero banner ── */
.dr-page-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dark);
}
.dr-page-hero-overlay {
  position: absolute; inset: 0;
  background: rgba(26,18,9,.48);
  z-index: 1;
}
.dr-page-hero h1 {
  position: relative; z-index: 2;
  color: var(--white);
  font-size: clamp(2rem,5vw,3.2rem);
  text-align: center;
}

/* ── Contact form ── */
.dr-contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.dr-contact-img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.dr-contact-form-wrap { padding: 48px 40px; background: var(--white); }
.dr-contact-form-wrap h2 { font-size: clamp(1.6rem,3vw,2.2rem); margin-bottom: 28px; text-align: center; }
.dr-form-group { margin-bottom: 18px; }
.dr-form-group label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.dr-form-group input,
.dr-form-group textarea {
  width: 100%; border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 11px 14px;
  font-family: var(--font-body); font-size: 14px; color: var(--text);
  background: var(--white); transition: var(--tr); resize: vertical;
}
.dr-form-group input::placeholder,
.dr-form-group textarea::placeholder { color: #bbb; }
.dr-form-group input:focus,
.dr-form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,146,42,.12); }
.dr-form-group textarea { min-height: 120px; }
.dr-contact-submit { text-align: right; margin-top: 6px; }
.dr-success { background: #e8f5e9; border: 1px solid #a5d6a7; padding: 12px 16px; border-radius: var(--radius); color: #2e7d32; font-size: 14px; margin-bottom: 20px; }

/* ── WooCommerce base overrides ── */
.woocommerce-page .site-main { padding: 64px 0; background: var(--cream); }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3,1fr) !important; gap: 24px !important; margin: 0 !important; padding: 0 !important; float: none !important; }
.woocommerce ul.products li.product { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 3px 16px rgba(26,18,9,.07); transition: var(--tr); margin: 0 !important; float: none !important; width: auto !important; }
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.woocommerce ul.products li.product a img { width: 100% !important; height: 220px !important; object-fit: cover !important; border-radius: 0 !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--font-display); font-size: .98rem; padding: 16px 18px 6px; color: var(--dark); }
.woocommerce ul.products li.product .price { padding: 0 18px 6px; color: var(--gold); font-weight: 700; }
.woocommerce ul.products li.product .button { margin: 0 18px 18px; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--border) !important; padding: 7px 16px !important; border-radius: 20px !important; font-size: 13px !important; font-weight: 700 !important; background: transparent !important; color: var(--dark) !important; }
.woocommerce ul.products li.product .button::after { content: '→'; }
.woocommerce ul.products li.product .button:hover { border-color: var(--dark) !important; background: var(--dark) !important; color: var(--white) !important; }
.woocommerce-ordering select { border: 1.5px solid var(--border); border-radius: 20px; padding: 7px 16px; font-size: 13px; background: var(--white); }
.woocommerce nav.woocommerce-pagination ul { display: flex; gap: 8px; justify-content: center; margin-top: 44px; list-style: none; padding: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; border: 1.5px solid var(--border); background: var(--white); color: var(--text); transition: var(--tr); padding: 0; line-height: 1; }
.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce nav.woocommerce-pagination ul li a:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ── Reveal animation ── */
.dr-reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.dr-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .woocommerce ul.products { grid-template-columns: repeat(2,1fr) !important; }
}
@media (max-width: 768px) {
  .nav-menu { display: none; position: fixed; inset: 0; background: var(--dark); flex-direction: column; justify-content: center; align-items: center; gap: 28px; z-index: 9998; }
  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 1.1rem; }
  .hamburger { display: flex; }
  .dr-contact-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
@media (max-width: 520px) {
  .woocommerce ul.products { grid-template-columns: 1fr !important; }
}


/* Customiser-css */


.blog-grid-wrapper {
    padding: 40px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Responsive */
@media(max-width:1024px){
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width:768px){
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Pagination */
.blog-pagination {
    text-align: center;
    margin-top: 40px;
}

.blog-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 5px;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.blog-pagination .page-numbers.current {
    background: #e63946;
    color: #fff;
}

.blog-pagination .page-numbers:hover {
    background: #e63946;
    color: #fff;
}

.custom-contact-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background: #f3f3f3;
  border-radius: 8px;
  text-align: left;
}

.custom-contact-form h2 {
  text-align: center;
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 30px;
  color: #333;
}

.custom-contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.custom-contact-form input,
.custom-contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
}

.custom-contact-form textarea {
  border-radius: 15px;
  height: 120px;
  resize: none;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
  border-color: #ccc;
}

.custom-contact-form input[type="submit"] {
  background: #c62828;
  color: #fff;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  display: block;
  margin: 0 auto;
  font-size: 14px;
  transition: 0.3s ease;
}

.custom-contact-form input[type="submit"]:hover {
  background: #a61d1d;
}
.heading-product-and-filter {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-products-header {
    display: flex;
    align-items: center;
    gap: 20px;
}

.custom-products-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.view-all-btn {
    padding: 6px 16px;
    border: 1px solid #333;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    color: #333;
    transition: 0.3s ease;
}

.view-all-btn:hover {
    background: #333;
    color: #fff;
}
.custom-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.custom-sort-wrapper label {
    font-size: 14px;
    color: #444;
}

.custom-sort-wrapper select {
    padding: 8px 18px;
    border-radius: 30px;
    border: 1px solid #333;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    min-width: 100px;
}

.custom-sort-wrapper select:focus {
    outline: none;
}
.custom-pagination {
    margin-top: 40px;
    text-align: center;
}

.custom-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 14px;
    border-radius: 50px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: 0.3s ease;
}

.custom-pagination .page-numbers:hover {
    background: #333;
    color: #fff;
}

.custom-pagination .current {
    background: #333;
    color: #fff;
    border-color: #333;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-item {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
}

.testimonial-image img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}