/* Custom Styles */

:root {
    --primary-color: #8b1538;
    --secondary-color: #d4af37;
    --accent-gold: #d4af37;
    --accent-maroon: #8b1538;
    --accent-red: #c41e3a;
    --dark-color: #2c2c2c;
    --light-color: #f8f8f8;
    --bg-cream: #fff8f0;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Poppins', sans-serif;
    --font-royal: 'Cinzel', 'Cormorant Garamond', serif;
}

body {
    font-family: var(--font-secondary);
    color: var(--dark-color);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #8b1538;
    letter-spacing: 1px;
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

h2 {
    font-size: 2.3rem;
    font-weight: 600;
    letter-spacing: 1.5px;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

h4 {
    font-size: 1.5rem;
    font-weight: 600;
}

h5 {
    font-size: 1.3rem;
    font-weight: 600;
}

h6 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Loading Spinner */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Global Image Container Styles - Center Fit All Images */
.product-image,
.product-image-wrapper,
.category-image-wrapper,
.category-banner-image-wrapper,
.banner-image-wrapper,
.hero-banner-image-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.product-image {
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
}

.product-image img,
.product-image-wrapper img,
.category-image-wrapper img,
.category-banner-image-wrapper img,
.banner-image-wrapper img,
.hero-banner-image-wrapper img {
    object-fit: contain !important;
    object-position: center !important;
}

.product-image img {
    max-height: 400px !important;
    width: 100% !important;
    height: 100% !important;
}

/* Ensure product cards have background */
.product-card .product-image {
    background: #fff8f0;
    height: 400px !important;
    min-height: 400px !important;
    max-height: 400px !important;
}

/* Category cards background */
.category-card-traditional .category-image-wrapper-traditional,
.category-banner-item .category-banner-image-wrapper {
    background: linear-gradient(135deg, #fff8f0 0%, #f5e6d3 100%);
}

/* Product Cards */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Global Links - No Decoration */
a,
a:link,
a:visited,
a:hover,
a:active,
a:focus {
    text-decoration: none !important;
}

/* Navigation Links - No Decoration */
.nav-link,
.nav-link:link,
.nav-link:visited,
.nav-link:hover,
.nav-link:active,
.nav-link:focus {
    text-decoration: none !important;
}

a.nav-link {
    text-decoration: none !important;
    display: inline-block;
}

/* Product Card Links */
.product-card a,
.product-card a:link,
.product-card a:visited,
.product-card a:hover,
.product-card a:active,
.product-card a:focus {
    text-decoration: none !important;
}

/* Card Title Links */
.card-title a,
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a,
.card-title a:link,
.card-title a:visited,
.card-title a:hover,
.card-title a:active,
.card-title a:focus {
    text-decoration: none !important;
}

/* Breadcrumb Links */
.breadcrumb a,
.breadcrumb a:link,
.breadcrumb a:visited,
.breadcrumb a:hover,
.breadcrumb a:active,
.breadcrumb a:focus {
    text-decoration: none !important;
}

/* Additional Link Styles */
a.card-title,
a h6,
a h5,
a h4,
a h3,
a h2,
a h1 {
    text-decoration: none !important;
}

/* Category Links */
.categories a,
.categories .card a {
    text-decoration: none !important;
}

/* Shop Page Links */
.shop-page a,
.shop-page .product-card a {
    text-decoration: none !important;
}

/* Home Page Links */
.home-page a,
.home-page .product-card a {
    text-decoration: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Section Headings with Scrollwork Design Images */
.section-heading-wrapper {
    margin: 40px 0;
}

.section-heading {
    position: relative;
    display: inline-block;
    padding: 20px 40px;
}

.section-title {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    font-weight: 600;
    color: #8b1538;
    margin: 0;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-style: normal;
    text-shadow: 0 2px 4px rgba(139, 21, 56, 0.1);
    line-height: 1.3;
    position: relative;
}

.scrollwork-top,
.scrollwork-bottom {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: auto;
    max-width: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.scrollwork-top {
    top: -25px;
    background-image: url('../images/topdesign.png');
    min-height: 30px;
    max-height: 35px;
}

.scrollwork-bottom {
    bottom: -25px;
    background-image: url('../images/bottomdesign.png');
    min-height: 30px;
    max-height: 35px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .scrollwork-top,
    .scrollwork-bottom {
        width: 120px;
        min-height: 25px;
        max-height: 30px;
    }
    
    .scrollwork-top {
        top: -20px;
    }
    
    .scrollwork-bottom {
        bottom: -20px;
    }
}

/* Royal Typography Enhancements */
.card-title,
.product-card .card-title,
h1.card-title,
h2.card-title,
h3.card-title,
h4.card-title,
h5.card-title,
h6.card-title {
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-weight: 600;
    color: #8b1538;
    letter-spacing: 0.5px;
}

.lead {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    color: #666;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
}

/* Royal Buttons */
.btn-primary {
    background: linear-gradient(135deg, #8b1538 0%, #c41e3a 100%);
    border: none;
    color: #fff;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 12px 30px;
    border-radius: 10px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
    text-transform: uppercase;
    font-size: 0.95rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c41e3a 0%, #8b1538 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 21, 56, 0.4);
    color: #fff;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Royal Cards */
.card {
    border-radius: 15px;
    border: 1px solid #f0e6d3;
    box-shadow: 0 5px 20px rgba(139, 21, 56, 0.08);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(139, 21, 56, 0.15);
    transform: translateY(-3px);
}

.card-header {
    background: linear-gradient(135deg, #8b1538 0%, #c41e3a 100%);
    color: #fff;
    font-family: 'Cinzel', 'Cormorant Garamond', serif;
    font-weight: 600;
    border-bottom: 3px solid #d4af37;
    padding: 15px 20px;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.9rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

