/* ========================================
   VINTAGE MILITARY THEME - CUSTOM STYLES
   For Leather Porter E-commerce Platform
   ======================================== */

/* ===== COLOR VARIABLES ===== */
:root {
    /* Vintage Color Palette */
    --vintage-burgundy: #96000C;
    --vintage-yellow: #fedd00;
    --aged-paper: #e8dcc4;
    --vintage-mustard: #e6c200;
    /* Darker yellow for footer */

    /* Legacy color override for Bootstrap compatibility */
    --primary-color: #96000C;
    --secondary-color: #fedd00;
    --light-bg: #e8dcc4;
    --dark-text: #333;

    /* Bootstrap color overrides */
    --bs-primary: #96000C;
    --bs-primary-rgb: 150, 0, 12;
    --bs-secondary: #fedd00;
    --bs-secondary-rgb: 254, 221, 0;
}

/* ===== TYPOGRAPHY ===== */
@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Crimson+Text:wght@400;600;700&display=swap');

.font-military {
    font-family: 'Special Elite', monospace !important;
}

.font-serif {
    font-family: 'Crimson Text', serif !important;
}

body {
    font-family: 'Crimson Text', serif;
    background-color: #e8dcc4;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2396000c' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    /* padding-top removed to fix spacing issue */
}

/* ===== VINTAGE BORDERS & EFFECTS ===== */
.vintage-border {
    border: 3px solid var(--vintage-burgundy);
    border-image: repeating-linear-gradient(45deg,
            var(--vintage-burgundy),
            var(--vintage-burgundy) 10px,
            var(--vintage-yellow) 10px,
            var(--vintage-yellow) 20px) 1;
    background-color: white;
}

.vintage-border-simple {
    border: 4px solid var(--vintage-burgundy);
}

.vintage-border-dashed {
    border: 2px dashed var(--vintage-burgundy);
}

.vintage-border-double {
    border: 4px double var(--vintage-burgundy);
}

/* Distressed/aged effect */
.distressed {
    position: relative;
}

.distressed::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100%" height="100%" filter="url(%23noise)" opacity="0.05"/></svg>');
    pointer-events: none;
    z-index: 1;
}

.distressed>* {
    position: relative;
    z-index: 2;
}

/* Stamp effect */
.stamp {
    transform: rotate(-5deg);
    border: 3px dashed var(--vintage-burgundy);
}

/* Sepia filter for images */
.sepia {
    filter: sepia(0.4);
    transition: filter 0.3s ease;
}

.sepia:hover {
    filter: sepia(0);
}

.sepia-full {
    filter: sepia(1);
}

/* ===== BUTTONS ===== */
.btn-vintage-primary {
    background-color: var(--vintage-yellow) !important;
    color: var(--vintage-burgundy) !important;
    border: 2px solid var(--vintage-burgundy) !important;
    font-family: 'Special Elite', monospace;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-vintage-primary:hover {
    background-color: var(--vintage-burgundy) !important;
    color: var(--aged-paper) !important;
    border-color: var(--vintage-burgundy) !important;
}

.btn-vintage-secondary {
    background-color: var(--vintage-burgundy) !important;
    color: white !important;
    border: 2px solid var(--vintage-burgundy) !important;
    font-family: 'Special Elite', monospace;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-vintage-secondary:hover {
    background-color: white !important;
    color: var(--vintage-burgundy) !important;
}

.btn-vintage-outline {
    background-color: transparent !important;
    color: var(--vintage-burgundy) !important;
    border: 2px solid var(--vintage-burgundy) !important;
    font-family: 'Special Elite', monospace;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-vintage-outline:hover {
    background-color: var(--vintage-burgundy) !important;
    color: white !important;
}

/* ===== BACKGROUNDS ===== */
.bg-vintage-burgundy {
    background-color: var(--vintage-burgundy) !important;
}

.bg-vintage-yellow {
    background-color: var(--vintage-yellow) !important;
}

.bg-aged-paper {
    background-color: var(--aged-paper) !important;
}

/* ===== TEXT COLORS ===== */
.text-vintage-burgundy {
    color: var(--vintage-burgundy) !important;
}

.text-vintage-yellow {
    color: var(--vintage-yellow) !important;
}

.text-aged-paper {
    color: var(--aged-paper) !important;
}

/* ===== NAVBAR VINTAGE STYLING ===== */
.vintage-navbar-top {
    background-color: var(--aged-paper);
    border-bottom: 2px solid rgba(150, 0, 12, 0.2);
    padding: 1rem 0;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2396000c' fill-opacity='0.03'%3E%3Cpath d='M0 0h20L0 20z'/%3E%3C/g%3E%3C/svg%3E");
}

.vintage-navbar-bottom {
    background-color: var(--vintage-yellow);
    border-top: 4px double var(--vintage-burgundy);
    border-bottom: 4px double var(--vintage-burgundy);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vintage-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--vintage-yellow);
    border: 2px solid var(--vintage-burgundy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Crimson Text', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--vintage-burgundy);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vintage-nav-link {
    color: var(--vintage-burgundy) !important;
    font-family: 'Special Elite', monospace;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.vintage-nav-link:hover {
    color: white !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ===== FORMS ===== */
.vintage-form-control {
    border: 2px solid var(--vintage-burgundy);
    background-color: #fffcf5;
    font-family: 'Crimson Text', serif;
    color: var(--vintage-burgundy);
    padding: 0.75rem 1rem;
    border-radius: 0;
}

.vintage-form-control:focus {
    border-color: var(--vintage-yellow);
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(150, 0, 12, 0.15);
}

.vintage-form-control::placeholder {
    color: rgba(150, 0, 12, 0.5);
}

.vintage-form-label {
    font-family: 'Special Elite', monospace;
    font-size: 0.875rem;
    color: var(--vintage-burgundy);
    letter-spacing: 0.5px;
}

/* ===== CARDS ===== */
.vintage-card {
    background-color: white;
    border: 4px solid var(--vintage-burgundy);
    transition: all 0.3s ease;
}

.vintage-card:hover {
    box-shadow: 0 10px 30px rgba(150, 0, 12, 0.2);
    transform: translateY(-5px);
}

.vintage-card-header {
    background-color: var(--vintage-yellow);
    color: var(--vintage-burgundy);
    font-family: 'Special Elite', monospace;
    border-bottom: 2px solid var(--vintage-burgundy);
}

/* Catalog Item Card */
.catalog-item {
    background-color: #fffcf5;
    /* Off-white */
    border: 2px solid var(--vintage-burgundy);
    padding: 1rem;
    transition: box-shadow 0.3s ease;
    position: relative;
}

.catalog-item:hover {
    box-shadow: 5px 5px 0px rgba(150, 0, 12, 0.2);
    transform: translate(-2px, -2px);
}

.catalog-item-number {
    font-family: 'Special Elite', monospace;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--vintage-burgundy);
    opacity: 0.7;
    border-bottom: 1px solid rgba(150, 0, 12, 0.2);
    padding-bottom: 4px;
    margin-bottom: 8px;
    display: block;
}

.catalog-item-title {
    font-family: 'Special Elite', monospace;
    font-size: 1.2rem;
    color: var(--vintage-burgundy);
    margin: 0.5rem 0;
    line-height: 1.2;
    min-height: 2.4em;
}

.catalog-item-price {
    font-family: 'Special Elite', monospace;
    font-size: 1.5rem;
    color: #b30000;
    /* Slightly brighter red for price */
    font-weight: bold;
}

/* ===== BADGES & COUNTERS ===== */
.vintage-badge {
    background-color: var(--vintage-burgundy);
    color: white;
    font-family: 'Special Elite', monospace;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0;
}

.vintage-counter {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--vintage-burgundy);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: bold;
    border: 2px solid white;
}

/* ===== FOOTER ===== */
.vintage-footer {
    background-color: var(--vintage-mustard);
    color: var(--vintage-burgundy);
    border-top: 8px double var(--vintage-burgundy);
    padding: 4rem 0 2rem;
    background-image: repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0px, rgba(0, 0, 0, 0.02) 2px, transparent 2px, transparent 4px);
}

.vintage-footer h5,
.vintage-footer h6 {
    font-family: 'Special Elite', monospace;
    color: var(--vintage-burgundy);
    border-bottom: 2px solid rgba(150, 0, 12, 0.2);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.vintage-footer a {
    color: var(--vintage-burgundy);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.vintage-footer a:hover {
    color: white;
    text-shadow: 1px 1px 0px var(--vintage-burgundy);
    padding-left: 5px;
}

/* ===== TABS ===== */
.vintage-tabs {
    border-bottom: 4px solid var(--vintage-burgundy);
    margin-bottom: 2rem;
}

.vintage-tab {
    font-family: 'Special Elite', monospace;
    background-color: var(--aged-paper);
    color: var(--vintage-burgundy);
    border: 2px solid var(--vintage-burgundy);
    border-bottom: none;
    padding: 0.75rem 2rem;
    margin: 0 0.5rem 0 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
}

.vintage-tab.active {
    background-color: var(--vintage-burgundy);
    color: var(--vintage-yellow);
    transform: translateY(4px);
}

.vintage-tab:hover {
    background-color: var(--vintage-yellow);
    color: var(--vintage-burgundy);
}

/* ===== SECTION TITLES ===== */
.vintage-section-title {
    font-family: 'Special Elite', monospace;
    font-size: 2.5rem;
    color: var(--vintage-burgundy);
    text-align: center;
    border-bottom: 4px double var(--vintage-burgundy);
    display: inline-block;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    background-color: var(--vintage-yellow);
    padding: 0.5rem 2rem;
    transform: rotate(-1deg);
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.1);
}

/* ===== ICONS ===== */
.vintage-icon {
    color: var(--vintage-burgundy);
    transition: color 0.3s ease;
}

.vintage-icon:hover {
    color: var(--vintage-yellow);
}

/* ===== CAROUSEL ===== */
.vintage-carousel {
    border: 8px solid white;
    outline: 4px solid var(--vintage-burgundy);
    padding: 0;
    background-color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 3rem;
}

/* Carousel Controls Fixes */
.carousel-control-prev,
border: 2px solid var(--vintage-burgundy);
padding: 0.5rem;
border-radius: 50%;
transition: all 0.2s ease;
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
}

.vintage-product-action:hover {
    background-color: var(--vintage-burgundy);
    color: white;
}

/* ===== FAQ ACCORDION ===== */
.accordion-item {
    background-color: #fffcf5;
    border: 2px solid var(--vintage-burgundy);
    margin-bottom: 1rem;
    border-radius: 0 !important;
}

.accordion-button {
    background-color: var(--aged-paper);
    color: var(--vintage-burgundy);
    font-family: 'Special Elite', monospace;
    font-weight: bold;
    border-bottom: 1px solid var(--vintage-burgundy);
    border-radius: 0 !important;
    font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--vintage-burgundy);
    color: var(--vintage-yellow);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--vintage-burgundy);
}

.accordion-button::after {
    filter: sepia(1) hue-rotate(-50deg) saturate(5);
    /* Make arrow reddish */
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
    /* Make arrow white */
}

.accordion-body {
    font-family: 'Crimson Text', serif;
    color: var(--vintage-burgundy);
    background-color: #fffcf5;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ===== BACK TO TOP BUTTON ===== */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex !important;
    /* Force display if hidden */
    align-items: center;
    justify-content: center;
    background-color: var(--vintage-burgundy) !important;
    color: var(--vintage-yellow) !important;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    z-index: 999;
    border: 2px solid var(--vintage-yellow) !important;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#btn-back-to-top:hover {
    background-color: var(--vintage-yellow) !important;
    color: var(--vintage-burgundy) !important;
    border-color: var(--vintage-burgundy) !important;
    transform: translateY(-5px);
}

/* ===== UTILITIES ===== */
.tracking-wider {
    letter-spacing: 2px;
}

.tracking-widest {
    letter-spacing: 3px;
}

/* Override Bootstrap primary colors */
.btn-primary {
    background-color: var(--vintage-yellow) !important;
    border-color: var(--vintage-burgundy) !important;
    color: var(--vintage-burgundy) !important;
}

.btn-primary:hover {
    background-color: var(--vintage-burgundy) !important;
    border-color: var(--vintage-burgundy) !important;
    color: var(--aged-paper) !important;
}

.btn-outline-primary {
    color: var(--vintage-burgundy) !important;
    border-color: var(--vintage-burgundy) !important;
    color: var(--vintage-burgundy) !important;
}

.btn-outline-primary:hover {
    background-color: var(--vintage-burgundy) !important;
    color: white !important;
}

.text-primary {
    color: var(--vintage-burgundy) !important;
}

.bg-primary {
    background-color: var(--vintage-burgundy) !important;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
    body {
        padding-top: 140px;
        /* Adjust for mobile header height */
    }

    .vintage-section-title {
        font-size: 1.75rem;
    }

    .catalog-item-title {
        font-size: 1.1rem;
    }

    .catalog-item-price {
        font-size: 1.25rem;
    }

    .vintage-tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}