/* Paveway Music - Complete CSS with Header Spacing Fix */
:root {
    /* Brand Colors */
    --ea-red: #E41B23;
    --ea-green: #2D572C;
    --ea-yellow: #F9D423;
    --ea-blue: #0063B1;
    --ea-orange: #F26522;
    --dark: #1A1A1A;
    --light: #F8F9FA;
    --gradient-primary: linear-gradient(135deg, var(--ea-red), var(--ea-orange));
    --gradient-secondary: linear-gradient(135deg, var(--ea-green), var(--ea-blue));
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: var(--header-height);
}

main {
    flex: 1;
    padding: 30px 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    padding: 0 15px;
    margin: 0 auto;
}

.section {
    padding: 70px 0;
}

.section-header {
    margin-bottom: 40px;
    text-align: center;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    padding: 20px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 990;
    height: var(--header-height);
}

/* Floating Cart Button Styles */
.floating-elements {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000; /* Higher than navbar */
}

.cart-float-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #0d6efd;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
    text-decoration: none;
}

.cart-float-btn:hover {
    background-color: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .cart-float-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
}
@media (max-width: 576px) {
    .floating-elements {
        bottom: 20px;
        right: 20px;
    }
}
.navbar.scrolled {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 15px 0;
}

.navbar-brand img {
    height: 40px;
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 35px;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    color: white !important;
    position: relative;
}

.nav-link:hover {
    color: var(--ea-yellow) !important;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ea-yellow);
    transition: width 0.3s ease;
}

.nav-link:hover:after {
    width: 100%;
}

@media (max-width: 768px) {
  .navbar-collapse {
    background-color: rgba(30, 58, 138, 0.95);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 1rem;
    border-radius: 0 0 10px 10px;
  }

  .navbar-nav .nav-link {
    color: #fff !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
  }

  .navbar-toggler {
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
  }

  .navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(228, 27, 35, 0.4);
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 10px 28px;
}

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

.btn-accent {
    background: var(--ea-yellow);
    color: var(--dark);
}

.btn-accent:hover {
    background: var(--ea-orange);
    color: white;
}

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  text-align: center;
  color: white;
  padding: 0 15px;
  box-sizing: border-box;
  margin-top: calc(-1 * var(--header-height));
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85));
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px 15px;
  box-sizing: border-box;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: bold;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 30px;
  opacity: 0.95;
}

.country-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 6px 14px;
  margin: 3px;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

@media (max-width: 576px) {
  .hero-content .d-flex {
    flex-direction: column;
    gap: 10px !important;
  }
}

.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.product-card {
    margin-bottom: 25px;
}

.product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badges {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-badge {
    background: var(--gradient-primary);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.stock-badge {
    background: var(--ea-yellow);
    color: var(--dark);
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view-btn {
    background: white;
    color: var(--dark);
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
}

.shopping-cart {
    padding: calc(var(--header-height) + 40px) 0 50px;
    background-color: #f8f9fa;
}

.cart-header {
    margin-bottom: 30px;
    text-align: center;
}

.cart-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--dark);
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.cart-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
}

.empty-cart {
    text-align: center;
    padding: 50px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.empty-cart .alert {
    max-width: 500px;
    margin: 0 auto 25px;
}

.cart-form {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
}

.cart-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 25px;
}

.cart-table th {
    padding: 15px;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.02);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    color: var(--dark);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.cart-table td {
    padding: 15px;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
}

.product-cell {
    width: 40%;
}

.price-cell, 
.quantity-cell,
.total-cell,
.action-cell {
    width: 15%;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-start;
}

.cart-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.product-name {
    font-weight: 500;
    text-align: left;
}

.quantity-input {
    width: 70px;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-align: center;
    margin: 0 auto;
    font-weight: 500;
}

.btn-remove {
    background-color: #f8f9fa;
    color: #dc3545;
    border: 1px solid #dc3545;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 15px;
    font-size: 0.85rem;
}

.btn-remove:hover {
    background-color: #dc3545;
    color: white;
}

.cart-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.cart-totals {
    width: 100%;
    max-width: 400px;
    margin-bottom: 25px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.grand-total {
    font-size: 1.2rem;
    font-weight: 700;
    padding: 15px 0;
    border-bottom: none;
    color: var(--ea-red);
}

.cart-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
    flex-wrap: wrap;
}

.checkout-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-continue {
    background-color: #f8f9fa;
    color: var(--dark);
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-update {
    background-color: #f8f9fa;
    color: var(--dark);
    border: 1px solid #ddd;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-checkout {
    background: var(--gradient-primary);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: none;
}

.checkout {
    padding: calc(var(--header-height) + 40px) 0 50px;
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .cart-form {
        padding: 20px;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid #eee;
        border-radius: 8px;
        padding: 15px;
    }
    
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100% !important;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        text-align: right;
    }
    
    .cart-table td:before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 15px;
        text-align: left;
    }
    
    .product-info {
        flex-direction: row;
        text-align: left;
        width: 100%;
        justify-content: flex-start;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .checkout-buttons {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }
    
    .checkout-buttons .btn,
    .cart-actions .btn {
        width: 100%;
        margin-bottom: 0;
        justify-content: center;
    }
    
    .cart-summary {
        align-items: stretch;
    }
    
    .cart-totals {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .cart-title {
        font-size: 1.8rem;
    }
    
    .product-info {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .product-name {
        text-align: center;
    }
    
    .cart-table td:before {
        width: 120px;
    }
    
    .quantity-input {
        width: 60px;
    }
    
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .cart-form {
        padding: 15px;
    }
    
    .cart-product-image {
        width: 100%;
        height: auto;
        max-height: 150px;
    }
}

/* PayPal Container */
#paypal-button-container {
    min-height: 150px;
    position: relative;
}

/* Loading State */
.paypal-loading {
    animation: fadeIn 0.3s ease;
}
.paypal-loading .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    border-width: 0.25em;
}

/* Error State */
.paypal-error {
    animation: fadeIn 0.3s ease;
}
.paypal-error h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #paypal-button-container {
        min-height: 120px;
    }
}

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

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

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

.fade-out {
    animation: fadeOut 0.3s ease forwards;
}

.pulse {
    animation: pulse 0.5s ease;
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .navbar-brand img {
        height: 35px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .product-card {
        margin-bottom: 20px;
    }

    .product-image {
        height: 160px;
    }
}

@media (max-width: 576px) {
    :root {
        --header-height: 70px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-outline-primary {
        padding: 8px 18px;
    }

    .section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .navbar {
        padding: 15px 0;
    }

    .navbar-brand img {
        height: 30px;
    }

    footer {
        padding: 30px 0;
        text-align: center;
    }

    .social-links {
        flex-wrap: wrap;
    }

    .contact-section {
        padding: 40px 0;
    }

    .contact-card {
        padding: 20px;
    }
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mt-30 { margin-top: 30px; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }

footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
    margin-top: auto;
}

footer a {
    color: white;
}

footer a:hover {
    color: var(--ea-yellow);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(228, 27, 35, 0.3);
}

.contact-section {
    background: var(--gradient-secondary);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.contact-section .section-title:after {
    background: white;
}

.contact-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    color: var(--dark);
}

.section-title {
    color: var(--dark);
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
}

.section-subtitle {
    color: var(--dark);
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.8;
    text-align: center;
}

.section-dark {
    background: var(--dark);
    color: white;
}

.section-dark .section-title,
.section-dark .section-subtitle {
    color: white;
}

.section-dark .section-title:after {
    background: var(--ea-yellow);
}

@media (max-width: 768px) {
    .section {
        text-align: center;
    }
    
    .services-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        margin-left: auto;
        margin-right: auto;
    }
    
    .row {
        justify-content: center;
    }
    
    .section-header,
    .section-title,
    .section-subtitle {
        text-align: center;
    }
    
    .section-title:after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .d-flex {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .card {
        margin: 0 auto 20px;
        text-align: center;
    }
    
    .card-img-top {
        margin: 0 auto;
    }
    
    .btn-group {
        justify-content: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .service-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

  /* Shop Section Styles */
  .product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.5rem;
  }
  
  .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
  }
  
  .product-img-container {
    position: relative;
    overflow: hidden;
    height: 200px;
  }
  
  .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .product-card:hover .product-img {
    transform: scale(1.05);
  }
  
  .product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
    font-weight: bold;
  }
  
  .stock-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
  }
  
  .color-swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid #ddd;
}
