/* Global Styles */
:root {
  --primary-color: #00454C;
  --secondary-color: #34495e;
  --accent-color: #3498db;
  --text-light: #ecf0f1;
  --text-dark: #2c3e50;
  --card-bg: #fff;
  --hover-color: #2980b9;
  --red-brand: #FF3B3B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f5f6fa !important;
  color: var(--text-dark);
}

/* Navbar Styles */
.navbar {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand img.logo {
  width: 120px;
  height: auto;
  margin-left: 1rem;
}

.navbar .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-item {
  margin: 0 0.5rem;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover {
  color: var(--red-brand) !important;
}

.search-form {
  position: relative;
  max-width: 500px;
  width: 100%;
  margin: 0 2rem;
}

.search-field {
  background-color: #f8f9fa;
  border-radius: 25px;
  padding: 0.5rem 1rem 0.5rem 2.5rem;
  border: 1px solid #eee;
  width: 100%;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-field:focus {
  background-color: white;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
  border-color: #ddd;
}

.search-form .fa-search {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 0.9rem;
}

.navbar-nav .btn {
  padding: 0.5rem;
  color: var(--text-dark);
  background: transparent;
  border: none;
  margin-left: 0.5rem;
}

.navbar-nav .btn:hover {
  color: var(--red-brand);
}

.bi-person-circle,
.bi-bag,
.bi-heart {
  font-size: 1.3rem;
}

/* Menu Button Styles */
.menu-button {
  background: #222;
  color: white;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  font-size: 0.9rem;
  margin-right: 1rem;
}

.menu-button:hover {
  background: #000;
}

/* Top Navigation Links */
.top-nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.top-nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.top-nav-links a:hover {
  color: var(--red-brand);
}

/* User Controls */
.user-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-controls a {
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.user-controls a:hover {
  color: var(--red-brand);
}

/* Responsive Navbar */
@media (max-width: 992px) {
  .search-form {
    margin: 1rem 0;
    max-width: 100%;
  }
  
  .navbar .container-fluid {
    padding: 0 1rem;
  }
  
  .top-nav-links {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .user-controls {
    margin-top: 1rem;
    justify-content: flex-start;
  }
}

/* Card Styles */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--card-bg) !important;
  margin-bottom: 2rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.card-img-top {
  border-radius: 12px 12px 0 0;
  object-fit: cover;
  height: 250px;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  color: var(--text-dark) !important;
  font-weight: 600;
  margin-bottom: 1rem;
}

.card .btn-outline-light {
  background-color: var(--accent-color);
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card .btn-outline-light:hover {
  background-color: var(--hover-color);
  transform: scale(1.05);
}

/* Price Styling */
.card h3 {
  color: var(--text-dark) !important;
  font-size: 1.5rem;
  margin: 1rem 0;
}

/* Star Rating */
.bi-star-fill {
  color: #f1c40f !important;
  margin-right: 2px;
}

/* Footer Styles */
.page-footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  margin-top: 5rem;
}

/* Modal Styles */
.modal-content {
  background-color: var(--card-bg);
  border-radius: 12px;
  border: none;
}

.modal-header {
  background-color: var(--primary-color);
  color: var(--text-light);
  border-radius: 12px 12px 0 0;
  padding: 1rem 1.5rem;
}

.close {
  background-color: rgba(255,255,255,0.2);
  border-radius: 50%;
  padding: 0.5rem;
  margin: -0.5rem;
  transition: all 0.3s ease;
}

.close:hover {
  background-color: rgba(255,255,255,0.3);
}

/* Image Zoom Styles */
.img-zoom-container {
  position: relative;
  margin: 1rem 0;
}

.img-zoom-lens {
  border: 2px solid var(--accent-color);
  width: 100px;
  height: 100px;
  cursor: crosshair;
}

.img-zoom-result {
  border: 2px solid #ddd;
  width: 300px;
  height: 300px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .card {
    width: 100% !important;
    margin: 1rem 0;
  }
  
  .search-field {
    width: 100%;
  }
  
  .navbar-brand img.logo {
    width: 140px;
  }
}

/* Button Styles */
.btn {
  transition: all 0.3s ease;
}

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

/* Container Spacing */
.container {
  padding: 2rem 15px;
  width: 100%;
}

/* Navigation Icons */
.bi-person-circle,
.bi-bag {
  font-size: 1.2rem;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background-color: white;
    z-index: 1050;
    transition: left 0.3s ease;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
}

.close-sidebar:hover {
    color: var(--red-brand);
}

.sidebar-content {
    padding: 1rem;
}

.sidebar-categories,
.sidebar-account {
    margin-bottom: 2rem;
}

.sidebar-categories h5,
.sidebar-account h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.sidebar-link:hover {
    background-color: #f8f9fa;
    color: var(--red-brand);
}

.sidebar-link i {
    font-size: 1.1rem;
}

.sidebar-link span {
    margin-right: 0.5rem;
}

.sidebar-account .sidebar-link {
    justify-content: flex-start;
    gap: 1rem;
}

@media (max-width: 768px) {
    .sidebar {
        width: 280px;
    }
}

/* Product Page Styles */
.product-container {
    padding: 2rem 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.product-gallery {
    position: relative;
    margin-bottom: 20px;
}

.product-gallery #mainImage {
    width: 100%;
    height: auto;
    display: block;
    cursor: crosshair;
}

.img-zoom-result {
    position: absolute;
    top: 0;
    right: -420px;
    width: 400px;
    height: 400px;
    border: 2px solid #ddd;
    background-color: white;
    display: none;
    overflow: hidden;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

@media (max-width: 1200px) {
    .img-zoom-result {
        display: none !important;
    }
}

.footer-services {
    color: white;
}

.footer-services h4 {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.footer-services .bi {
    margin-right: 10px;
}

.footer-main {
    color: white;
}

.footer-main hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 30px 0;
}

/* 3D Model Viewer Styles */
.model-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 600px;
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
    background-color: #f5f6fa;
}

#meuCanvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

/* Loading Screen */
.loading-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    z-index: 1000;
    font-family: 'Poppins', sans-serif;
}

.loading-bar-container {
    width: 300px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background-color: #fff;
    border-radius: 3px;
    transition: width 0.3s ease-out;
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* GUI Customization */
.dg.main {
    margin-right: 10px !important;
}

.dg.main .close-button {
    background-color: #2c3e50;
}

/* Stats Panel */
.model-container .stats {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    z-index: 100;
}

/* Control Buttons */
.model-controls {
    background-color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.btn-model {
    margin: 5px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border-radius: 15px;
    background-color: #ffffff;
    color: #000000;
}

.btn-model i {
    font-size: 1.1rem;
}

.btn-model:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Fullscreen Mode */
.model-container:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

.model-container:-moz-full-screen {
    width: 100vw;
    height: 100vh;
}

.model-container:fullscreen {
    width: 100vw;
    height: 100vh;
}

.camera-control-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.camera-control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.camera-control-btn i {
    font-size: 1.5rem;
    color: #333;
}

.exit-fullscreen-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.exit-fullscreen-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.exit-fullscreen-btn i {
    font-size: 1.2rem;
    color: #333;
}

/* Show exit button only in fullscreen */
.model-container:fullscreen .exit-fullscreen-btn {
    display: flex;
}

/* Vendor prefixes for Firefox */
.model-container:-moz-full-screen .exit-fullscreen-btn {
    display: flex;
}

/* Vendor prefixes for webkit browsers */
.model-container:-webkit-full-screen .exit-fullscreen-btn {
    display: flex;
}

/* Product Cards */
.product-card {
    background-color: #646566;
    border: none;
    border-radius: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.voltar-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
    text-decoration: none;
    width: 200px;
    color: #000000;
    padding: 10px;
    border: 1px solid #ADADAD;
    border-radius: 15px;
    height: 48px;
}

.voltar-btn:hover {
    background-color: #F5F5F5;
    color: #000000;
    border: 1px solid #ADADAD;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-card .card-img-top {
    border-radius: 0;
    object-fit: cover;
    height: 250px;
}

.product-card .card-body {
    padding: 1.5rem;
}

.product-card .card-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: white;
}

.product-card .ratings {
    margin: 0.5rem 0;
}

.product-card .btn-outline-light {
    border-width: 2px;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.product-card .btn-outline-light:hover {
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .product-card .card-img-top {
        height: 200px;
    }
    
    .product-card .card-body {
        padding: 1rem;
    }
    
    .product-card .card-title {
        font-size: 1rem;
    }
}

@media (min-width: 576px) and (max-width: 768px) {
    .product-card .card-img-top {
        height: 220px;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .product-card .card-img-top {
        height: 230px;
    }
}