/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-color: #fdfdfd;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    background: #e67e22;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    z-index: 2000;
    text-decoration: none;
}

.skip-link:focus {
    left: 10px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
    outline: 3px solid #e67e22;
    outline-offset: 2px;
}

.field-error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.2);
}

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

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: transform 0.3s ease;
    background: #2c3e50;
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e67e22;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #e67e22;
}

.nav-menu a:focus-visible {
    color: #e67e22;
}

/* Hamburger — hidden on desktop, shown on small screens */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 6px 10px;
}

.nav-toggle:hover {
    color: #e67e22;
}

.login-btn {
    background: #e67e22;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
    background: #d35400;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

/* Admin Navigation */
.admin-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 15px;
    border: 1px solid #e67e22;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.admin-link:hover {
    background: #e67e22;
    color: white;
}

.logout-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.logout-btn:hover {
    background: #c82333;
}

/* Login Modal */
.login-modal-content {
    max-width: 400px;
    padding: 36px 34px;
    margin: 0;
    width: min(92vw, 420px);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 14px;
    box-shadow: 0 24px 50px rgba(0,0,0,0.28);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 18px;
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    letter-spacing: 0.4px;
}

.login-form {
    display: grid;
    gap: 12px;
}

.login-form .form-group {
    margin-bottom: 0;
}

.login-form .form-group label {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 600;
}

.login-form input {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #f9fafb;
}

.login-form input:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

.login-submit-btn {
    background: #e67e22;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    margin-top: 15px;
}

.login-submit-btn:hover {
    background: #d35400;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.login-error {
    color: #dc3545;
    text-align: center;
    margin-top: 15px;
    padding: 10px;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    background: linear-gradient(rgba(44, 62, 80, 0.72), rgba(44, 62, 80, 0.78)),
                url('LubraryClock.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-btn {
    display: inline-block;
    background: #e67e22;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.4);
}

.hero-btn:active {
    transform: translateY(0);
}

/* Section Titles */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #e67e22;
    margin: 15px auto 0;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background: #faf6ef;
}

/* Ornamental divider at the top of light sections that follow
   another light section, so the colour change feels intentional */
.about-section::before,
.contact-section::before {
    content: '\25C6'; /* small diamond */
    display: block;
    width: min(360px, 70%);
    margin: 0 auto 55px;
    text-align: center;
    color: #e67e22;
    font-size: 0.7rem;
    line-height: 1;
    background-image:
        linear-gradient(90deg, rgba(44,62,80,0), rgba(44,62,80,0.25)),
        linear-gradient(270deg, rgba(44,62,80,0), rgba(44,62,80,0.25));
    background-size: calc(50% - 26px) 1px;
    background-position: left center, right center;
    background-repeat: no-repeat;
}

.search-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.search-bar {
    display: flex;
    background: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.search-bar input {
    padding: 12px 20px;
    border: none;
    outline: none;
    width: 300px;
    font-size: 1rem;
}

.search-bar button {
    background: #e67e22;
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-bar button:hover {
    background: #d35400;
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-controls select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-controls select:focus {
    outline: none;
    border-color: #e67e22;
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.15);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* ==== SOLD OUT – polished & lighter ==== */
/* Card base */
.product-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  /* springy curve gives a slight overshoot, like a clock hand settling */
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  border: 1px solid rgba(0,0,0,0.05);
  animation: cardEnter 0.5s ease both;
}

@keyframes cardEnter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Cascade the grid in, one tick at a time */
.product-card:nth-child(2) { animation-delay: 0.07s; }
.product-card:nth-child(3) { animation-delay: 0.14s; }
.product-card:nth-child(4) { animation-delay: 0.21s; }
.product-card:nth-child(5) { animation-delay: 0.28s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }
.product-card:hover {
  transform: translateY(-6px) rotate(0.4deg);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.product-card:nth-child(even):hover {
  transform: translateY(-6px) rotate(-0.4deg);
}

/* Sold cards read as "archived": faded photo, cream veil, wax-stamp mark */
.product-card.sold-out .product-image {
  filter: grayscale(55%) sepia(10%);
  opacity: 0.92;
}
.product-card.sold-out:hover { transform: none; }
.product-card.sold-out:hover .product-image { transform: none; }
.product-card.sold-out .product-price {
  text-decoration: line-through;
  opacity: 0.55;
}

.sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 246, 239, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none; /* keep card non-blocking */
}
.product-card.sold-out .sold-out-overlay { opacity: 1; }

/* Antique dealer's stamp */
.sold-out-text{
  padding: 10px 28px;
  border: 3px double #a8332f;
  border-radius: 6px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.3em;
  text-indent: 0.3em; /* balance the letter-spacing */
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.82);
  color: #a8332f;
  transform: rotate(-12deg);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  backdrop-filter: none;               /* keep text crisp on white */
  -webkit-backdrop-filter: none;
  pointer-events: none;
}

@media (max-width: 480px) {
  .sold-out-text {
    font-size: 1rem;
    padding: 8px 20px;
  }
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain; /* keep full clock visible on light studio backgrounds */
    object-position: center;
    background: #efe8dc;
    transition: transform 0.5s ease, filter 0.3s ease, opacity 0.3s ease;
}

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

.product-info {
    padding: 25px;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #e67e22;
}

.product-century {
    background: #2c3e50;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Repairs Section */
.repairs-section {
    padding: 100px 0;
    background: linear-gradient(rgba(44, 62, 80, 0.9), rgba(44, 62, 80, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><line x1="50" y1="20" x2="50" y2="35" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><line x1="50" y1="65" x2="50" y2="80" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><line x1="20" y1="50" x2="35" y2="50" stroke="rgba(255,255,255,0.05)" stroke-width="1"/><line x1="65" y1="50" x2="80" y2="50" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>');
    background-size: 150px 150px;
    color: white;
}

.repairs-section .section-title {
    color: white;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.9;
}

.repairs-content {
    max-width: 1200px;
    margin: 0 auto;
}

.repairs-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    align-items: start;
}

.repairs-text {
    text-align: center;
}

.repairs-video {
    position: sticky;
    top: 100px;
}

.repair-video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid #e67e22;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .repairs-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .repairs-video {
        position: static;
        order: -1;
    }
    
    .repair-video {
        max-height: 300px;
        object-fit: cover;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Pendulum wobble for round icon badges — a nod to a swinging clock pendulum */
@keyframes pendulum {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(-8deg); }
    45%  { transform: rotate(6deg); }
    68%  { transform: rotate(-3deg); }
    86%  { transform: rotate(1.5deg); }
    100% { transform: rotate(0deg); }
}

.service-icon,
.email-icon,
.step-number {
    transform-origin: 50% 0; /* swing from the top, like a pendulum pivot */
}

.service-item:hover .service-icon,
.email-card:hover .email-icon,
.process-step:hover .step-number,
.nav-logo:hover .fa-clock {
    animation: pendulum 0.9s ease-in-out;
}

.nav-logo .fa-clock {
    display: inline-block;
    transform-origin: 50% 50%;
}

/* Springy feel shared by primary buttons */
.hero-btn,
.buy-btn,
.login-btn,
.email-link,
.stripe-pay-button,
.email-choice-btn,
.repair-request-btn {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.3s ease,
                background-color 0.3s ease;
}

.buy-btn:hover,
.login-btn:hover,
.stripe-pay-button:hover,
.repair-request-btn:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.buy-btn:active,
.login-btn:active,
.stripe-pay-button:active,
.repair-request-btn:active {
    transform: translateY(0) scale(0.99);
}

/* Gentle lift for content cards */
.service-item,
.faq-item {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(230, 126, 34, 0.15);
}

/* Keyboard focus */
.hero-btn:focus-visible,
.buy-btn:focus-visible,
.login-btn:focus-visible,
.email-link:focus-visible,
.stripe-pay-button:focus-visible,
.repair-request-btn:focus-visible,
.pagination button:focus-visible {
    outline: 3px solid rgba(230, 126, 34, 0.55);
    outline-offset: 2px;
}

.repairs-intro {
    font-size: 1.1rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.repair-process {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 10px;
    margin: 50px 0;
    text-align: left;
}

.process-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    color: #e67e22;
}

.process-steps {
    margin-bottom: 30px;
}

.process-step {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: flex-start;
}

.step-number {
    background: #e67e22;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content h4 {
    color: #e67e22;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.step-content li {
    margin-bottom: 5px;
}

.important-note {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid #ffc107;
    padding: 20px;
    border-radius: 5px;
    margin: 30px 0;
}

.important-note i {
    color: #ffc107;
    margin-right: 10px;
}

.repair-request-btn {
    background: #e67e22;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 30px auto;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.repair-request-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.repair-disclaimer {
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
    margin-top: 20px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 30px;
    border: 2px solid #e67e22;
    border-radius: 10px;
    background: #faf6ef;
}

.faq-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.faq-item p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 60px 0 100px;
    background: #faf6ef;
}

/* Contact Section */
.contact-section {
    padding: 60px 0 110px;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.about-image {
    text-align: center;
}

.clock-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-caption {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
    margin-top: 15px;
    text-align: center;
}

.highlight-box {
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.highlight-box p {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 500;
}

.commission-info {
    background: white;
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid #e67e22;
    margin: 30px 0;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.commission-info h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-family: 'Playfair Display', serif;
}

.commission-info p {
    margin-bottom: 15px;
    color: #555;
}

.quote-box {
    background: #2c3e50;
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
    position: relative;
}

.quote-box::before {
    content: '"';
    font-size: 4rem;
    color: #e67e22;
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: 'Playfair Display', serif;
}

.quote-box blockquote {
    margin: 0;
}

.quote-box blockquote p {
    font-size: 1.3rem;
    font-style: italic;
    margin-bottom: 15px;
    color: white;
    font-family: 'Playfair Display', serif;
}

.quote-box cite {
    color: #e67e22;
    font-weight: 600;
    font-size: 1rem;
}

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

.service-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: #e67e22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 2rem;
}

.service-item h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
/* ===== Contact: Email Cards ===== */

.email-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: 520px;
    margin: 40px auto 0;
}

.email-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.email-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.email-icon {
    width: 80px;
    height: 80px;
    background: #e67e22;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.email-icon i {
    font-size: 2rem;
    color: white;
}

.email-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.email-desc {
    color: #666;
    line-height: 1.6;
}

.email-link {
    display: inline-block;
    background-color: #e67e22;
    color: white !important; /* Override default link styles */
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none !important; /* Override default link styles */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-top: 12px;
    border: none;
    cursor: pointer;
}

.email-link:hover {
    background: #d35400;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 50px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.footer-left h3 {
    color: #e67e22;
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.footer-left p {
    opacity: 0.8;
}

.footer-copyright {
    margin-top: 8px;
    font-size: 0.85rem;
    opacity: 0.75;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.link-column h4 {
    color: #e67e22;
    margin-bottom: 15px;
}

.link-column ul {
    list-style: none;
}

.link-column ul li {
    margin-bottom: 8px;
}

.link-column ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.link-column ul li a:hover {
    opacity: 1;
    color: #e67e22;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    max-width: 1100px;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    margin: 20px;
    width: 90%;
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
    animation: modalEnter 0.3s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes modalEnter {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.email-choice-modal-content {
    max-width: 520px;
    padding: 28px;
}

.email-choice-content h2 {
    font-family: 'Playfair Display', serif;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: center;
}

.email-choice-copy {
    text-align: center;
    color: #666;
    margin-bottom: 20px;
}

.email-choice-actions {
    display: grid;
    gap: 12px;
}

.email-choice-btn {
    padding: 12px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    background: #e67e22;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.email-choice-btn:hover {
    background: #d35400;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.email-choice-btn.ghost {
    background: #f2f4f6;
    color: #2c3e50;
}

.email-choice-btn.ghost:hover {
    background: #e6e9ee;
    color: #2c3e50;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    z-index: 10;
}

.close:hover {
    color: #333;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    padding: 30px;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Image Gallery Styles */
.image-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.image-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.image-thumbnail:hover {
    opacity: 1;
    border-color: #e67e22;
    transform: scale(1.05);
}

.image-thumbnail.active {
    opacity: 1;
    border-color: #e67e22;
    box-shadow: 0 0 10px rgba(230, 126, 34, 0.3);
}

.modal-info h2 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.modal-price {
    font-size: 1.5rem;
    color: #e67e22;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-century {
    background: #2c3e50;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.modal-description {
    margin-bottom: 25px;
    line-height: 1.6;
    color: #555;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-description::-webkit-scrollbar {
    width: 6px;
}

.modal-description::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-description::-webkit-scrollbar-thumb {
    background: #e67e22;
    border-radius: 3px;
}

.modal-description::-webkit-scrollbar-thumb:hover {
    background: #d35400;
}

.payment-options {
    margin-bottom: 25px;
}

.payment-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.payment-icons i {
    font-size: 2rem;
    color: #666;
}

.buy-btn {
    background: #e67e22;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.buy-btn:hover {
    background: #d35400;
    transform: translateY(-2px);
}

.buy-btn:active {
    transform: translateY(0);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.pagination {
    align-items: center;
    flex-wrap: wrap;
}

.pagination button {
    min-width: 42px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled),
.pagination button.active {
    background: #e67e22;
    color: white;
    border-color: #e67e22;
}

.pagination button:disabled {
    opacity: 0.35;
    cursor: default;
}

.pagination-gap {
    color: #999;
    padding: 0 4px;
    user-select: none;
}

.products-loading,
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.products-loading {
    font-style: italic;
    letter-spacing: 0.02em;
}

.no-results i {
    font-size: 2.5rem;
    color: #e67e22;
    opacity: 0.5;
    margin-bottom: 15px;
    display: block;
}

.no-results p {
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: inline-block;
    }

    /* Collapsible dropdown menu under the fixed header */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: #2c3e50;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 12px 24px rgba(0,0,0,0.25);
        padding: 8px 0;
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-menu li a {
        display: block;
        padding: 14px 24px;
    }

    .nav-menu li a:hover {
        background: rgba(230, 126, 34, 0.12);
    }

    .header .navbar {
        position: relative;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar input {
        width: 100%;
    }
    
    .filter-controls {
        justify-content: center;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        align-self: center;
    }
}

/* Message Styles */
.message {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: slideIn 0.3s ease;
}

.success-message {
    background: #28a745;
}

.error-message {
    background: #dc3545;
}

.info-message {
    background: #17a2b8;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}


/* Checkout Modal Styles */
.checkout-modal-content {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
}

.checkout-form h2 {
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 10px;
}

.checkout-product-summary {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
}

.checkout-product-summary img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 15px;
}

.checkout-product-info h3 {
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    margin: 0 0 5px 0;
}

.checkout-product-price {
    color: #e67e22;
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.form-section {
    margin-bottom: 25px;
}

.form-section h3 {
    color: #2c3e50;
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e67e22;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-group {
    flex: 1;
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #2c3e50;
    font-weight: 500;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e67e22;
}

.payment-note {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fef9f3;
    color: #2c3e50;
    font-weight: 500;
}

.payment-note i {
    font-size: 20px;
    color: #e67e22;
}

.payment-container {
    margin-top: 20px;
}

.stripe-pay-button {
    width: 100%;
    padding: 15px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.stripe-pay-button:hover {
    background: #34495e;
}

.checkout-error {
    background: #dc3545;
    color: white;
    padding: 12px;
    border-radius: 6px;
    margin-top: 15px;
    text-align: center;
}

/* Mobile responsiveness for checkout modal */
@media (max-width: 768px) {
    .checkout-modal-content {
        margin: 10px;
        padding: 20px;
        max-height: 95vh;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .checkout-product-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .checkout-product-summary img {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

