:root {
    --color-paper: #ffffff;
    --color-ink: #2a2723;
    --color-search: #1a5276;
    --color-accent: #89F336;
    --color-accent-light: #c4846f;
    --color-accent-1: #1a5276;
    --color-gold: #d2b48c;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-text: 'Source Serif Pro', serif;
    --border-radius: 5px;
}

/* Typography */
.tagline {
    font-family: var(--font-text);
    font-weight: 300;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-ink);
    opacity: 0.8;
    margin-bottom: 1.5rem;
}

/* Controls */
.controls {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.filter-dropdown,
.search-input {
    font-family: var(--font-text);
}

.filter-dropdown {
    padding: 0.5rem;
    border: 1px solid var(--color-search);
    background-color: var(--color-paper);
    color: var(--color-ink);
    border-radius: var(--border-radius);
    cursor: pointer;
    outline: none;
}

.search-box {
    display: flex;
    border: 1px solid var(--color-search);
    width: 200px;
    background-color: var(--color-paper);
    border-radius: var(--border-radius);
}

.search-input {
    background: transparent;
    border: none;
    outline: none;
    padding: 0.5rem;
    color: var(--color-ink);
    width: 100%;
}

.search-button {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-search);
}

/* Cart Button */
#lg-bag {
    display: flex;
    align-items: center;
    font-family: var(--font-text);
    background-color: var(--color-paper);
    border: 1px solid var(--color-search);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#lg-bag:hover {
    background-color: var(--color-search);
    color: var(--color-paper);
}

#lg-bag i {
    margin-right: 0.5rem;
    font-size: 1rem;
}

#lg-bag a {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
}

.no-products {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    font-weight: bold;
    color: #555;
    background: palegoldenrod;
    border: 1px dashed #ccc;
    border-radius: 8px;
    margin: 0 auto;
    box-sizing: border-box;
}

.no-products p {
    margin: 0;
    font-size: 20px;
    color: #666;
    font-weight: bold;
}

#no-products-message {
    width: 100%;
    display: block;
}

/* Service Card */
.service-card {
    position: relative;
    width: 100%;
    height: auto;
    perspective: 1000px;
    cursor: pointer;
    border-radius: var(--border-radius);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-front,
.card-back {
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 10px;
}

.service-image {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background-color: #fff;
}

.service-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-cart {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.service-price {
    font-weight: 600;
    color: #28a745;
}

/* Preview Button */
.card-front .preview-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.75rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--color-search);
    color: var(--color-paper);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    border: none;
    outline: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.card-front .preview-product i {
    margin-right: 0.4rem;
}

.card-front .preview-product:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
}

/* Badges */
.discount-ribbon {
    position: absolute;
    top: 10px;
    left: -35px;
    background: var(--color-accent);
    color: white;
    padding: 5px 40px;
    font-size: 15px;
    font-weight: bold;
    transform: rotate(-45deg);
    z-index: 10;
}

.saved-ribbon {
    display: inline-block;
    color: #28a745;
    padding: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: right;
}

.service-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-accent);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
    z-index: 2;
}

.view-product-icon {
    color: var(--color-accent-1);
    cursor: pointer;
    padding: 5px;
    border-radius: 10px;
    transition: transform 0.2s ease;
}

.view-product-icon:hover {
    transform: scale(1.2);
}

/* Quantity Box */
.quantity-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.quantity-box label {
    font-size: 16px;
    white-space: nowrap;
}

.quantity-box input {
    width: 80px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Responsive: Quantity */
@media (max-width: 480px) {
    .quantity-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .quantity-box input {
        width: 100%;
    }
}

/* Section Wrapper */
.section-p1 {
    padding: 10px;
    background-color: var(--color-paper);
    border-radius: var(--border-radius);
}

/* Tables */
.orders-table,
#cart {
    width: 100%;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

th, td {
    padding: 14px 20px;
    text-align: center;
}

tbody tr {
    border-bottom: 1px solid #eee;
}

tbody tr:hover {
    background-color: #f0f4ff;
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
}

.pending { background-color: #fff3cd; color: #856404; }
.shipped { background-color: #d1ecf1; color: #0c5460; }
.delivered { background-color: #d4edda; color: #155724; }
.cancelled { background-color: #f8d7da; color: #721c24; }

/* Cart Specific */
#cart table img {
    max-width: 120px;
    height: auto;
    border-radius: var(--border-radius);
}

.cart-qty-input {
    width: 100px;
    font-family: var(--font-text);
    background: transparent;
    padding: 1px;
    color: var(--color-ink);
    border: 1px solid powderblue;
    border-radius: var(--border-radius);
}

.update-qty {
    border-radius: var(--border-radius);
    border: none;
    background-color: var(--color-accent);
    color: var(--color-paper);
    padding: 2px;
}

#cart table thead {
    border-bottom: 1px solid #e2e9e1;
    text-transform: uppercase;
    font-weight: 700;
}

/* Cart Add Section */
#cart-add {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}

#coupon-01,
#subtotal {
    flex: 1 1 45%;
    min-width: 280px;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    border: 1px solid #e2e9e1;
}

#coupon-01 h3,
#subtotal h3 {
    margin-bottom: 15px;
}

/* Subtotal Table */
#subtotal table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

#subtotal table td {
    padding: 10px;
    font-size: 14px;
}

#subtotal table td:first-child {
    font-weight: 500;
}

/* Buttons */
#coupon-01 button,
#subtotal a.btn {
    display: inline-block;
    margin-top: 10px;

    font-size: 14px;
    border-radius: var(--border-radius);
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    #cart table { font-size: 13px; }
}

@media (max-width: 768px) {
    #cart-add { flex-direction: column; }
    #coupon-01, #subtotal { flex: 1 1 100%; }
    #cart table { font-size: 12px; }
}

@media (max-width: 480px) {
    #cart table { min-width: 400px; }
    #coupon-01, #subtotal { padding: 15px; }
}

/* Services Grid Responsive */
@media (max-width: 700px) {
    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-image { max-height: 220px; }
    .service-title { font-size: 1rem; }
    .card-front .preview-product { font-size: 0.85rem; padding: 0.4rem 0.6rem; }
    .controls { flex-direction: column; gap: 1rem; }
    .search-box { width: 100%; }
}

@media (max-width: 400px) {
    .services-grid { grid-template-columns: 1fr; gap: 1rem; }
    .service-image { max-height: 180px; }
    .service-title { font-size: 0.95rem; }
    .card-front .preview-product { font-size: 0.8rem; padding: 0.3rem 0.5rem; }
}


        
/**DISPLAY-ORDER CSS **/
/** COLLAPSIBLE STYLES **/
.cart-summary-wrapper {
  width: 100%;
  margin: 1rem auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.cart-summary-header {
  padding: 1rem;
  background: var(--light-bg, #f0f0f0);
  color: #333;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px;
}

.cart-summary-body {
  display: none;
  padding: 1rem;
  flex-wrap: wrap;
  gap: 0.6rem; 
  justify-content: flex-start;
}


.cart-summary-body p {
  background-color: #f9f9f9;
  color: #333;
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border: 1px solid powderblue;
  border-radius: 8px;
  display: inline-block;
  white-space: nowrap; /* don't break text inside item */
}

.cart-summary-body p span {
  color: var(--red, #e74c3c);
  font-weight: bold;
}

.grand-total {
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: bold;
  color: #222;
  text-align: left;
}

.grand-total span {
  color: var(--red, #e74c3c);
  font-size: 1rem;
}

@media (max-width: 600px) {
  .cart-summary-body {
    justify-content: center; /* center items on small screens */
  }
  .cart-summary-body p {
    font-size: 0.95rem;
    padding: 0.5rem 0.8rem;
  }
  .grand-total {
    text-align: center;
  }
}
