/* Global Styles */
:root {
    --primary-color: #BB6147;
    --secondary-color: #F7941D;
    --accent-color: #B9BE61;
    --light-bg: #fff8f0;
    --dark-text: #2d3748;
    --font-family-base: "Times New Roman", Times, serif;
}

/* Base font settings */
html, body {
    font-family: var(--font-family-base);
}

/* Apply font to all elements */
*, 
*::before, 
*::after {
    font-family: var(--font-family-base) !important;
}

/* Specific element overrides */
h1, h2, h3, h4, h5, h6,
p, span, div, 
button, input, select, textarea,
.navbar, .card, .modal,
.btn, .form-control {
    font-family: var(--font-family-base) !important;
}

body {
    color: var(--dark-text);
    font-family: "Times New Roman", Times, serif;
    padding-top: 76px; /* Add padding to account for fixed navbar */
    background-color: var(--light-bg);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    height: auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 200px;
    margin-right: 0;
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand span {
    font-family: 'GILKER', sans-serif !important;
    font-size: clamp(0.7rem, 3vw, 2.2rem);
    color: var(--primary-color);
    letter-spacing: 0.5px;
    transition: font-size 0.2s;
    margin-left: 0.5rem;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

/* Mobile menu button */
.navbar-toggler {
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
    border: 1px solid var(--primary-color);
    margin-left: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Navbar Links */
.navbar .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar .nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 2px;
}

/* Navbar Badge */
.navbar .badge.bg-primary {
    background-color: var(--secondary-color) !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #a5553f;
    border-color: #a5553f;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Cards */
.card {
    border: none !important;
    transition: none;
}

.card:hover {
    transform: none;
    box-shadow: none !important;
}

.card-footer {
    padding: 1rem;
}

.card-footer .weight-selector select {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.card-footer .input-group {
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-footer .input-group .btn {
    border: none;
    color: var(--primary-color);
}

.card-footer .input-group .form-control {
    border: none;
    text-align: center;
}

.card-footer .input-group .form-control:focus {
    box-shadow: none;
}

.card-footer .btn-primary {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
}

/* Product Cards */
.product-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1) !important;
}

.product-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.card-img-top {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 400px;
}

/* Cart */
.cart-item {
    transition: background-color 0.3s ease;
}

.cart-item:hover {
    background-color: var(--light-bg);
}

/* Forms */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(187, 97, 71, 0.25);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

/* Responsive Images */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* Footer */
footer {
    background-color: #cbe0b8 !important;
    border-top: 1px solid rgba(0,0,0,0.1);
    border-radius: 1rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

footer h5 {
    color: var(--dark-text) !important;
    font-weight: 700;
}

footer a {
    transition: color 0.3s ease;
    color: var(--dark-text) !important;
    font-weight: 600;
}

footer a:hover {
    color: var(--primary-color) !important;
}

footer .bi {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--dark-text);
}

footer .bi:hover {
    transform: translateY(-2px);
}

footer hr {
    border-color: rgba(0,0,0,0.1);
    margin: 2rem 0;
}

footer .text-muted {
    color: var(--dark-text) !important;
    opacity: 0.8;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--light-bg);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}

/* Contact Icons */
.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    .lead { font-size: 1.1rem; }
    .navbar-brand span {
        margin-left: 0.3rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand span {
        margin-left: 0.15rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black;
    }
    
    a {
        text-decoration: none;
        color: black;
    }
}

/* Text Colors */
.text-accent {
    color: var(--accent-color) !important;
}

/* Filter Buttons */
.filter-btn {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.filter-btn.active {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    font-weight: 500;
}

/* Quantity Controls */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.quantity-btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.quantity-input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    padding: 0.25rem;
    font-size: 1rem;
    min-width: 40px;
    flex-shrink: 0;
}

.hero-bg {
    background: linear-gradient(120deg, var(--light-bg) 60%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    padding-top: 2rem;
    border-radius: 0 0 2rem 2rem;
    margin-top: 1rem;
}

.hero-img {
    max-width: 340px;
    filter: drop-shadow(0 8px 32px rgba(187, 97, 71, 0.15));
    border-radius: 1.5rem;
    animation: fadeIn 1.5s 0.2s backwards;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 40px rgba(187, 97, 71, 0.25));
}

/* Brand Promise Section */
.brand-promise-section {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/brand-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 400px;
    display: flex;
    align-items: center;
    color: white;
    padding: 4rem 0;
    overflow: hidden;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
}

.brand-promise-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none;
}

.brand-promise-section .container {
    position: relative;
    z-index: 2;
}

.brand-promise-section h5 {
    color: white;
    font-weight: 700;
    margin: 1rem 0;
    font-size: 24px;
}

.brand-promise-section p {
    color: white;
    font-weight: 600;
    font-size: 20px;
}

.brand-promise-section .btn-outline-primary {
    color: white;
    border-color: #bb6147;
    background-color: #bb6147;
}

.brand-promise-section .btn-outline-primary:hover {
    background-color: #a5553f;
    border-color: #a5553f;
    color: white;
}

.brand-promise-section .text-muted {
    color: white !important;
    opacity: 0.8;
    font-weight: 600;
    font-size: 20px;
}

.brand-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease;
}

.brand-icon:hover {
    transform: scale(1.1);
}

/* Story Section Styles */
.story-section {
    background: linear-gradient(135deg, #fff8f0 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    padding: 4rem 0;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/pattern.png') repeat;
    opacity: 0.05;
    pointer-events: none;
}

.story-content {
    position: relative;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 100%;
    margin: 0;
}

.story-quote {
    position: relative;
    padding: 2rem;
    background: #cbe0b8;
    border-radius: 1rem;
    margin: 2rem 0;
}

.story-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.2;
    font-family: serif;
}

.story-text p {
    line-height: 1.8;
    color: #2E2E2E;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.story-section .text-primary {
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .story-content {
        padding: 1.5rem;
    }
    
    .story-quote {
        padding: 1.5rem;
    }
}

/* Modal Styles */
.modal-content {
    border-radius: 1rem;
    border: none;
}

.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

#modalProductImage {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#modalProductDescription {
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 1rem;
}

#modalProductDescription::-webkit-scrollbar {
    width: 6px;
}

#modalProductDescription::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#modalProductDescription::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

#modalProductDescription h6 {
    color: var(--primary-color);
    font-weight: 600;
}

#modalProductDescription ul {
    list-style-type: none;
    padding-left: 0;
}

#modalProductDescription ul li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

#modalProductDescription ul li:before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.modal .weight-selector select {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.modal .input-group {
    border: 1px solid var(--primary-color);
    border-radius: 0.5rem;
    overflow: hidden;
}

.modal .input-group .btn {
    border: none;
    color: var(--primary-color);
}

.modal .input-group .form-control {
    border: none;
    text-align: center;
}

.modal .input-group .form-control:focus {
    box-shadow: none;
}

.modal #modalAddToCart {
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
}

/* Import GILKER font */
@import url('https://fonts.cdnfonts.com/css/gilker');

/* Responsive Styles */
@media (max-width: 1200px) {
  .container {
    max-width: 95%;
  }
  
  .hero-img {
    max-width: 450px;
  }
}

@media (max-width: 992px) {
  .navbar-brand {
    min-width: 180px;
  }
  
  .navbar-brand span {
    font-size: 1.6rem;
  }
  
  .navbar-brand img {
    height: 45px;
  }
  
  .brand-promise-section {
    padding: 3rem 0;
    background-attachment: fixed;
    min-height: 350px;
  }
  
  .brand-icon {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .navbar-brand {
    min-width: 160px;
  }
  
  .navbar-brand span {
    font-size: 1.3rem;
  }
  
  .navbar-brand img {
    height: 40px;
  }
  
  .hero-bg {
    text-align: center;
    padding: 2rem 0;
  }
  
  .hero-img {
    max-width: 350px;
    margin: 2rem auto;
  }
  
  .brand-promise-section {
    background-attachment: fixed;
    min-height: 300px;
  }
  
  .brand-promise-section h5 {
    font-size: 1.2rem;
  }
  
  .brand-promise-section p {
    font-size: 1rem;
  }
  
  .brand-icon {
    font-size: 1.8rem;
    padding: 0.8rem;
  }
  
  .card-img-top {
    max-height: 300px;
  }
  
  footer {
    text-align: center;
  }
  
  footer .col-lg-4 {
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0.25rem 0;
  }
  
  .navbar-brand {
    min-width: 140px;
    margin-right: 0;
  }
  
  .navbar-brand span {
    font-size: 0.95rem;
    margin-left: 0.25rem !important;
  }
  
  .navbar-brand img {
    height: 35px;
  }
  
  .navbar-toggler {
    padding: 0.2rem 0.4rem;
  }
  
  .hero-img {
    max-width: 300px;
  }
  
  .brand-promise-section {
    background-attachment: fixed;
    min-height: 250px;
  }
  
  .brand-icon {
    font-size: 1.5rem;
    padding: 0.6rem;
  }
  
  .card-img-top {
    max-height: 250px;
  }
  
  .btn-lg {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
  
  .quantity-control {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    margin: 0.5rem 0 !important;
  }
  
  .quantity-btn {
    width: 40px !important;
    height: 40px !important;
    font-size: 1.3rem !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
  }
  
  .quantity-input {
    display: inline-block !important;
    width: 48px !important;
    height: 40px !important;
    font-size: 1.2rem !important;
    padding: 0.2rem !important;
    min-width: 40px !important;
    text-align: center !important;
    background: #fff !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 6px !important;
    margin: 0 4px !important;
    vertical-align: middle !important;
  }
  
  /* Cart page quantity control fix */
  #cart-items .input-group {
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    gap: 0.25rem !important;
  }
  #cart-items .input-group .btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 1.2rem !important;
    border-radius: 6px !important;
    margin: 0 !important;
  }
  #cart-items .input-group .form-control {
    display: inline-block !important;
    width: 48px !important;
    height: 36px !important;
    font-size: 1.1rem !important;
    padding: 0.2rem !important;
    min-width: 40px !important;
    text-align: center !important;
    background: #fff !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 6px !important;
    margin: 0 4px !important;
    vertical-align: middle !important;
  }
}

/* Fix for mobile menu */
@media (max-width: 991px) {
  .navbar-collapse {
    background: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-nav {
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* Fix for product cards on small screens */
@media (max-width: 576px) {
  .product-card {
    margin-bottom: 1rem;
  }
  
  .card-footer {
    padding: 0.75rem;
  }
  
  .weight-selector select {
    width: 100%;
    margin-bottom: 0.5rem;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .input-group .form-control {
    border-radius: 0.25rem !important;
    margin-bottom: 0.5rem;
  }
  
  .input-group .btn {
    width: 100%;
    border-radius: 0.25rem !important;
  }
}

/* Fix for modal on mobile */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 0.5rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  #modalProductImage {
    margin-bottom: 1rem;
  }
}

/* Fix for cart page on mobile */
@media (max-width: 576px) {
  .cart-item {
    flex-direction: column;
    text-align: center;
  }
  
  .cart-item img {
    margin-bottom: 1rem;
  }
  
  .quantity-control {
    justify-content: center;
    margin-top: 1rem;
  }
}

/* Fix for contact page on mobile */
@media (max-width: 576px) {
  .contact-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .contact-info {
    text-align: center;
  }
}

/* Fix for iOS devices */
@supports (-webkit-touch-callout: none) {
  .brand-promise-section {
    background-attachment: scroll;
    background-position: center center;
    background-size: cover;
  }
} 