/* Preloader Styles */
#preloader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}
body.loading {
    overflow: hidden;
}
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}
.loader-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: contain;
  position: relative;
  z-index: 2;
  background: transparent;
  animation: rotateLogo 1.6s linear infinite;
  transform-origin: center center;
}
@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
    border-top-color: #af803a;
    border-right-color: #af803a;
  }
  50% {
    border-top-color: #d4af37;
    border-right-color: #d4af37;
  }
  100% {
    transform: rotate(360deg);
    border-top-color: #af803a;
    border-right-color: #af803a;
  }
}
@keyframes rotateLogo {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.loading-text {
  color: #af803a;
  font-size: 15px;
  letter-spacing: 4px;
  font-weight: 600;
}
.loading-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #af803a, transparent);
    animation: loadingBar 2s infinite ease-in-out;
}
@keyframes pulseText {
    0%, 100% { 
        opacity: 0.7;
        transform: translateY(0);
    }
    50% { 
        opacity: 1;
        transform: translateY(-5px);
    }
}
@keyframes loadingBar {
    0% {
        width: 0;
        left: 50%;
    }
    50% {
        width: 100px;
        left: calc(50% - 50px);
    }
    100% {
        width: 0;
        left: 50%;
    }
}
.loading-dots {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}
.loading-dots span {
    width: 8px;
    height: 8px;
    background: #af803a;
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}
.loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.loading-dots span:nth-child(2) { animation-delay: -0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0s; }
@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0);
        background: #af803a;
    }
    40% { 
        transform: scale(1);
        background: #d4af37;
    }
}

/* Cart Notification Styles */
#cart-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: linear-gradient(135deg, #af803a 0%, #d4af37 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(175, 128, 58, 0.4);
    z-index: 9999;
    transform: translateX(150%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 300px;
    text-align: center;
    font-weight: 600;
    border: 2px solid white;
    animation: slideIn 0.5s ease forwards;
}
#cart-notification.success {
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}
#cart-notification.error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}
#cart-notification i {
    margin-right: 10px;
    font-size: 18px;
}
@keyframes slideIn {
    0% {
        transform: translateX(150%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Spin Wheel Styles */
#spin-wheel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9990;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#spin-wheel-overlay.active {
    display: flex;
    opacity: 1;
}
#spin-wheel-container {
    text-align: center;
    padding: 30px;
    background: black;
    border-radius: 20px;
    border: 3px solid #bfa33f;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
#spin-wheel-container.active {
    transform: scale(1);
    opacity: 1;
}
#wheel-container {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 20px;
}
#wheel {
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(191, 163, 63, 0.6);
    transition: transform 3s cubic-bezier(0.23, 1, 0.32, 1);
}
#spin-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: #bfa33f;
    border-radius: 50%;
    border: 4px solid white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: black;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
#spin-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: #d4af37;
}
#spin-button.spinning {
    pointer-events: none;
    opacity: 0.7;
    transform: translate(-50%, -50%) scale(0.95);
}
#pointer {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 35px solid #bfa33f;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}
#result {
    margin-top: 20px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 15px;
    border: 2px solid #bfa33f;
    display: none;
}
#congratulations-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: black;
    border: 3px solid #bfa33f;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    z-index: 9995;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.9);
}
#congratulations-card.active {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
}
#congratulations-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}
#congratulations-close:hover {
    background: #ff6666;
    transform: scale(1.1);
}
.congratulations-product-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 15px;
    border: 3px solid #bfa33f;
    margin: 15px auto;
    display: block;
}
.congratulations-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}
.congratulations-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-shop {
    background: linear-gradient(135deg, #bfa33f 0%, #d4af37 100%);
    color: black;
}
.btn-shop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(191, 163, 63, 0.4);
}
.btn-close {
    background: transparent;
    color: #bfa33f;
    border: 2px solid #bfa33f;
}
.btn-close:hover {
    background: #bfa33f;
    color: black;
}
.wheel-product-image {
    max-width: 80px;
    max-height: 80px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #bfa33f;
    margin: 10px 0;
}
#wheel-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.4);
}
#wheel-close-btn:hover {
    background: #ff6666;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.6);
}
@keyframes confetti {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}
.confetti {
    position: fixed;
    width: 10px;
    height: 10px;
    background: #bfa33f;
    opacity: 0;
    z-index: 9991;
    animation: confetti 3s linear forwards;
}

/* Floating Cart Styles */
.floating-cart-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9998;
}
.floating-cart-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #af803a 0%, #d4af37 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(175, 128, 58, 0.4);
    z-index: 9998;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-cart-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(175, 128, 58, 0.6);
}
.floating-cart-btn:active {
    transform: scale(0.95);
}
.floating-cart-btn i {
    color: #000;
    font-size: 22px;
    font-weight: bold;
}
.floating-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid #000;
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.6);
}
.floating-cart-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: #1a1a1a;
    border: 2px solid #af803a;
    border-radius: 15px;
    padding: 15px;
    width: 350px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    z-index: 9997;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}
.floating-cart-panel.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
}
.floating-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}
.floating-cart-header h3 {
    color: #af803a;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.floating-cart-header h3 i {
    margin-right: 8px;
}
.floating-cart-close {
    background: none;
    border: none;
    color: #af803a;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s ease;
}
.floating-cart-close:hover {
    transform: scale(1.1);
    color: #d1a45a;
}
.floating-cart-items {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
}
.floating-cart-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #333;
}
.floating-cart-item:last-child {
    border-bottom: none;
}
.floating-cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    margin-right: 15px;
    border: 1px solid #333;
}
.floating-cart-item-details {
    flex: 1;
}
.floating-cart-item-name {
    color: white;
    font-size: 14px;
    margin: 0 0 8px 0;
    font-weight: 500;
    line-height: 1.3;
}
.floating-cart-item-price {
    color: #af803a;
    font-size: 14px;
    font-weight: 600;
}
.floating-cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.floating-quantity-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #af803a;
    background: transparent;
    color: #af803a;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.floating-quantity-btn:hover {
    background: #af803a;
    color: #000;
}
.floating-quantity-btn:active {
    transform: scale(0.9);
}
.floating-quantity-number {
    color: white;
    font-size: 14px;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}
.floating-cart-summary {
    border-top: 1px solid #333;
    padding-top: 15px;
}
.floating-cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.floating-cart-total span:first-child {
    color: white;
    font-size: 16px;
    font-weight: 500;
}
.floating-cart-total span:last-child {
    color: #af803a;
    font-size: 18px;
    font-weight: 700;
}
.floating-cart-actions {
    display: flex;
    gap: 10px;
}
.floating-cart-view-btn, .floating-cart-checkout-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
}
.floating-cart-view-btn {
    background: transparent;
    color: #af803a;
    border: 2px solid #af803a;
}
.floating-cart-view-btn:hover {
    background: #af803a;
    color: #000;
}
.floating-cart-checkout-btn {
    background: linear-gradient(135deg, #af803a 0%, #d4af37 100%);
    color: #000;
}
.floating-cart-checkout-btn:hover {
    background: linear-gradient(135deg, #d4af37 0%, #af803a 100%);
    transform: translateY(-2px);
}
.floating-cart-view-btn:active, .floating-cart-checkout-btn:active {
    transform: translateY(2px);
}
.floating-cart-empty {
    text-align: center;
    padding: 30px 0;
    color: #666;
}
.floating-cart-empty i {
    font-size: 36px;
    margin-bottom: 15px;
    color: #af803a;
}
.floating-cart-empty p {
    margin: 0;
    font-size: 16px;
}
.floating-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9996;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.floating-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.floating-cart-count.pulse {
    animation: pulse 0.6s ease;
}
.floating-cart-items::-webkit-scrollbar {
    width: 6px;
}
.floating-cart-items::-webkit-scrollbar-track {
    background: #333;
    border-radius: 3px;
}
.floating-cart-items::-webkit-scrollbar-thumb {
    background: #af803a;
    border-radius: 3px;
}

/* Header Styles */
.site-content {
    padding-top: 20px !important;
    margin-top: 0 !important;
}
@media (min-width: 993px) {
    .header-bar {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    .header-logo-section {
        flex: 0 1 auto !important;
        max-width: 400px !important;
        position: relative !important;
    }   
    .header-search-container {
        max-width: 400px !important;
    }
    .header-search-container .search-field {
        height: 40px !important;
        font-size: 15px !important;
    }
    .header-search-container .search-field::placeholder {
        font-size: 14px !important;
    }
    .header-search-container .search-submit {
        width: 50px !important;
    }   
    .header-search-container .search-submit i {
        font-size: 16px !important;
    }
}
@media (max-width: 1200px) {       
    .header-search-container {
        max-width: 300px !important;
    }
}
@media (max-width: 992px) {
    .header-bar {
        flex-direction: column;
        padding: 8px 15px;
        gap: 10px;
        min-height: auto;
    }     
    .header-logo-section, 
    .header-right-section{
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
    .header-logo img {
        width: 200px !important;
        height: 60px !important;
        max-width: 200px !important;
        max-height: 60px !important;
        min-width: 200px !important;
        min-height: 60px !important;
    }
    .header-search-container {
        max-width: 250px !important;
    }
    .header-search-container .search-field {
        height: 35px !important;
        font-size: 13px !important;
    }
    .floating-cart-panel {
        width: 300px;
        right: 15px;
    }
    .floating-cart-btn {
        width: 55px;
        height: 55px;
    }
    .floating-cart-btn i {
        font-size: 20px;
    }
    .floating-cart-count {
        width: 22px;
        height: 22px;
        font-size: 11px;
    }   
    .site-content {
        padding-top: 15px !important;
    }
}
@media (max-width: 768px) {
    .header-bar {
        padding: 8px 10px !important;
        min-height: 60px !important;
    }
    .header-logo-section {
        padding: 0 5px !important;
        min-height: 60px !important;
    }
    .header-logo img {
        width: 150px !important;
        height: 45px !important;
        max-width: 150px !important;
        max-height: 45px !important;
        min-width: 150px !important;
        min-height: 45px !important;
    }
    .header-search-container {
        max-width: 200px !important;
        margin: 8px auto 0 !important;
    }        
    .header-search-container .search-field {
        padding: 8px 35px 8px 12px !important;
        font-size: 12px !important;
        height: 32px !important;
        border: 1.5px solid #af803a !important;
    }
    .header-search-container .search-submit {
        width: 35px !important;
        background: #af803a !important;
    }      
    .header-search-container .search-submit i {
        font-size: 12px !important;
    }        
    .floating-cart-panel {
        width: 280px;
        right: 10px;
    }       
    .floating-cart-btn {
        width: 50px;
        height: 50px;
    }        
    .floating-cart-btn i {
        font-size: 18px;
    }
    .site-content {
        padding-top: 10px !important;
    }
}
@media (max-width: 480px) {
    .header-bar {
        padding: 6px 8px !important;
        min-height: 55px !important;
    }
    .header-logo-section {
        padding: 0 5px !important;
        min-height: 50px !important;
    }
    .header-logo img {
        width: 130px !important;
        height: 40px !important;
        max-width: 130px !important;
        max-height: 40px !important;
        min-width: 130px !important;
        min-height: 40px !important;
    }        
    .header-search-container {
        max-width: 160px !important;
    }       
    .header-search-container .search-field {
        padding: 6px 28px 6px 10px !important;
        font-size: 11px !important;
        height: 28px !important;
    }     
    .header-search-container .search-field::placeholder {
        font-size: 10px !important;
    }      
    .floating-cart-panel {
        width: 260px;
        padding: 12px;
    }      
    .floating-cart-item-image {
        width: 50px;
        height: 50px;
    }
    .floating-cart-item-name {
        font-size: 12px;
    }       
    .floating-cart-item-price {
        font-size: 12px;
    }       
    .floating-cart-actions {
        flex-direction: column;
    }       
    .floating-cart-view-btn, .floating-cart-checkout-btn {
        width: 100%;
    }        
    .site-content {
        padding-top: 8px !important;
    }
}
@media (max-width: 360px) {       
    .header-logo-section {
        min-height: 45px !important;
    }
    .header-logo img {
        width: 110px !important;
        height: 35px !important;
        max-width: 110px !important;
        max-height: 35px !important;
        min-width: 110px !important;
        min-height: 35px !important;
    }
    .header-search-container {
        max-width: 140px !important;
    }       
    .header-search-container .search-field {
        padding: 5px 25px 5px 8px !important;
        font-size: 10px !important;
        height: 26px !important;
    }       
    .header-search-container .search-field::placeholder {
        font-size: 9px !important;
    }        
    .site-content {
        padding-top: 5px !important;
    }
}
@supports (padding: max(0px)) {
    .floating-cart-container {
        bottom: max(20px, env(safe-area-inset-bottom));
        right: max(20px, env(safe-area-inset-right));
    }      
    .floating-cart-panel {
        bottom: calc(max(20px, env(safe-area-inset-bottom)) + 70px);
        right: max(20px, env(safe-area-inset-right));
    }        
    @media (max-width: 768px) {
        .floating-cart-container {
            bottom: max(15px, env(safe-area-inset-bottom));
            right: max(15px, env(safe-area-inset-right));
        }
        .floating-cart-panel {
            bottom: calc(max(15px, env(safe-area-inset-bottom)) + 65px);
            right: max(15px, env(safe-area-inset-right));
        }
    }
}

/* Logo Styles */
.header-logo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.site-logo {
    width: 100%;
    max-width: 420px; 
    height: auto;
    object-fit: contain;
    display: block;
}
@media (max-width: 992px) {
    .site-logo {
        max-width: 300px;
    }
}
@media (max-width: 768px) {
    .site-logo {
        max-width: 220px;
    }
}
@media (max-width: 480px) {
    .site-logo {
        max-width: 180px;
    }
}
@media (max-width: 360px) {
    .site-logo {
        max-width: 150px;
    }
}
.header-search-container {
    max-width: 420px;
    margin: 12px auto 0;
}
.loader-logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: none !important;
    transform: none !important;
}
.loading-dots {
    margin-top: 12px;
    display: flex;
    gap: 6px;
}
.loading-dots span {
    width: 6px;
    height: 6px;
    background: #af803a;
    border-radius: 50%;
    animation: dots 1.4s infinite ease-in-out;
}
.loading-dots span:nth-child(2) { animation-delay: .2s; }
.loading-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes dots {
    0%, 80%, 100% { opacity: .3; }
    40% { opacity: 1; }
}
@keyframes rotateLogo {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} 

